summaryrefslogtreecommitdiff
path: root/makefile
diff options
context:
space:
mode:
Diffstat (limited to 'makefile')
-rw-r--r--makefile10
1 files changed, 9 insertions, 1 deletions
diff --git a/makefile b/makefile
index 17351fd..cd8b45b 100644
--- a/makefile
+++ b/makefile
@@ -1,8 +1,11 @@
-.PHONY: all clean
+.PHONY: all clean test
ALL = attocc attocc-small attocc-debug
all: $(ALL)
clean:
rm $(ALL)
+test: attocc-test attocc-test-opt
+ ./attocc-test
+ ./attocc-test-opt
attocc: attocc.c
cc -DDEBUG -O3 -o $@ $<
@@ -13,3 +16,8 @@ attocc-debug: attocc.c
attocc-small: attocc.c
cc -DDEBUG -Wl,--gc-sections -flto -ffunction-sections -fdata-sections -fPIC -s -Os -o $@ $<
strip -x $@
+
+attocc-test: attocc.c
+ cc -DDEBUG -DTEST -o $@ $<
+attocc-test-opt: attocc.c
+ cc -DDEBUG -DTEST -O3 -o $@ $<