efl: merge ephysics
[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
105 pkgconfigdir = $(libdir)/pkgconfig
106 pkgconfig_DATA =
107
108 if HAVE_WINDOWS
109 pkgconfig_DATA += pc/evil.pc
110 endif
111
112 if HAVE_PS3
113 pkgconfig_DATA += pc/escape.pc
114 endif
115
116 pkgconfig_DATA += \
117 pc/eina.pc \
118 pc/eo.pc \
119 pc/eet.pc \
120 pc/evas.pc \
121 pc/ecore.pc \
122 pc/ecore-con.pc \
123 pc/ecore-ipc.pc \
124 pc/ecore-file.pc \
125 pc/ecore-input.pc \
126 pc/ecore-input-evas.pc \
127 pc/ecore-imf.pc \
128 pc/ecore-imf-evas.pc \
129 pc/ecore-evas.pc \
130 pc/embryo.pc \
131 pc/eio.pc \
132 pc/edbus2.pc \
133 pc/efreet.pc \
134 pc/efreet-mime.pc \
135 pc/efreet-trash.pc
136
137 if BUILD_ENGINE_SOFTWARE_X11
138 pkgconfig_DATA += pc/evas-software-x11.pc
139 endif
140
141 if BUILD_ENGINE_FB
142 pkgconfig_DATA += pc/evas-fb.pc
143 endif
144
145 if BUILD_ENGINE_BUFFER
146 pkgconfig_DATA += pc/evas-software-buffer.pc
147 endif
148
149 if BUILD_ENGINE_GL_X11
150 pkgconfig_DATA += pc/evas-opengl-x11.pc
151 endif
152
153 if BUILD_ENGINE_GL_SDL
154 pkgconfig_DATA += pc/evas-opengl-sdl.pc
155 endif
156
157 if BUILD_ENGINE_GL_COCOA
158 pkgconfig_DATA += pc/evas-opengl-cocoa.pc
159 endif
160
161 if BUILD_ENGINE_SOFTWARE_GDI
162 pkgconfig_DATA += pc/evas-software-gdi.pc
163 endif
164
165 if BUILD_ENGINE_SOFTWARE_DDRAW
166 pkgconfig_DATA += pc/evas-software-ddraw.pc
167 endif
168
169 if BUILD_ENGINE_PSL1GHT
170 pkgconfig_DATA += pc/evas-psl1ght.pc
171 endif
172
173 if BUILD_ENGINE_WAYLAND_SHM
174 pkgconfig_DATA += pc/evas-wayland-shm.pc
175 endif
176
177 if BUILD_ENGINE_WAYLAND_EGL
178 pkgconfig_DATA += pc/evas-wayland-egl.pc
179 endif
180
181 if HAVE_ECORE_COCOA
182 pkgconfig_DATA += pc/ecore-cocoa.pc
183 endif
184
185 if HAVE_ECORE_FB
186 pkgconfig_DATA += pc/ecore-fb.pc
187 endif
188
189 if HAVE_PS3
190 pkgconfig_DATA += pc/ecore-psl1ght.pc
191 endif
192
193 if HAVE_ECORE_SDL
194 pkgconfig_DATA += pc/ecore-sdl.pc
195 endif
196
197 if HAVE_ECORE_WAYLAND
198 pkgconfig_DATA += pc/ecore-wayland.pc
199 endif
200
201 if HAVE_WIN32
202 pkgconfig_DATA += pc/ecore-win32.pc
203 endif
204
205 if HAVE_WINCE
206 pkgconfig_DATA += pc/ecore-wince.pc
207 endif
208
209 if HAVE_ECORE_X
210 pkgconfig_DATA += pc/ecore-x.pc
211 endif
212
213 if HAVE_EEZE
214 pkgconfig_DATA += pc/eeze.pc
215 endif
216
217 if HAVE_EPHYSICS
218 pkgconfig_DATA += pc/ephysics.pc
219 endif
220
221
222 # D-Bus services:
223
224 servicedir = @dbusservicedir@
225 service_DATA = \
226 dbus-services/org.enlightenment.Efreet.service
227
228
229
230 .PHONY: doc benchmark examples install-examples
231
232 # Documentation
233
234 doc:
235         @echo "entering doc/"
236         $(MAKE) $(AM_MAKEFLAGS) -C doc doc
237
238 # Unit tests
239
240 if EFL_ENABLE_COVERAGE
241
242 lcov-reset:
243         @rm -rf $(top_builddir)/coverage
244         @find $(top_builddir) -name "*.gcda" -delete
245         @lcov --zerocounters --directory $(top_builddir)
246
247 lcov-report:
248         @mkdir $(top_builddir)/coverage
249         lcov --capture --compat-libtool --output-file $(top_builddir)/coverage/coverage.info --directory $(top_builddir) --base-directory $(top_srcdir)/src/
250         lcov --remove $(top_builddir)/coverage/coverage.info '*.h' --output-file $(top_builddir)/coverage/coverage.cleaned.info
251         genhtml -t "$(PACKAGE_STRING)" -o $(top_builddir)/coverage/html $(top_builddir)/coverage/coverage.cleaned.info
252         @echo "Coverage Report at $(top_builddir)/coverage/html"
253
254 endif
255
256 if EFL_ENABLE_TESTS
257
258 check-local:
259 if EFL_ENABLE_COVERAGE
260         @$(MAKE) $(AM_MAKEFLAGS) lcov-reset
261 endif
262         @./src/tests/eet/eet_suite$(EXEEXT)
263         @./src/tests/eo/eo_suite$(EXEEXT)
264         @./src/tests/evas/evas_suite$(EXEEXT)
265         @./src/tests/ecore/ecore_suite$(EXEEXT)
266 if EFL_ENABLE_COVERAGE
267         @$(MAKE) $(AM_MAKEFLAGS) lcov-report
268 endif
269
270 endif
271
272 # benchmark
273
274 benchmark:
275         @$(MAKE) $(AM_MAKEFLAGS) -C src benchmark
276         @mkdir benchmark || true
277         @cd benchmark && ../src/benchmarks/eo/eo_bench$(EXEEXT) `date +%F_%s`
278
279 # examples
280
281 examples:
282         @$(MAKE) $(AM_MAKEFLAGS) -C src examples
283
284 install-examples:
285         @$(MAKE) $(AM_MAKEFLAGS) -C src install-examples
286
287 # cleaning
288
289 clean-local:
290         rm -rf benchmark coverage