From 62b4a3ededd237f4b4850d91c052585e2f687499 Mon Sep 17 00:00:00 2001 From: quou Date: Sun, 2 Jun 2024 21:46:07 +1000 Subject: Switched to luigi, parsing out FLAC metadata. --- Makefile | 20 +++++++++----------- 1 file changed, 9 insertions(+), 11 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 14527e7..761b428 100644 --- a/Makefile +++ b/Makefile @@ -5,24 +5,19 @@ cflags = -I./ -g $(includes) $(defines) \ lflags = -lX11 -lm target = twinkplayer includes = -defines = -Dplat_x11 \ +defines = \ -Dplat_posix \ -Dplat_pulse \ -Dis64bit=1 \ -Dplat_x86 \ -DDEBUG +luigi = luigi.o sources = \ - cfgparse.c \ - font.c \ library.c \ main.c \ memory.c \ - plat.c \ - rcache.c \ - rect.c \ - render.c \ - ui.c + plat.c objects = $(sources:%.c=%.o) @@ -31,12 +26,15 @@ all: $(target) $(objects): %.o : %.c $(compiler) -MMD -MF $(basename $@).d $(cflags) -o $@ -c $< -$(target): $(objects) - $(linker) $(objects) -o $@ $(lflags) +$(luigi): luigi.c + gcc -MMD -MF $(basename $@).d -DUI_LINUX -w -std=c11 -g -o $@ -c $< + +$(target): $(objects) $(luigi) + $(linker) $(objects) $(luigi) -o $@ $(lflags) clean: rm *.d rm *.o - rm $(target) + rm -f $(target) -include $(sources:%.c=%.d) -- cgit v1.2.3-54-g00ecf