diff options
author | zlago | 2024-09-02 10:58:10 +0200 |
---|---|---|
committer | zlago | 2024-09-02 10:58:10 +0200 |
commit | aa759ff708196e5ea0f39bedabfbecb8f164294e (patch) | |
tree | d5660e7edca437ce819d15e98cda466ae26631df /GNUmakefile | |
parent | 3b284977d433ea4e39553bda329c4643c646cbc4 (diff) |
cleanup
Diffstat (limited to 'GNUmakefile')
-rw-r--r-- | GNUmakefile | 8 |
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} |