summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile17
1 files changed, 17 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..9f508fc
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,17 @@
+PROG=dungeon-generator
+CC=gcc
+FLAGS=-lm -lraylib
+
+.DEFAULT_GOAL := build
+
+install: ${PROG}
+ cp ${PROG} ~/.local/bin/
+
+build: src/main.c
+ ${CC} src/main.c -o ${PROG} ${FLAGS}
+
+build-osx: ${PROG}
+ clang -framework CoreVideo -framework IOKit -framework Cocoa -framework GLUT -framework OpenGL libraylib.a ${PROG}.c -o ${PROG}
+
+clean: ${PROG}
+ rm ${PROG}