summaryrefslogtreecommitdiff
path: root/Makefile.am
blob: ff14a29edd26b7f65777ef8a419ce8d3b3ddce50 (plain)
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
ACLOCAL_AMFLAGS = -I m4

SUBDIRS = .

AM_CPPFLAGS = $(FMS_DEBUG_FLAGS)

AM_LDFLAGS=-Wl,--as-needed -Wl,--hash-style=both

### pkgconfig ###
pkgconfigdir = $(libdir)/pkgconfig
dist_pkgconfig_DATA = libmedia-utils.pc

nor_directory = /etc/rc.d/rc3.d
hib_directory = /etc/rc.d/rc5.d

install-data-hook:
	mkdir $(DESTDIR)/usr/local/bin/ -p
	cp -a $(CURDIR)/reset_mediadb.sh $(DESTDIR)/usr/local/bin/
	mkdir $(DESTDIR)$(nor_directory) -p
	ln -s ../init.d/mediasvr S99mediasvr
	mv ./S99mediasvr $(DESTDIR)$(nor_directory)
	mkdir $(DESTDIR)$(hib_directory) -p
	ln -s ../init.d/mediasvr S99mediasvr
	mv ./S99mediasvr $(DESTDIR)$(hib_directory)

# init.d script
fmsvcdir = /etc/rc.d/init.d
dist_fmsvc_DATA = ./data/mediasvr

### libmedia-utils.la ###
lib_LTLIBRARIES = libmedia-utils.la
libmedia_utils_la_SOURCES = lib/media-util-noti.c \
                            lib/media-util-register.c

libmedia_utils_la_CFLAGS = -I${srcdir}/lib/include \
                              $(GLIB_CFLAGS) \
			      $(DLOG_CFLAGS) \
			      $(DBUS_CFLAGS)

libmedia_utils_la_LIBADD  =   $(GLIB_LIBS) \
                              $(DLOG_LIBS) \
                              $(DBUS_LIBS)


### file-manager-server ###
bin_PROGRAMS = media-server

media_server_SOURCES = common/media-server-dbus.c \
		       common/media-server-drm.c \
                       common/media-server-utils.c \
                       common/media-server-external-storage.c \
                       common/media-server-db-svc.c \
                       common/media-server-inotify-internal.c \
                       common/media-server-inotify.c \
                       common/media-server-scan-internal.c \
                       common/media-server-scan.c \
                       common/media-server-socket.c \
                       common/media-server-main.c 

media_server_CFLAGS = -I${srcdir}/common/include \
                      -I${srcdir}/lib/include \
                             $(GTHREAD_CFLAGS) \
                             $(GLIB_CFLAGS) \
                             $(PHONESTATUS_CFLAGS) \
                             $(DLOG_CFLAGS) \
                             $(DRM_SERVICE_CFLAGS) \
			     $(AUL_CFLAG)\
			     $(LIBPMCONTROL_CFLAGS) \
			     $(HEYNOTI_CFLAGS) \
			     $(DBUS_CFLAGS)
#                             $(LIBQUICKPANEL_CFLAGS)

media_server_LDADD = libmedia-utils.la \
			      $(GLIB_LIBS) \
                              $(GTHREAD_LIBS) \
                              $(PHONESTATUS_LIBS) \
                              $(DLOG_LIBS) \
                              $(DRM_SERVICE_LIBS) \
			      $(AUL_LIBS) \
			      $(LIBPMCONTROL_LIBS) \
			      $(THUMB_GEN_LIBS) \
			      $(HEYNOTI_LIBS) \
			      $(DBUS_LIBS) \
                              -ldl #this is for using dlsym
#                              $(LIBQUICKPANEL_LIBS)

### includeheaders ###
includeheadersdir = $(includedir)/media-utils
includeheaders_HEADERS = lib/include/media-util-noti.h \
                         lib/include/media-util-register.h \
                         lib/include/media-util-err.h