blob: 9a0e3384c8fdb01a824be14d9aaa696fcdcaaede (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
CFLAGS?=-Wall -ggdb -O2
gplay_pkgs:=gstreamer-video-1.0 gtk+-2.0
gplay_cflags:=$(shell pkg-config --cflags $(gplay_pkgs))
gplay_libs:=$(shell pkg-config --libs $(gplay_pkgs))
gplay_objs:=gplay.o
all: gplay
gplay: $(gplay_objs)
$(CC) $(LDFLAGS) -o $@ $+ $(gplay_libs)
$(gplay_objs): %.o: %.c
$(CC) $(gplay_cflags) $(CFLAGS) -o $@ -c $<
clean:
rm -f gplay *.o
|