summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorgramanas <anastasis.gramm2@gmail.com>2022-01-28 13:45:30 +0200
committergramanas <anastasis.gramm2@gmail.com>2022-01-28 13:45:30 +0200
commit53ab9ae05a579a19c626e8be0c1e2cf9244bf863 (patch)
treee6ec5ce8920124e8f4dd59d2ca20f45f30b4640e /Makefile
parent98849f6afb8e216000f6c642d9c9ffa26a58bd4c (diff)
downloadfoodtools-53ab9ae05a579a19c626e8be0c1e2cf9244bf863.tar.gz
foodtools-53ab9ae05a579a19c626e8be0c1e2cf9244bf863.tar.bz2
foodtools-53ab9ae05a579a19c626e8be0c1e2cf9244bf863.zip
sha1 sum and others
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile11
1 files changed, 7 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index 3b011df..28066bd 100644
--- a/Makefile
+++ b/Makefile
@@ -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