summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authordavidovski <david@davidovski.xyz>2023-04-21 21:58:50 +0100
committerdavidovski <david@davidovski.xyz>2023-04-21 21:58:50 +0100
commit83e3b21ae65586cbc3347747a55bdb5afbad03ed (patch)
tree7bbcc613cd26c6ada1bb1dcab3953264f3c16b02 /Makefile
Generate non-overlapping collisions
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..b894e43
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,15 @@
+PROG=rectangles
+CC=gcc
+FLAGS=-lm -lraylib
+
+.DEFAULT_GOAL := build
+
+install: ${PROG}
+ cp ${PROG} ${PREFIX}/bin/
+
+build: ${PROG}.c
+ ${CC} ${PROG}.c -o ${PROG} ${FLAGS}
+
+clean: ${PROG}
+ rm ${PROG}
+