summaryrefslogtreecommitdiff
path: root/GNUmakefile
diff options
context:
space:
mode:
Diffstat (limited to 'GNUmakefile')
-rw-r--r--GNUmakefile4
1 files changed, 3 insertions, 1 deletions
diff --git a/GNUmakefile b/GNUmakefile
index 32ce5e2..7731554 100644
--- a/GNUmakefile
+++ b/GNUmakefile
@@ -4,7 +4,7 @@ MKDIR ?= mkdir -p
libs ::= openmpt fluidsynth m
cflags ::= -I . -g -Og ${CFLAGS}
-ldflags ::= -Wl,--rpath,'$$ORIGIN' $(addprefix -l,${libs}) ${LDFLAGS}
+ldflags = -Wl,--rpath,'$$ORIGIN' $(addprefix -l,${libs}) ${LDFLAGS}
srcs ::= $(wildcard src/modules/*.c src/common/*.c)
objs ::= $(addprefix out/,$(notdir ${srcs:.c=.o}))
@@ -43,6 +43,8 @@ out/%.o: src/%.c out/%.d | out/
out/%.d: src/%.c | out/
${CC} ${cflags} ${CPPFLAGS} -MM -MG -MF $@ -MT "${@:.d=.o} $@" $<
+out/mu-portaudio: libs += asound
+
out/mu-%: out/%.o ${objs} | out/
${CC} -o $@ $^ ${cflags} ${ldflags} -l${<:out/%.o=%}