Add native Windows thread support instead of using pthread
[framework/uifw/eet.git] / Makefile.am
1 ACLOCAL_AMFLAGS = -I m4
2
3 SUBDIRS = src doc
4
5 MAINTAINERCLEANFILES = \
6 Makefile.in \
7 aclocal.m4 \
8 compile \
9 config.guess \
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 EXTRA_DIST = \
27 AUTHORS \
28 COPYING \
29 COPYING-PLAIN \
30 autogen.sh \
31 eet.pc.in \
32 eet.spec.in \
33 eet.spec \
34 m4/ac_attribute.m4 \
35 m4/ac_path_generic.m4 \
36 m4/efl_binary.m4 \
37 m4/efl_coverage.m4 \
38 m4/efl_doxygen.m4 \
39 m4/efl_fnmatch.m4 \
40 m4/efl_tests.m4 \
41 m4/efl_threads.m4 \
42 README.in \
43 README
44
45 pkgconfigdir = $(libdir)/pkgconfig
46 pkgconfig_DATA = eet.pc
47
48 .PHONY: doc coverage
49
50 # Documentation
51
52 doc:
53         @echo "entering doc/"
54         make -C doc doc
55
56 # Unit tests
57
58 if EFL_ENABLE_TESTS
59
60 check-local:
61         @./src/tests/eet_suite
62
63 else
64
65 check-local:
66         @echo "reconfigure with --enable-tests"
67
68 endif
69
70 # Coverage report
71
72 if EFL_ENABLE_COVERAGE
73 lcov-reset:
74         @rm -rf coverage
75         @find . -name "*.gcda" -exec rm {} \;
76         @lcov --directory . --zerocounters
77
78 lcov-report:
79         @mkdir coverage
80         @lcov --compat-libtool --directory . --capture --output-file coverage/coverage.info
81         @lcov -l coverage/coverage.info | grep -v "`cd $(top_srcdir) && pwd`" | cut -d: -f1 > coverage/remove
82         @lcov -r coverage/coverage.info `cat coverage/remove` > coverage/coverage.cleaned.info
83         @rm coverage/remove
84         @mv coverage/coverage.cleaned.info coverage/coverage.info
85         @genhtml -t "$(PACKAGE_STRING)" -o coverage coverage/coverage.info
86
87 coverage:
88         @make lcov-reset
89         @make check
90         @make lcov-report
91
92 clean-local:
93         @rm -rf coverage
94 else
95 lcov-reset:
96         @echo "reconfigure with --enable-coverage"
97
98 lcov-report:
99         @echo "reconfigure with --enable-coverage"
100
101 coverage:
102         @echo "reconfigure with --enable-tests --enable-coverage"
103 endif