summaryrefslogtreecommitdiff
path: root/makefile
diff options
context:
space:
mode:
authormetamuffin <metamuffin@disroot.org>2024-06-15 01:29:58 +0200
committermetamuffin <metamuffin@disroot.org>2024-06-15 01:29:58 +0200
commit7d78f85cb2da3354f8d05d2054f90d83d84de66f (patch)
treeb2d26b0369cc767c0061c85f28d4e1684f18492b /makefile
parentfdedfa4b7e08263ce00e5c0b42b98ab249d5582b (diff)
downloadattocc-7d78f85cb2da3354f8d05d2054f90d83d84de66f.tar
attocc-7d78f85cb2da3354f8d05d2054f90d83d84de66f.tar.bz2
attocc-7d78f85cb2da3354f8d05d2054f90d83d84de66f.tar.zst
makefile
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 $@