summaryrefslogtreecommitdiff
path: root/makefile
diff options
context:
space:
mode:
Diffstat (limited to 'makefile')
-rw-r--r--makefile10
1 files changed, 6 insertions, 4 deletions
diff --git a/makefile b/makefile
index dae0c7d..07dcb29 100644
--- a/makefile
+++ b/makefile
@@ -1,5 +1,10 @@
.PHONY: all clean test
-ALL = attocc attocc-small attocc-debug attocc-test
+
+attocc: attocc.c
+ cc -DDEBUG -O3 -o $@ $<
+
+ALL = attocc attocc-small attocc-debug attocc-test attocc-test-opt
+
all: $(ALL)
clean:
rm $(ALL)
@@ -7,9 +12,6 @@ test: attocc-test attocc-test-opt
./attocc-test
./attocc-test-opt
-attocc: attocc.c
- cc -DDEBUG -O3 -o $@ $<
-
attocc-debug: attocc.c
cc -DDEBUG -Wall -Wextra -Wpedantic -Og -g -o $@ $<