summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile9
1 files changed, 7 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 99629f0..82c9da1 100644
--- a/Makefile
+++ b/Makefile
@@ -1,10 +1,9 @@
-TARGET=c.out
+TARGET=food
SRC=*.c
CC=gcc
CFLAGS=-D_GNU_SOURCE -std=c99 -pedantic
REL_FLAGS=-O3
DBG_FLAGS=-Wall -g3
-# LIBS=-l X11
make: $(SRC)
$(CC) $(REL_FLAGS) $(CFLAGS) -o $(TARGET) $^ $(LIBS)
@@ -15,6 +14,12 @@ debug: $(SRC)
noasan: $(SRC)
$(CC) $(DBG_FLAGS) $(CFLAGS) -o $(TARGET) $^ $(LIBS)
+tests:
+ $(MAKE) -C test
+
+clean-tests:
+ $(MAKE) clean -C test
+
.PHONY: clean
clean: