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