3aaa2ce94462254a430b1c02f98e07e2ce64206b
[platform/upstream/efl.git] / src / Makefile.am
1 MAINTAINERCLEANFILES = Makefile.in
2 CLEANFILES =
3 BUILT_SOURCES =
4
5 EOLIAN_FLAGS = -I$(srcdir)
6
7 DIST_SUBDIRS =
8 SUBDIRS =
9
10 AM_TESTS_ENVIRONMENT =
11
12 lib_LTLIBRARIES =
13 bin_PROGRAMS =
14 bin_SCRIPTS =
15 noinst_PROGRAMS =
16 check_PROGRAMS =
17 TESTS =
18 EXTRA_DIST =
19
20 noinst_LTLIBRARIES =
21 noinst_DATA =
22 noinst_HEADERS =
23
24 GENERATED_JS_BINDINGS =
25
26 EFL_INSTALL_EXEC_HOOK=
27
28 include Makefile_Evil.am
29 include Makefile_Escape.am
30
31 include Makefile_Eina.am
32 include Makefile_Eo.am
33 include Makefile_Efl.am
34 include Makefile_Emile.am
35 include Makefile_Eet.am
36 include Makefile_Eolian.am
37 include Makefile_Ector.am
38 include Makefile_Evas.am
39 include Makefile_Ecore.am
40 include Makefile_Ecore_Con.am
41 include Makefile_Ecore_Ipc.am
42 include Makefile_Ecore_File.am
43 include Makefile_Ecore_Input.am
44 include Makefile_Ecore_Input_Evas.am
45 include Makefile_Ecore_Cocoa.am
46 include Makefile_Ecore_FB.am
47 include Makefile_Ecore_Psl1ght.am
48 include Makefile_Ecore_SDL.am
49 include Makefile_Ecore_Wayland.am
50 include Makefile_Ecore_Wl2.am
51 include Makefile_Ecore_Win32.am
52 include Makefile_Ecore_X.am
53 include Makefile_Ecore_IMF.am
54 include Makefile_Ecore_IMF_Evas.am
55 include Makefile_Eldbus.am
56 include Makefile_Eeze.am
57 include Makefile_Ecore_Drm.am
58 include Makefile_Ecore_Evas.am
59 include Makefile_Ecore_Audio.am
60 include Makefile_Ecore_Audio_Cxx.am
61 include Makefile_Ecore_Avahi.am
62 include Makefile_Embryo.am
63 include Makefile_Eio.am
64 include Makefile_Efreet.am
65 include Makefile_Ecore_Buffer.am
66 include Makefile_EPhysics.am
67 include Makefile_Edje.am
68 include Makefile_Emotion.am
69 include Makefile_Ethumb.am
70 include Makefile_Ethumb_Client.am
71 include Makefile_Elocation.am
72 include Makefile_Elementary.am
73
74 include Makefile_Eina_Cxx.am
75 include Makefile_Ecore_Cxx.am
76 include Makefile_Eldbus_Cxx.am
77 include Makefile_Eolian_Cxx.am
78 include Makefile_Eet_Cxx.am
79 include Makefile_Eo_Cxx.am
80 include Makefile_Efl_Cxx.am
81 include Makefile_Edje_Cxx.am
82 include Makefile_Evas_Cxx.am
83 include Makefile_Eio_Cxx.am
84 include Makefile_Elementary_Cxx.am
85
86 include Makefile_Elua.am
87
88 if HAVE_JS
89 AM_V_CP = $(am__v_CP_@AM_V@)
90 am__v_CP_ = $(am__v_CP_@AM_DEFAULT_V@)
91 am__v_CP_0 = @echo "  CP  " $@;
92 CP = cp
93 if EFL_ENABLE_TESTS
94 if HAVE_NODEJS
95 AM_TESTS_ENVIRONMENT += NODE_PATH='$(abs_builddir)/lib/efl_js:$(abs_builddir)/tests/eolian_js:$(abs_builddir)/tests/efl_js'; export NODE_PATH;
96 endif
97 endif
98 endif
99
100 include Makefile_Eolian_Js.am
101 include Makefile_Efl_Js.am
102
103 # Make sure all generated files getting cleaned up
104 CLEANFILES += $(BUILT_SOURCES)
105
106 .PHONY: benchmark examples
107
108 BENCHMARK_SUBDIRS = \
109 benchmarks/eina \
110 benchmarks/eo \
111 benchmarks/evas
112 DIST_SUBDIRS += $(BENCHMARK_SUBDIRS)
113
114 benchmark: all
115         @for d in $(BENCHMARK_SUBDIRS); do \
116            echo "Making benchmark in $$d"; \
117            $(MAKE) $(AM_MAKEFLAGS) -C $$d benchmark; \
118         done
119
120 EXAMPLES_SUBDIRS = \
121 examples/eina \
122 examples/eet \
123 examples/evas \
124 examples/ecore \
125 examples/ecore_avahi \
126 examples/eio \
127 examples/eldbus \
128 examples/ephysics \
129 examples/edje \
130 examples/emotion \
131 examples/emile \
132 examples/elocation \
133 examples/ethumb_client \
134 examples/elementary
135
136 if HAVE_ELUA
137 EXAMPLES_SUBDIRS += examples/elua
138 endif
139
140 EXAMPLES_CXX = \
141 examples/eina_cxx \
142 examples/eolian_cxx
143
144 if HAVE_CXX11
145 EXAMPLES_SUBDIRS += $(EXAMPLES_CXX)
146 endif
147
148 if ALWAYS_BUILD_EXAMPLES
149 SUBDIRS += . $(EXAMPLES_SUBDIRS)
150 endif
151
152 DIST_SUBDIRS += $(EXAMPLES_SUBDIRS)
153
154 if EFL_ENABLE_TESTS
155 check-build: all
156         @$(MAKE) $(AM_MAKEFLAGS) $(check_PROGRAMS)
157 endif
158
159 examples: all
160         @for d in $(EXAMPLES_SUBDIRS); do \
161            echo "Making examples in $$d"; \
162            $(MAKE) $(AM_MAKEFLAGS) -C $$d examples || exit 1; \
163         done
164
165 install-examples:
166         @for d in $(EXAMPLES_SUBDIRS); do \
167            echo "Making install-examples in $$d"; \
168            $(MAKE) $(AM_MAKEFLAGS) -C $$d install-examples || exit 1; \
169         done
170
171 clean-local:
172         find . -type f -name '*.gcno' -delete
173         find . -type f -name '*.gcda' -delete
174         find . -type f -name check-results.xml -delete
175
176 install-exec-hook:
177         $(MKDIR_P) $(DESTDIR)$(libdir)
178         for i in $(lib_LTLIBRARIES); do \
179            FNAME="$(DESTDIR)$(libdir)/`echo $$i | sed "s#lib/.*/##"`"; \
180            FNAMEEXT="$$FNAME.$$$$"; \
181            sed "s/-luuid//" $$FNAME > $$FNAMEEXT; \
182            mv $$FNAMEEXT $$FNAME; \
183         done
184         $(EFL_INSTALL_EXEC_HOOK)