efl: merge edje.
[platform/upstream/efl.git] / Makefile.am
1 ACLOCAL_AMFLAGS = -I m4
2
3 SUBDIRS = src data doc
4
5 if HAVE_PO
6
7 SUBDIRS += po
8
9 endif
10
11 MAINTAINERCLEANFILES = \
12 Makefile.in \
13 aclocal.m4 \
14 compile \
15 config.cache-env \
16 config.guess \
17 config.h.in \
18 config.h.in~ \
19 config.sub \
20 configure \
21 depcomp \
22 install-sh \
23 ltmain.sh \
24 missing \
25 m4/libtool.m4 \
26 m4/lt~obsolete.m4 \
27 m4/ltoptions.m4 \
28 m4/ltsugar.m4 \
29 m4/ltversion.m4
30
31 EXTRA_DIST =  \
32 m4/ac_path_generic.m4 \
33 m4/efl_attribute.m4 \
34 m4/efl_check_funcs.m4 \
35 m4/efl_compiler.m4 \
36 m4/efl_doxygen.m4 \
37 m4/efl_path_max.m4 \
38 m4/efl_threads.m4 \
39 m4/evil_windows.m4 \
40 m4/eina_check.m4 \
41 m4/eina_config.m4 \
42 m4/evas_check_engine.m4 \
43 m4/evas_check_loader.m4 \
44 m4/ecore_check_c_extension.m4 \
45 m4/ecore_check_module.m4 \
46 m4/eio_check_options.m4
47
48 EXTRA_DIST += \
49 autogen.sh \
50 licenses/COPYING.LGPL \
51 licenses/COPYING.GPL \
52 licenses/COPYING.BSD \
53 old/ChangeLog.evil \
54 old/ChangeLog.eina \
55 old/ChangeLog.eet \
56 old/NEWS.evil \
57 old/README.evil \
58 old/NEWS.eina \
59 old/README.eina \
60 old/NEWS.eet \
61 old/README.eet \
62 spec/efl.spec \
63 pc/evil.pc \
64 pc/escape.pc \
65 pc/eina.pc \
66 pc/eet.pc \
67 pc/eo.pc \
68 pc/evas.pc \
69 pc/evas-fb.pc \
70 pc/evas-opengl-x11.pc \
71 pc/evas-opengl-sdl.pc \
72 pc/evas-software-buffer.pc \
73 pc/evas-software-x11.pc \
74 pc/evas-software-gdi.pc \
75 pc/evas-software-ddraw.pc \
76 pc/evas-psl1ght.pc \
77 pc/evas-wayland-shm.pc \
78 pc/evas-wayland-egl.pc \
79 pc/ecore.pc \
80 pc/ecore-con.pc \
81 pc/ecore-ipc.pc \
82 pc/ecore-file.pc \
83 pc/ecore-input.pc \
84 pc/ecore-input-evas.pc \
85 pc/ecore-cocoa.pc \
86 pc/ecore-fb.pc \
87 pc/ecore-psl1ght.pc \
88 pc/ecore-sdl.pc \
89 pc/ecore-wayland.pc \
90 pc/ecore-win32.pc \
91 pc/ecore-wince.pc \
92 pc/ecore-x.pc \
93 pc/ecore-imf.pc \
94 pc/ecore-imf-evas.pc \
95 pc/ecore-evas.pc \
96 pc/embryo.pc \
97 pc/eio.pc \
98 pc/edbus2.pc \
99 pc/efreet.pc \
100 pc/efreet-mime.pc \
101 pc/efreet-trash.pc \
102 pc/eeze.pc \
103 pc/ephysics.pc \
104 pc/edje.pc
105
106 pkgconfigdir = $(libdir)/pkgconfig
107 pkgconfig_DATA =
108
109 if HAVE_WINDOWS
110 pkgconfig_DATA += pc/evil.pc
111 endif
112
113 if HAVE_PS3
114 pkgconfig_DATA += pc/escape.pc
115 endif
116
117 pkgconfig_DATA += \
118 pc/eina.pc \
119 pc/eo.pc \
120 pc/eet.pc \
121 pc/evas.pc \
122 pc/ecore.pc \
123 pc/ecore-con.pc \
124 pc/ecore-ipc.pc \
125 pc/ecore-file.pc \
126 pc/ecore-input.pc \
127 pc/ecore-input-evas.pc \
128 pc/ecore-imf.pc \
129 pc/ecore-imf-evas.pc \
130 pc/ecore-evas.pc \
131 pc/embryo.pc \
132 pc/eio.pc \
133 pc/edbus2.pc \
134 pc/efreet.pc \
135 pc/efreet-mime.pc \
136 pc/efreet-trash.pc \
137 pc/edje.pc
138
139 if BUILD_ENGINE_SOFTWARE_X11
140 pkgconfig_DATA += pc/evas-software-x11.pc
141 endif
142
143 if BUILD_ENGINE_FB
144 pkgconfig_DATA += pc/evas-fb.pc
145 endif
146
147 if BUILD_ENGINE_BUFFER
148 pkgconfig_DATA += pc/evas-software-buffer.pc
149 endif
150
151 if BUILD_ENGINE_GL_X11
152 pkgconfig_DATA += pc/evas-opengl-x11.pc
153 endif
154
155 if BUILD_ENGINE_GL_SDL
156 pkgconfig_DATA += pc/evas-opengl-sdl.pc
157 endif
158
159 if BUILD_ENGINE_GL_COCOA
160 pkgconfig_DATA += pc/evas-opengl-cocoa.pc
161 endif
162
163 if BUILD_ENGINE_SOFTWARE_GDI
164 pkgconfig_DATA += pc/evas-software-gdi.pc
165 endif
166
167 if BUILD_ENGINE_SOFTWARE_DDRAW
168 pkgconfig_DATA += pc/evas-software-ddraw.pc
169 endif
170
171 if BUILD_ENGINE_PSL1GHT
172 pkgconfig_DATA += pc/evas-psl1ght.pc
173 endif
174
175 if BUILD_ENGINE_WAYLAND_SHM
176 pkgconfig_DATA += pc/evas-wayland-shm.pc
177 endif
178
179 if BUILD_ENGINE_WAYLAND_EGL
180 pkgconfig_DATA += pc/evas-wayland-egl.pc
181 endif
182
183 if HAVE_ECORE_COCOA
184 pkgconfig_DATA += pc/ecore-cocoa.pc
185 endif
186
187 if HAVE_ECORE_FB
188 pkgconfig_DATA += pc/ecore-fb.pc
189 endif
190
191 if HAVE_PS3
192 pkgconfig_DATA += pc/ecore-psl1ght.pc
193 endif
194
195 if HAVE_ECORE_SDL
196 pkgconfig_DATA += pc/ecore-sdl.pc
197 endif
198
199 if HAVE_ECORE_WAYLAND
200 pkgconfig_DATA += pc/ecore-wayland.pc
201 endif
202
203 if HAVE_WIN32
204 pkgconfig_DATA += pc/ecore-win32.pc
205 endif
206
207 if HAVE_WINCE
208 pkgconfig_DATA += pc/ecore-wince.pc
209 endif
210
211 if HAVE_ECORE_X
212 pkgconfig_DATA += pc/ecore-x.pc
213 endif
214
215 if HAVE_EEZE
216 pkgconfig_DATA += pc/eeze.pc
217 endif
218
219 if HAVE_EPHYSICS
220 pkgconfig_DATA += pc/ephysics.pc
221 endif
222
223
224 # D-Bus services:
225
226 servicedir = @dbusservicedir@
227 service_DATA = \
228 dbus-services/org.enlightenment.Efreet.service
229
230
231
232 .PHONY: doc benchmark examples install-examples
233
234 # Documentation
235
236 doc:
237         @echo "entering doc/"
238         $(MAKE) $(AM_MAKEFLAGS) -C doc doc
239
240 # Unit tests
241
242 if EFL_ENABLE_COVERAGE
243
244 lcov-reset:
245         @rm -rf $(top_builddir)/coverage
246         @find $(top_builddir) -name "*.gcda" -delete
247         @lcov --zerocounters --directory $(top_builddir)
248
249 lcov-report:
250         @mkdir $(top_builddir)/coverage
251         lcov --capture --compat-libtool --output-file $(top_builddir)/coverage/coverage.info --directory $(top_builddir) --base-directory $(top_srcdir)/src/
252         lcov --remove $(top_builddir)/coverage/coverage.info '*.h' --output-file $(top_builddir)/coverage/coverage.cleaned.info
253         genhtml -t "$(PACKAGE_STRING)" -o $(top_builddir)/coverage/html $(top_builddir)/coverage/coverage.cleaned.info
254         @echo "Coverage Report at $(top_builddir)/coverage/html"
255
256 endif
257
258 if EFL_ENABLE_TESTS
259
260 check-local:
261 if EFL_ENABLE_COVERAGE
262         @$(MAKE) $(AM_MAKEFLAGS) lcov-reset
263 endif
264         @./src/tests/eet/eet_suite$(EXEEXT)
265         @./src/tests/eo/eo_suite$(EXEEXT)
266         @./src/tests/evas/evas_suite$(EXEEXT)
267         @./src/tests/ecore/ecore_suite$(EXEEXT)
268 if EFL_ENABLE_COVERAGE
269         @$(MAKE) $(AM_MAKEFLAGS) lcov-report
270 endif
271
272 endif
273
274 # benchmark
275
276 benchmark:
277         @$(MAKE) $(AM_MAKEFLAGS) -C src benchmark
278         @mkdir benchmark || true
279         @cd benchmark && ../src/benchmarks/eo/eo_bench$(EXEEXT) `date +%F_%s`
280
281 # examples
282
283 examples:
284         @$(MAKE) $(AM_MAKEFLAGS) -C src examples
285
286 install-examples:
287         @$(MAKE) $(AM_MAKEFLAGS) -C src install-examples
288
289 # cleaning
290
291 clean-local:
292         rm -rf benchmark coverage