summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorLeo Tenenbaum <pommicket@gmail.com>2021-10-03 13:45:23 -0400
committerLeo Tenenbaum <pommicket@gmail.com>2021-10-03 13:45:23 -0400
commitf4f766f7f85a4f83ac21c037a55d0a717bd02c4d (patch)
tree77d19972269b4155365cb40e6601a4338cdc572f /Makefile
parent45e36030a20e77c109bd746e7be4a64a7c9a2fbd (diff)
cleanup + linux packaging
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile5
1 files changed, 5 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 1cf25fa..ed54903 100644
--- a/Makefile
+++ b/Makefile
@@ -1,2 +1,7 @@
sandbox: *.[ch]
$(CC) -Wall -Wconversion -Wshadow -Wno-unused-function -I/usr/include/SDL2 main.c -DDEBUG=1 -O0 -g -o sandbox -lSDL2 -lm
+release:
+ $(CC) -Wall -Wconversion -Wshadow -Wno-unused-function -I/usr/include/SDL2 main.c -O3 -o sandbox -lSDL2 -lm
+sandbox-linux.tar.gz: release
+ tar --transform "s,^,FunctionSandbox/," -czf $@ sandbox sandboxes example.png
+