summaryrefslogtreecommitdiff
path: root/GNUmakefile
diff options
context:
space:
mode:
authorzlago2025-07-31 19:59:46 +0200
committerzlago2025-07-31 20:03:26 +0200
commitf9d7e5829c714fb0de1912089d320e036972c6ec (patch)
tree3ef3e8056e28368605fc565c8726e19719b3b2de /GNUmakefile
parentc3579a3f8784ad49d081dc8347bbcadacc0829a2 (diff)
add bounds checking to organya modulesHEADmain
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=%}