summaryrefslogtreecommitdiff
path: root/Makefile.am
blob: 4cbb42821c3f7c4efd2d4527c9ba7edddba2088f (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
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
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

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

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

libmedia_utils_la_LIBADD  =   $(GLIB_LIBS) \
                              $(DLOG_LIBS) \
                              $(DBUS_LIBS) \
			      $(SQLITE3_LIBS) \
			      $(DB_UTIL_LIBS) \
			      $(PHONESTATUS_LIBS)


### file-manager-server ###
bin_PROGRAMS = media-server \
		media-scanner \
		mediadb-update

media_server_SOURCES = src/common/media-common-utils.c \
                       src/common/media-common-external-storage.c \
                       src/server/media-server-db-svc.c \
                       src/server/media-server-db.c \
                       src/server/media-server-socket.c \
                       src/server/media-server-thumb.c \
                       src/server/media-server-scanner.c \
                       src/server/media-server-main.c 

media_server_CFLAGS = -I${srcdir}/src/common/include \
		      -I${srcdir}/src/server/include \
                      -I${srcdir}/lib/include \
                             $(GTHREAD_CFLAGS) \
                             $(GLIB_CFLAGS) \
                             $(DLOG_CFLAGS) \
			     $(PHONESTATUS_CFLAGS) \
			     $(DBUS_CFLAGS)
if USE_NOTIFICATION
media_server_CFLAGS += $(STATUS_CFLAGS)
endif

media_server_CFLAGS += $(LIBPMCONTROL_CFLAGS)

media_server_CFLAGS += $(SECURITY_CFLAGS)

media_server_CFLAGS += -fPIE

media_server_LDFLAGS = -pie

media_server_LDADD = libmedia-utils.la \
			      $(GLIB_LIBS) \
                              $(GTHREAD_LIBS) \
                              $(PHONESTATUS_LIBS) \
                              $(DLOG_LIBS) \
			      $(AUL_LIBS) \
			      $(DBUS_LIBS) \
                              -ldl
if USE_NOTIFICATION
media_server_LDADD += $(STATUS_LIBS)
endif

media_server_LDADD += $(LIBPMCONTROL_LIBS)

media_server_LDADD += $(SECURITY_LIBS)



media_scanner_SOURCES = src/common/media-common-utils.c \
                	src/common/media-common-external-storage.c \
                       	src/scanner/media-scanner-db-svc.c \
                       	src/scanner/media-scanner-scan.c \
                       	src/scanner/media-scanner-socket.c \
                       	src/scanner/media-scanner.c

media_scanner_CFLAGS = -I${srcdir}/lib/include \
                       -I${srcdir}/src/common/include \
		       -I${srcdir}/src/scanner/include \
                             $(GTHREAD_CFLAGS) \
                             $(GLIB_CFLAGS) \
                             $(PHONESTATUS_CFLAGS) \
                             $(DLOG_CFLAGS) \
                             $(DBUS_CFLAGS)
if USE_NOTIFICATION
media_scanner_CFLAGS += $(STATUS_CFLAGS)
endif

media_scanner_CFLAGS += $(LIBPMCONTROL_CFLAGS)

media_scanner_CFLAGS += -fPIE

media_scanner_LDFLAGS = -pie

media_scanner_LDADD = libmedia-utils.la \
                              $(GLIB_LIBS) \
                              $(GTHREAD_LIBS) \
                              $(PHONESTATUS_LIBS) \
                              $(DLOG_LIBS) \
                              $(DBUS_LIBS) \
                              -ldl
if USE_NOTIFICATION
media_scanner_LDADD += $(STATUS_LIBS)
endif

media_scanner_LDADD += $(LIBPMCONTROL_LIBS)

mediadb_update_SOURCES = src/mediadb-update.c

mediadb_update_CFLAGS = -I${srcdir}/lib/include \
                             $(GTHREAD_CFLAGS) \
                             $(GLIB_CFLAGS)

mediadb_update_CFLAGS += -fPIE

mediadb_update_LDFLAGS = -pie

mediadb_update_LDADD = libmedia-utils.la \
                              $(GLIB_LIBS) \
                              $(GTHREAD_LIBS)

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