5b371eaa53399cefae45413f156449f0b99b1dfc
[profile/ivi/lemolo.git] / Makefile.am
1 ACLOCAL_AMFLAGS = -I m4
2 AM_MAKEFLAGS = --no-print-directory
3 AM_CFLAGS = \
4         -DPACKAGE_DATA_DIR=\"$(pkgdatadir)/\" \
5         -DPACKAGE_BIN_DIR=\"$(bindir)\" \
6         -DPACKAGE_LIB_DIR=\"$(libdir)\" \
7         -I$(top_srcdir)/utils \
8         @EFL_CFLAGS@ \
9         @TIZEN_CFLAGS@
10
11 MAINTAINERCLEANFILES = \
12         aclocal.m4 \
13         compile \
14         config.guess \
15         config.h.in \
16         config.sub \
17         configure \
18         depcomp \
19         install-sh \
20         ltmain.sh \
21         Makefile.in \
22         missing \
23         mkinstalldirs
24 EXTRA_DIST =
25
26 noinst_LTLIBRARIES = utils/libofono-efl-utils.la
27
28 utils_libofono_efl_utils_la_SOURCES = \
29         utils/contacts-ofono-efl.h \
30         utils/log.h \
31         utils/ofono.c \
32         utils/ofono.h \
33         utils/simple-popup.c \
34         utils/simple-popup.h \
35         utils/util.c \
36         utils/util.h
37 utils_libofono_efl_utils_la_LIBADD = \
38         @EFL_LIBS@ \
39         @TIZEN_LIBS@
40
41 #if HAVE_TIZEN
42 #utils_libofono_efl_utils_la_SOURCES += utils/contacts-tizen.c
43 #else
44 utils_libofono_efl_utils_la_SOURCES += utils/contacts.c
45 #endif
46
47 bin_PROGRAMS = \
48         dialer/dialer \
49         messages/messages \
50         tizen/answer_daemon
51
52 dialer_dialer_LDADD = \
53         @EFL_LIBS@ \
54         @TIZEN_LIBS@ \
55         utils/libofono-efl-utils.la
56
57 dialer_dialer_SOURCES = \
58         dialer/main.c \
59         dialer/rc.c \
60         dialer/rc.h \
61         dialer/gui.c \
62         dialer/gui.h \
63         dialer/keypad.c \
64         dialer/keypad.h \
65         dialer/history.c \
66         dialer/history.h \
67         dialer/callscreen.c \
68         dialer/callscreen.h \
69         dialer/ussd.c \
70         dialer/ussd.h
71
72 messages_messages_LDADD = \
73         @EFL_LIBS@ \
74         @TIZEN_LIBS@ \
75         utils/libofono-efl-utils.la
76
77 messages_messages_SOURCES = \
78         messages/main.c \
79         messages/rc.c \
80         messages/rc.h \
81         messages/overview.c \
82         messages/overview.h \
83         messages/gui.c \
84         messages/gui.h \
85         messages/compose.c \
86         messages/compose.h
87
88 AM_V_SED = $(am__v_SED_$(V))
89 am__v_SED_ = $(am__v_SED_$(AM_DEFAULT_VERBOSITY))
90 am__v_SED_0 = @echo "  SED   " $@;
91
92 tizen_answer_daemon_SOURCES = tizen/answer_daemon.c
93 tizen_answer_daemon_LDADD = @EFL_LIBS@ @TIZEN_LIBS@
94
95 if HAVE_TIZEN
96 bin_PROGRAMS += \
97         tizen/message_daemon \
98         tizen/dialer_open \
99         tizen/dialer_daemon
100
101 tizen_dialer_open_SOURCES = tizen/dialer_open.c
102 tizen_dialer_open_LDADD = @EFL_LIBS@ @TIZEN_LIBS@
103
104 tizen_dialer_daemon_SOURCES = tizen/dialer_daemon.c
105 tizen_dialer_daemon_LDADD = @EFL_LIBS@ @TIZEN_LIBS@
106
107 tizen_message_daemon_SOURCES = tizen/message_daemon.c
108 tizen_message_daemon_LDADD = @EFL_LIBS@ @TIZEN_LIBS@ utils/libofono-efl-utils.la
109
110 %.service: %.service.in Makefile
111         sed 's:@bindir[@]:$(bindir):g' $< > $@
112
113 dbusservicesdir = @with_dbusservicesdir@
114 dbusservices_DATA = \
115 tizen/org.tizen.dialer.service
116
117 EXTRA_DIST += \
118 tizen/org.tizen.dialer.service.in
119
120 %.desktop: %.desktop.in Makefile
121         $(AM_V_SED)sed 's:@bindir[@]:$(bindir):g' $< > $@
122
123 desktopdir = @with_desktopdir@
124 desktop_DATA = \
125 tizen/answer_daemon.desktop \
126 tizen/dialer.desktop \
127 tizen/org.tizen.call.desktop \
128 tizen/org.tizen.phone.desktop
129
130 EXTRA_DIST += \
131 tizen/answer_daemon.desktop.in \
132 tizen/dialer.desktop.in \
133 tizen/org.tizen.call.desktop.in \
134 tizen/org.tizen.phone.desktop.in
135
136
137 tizen/order: tizen/order.in Makefile
138         $(AM_V_SED)sed 's:@desktopdir[@]:$(with_desktopdir):g' $< > $@
139
140 tizenexamplesdir = $(pkgdatadir)/tizen-examples
141 tizenexamples_DATA = \
142 tizen/order
143
144 EXTRA_DIST += \
145 tizen/order.in
146
147 endif
148
149 # Themes are compiled with edje_cc given by user (cross-compile)
150 EDJE_CC = @edje_cc@
151 EDJE_FLAGS_VERBOSE_ =
152 EDJE_FLAGS_VERBOSE_0 =
153 EDJE_FLAGS_VERBOSE_1 = -v
154 EDJE_FLAGS = $(EDJE_FLAGS_VERBOSE_$(V)) -id $(top_srcdir)/data/themes/images -fd $(top_srcdir)/data/fonts
155
156 if HAVE_TIZEN
157 EDJE_FLAGS += -DHAVE_TIZEN=1
158 endif
159
160 filesdir = $(pkgdatadir)/themes
161 files_DATA = \
162 data/themes/default.edj \
163 data/themes/default-sd.edj
164
165 AM_V_EDJ = $(am__v_EDJ_$(V))
166 am__v_EDJ_ = $(am__v_EDJ_$(AM_DEFAULT_VERBOSITY))
167 am__v_EDJ_0 = @echo "  EDJ   " $@;
168
169 THEME_IMAGES = \
170 data/themes/images/arrow_left.png \
171 data/themes/images/arrow_right.png \
172 data/themes/images/bg_call.jpg \
173 data/themes/images/bg_chat_incoming.png \
174 data/themes/images/bg_chat_outgoing.png \
175 data/themes/images/bg_keypad.jpg \
176 data/themes/images/ico_add_call.png \
177 data/themes/images/ico_add_contact.png \
178 data/themes/images/ico_arrow_right.png \
179 data/themes/images/ico_backspace.png \
180 data/themes/images/ico_ball.png \
181 data/themes/images/ico_call.png \
182 data/themes/images/ico_contacts.png \
183 data/themes/images/ico_del.png \
184 data/themes/images/ico_edit.png \
185 data/themes/images/ico_history.png \
186 data/themes/images/ico_keypad.png \
187 data/themes/images/ico_merge.png \
188 data/themes/images/ico_msg_delivered.png \
189 data/themes/images/ico_multiparty.png \
190 data/themes/images/ico_multiparty_hangup.png \
191 data/themes/images/ico_multiparty_private.png \
192 data/themes/images/ico_mute.png \
193 data/themes/images/ico_person.png \
194 data/themes/images/ico_speaker.png \
195 data/themes/images/ico_swap.png \
196 data/themes/images/ico_voicemail.png \
197 data/themes/images/loading_0.png \
198 data/themes/images/loading_1.png \
199 data/themes/images/loading_2.png \
200 data/themes/images/loading_3.png \
201 data/themes/images/loading_4.png \
202 data/themes/images/loading_5.png \
203 data/themes/images/loading_6.png \
204 data/themes/images/loading_7.png
205
206 THEME_INCLUDES = \
207 data/themes/includes/action_answer.edc \
208 data/themes/includes/answer_screen.edc \
209 data/themes/includes/buttons.edc \
210 data/themes/includes/call.edc \
211 data/themes/includes/colors.edc \
212 data/themes/includes/compose.edc \
213 data/themes/includes/contacts-bg.edc \
214 data/themes/includes/contacts.edc \
215 data/themes/includes/dialer.edc \
216 data/themes/includes/history-bg.edc \
217 data/themes/includes/history.edc \
218 data/themes/includes/keypad.edc \
219 data/themes/includes/messages-overview-list.edc \
220 data/themes/includes/messages-overview.edc \
221 data/themes/includes/messages.edc \
222 data/themes/includes/multiparty-list.edc \
223 data/themes/includes/popup.edc \
224 data/themes/includes/scroller.edc
225
226
227 EXTRA_DIST += \
228 data/themes/default-hd.edc \
229 data/themes/default-sd.edc \
230 data/themes/default.edc \
231 $(THEME_INCLUDES) $(THEME_IMAGES)
232
233
234 data/themes/default.edj: $(top_builddir)/Makefile $(top_srcdir)/data/themes/default.edc $(top_srcdir)/data/themes/default-hd.edc $(THEME_INCLUDES) $(THEME_IMAGES)
235         $(MKDIR_P) $(top_builddir)/data/themes
236         $(AM_V_EDJ)$(EDJE_CC) $(EDJE_FLAGS) \
237         $(top_srcdir)/data/themes/default-hd.edc \
238         $(top_builddir)/data/themes/default.edj
239
240 data/themes/default-sd.edj: $(top_builddir)/Makefile $(top_srcdir)/data/themes/default.edc $(top_srcdir)/data/themes/default-sd.edc $(THEME_INCLUDES) $(THEME_IMAGES)
241         $(MKDIR_P) $(top_builddir)/data/themes
242         $(AM_V_EDJ)$(EDJE_CC) $(EDJE_FLAGS) \
243         $(top_srcdir)/data/themes/default-sd.edc \
244         $(top_builddir)/data/themes/default-sd.edj
245
246 clean-local:
247         rm -f $(top_builddir)/data/themes/default.edj
248         rm -f $(top_builddir)/data/themes/default-sd.edj
249
250 examplesdir = $(pkgdatadir)/examples
251 examples_DATA = \
252 data/examples/contacts.csv
253
254 scriptsdir = $(pkgdatadir)/scripts
255 scripts_SCRIPTS = \
256 data/scripts/ofono-efl-contacts-db-create.py
257
258 EXTRA_DIST += $(examples_DATA) $(scripts_SCRIPTS)