summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorquou <quou@disroot.org>2024-06-02 21:46:07 +1000
committerquou <quou@disroot.org>2024-06-02 21:47:26 +1000
commit62b4a3ededd237f4b4850d91c052585e2f687499 (patch)
tree25bf590a634c6c71f399cf9b1d620500f06b8b9f /Makefile
parent2e761bdb8badecdbda2925a056a6d5aa3e3cac83 (diff)
Switched to luigi, parsing out FLAC metadata.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile20
1 files changed, 9 insertions, 11 deletions
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)