Tizen 2.4 SDK Rev6 Release
[framework/uifw/evas.git] / Makefile.am
1 ACLOCAL_AMFLAGS = -I m4
2
3 SUBDIRS = src doc data
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-8-x11.pc.in \
40 evas-software-gdi.pc.in \
41 evas-software-ddraw.pc.in \
42 evas-direct3d.pc.in \
43 evas-psl1ght.pc.in \
44 evas-wayland-shm.pc.in \
45 evas-wayland-egl.pc.in \
46 evas.spec.in \
47 evas.spec \
48 m4/efl_attribute.m4 \
49 m4/efl_coverage.m4 \
50 m4/efl_doxygen.m4 \
51 m4/efl_fnmatch.m4 \
52 m4/efl_path_max.m4 \
53 m4/efl_pthread.m4 \
54 m4/efl_shm_open.m4 \
55 m4/efl_tests.m4 \
56 m4/evas_check_engine.m4 \
57 m4/evas_check_loader.m4 \
58 m4/evas_converter.m4 \
59 m4/evas_dither.m4 \
60 m4/evas_scaler.m4
61
62 pkgconfigdir = $(libdir)/pkgconfig
63 pkgconfig_DATA = evas.pc
64
65 if BUILD_ENGINE_SOFTWARE_X11
66 pkgconfig_DATA += evas-software-x11.pc
67 endif
68
69 if BUILD_ENGINE_SOFTWARE_8_X11
70 pkgconfig_DATA += evas-software-8-x11.pc
71 endif
72
73 if BUILD_ENGINE_DIRECTFB
74 pkgconfig_DATA += evas-directfb.pc
75 endif
76
77 if BUILD_ENGINE_FB
78 pkgconfig_DATA += evas-fb.pc
79 endif
80
81 if BUILD_ENGINE_BUFFER
82 pkgconfig_DATA += evas-software-buffer.pc
83 endif
84
85 if BUILD_ENGINE_GL_X11
86 pkgconfig_DATA += evas-opengl-x11.pc
87 endif
88
89 if BUILD_ENGINE_GL_SDL
90 pkgconfig_DATA += evas-opengl-sdl.pc
91 endif
92
93 if BUILD_ENGINE_GL_COCOA
94 pkgconfig_DATA += evas-opengl-cocoa.pc
95 endif
96
97 if BUILD_ENGINE_SOFTWARE_GDI
98 pkgconfig_DATA += evas-software-gdi.pc
99 endif
100
101 if BUILD_ENGINE_SOFTWARE_DDRAW
102 pkgconfig_DATA += evas-software-ddraw.pc
103 endif
104
105 if BUILD_ENGINE_DIRECT3D
106 pkgconfig_DATA += evas-direct3d.pc
107 endif
108
109 if BUILD_ENGINE_PSL1GHT
110 pkgconfig_DATA += evas-psl1ght.pc
111 endif
112
113 if BUILD_ENGINE_WAYLAND_SHM
114 pkgconfig_DATA += evas-wayland-shm.pc
115 endif
116
117 if BUILD_ENGINE_WAYLAND_EGL
118 pkgconfig_DATA += evas-wayland-egl.pc
119 endif
120
121 .PHONY: doc coverage
122
123 doc:
124         @echo "entering doc/"
125         $(MAKE) -C doc doc
126
127 # Unit tests
128
129 if EFL_ENABLE_TESTS
130
131 check-local:
132         @./src/tests/evas_suite
133
134 else
135
136 check-local:
137         @echo "reconfigure with --enable-tests"
138
139 endif
140
141 # Coverage report
142
143 if EFL_ENABLE_COVERAGE
144 lcov-reset:
145         @rm -rf $(top_builddir)/coverage
146         @find $(top_builddir) -name "*.gcda" -delete
147         @lcov --zerocounters --directory $(top_builddir)
148
149 lcov-report:
150         @mkdir $(top_builddir)/coverage
151         lcov --capture --compat-libtool --output-file $(top_builddir)/coverage/coverage.info --directory $(top_builddir)
152         lcov --remove $(top_builddir)/coverage/coverage.info '*.h' --output-file $(top_builddir)/coverage/coverage.cleaned.info
153         genhtml -t "$(PACKAGE_STRING)" -o $(top_builddir)/coverage/html $(top_builddir)/coverage/coverage.cleaned.info
154         @echo "Coverage Report at $(top_builddir)/coverage/html"
155
156
157 coverage:
158         @$(MAKE) lcov-reset
159         @$(MAKE) check
160         @$(MAKE) lcov-report
161 else
162 lcov-reset:
163         @echo "reconfigure with --enable-coverage"
164
165 lcov-report:
166         @echo "reconfigure with --enable-coverage"
167
168 coverage:
169         @echo "reconfigure with --enable-tests --enable-coverage"
170 endif
171
172 maintainer-clean-local:
173         rm -rf coverage