-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
35 lines (26 loc) · 841 Bytes
/
Makefile
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
CC=gcc
GST_LIBS = $(shell pkg-config --libs gstreamer-0.10 gstreamer-interfaces-0.10)
GST_CFLAGS = $(shell pkg-config --cflags gstreamer-0.10 gstreamer-interfaces-0.10)
GTK_LIBS = $(shell pkg-config --libs gtk+-2.0)
GTK_CFLAGS = $(shell pkg-config --cflags gtk+-2.0)
local_LIB = @mkdir .libs
MESSAGE_CC = @echo ' CC..... '$@;
MESSAGE_LINK = @echo ' LINK... '$@;
MESSAGE_CLEAN = @echo ' CLEAN.. '$@;
DESTDIR = /usr/bin
CFLAGS= -g -Wall
gstplayer: gstplayer.o gst-backend.o gst-frontend.o
$(MESSAGE_LINK) $(CC) $(GTK_LIBS) $(GST_LIBS) -o $@ $^
$(local_LIB)
mv *.o .libs
%.o:: %.c
$(MESSAGE_CC) $(CC) $(GST_CFLAGS) $(GTK_CFLAGS) -o $@ -c $<
bin += $(gstplayer)
install: $(bin)
install -m 777 gstplayer $(DESTDIR)
clean:
rm -rf gstplayer
rm -rf gstplayer.o
rm -rf gst-backend.o
rm -rf gst-frontend.o
rm -rf .libs