evas/cserve2: Some more code to requests management.
[profile/ivi/evas.git] / Makefile.am
1 ACLOCAL_AMFLAGS = -I m4
2
3 SUBDIRS = src doc
4
5 MAINTAINERCLEANFILES = \
6 Makefile.in \
7 aclocal.m4 \
8 config.guess \
9 config.h.in \
10 config.h.in~ \
11 config.sub \
12 configure \
13 depcomp \
14 install-sh \
15 ltmain.sh \
16 missing \
17 $(PACKAGE_TARNAME)-$(PACKAGE_VERSION).tar.gz \
18 $(PACKAGE_TARNAME)-$(PACKAGE_VERSION).tar.bz2 \
19 $(PACKAGE_TARNAME)-$(PACKAGE_VERSION)-doc.tar.bz2 \
20 m4/libtool.m4 \
21 m4/lt~obsolete.m4 \
22 m4/ltoptions.m4 \
23 m4/ltsugar.m4 \
24 m4/ltversion.m4
25
26 bin_SCRIPTS =
27
28 EXTRA_DIST = \
29 AUTHORS \
30 COPYING \
31 autogen.sh \
32 evas.pc.in \
33 evas-directfb.pc.in \
34 evas-fb.pc.in \
35 evas-opengl-x11.pc.in \
36 evas-opengl-sdl.pc.in \
37 evas-software-buffer.pc.in \
38 evas-software-x11.pc.in \
39 evas-software-16-x11.pc.in \
40 evas-software-8-x11.pc.in \
41 evas-software-gdi.pc.in \
42 evas-software-ddraw.pc.in \
43 evas-software-16-ddraw.pc.in \
44 evas-direct3d.pc.in \
45 evas-software-16-wince.pc.in \
46 evas-psl1ght.pc.in \
47 evas-wayland-shm.pc.in \
48 evas-wayland-egl.pc.in \
49 evas.spec.in \
50 evas.spec \
51 m4/efl_attribute.m4 \
52 m4/efl_coverage.m4 \
53 m4/efl_doxygen.m4 \
54 m4/efl_fnmatch.m4 \
55 m4/efl_path_max.m4 \
56 m4/efl_pthread.m4 \
57 m4/efl_shm_open.m4 \
58 m4/efl_tests.m4 \
59 m4/evas_check_engine.m4 \
60 m4/evas_check_loader.m4 \
61 m4/evas_converter.m4 \
62 m4/evas_dither.m4 \
63 m4/evas_scaler.m4
64
65 pkgconfigdir = $(libdir)/pkgconfig
66 pkgconfig_DATA = evas.pc
67
68 if BUILD_ENGINE_SOFTWARE_X11
69 pkgconfig_DATA += evas-software-x11.pc
70 endif
71
72 if BUILD_ENGINE_SOFTWARE_16_X11
73 pkgconfig_DATA += evas-software-16-x11.pc
74 endif
75
76 if BUILD_ENGINE_SOFTWARE_8_X11
77 pkgconfig_DATA += evas-software-8-x11.pc
78 endif
79
80 if BUILD_ENGINE_DIRECTFB
81 pkgconfig_DATA += evas-directfb.pc
82 endif
83
84 if BUILD_ENGINE_FB
85 pkgconfig_DATA += evas-fb.pc
86 endif
87
88 if BUILD_ENGINE_BUFFER
89 pkgconfig_DATA += evas-software-buffer.pc
90 endif
91
92 if BUILD_ENGINE_GL_X11
93 pkgconfig_DATA += evas-opengl-x11.pc
94 endif
95
96 if BUILD_ENGINE_GL_SDL
97 pkgconfig_DATA += evas-opengl-sdl.pc
98 endif
99
100 if BUILD_ENGINE_GL_COCOA
101 pkgconfig_DATA += evas-opengl-cocoa.pc
102 endif
103
104 if BUILD_ENGINE_SOFTWARE_GDI
105 pkgconfig_DATA += evas-software-gdi.pc
106 endif
107
108 if BUILD_ENGINE_SOFTWARE_DDRAW
109 pkgconfig_DATA += evas-software-ddraw.pc
110 endif
111
112 if BUILD_ENGINE_SOFTWARE_16_DDRAW
113 pkgconfig_DATA += evas-software-16-ddraw.pc
114 endif
115
116 if BUILD_ENGINE_DIRECT3D
117 pkgconfig_DATA += evas-direct3d.pc
118 endif
119
120 if BUILD_ENGINE_SOFTWARE_16_WINCE
121 pkgconfig_DATA += evas-software-16-wince.pc
122 endif
123
124 if BUILD_ENGINE_SOFTWARE_16_SDL
125 pkgconfig_DATA += evas-software-sdl.pc
126 endif
127
128 if BUILD_ENGINE_PSL1GHT
129 pkgconfig_DATA += evas-psl1ght.pc
130 endif
131
132 if BUILD_ENGINE_WAYLAND_SHM
133 pkgconfig_DATA += evas-wayland-shm.pc
134 endif
135
136 if BUILD_ENGINE_WAYLAND_EGL
137 pkgconfig_DATA += evas-wayland-egl.pc
138 endif
139
140 .PHONY: doc coverage
141
142 doc:
143         @echo "entering doc/"
144         $(MAKE) -C doc doc
145
146 # Unit tests
147
148 if EFL_ENABLE_TESTS
149
150 check-local:
151         @./src/tests/evas_suite
152
153 else
154
155 check-local:
156         @echo "reconfigure with --enable-tests"
157
158 endif
159
160 # Coverage report
161
162 if EFL_ENABLE_COVERAGE
163 lcov-reset:
164         @rm -rf $(top_builddir)/coverage
165         @find $(top_builddir) -name "*.gcda" -delete
166         @lcov --zerocounters --directory $(top_builddir)
167
168 lcov-report:
169         @mkdir $(top_builddir)/coverage
170         lcov --capture --compat-libtool --output-file $(top_builddir)/coverage/coverage.info --directory $(top_builddir)
171         lcov --remove $(top_builddir)/coverage/coverage.info '*.h' --output-file $(top_builddir)/coverage/coverage.cleaned.info
172         genhtml -t "$(PACKAGE_STRING)" -o $(top_builddir)/coverage/html $(top_builddir)/coverage/coverage.cleaned.info
173         @echo "Coverage Report at $(top_builddir)/coverage/html"
174
175
176 coverage:
177         @$(MAKE) lcov-reset
178         @$(MAKE) check
179         @$(MAKE) lcov-report
180 else
181 lcov-reset:
182         @echo "reconfigure with --enable-coverage"
183
184 lcov-report:
185         @echo "reconfigure with --enable-coverage"
186
187 coverage:
188         @echo "reconfigure with --enable-tests --enable-coverage"
189 endif
190
191 maintainer-clean-local:
192         rm -rf coverage