File: Makefile

package info (click to toggle)
yauap 0.2.4-3
  • links: PTS
  • area: main
  • in suites: jessie, jessie-kfreebsd, wheezy
  • size: 340 kB
  • ctags: 418
  • sloc: ansic: 1,284; xml: 59; makefile: 32
file content (46 lines) | stat: -rw-r--r-- 975 bytes parent folder | download
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
43
44
45
46


PREFIX=/usr
bindir=$(DESTDIR)${PREFIX}/bin


CFLAGS += -g3  -Wall
#glib 2
CFLAGS += `pkg-config --cflags glib-2.0`
LIBS += `pkg-config --libs glib-2.0` -lgobject-2.0
#gstreamer
CFLAGS += `pkg-config --cflags gstreamer-0.10`
LIBS += `pkg-config --libs gstreamer-0.10 | sed 's/^.*\(-lgstreamer[[:alnum:].-]*\)\b.*$$/\1/'` -lgstpbutils-0.10
#dbus
CFLAGS += `pkg-config --cflags dbus-1`
LIBS += -ldbus-glib-1




CC=cc
OBJS=main.o commandline/kbd.o commandline/commandline.o dbus-service/yauap-service.o 
BINDIR=/usr/local/bin
DEPEND= makedepend $(CFLAGS)
all:    yauap

$(SRCS):
	$(CC) $(CFLAGS) -c $*.c



yauap-service-glue.h:
	dbus-binding-tool --prefix=yauap_object --mode=glib-server --output=dbus-service/yauap-service-glue.h dbus-service/yauap-service.xml 



yauap:  yauap-service-glue.h $(OBJS)
	$(CC) $(LDFLAGS) -o $@ $(OBJS) $(LIBS)


clean:
	-rm yauap  $(OBJS) dbus-service/yauap-service-glue.h 

install:
	install -d "$(bindir)"
	install -m 755 yauap "$(bindir)"