From aa759ff708196e5ea0f39bedabfbecb8f164294e Mon Sep 17 00:00:00 2001 From: zlago Date: Mon, 2 Sep 2024 10:58:10 +0200 Subject: cleanup --- GNUmakefile | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'GNUmakefile') 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} -- cgit 1.4.1-2-gfad0