blob: 14527e7d16bebc252ec18fa65618bbad499db76d (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
|
compiler = gcc
linker = gcc
cflags = -I./ -g $(includes) $(defines) \
-Wall -Wextra -pedantic -std=c99
lflags = -lX11 -lm
target = twinkplayer
includes =
defines = -Dplat_x11 \
-Dplat_posix \
-Dplat_pulse \
-Dis64bit=1 \
-Dplat_x86 \
-DDEBUG
sources = \
cfgparse.c \
font.c \
library.c \
main.c \
memory.c \
plat.c \
rcache.c \
rect.c \
render.c \
ui.c
objects = $(sources:%.c=%.o)
all: $(target)
$(objects): %.o : %.c
$(compiler) -MMD -MF $(basename $@).d $(cflags) -o $@ -c $<
$(target): $(objects)
$(linker) $(objects) -o $@ $(lflags)
clean:
rm *.d
rm *.o
rm $(target)
-include $(sources:%.c=%.d)
|