summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile27
1 files changed, 27 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..abf6b40
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,27 @@
+# mouse move
+
+include config.mk
+
+SRC = main.c player.c input.c
+OBJ = ${SRC:.c=.o}
+
+all: main
+
+.c.o:
+ ${CC} -c ${CFLAGS} $<
+
+# ${OBJ}:
+
+main: ${OBJ}
+ ${CC} -o $@ ${OBJ} ${LDFLAGS}
+
+clean:
+ rm -f main ${OBJ}
+
+debug: clean debug_compile
+
+debug_compile: CFLAGS += -g -pg
+ # LDFLAGS += -g -pg
+debug_compile: main
+
+.PHONY: all clean debug