summary refs log tree commit diff
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 58990fd..a9e2537 100644
--- a/GNUmakefile
+++ b/GNUmakefile
@@ -3,7 +3,7 @@
 GLAD ?= glad
 MKDIR ?= mkdir -p
 
-libs ::= SDL2 openmpt fluidsynth
+libs ::= openmpt fluidsynth
 cflags ::= -I . -g -Og ${CFLAGS}
 ldflags ::= -Wl,--rpath,'$$ORIGIN' $(addprefix -l,${libs}) ${LDFLAGS}
 
@@ -13,9 +13,9 @@ deps ::= $(addprefix out/,$(notdir ${srcs:.c=.d}))
 
 .PHONY: all run clean
 
-all: out/mu-sdl
+all: out/mu-SDL2
 
-run: out/mu-sdl
+run: out/mu-SDL2
 	./$<
 
 clean:
@@ -37,6 +37,6 @@ out/%.d: src/%.c | out/
 	${CC} ${cflags} ${CPPFLAGS} -MM -MG -MF $@ -MT "${@:.d=.o} $@" $<
 
 out/mu-%: out/%.o ${objs} | out/
-	${CC} -o $@ $^ ${cflags} ${ldflags}
+	${CC} -o $@ $^ ${cflags} ${ldflags} -l${<:out/%.o=%}
 
 include ${deps}