diff options
author | zlago | 2025-07-31 19:59:46 +0200 |
---|---|---|
committer | zlago | 2025-07-31 20:03:26 +0200 |
commit | f9d7e5829c714fb0de1912089d320e036972c6ec (patch) | |
tree | 3ef3e8056e28368605fc565c8726e19719b3b2de /GNUmakefile | |
parent | c3579a3f8784ad49d081dc8347bbcadacc0829a2 (diff) |
Diffstat (limited to 'GNUmakefile')
-rw-r--r-- | GNUmakefile | 4 |
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=%} |