From e4ad2c9362254ab3213c4cb7c743b6bbd72b6346 Mon Sep 17 00:00:00 2001 From: zlago Date: Mon, 30 Sep 2024 15:57:29 +0200 Subject: commandline parameters --- GNUmakefile | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'GNUmakefile') diff --git a/GNUmakefile b/GNUmakefile index 2e4afa6..f16eaa2 100644 --- a/GNUmakefile +++ b/GNUmakefile @@ -14,10 +14,10 @@ deps := $(addprefix out/${NS}/,$(notdir $(patsubst %.c,%.d,$(wildcard src/*.c))) .PHONY: all run clean -all: out/${NS}/a.out +all: out/${NS}/a.out out/assets.res -run: out/${NS}/a.out - ./$< +run: out/${NS}/a.out out/assets.res + ./$^ clean: ${RM} -r out/${NS}/ @@ -39,7 +39,7 @@ out/${NS}/incbin.o: src/incbin.s | out/${NS}/ out/${NS}/%.d: src/%.c | out/${NS}/ ${CC} ${cflags} ${CPPFLAGS} -MM -MG -MF $@ -MT "${@:.d=.o} $@" $< -out/${NS}/a.out: ${objs} out/${NS}/incbin.o | out/${NS}/ out/assets.res +out/${NS}/a.out: ${objs} out/${NS}/incbin.o | out/${NS}/ ${CC} -o $@ $^ ${cflags} ${ldflags} include assets.mk -- cgit 1.4.1-2-gfad0