summaryrefslogtreecommitdiff
path: root/GNUmakefile
diff options
context:
space:
mode:
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