From 6d30e75c7684817b9637a370f494040a1135b876 Mon Sep 17 00:00:00 2001 From: zlago Date: Mon, 2 Sep 2024 11:20:02 +0200 Subject: un-copy paste some stuff --- GNUmakefile | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'GNUmakefile') diff --git a/GNUmakefile b/GNUmakefile index f7eb64a..8ef4aec 100644 --- a/GNUmakefile +++ b/GNUmakefile @@ -7,7 +7,7 @@ libs ::= openmpt fluidsynth cflags ::= -I . -g -Og ${CFLAGS} ldflags ::= -Wl,--rpath,'$$ORIGIN' $(addprefix -l,${libs}) ${LDFLAGS} -srcs ::= $(wildcard src/modules/*.c) +srcs ::= $(wildcard src/modules/*.c src/common/*.c) objs ::= $(addprefix out/,$(notdir ${srcs:.c=.o})) deps ::= $(addprefix out/,$(notdir ${srcs:.c=.d})) @@ -30,6 +30,12 @@ out/%.o: src/modules/%.c out/%.d | out/ out/%.d: src/modules/%.c | out/ ${CC} ${cflags} ${CPPFLAGS} -MM -MG -MF $@ -MT "${@:.d=.o} $@" $< +out/%.o: src/common/%.c out/%.d | out/ + ${CC} -c -o $@ $< ${cflags} + +out/%.d: src/common/%.c | out/ + ${CC} ${cflags} ${CPPFLAGS} -MM -MG -MF $@ -MT "${@:.d=.o} $@" $< + out/%.o: src/%.c out/%.d | out/ ${CC} -c -o $@ $< ${cflags} -- cgit 1.4.1-2-gfad0