summary refs log tree commit diff
path: root/GNUmakefile
diff options
context:
space:
mode:
authorzlago2024-09-30 15:57:29 +0200
committerzlago2024-09-30 15:57:29 +0200
commite4ad2c9362254ab3213c4cb7c743b6bbd72b6346 (patch)
treed839f778a15f65b09fb0f0b773a500168e75afcc /GNUmakefile
parent45512bbc85188e3adb4eda597d0d2fa5530de651 (diff)
commandline parameters
Diffstat (limited to 'GNUmakefile')
-rw-r--r--GNUmakefile8
1 files changed, 4 insertions, 4 deletions
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