summaryrefslogtreecommitdiff
path: root/makefile
diff options
context:
space:
mode:
Diffstat (limited to 'makefile')
-rw-r--r--makefile15
1 files changed, 15 insertions, 0 deletions
diff --git a/makefile b/makefile
new file mode 100644
index 0000000..ffd9c32
--- /dev/null
+++ b/makefile
@@ -0,0 +1,15 @@
+.PHONY: all clean
+ALL = attocc attocc-small attocc-debug
+all: $(ALL)
+clean:
+ rm $(ALL)
+
+attocc: attocc.c
+ gcc -O3 -o $@ $<
+
+attocc-debug: attocc.c
+ gcc -DDEBUG -Wall -Wextra -Wpedantic -o $@ $<
+
+attocc-small: attocc.c
+ gcc -Wl,--gc-sections -flto -ffunction-sections -fdata-sections -fPIC -s -Os -o $@ $<
+ strip -x $@