diff options
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -1,3 +1,8 @@ | |||
1 | BUILD := debug | ||
2 | |||
3 | cflags.debug := -Wall -o0 -g -DDEBUG=1 | ||
4 | cflags.release := -os -s | ||
5 | CFLAGS := ${cflags.${BUILD}} | ||
1 | 6 | ||
2 | test: main | 7 | test: main |
3 | ./main | 8 | ./main |
@@ -8,5 +13,5 @@ clean: | |||
8 | rm -f ./main | 13 | rm -f ./main |
9 | 14 | ||
10 | %: | 15 | %: |
11 | $(CC) -pthread -g -o $@ $@.c | 16 | $(CC) $(CFLAGS) -o $@ $@.c |
12 | 17 | ||