summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authordavidovski <david@davidovski.xyz>2023-04-23 03:13:02 +0100
committerdavidovski <david@davidovski.xyz>2023-04-23 03:13:02 +0100
commitbb3034a4cb0f793e31608ebee4eff2ef8c1f8379 (patch)
tree5f5bddfc45bf75a0be004cdf6de1a05e7cb351dd /Makefile
Pass tilemap to shader
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..2a5ece6
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,15 @@
+PROG=tiled
+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}
+