diff options
author | Dobbertin, Niclas <niclas.dobbertin@gmx.de> | 2023-06-24 23:04:23 +0200 |
---|---|---|
committer | Dobbertin, Niclas <niclas.dobbertin@gmx.de> | 2023-06-24 23:04:23 +0200 |
commit | 3422a87bdb087b6d927203e266beb71027779dbe (patch) | |
tree | 3d8381b27c94529c45ad7287695befe3eaa241c5 /Makefile |
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 27 |
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 |