From 3422a87bdb087b6d927203e266beb71027779dbe Mon Sep 17 00:00:00 2001 From: "Dobbertin, Niclas" Date: Sat, 24 Jun 2023 23:04:23 +0200 Subject: init code --- Makefile | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 Makefile (limited to 'Makefile') 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 -- cgit v1.2.3