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