diff options
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 11 |
1 files changed, 7 insertions, 4 deletions
@@ -1,13 +1,13 @@ CC=gcc -CFLAGS=-D_GNU_SOURCE -std=c99 -pedantic -O3 -DBG_FLAGS=-Wall -g3 -D_FOOD_DEBUG -fsanitize=address -Og +CFLAGS=-D_GNU_SOURCE -std=c99 -pedantic +DBG_FLAGS=-Wall -g -D_FOOD_DEBUG -fsanitize=address -O0 SRC=src/*.c .PHONY: all debug clean -all: food #eval +all: food cookbook #eval food: $(SRC) food.c $(CC) $(CFLAGS) -o food $^ $(LIBS) @@ -15,12 +15,15 @@ food: $(SRC) food.c eval: $(SRC) eval.c $(CC) $(CFLAGS) -o eval $^ $(LIBS) +cookbook: $(SRC) cookbook.c + $(CC) $(CFLAGS) -o cookbook $^ $(LIBS) + debug: CFLAGS += $(DBG_FLAGS) debug: all clean: rm -f *.o - rm -f food eval + rm -f food eval cookbook # tests: # $(MAKE) -C test |