summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
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
+