summaryrefslogtreecommitdiff
path: root/src/Makefile_Ecore_Evas.am
diff options
context:
space:
mode:
authorGustavo Sverzut Barbieri <barbieri@gmail.com>2013-01-14 22:36:23 +0000
committerGustavo Sverzut Barbieri <barbieri@gmail.com>2013-01-14 22:36:23 +0000
commitb1bc5aeb24d6dd0faf97c2d1d6c6781798a7fbe9 (patch)
treeebffce52ddbab71c6da6c2e07eeca7382abf15f6 /src/Makefile_Ecore_Evas.am
parent283805237a9f5f194568667fc32586a3238cbde0 (diff)
efl: simplify automake.
Instead of -I$(top_srcdir)... -I$(top_builddir)... and then do it for the .la, use the EFL_ macros to generate the contents to be used in automake files. There is a nasty bit that libtool will parse Makefile*.am and will not get _DEPENDENCIES from _LIBADD and _LDADD if these are in @REPLACEMENT@. To solve this we must explicitly set _DEPENDENCIES. The contents of this is almost the same as _LIBADD or _LDADD with the "_INTERNAL_" replacement name. I hope the code will be result will be shorter and consistent as there is less places to change when we add/remove dependencies. Statistics are quite impressive (diffstat): {{{ 37 files changed, 663 insertions(+), 1599 deletions(-) }}} SVN revision: 82785
Diffstat (limited to 'src/Makefile_Ecore_Evas.am')
-rw-r--r--src/Makefile_Ecore_Evas.am118
1 files changed, 62 insertions, 56 deletions
diff --git a/src/Makefile_Ecore_Evas.am b/src/Makefile_Ecore_Evas.am
index 62cea7fcd1..6dfd6c4bc1 100644
--- a/src/Makefile_Ecore_Evas.am
+++ b/src/Makefile_Ecore_Evas.am
@@ -19,34 +19,12 @@ lib/ecore_evas/ecore_evas_private.h \
19lib/ecore_evas/ecore_evas_util.c 19lib/ecore_evas/ecore_evas_util.c
20 20
21lib_ecore_evas_libecore_evas_la_CPPFLAGS = \ 21lib_ecore_evas_libecore_evas_la_CPPFLAGS = \
22-I$(top_srcdir)/src/lib/eina \
23-I$(top_builddir)/src/lib/eina \
24-I$(top_srcdir)/src/lib/eo \
25-I$(top_srcdir)/src/lib/evas \
26-I$(top_srcdir)/src/lib/ecore \
27-I$(top_srcdir)/src/lib/ecore_ipc \
28-I$(top_srcdir)/src/lib/ecore_input \
29-I$(top_srcdir)/src/lib/ecore_input_evas \
30-I$(top_srcdir)/src/lib/ecore_evas \
31-I$(top_srcdir)/src/modules/evas/engines/buffer \ 22-I$(top_srcdir)/src/modules/evas/engines/buffer \
32-DPACKAGE_LIB_DIR=\"$(libdir)\" \ 23-DPACKAGE_LIB_DIR=\"$(libdir)\" \
33-DPACKAGE_BUILD_DIR=\"`pwd`/$(top_builddir)\" \ 24-DPACKAGE_BUILD_DIR=\"`pwd`/$(top_builddir)\" \
34-DEFL_ECORE_EVAS_BUILD \ 25@ECORE_EVAS_CFLAGS@
35@ECORE_EVAS_CFLAGS@ \ 26lib_ecore_evas_libecore_evas_la_LIBADD = @ECORE_EVAS_LIBS@
36@EFL_COV_CFLAGS@ \ 27lib_ecore_evas_libecore_evas_la_DEPENDENCIES = @ECORE_EVAS_INTERNAL_LIBS@
37@USE_EVIL_CFLAGS@
38
39lib_ecore_evas_libecore_evas_la_LIBADD = \
40lib/ecore_input/libecore_input_evas.la \
41lib/ecore_input/libecore_input.la \
42lib/ecore/libecore.la \
43lib/evas/libevas.la \
44lib/eo/libeo.la \
45lib/eina/libeina.la \
46@ECORE_EVAS_LIBS@ \
47@EFL_COV_LIBS@
48
49lib_ecore_evas_libecore_evas_la_LIBADD += @EFL_COV_LIBS@
50lib_ecore_evas_libecore_evas_la_LDFLAGS = @EFL_LTLIBRARY_FLAGS@ 28lib_ecore_evas_libecore_evas_la_LDFLAGS = @EFL_LTLIBRARY_FLAGS@
51 29
52# Engines 30# Engines
@@ -57,8 +35,16 @@ modules/ecore_evas/engines/extn/ecore_evas_extn.c
57ecoreevasengineextnpkgdir = $(libdir)/ecore_evas/engines/extn/$(MODULE_ARCH) 35ecoreevasengineextnpkgdir = $(libdir)/ecore_evas/engines/extn/$(MODULE_ARCH)
58ecoreevasengineextnpkg_LTLIBRARIES = modules/ecore_evas/engines/extn/module.la 36ecoreevasengineextnpkg_LTLIBRARIES = modules/ecore_evas/engines/extn/module.la
59modules_ecore_evas_engines_extn_module_la_SOURCES = $(EXTNSOURCES) 37modules_ecore_evas_engines_extn_module_la_SOURCES = $(EXTNSOURCES)
60modules_ecore_evas_engines_extn_module_la_CPPFLAGS = $(lib_ecore_evas_libecore_evas_la_CPPFLAGS) 38modules_ecore_evas_engines_extn_module_la_CPPFLAGS = \
61modules_ecore_evas_engines_extn_module_la_LIBADD = lib/ecore_ipc/libecore_ipc.la lib/ecore_evas/libecore_evas.la 39@ECORE_EVAS_CFLAGS@ \
40@ECORE_IPC_CFLAGS@ \
41-I$(top_srcdir)/src/modules/evas/engines/buffer
42modules_ecore_evas_engines_extn_module_la_LIBADD = \
43@USE_ECORE_EVAS_LIBS@ \
44@USE_ECORE_IPC_LIBS@
45modules_ecore_evas_engines_extn_module_la_DEPENDENCIES = \
46@USE_ECORE_EVAS_INTERNAL_LIBS@ \
47@USE_ECORE_IPC_INTERNAL_LIBS@
62modules_ecore_evas_engines_extn_module_la_LDFLAGS = -module @EFL_LTMODULE_FLAGS@ 48modules_ecore_evas_engines_extn_module_la_LDFLAGS = -module @EFL_LTMODULE_FLAGS@
63modules_ecore_evas_engines_extn_module_la_LIBTOOLFLAGS = --tag=disable-static 49modules_ecore_evas_engines_extn_module_la_LIBTOOLFLAGS = --tag=disable-static
64endif 50endif
@@ -69,14 +55,16 @@ ecoreevasenginexpkgdir = $(libdir)/ecore_evas/engines/x/$(MODULE_ARCH)
69ecoreevasenginexpkg_LTLIBRARIES = modules/ecore_evas/engines/x/module.la 55ecoreevasenginexpkg_LTLIBRARIES = modules/ecore_evas/engines/x/module.la
70modules_ecore_evas_engines_x_module_la_SOURCES = $(XSOURCES) 56modules_ecore_evas_engines_x_module_la_SOURCES = $(XSOURCES)
71modules_ecore_evas_engines_x_module_la_CPPFLAGS = \ 57modules_ecore_evas_engines_x_module_la_CPPFLAGS = \
72$(lib_ecore_evas_libecore_evas_la_CPPFLAGS) \ 58@ECORE_EVAS_CFLAGS@ \
73-I$(top_srcdir)/src/lib/ecore_x \ 59@ECORE_X_CFLAGS@ \
74-I$(top_builddir)/src/lib/ecore_x \
75-I$(top_srcdir)/src/modules/evas/engines/software_x11 \ 60-I$(top_srcdir)/src/modules/evas/engines/software_x11 \
76-I$(top_srcdir)/src/modules/evas/engines/gl_x11 61-I$(top_srcdir)/src/modules/evas/engines/gl_x11
77modules_ecore_evas_engines_x_module_la_LIBADD = \ 62modules_ecore_evas_engines_x_module_la_LIBADD = \
78lib/ecore_evas/libecore_evas.la \ 63@USE_ECORE_EVAS_LIBS@ \
79lib/ecore_x/libecore_x.la 64@USE_ECORE_X_LIBS@
65modules_ecore_evas_engines_x_module_la_DEPENDENCIES = \
66@USE_ECORE_EVAS_INTERNAL_LIBS@ \
67@USE_ECORE_X_INTERNAL_LIBS@
80modules_ecore_evas_engines_x_module_la_LDFLAGS = -module @EFL_LTMODULE_FLAGS@ 68modules_ecore_evas_engines_x_module_la_LDFLAGS = -module @EFL_LTMODULE_FLAGS@
81modules_ecore_evas_engines_x_module_la_LIBTOOLFLAGS = --tag=disable-static 69modules_ecore_evas_engines_x_module_la_LIBTOOLFLAGS = --tag=disable-static
82endif 70endif
@@ -87,12 +75,15 @@ ecoreevasenginecocoapkgdir = $(libdir)/ecore_evas/engines/cocoa/$(MODULE_ARCH)
87ecoreevasenginecocoapkg_LTLIBRARIES = modules/ecore_evas/engines/cocoa/module.la 75ecoreevasenginecocoapkg_LTLIBRARIES = modules/ecore_evas/engines/cocoa/module.la
88modules_ecore_evas_engines_cocoa_module_la_SOURCES = $(COCOASOURCES) 76modules_ecore_evas_engines_cocoa_module_la_SOURCES = $(COCOASOURCES)
89modules_ecore_evas_engines_cocoa_module_la_CPPFLAGS = \ 77modules_ecore_evas_engines_cocoa_module_la_CPPFLAGS = \
90$(lib_ecore_evas_libecore_evas_la_CPPFLAGS) \ 78@ECORE_EVAS_CFLAGS@ \
91-I$(top_srcdir)/src/lib/ecore_cocoa \ 79@ECORE_COCOA_CFLAGS@ \
92-I$(top_srcdir)/src/modules/evas/engines/gl_cocoa 80-I$(top_srcdir)/src/modules/evas/engines/gl_cocoa
93modules_ecore_evas_engines_cocoa_module_la_LIBADD = \ 81modules_ecore_evas_engines_cocoa_module_la_LIBADD = \
94lib/ecore_evas/libecore_evas.la \ 82@USE_ECORE_EVAS_LIBS@ \
95lib/ecore_cocoa/libecore_cocoa.la 83@USE_ECORE_COCOA_LIBS@
84modules_ecore_evas_engines_cocoa_module_la_DEPENDENCIES = \
85@USE_ECORE_EVAS_INTERNAL_LIBS@ \
86@USE_ECORE_COCOA_INTERNAL_LIBS@
96modules_ecore_evas_engines_cocoa_module_la_LDFLAGS = -module @EFL_LTMODULE_FLAGS@ 87modules_ecore_evas_engines_cocoa_module_la_LDFLAGS = -module @EFL_LTMODULE_FLAGS@
97modules_ecore_evas_engines_cocoa_module_la_LIBTOOLFLAGS = --tag=disable-static 88modules_ecore_evas_engines_cocoa_module_la_LIBTOOLFLAGS = --tag=disable-static
98endif 89endif
@@ -103,12 +94,15 @@ ecoreevasenginefbpkgdir = $(libdir)/ecore_evas/engines/fb/$(MODULE_ARCH)
103ecoreevasenginefbpkg_LTLIBRARIES = modules/ecore_evas/engines/fb/module.la 94ecoreevasenginefbpkg_LTLIBRARIES = modules/ecore_evas/engines/fb/module.la
104modules_ecore_evas_engines_fb_module_la_SOURCES = $(FBSOURCES) 95modules_ecore_evas_engines_fb_module_la_SOURCES = $(FBSOURCES)
105modules_ecore_evas_engines_fb_module_la_CPPFLAGS = \ 96modules_ecore_evas_engines_fb_module_la_CPPFLAGS = \
106$(lib_ecore_evas_libecore_evas_la_CPPFLAGS) \ 97@ECORE_EVAS_CFLAGS@ \
107-I$(top_srcdir)/src/lib/ecore_fb \ 98@ECORE_FB_CFLAGS@ \
108-I$(top_srcdir)/src/modules/evas/engines/fb 99-I$(top_srcdir)/src/modules/evas/engines/fb
109modules_ecore_evas_engines_fb_module_la_LIBADD = \ 100modules_ecore_evas_engines_fb_module_la_LIBADD = \
110lib/ecore_evas/libecore_evas.la \ 101@USE_ECORE_EVAS_LIBS@ \
111lib/ecore_fb/libecore_fb.la 102@USE_ECORE_FB_LIBS@
103modules_ecore_evas_engines_fb_module_la_DEPENDENCIES = \
104@USE_ECORE_EVAS_INTERNAL_LIBS@ \
105@USE_ECORE_FB_INTERNAL_LIBS@
112modules_ecore_evas_engines_fb_module_la_LDFLAGS = -module @EFL_LTMODULE_FLAGS@ 106modules_ecore_evas_engines_fb_module_la_LDFLAGS = -module @EFL_LTMODULE_FLAGS@
113modules_ecore_evas_engines_fb_module_la_LIBTOOLFLAGS = --tag=disable-static 107modules_ecore_evas_engines_fb_module_la_LIBTOOLFLAGS = --tag=disable-static
114endif 108endif
@@ -119,12 +113,15 @@ ecoreevasenginepsl1ghtpkgdir = $(libdir)/ecore_evas/engines/psl1ght/$(MODULE_ARC
119ecoreevasenginepsl1ghtpkg_LTLIBRARIES = modules/ecore_evas/engines/psl1ght/module.la 113ecoreevasenginepsl1ghtpkg_LTLIBRARIES = modules/ecore_evas/engines/psl1ght/module.la
120modules_ecore_evas_engines_psl1ght_module_la_SOURCES = $(PSL1GHTSOURCES) 114modules_ecore_evas_engines_psl1ght_module_la_SOURCES = $(PSL1GHTSOURCES)
121modules_ecore_evas_engines_psl1ght_module_la_CPPFLAGS = \ 115modules_ecore_evas_engines_psl1ght_module_la_CPPFLAGS = \
122$(lib_ecore_evas_libecore_evas_la_CPPFLAGS) \ 116@ECORE_EVAS_CFLAGS@ \
123-I$(top_srcdir)/src/lib/ecore_psl1ght \ 117@ECORE_PSL1GHT_CFLAGS@ \
124-I$(top_srcdir)/src/modules/evas/engines/psl1ght 118-I$(top_srcdir)/src/modules/evas/engines/psl1ght
125modules_ecore_evas_engines_psl1ght_module_la_LIBADD = \ 119modules_ecore_evas_engines_psl1ght_module_la_LIBADD = \
126lib/ecore_evas/libecore_evas.la \ 120@USE_ECORE_EVAS_LIBS@ \
127lib/ecore_psl1ght/libecore_psl1ght.la 121@USE_ECORE_PSL1GHT_LIBS@
122modules_ecore_evas_engines_psl1ght_module_la_DEPENDENCIES = \
123@USE_ECORE_EVAS_INTERNAL_LIBS@ \
124@USE_ECORE_PSL1GHT_INTERNAL_LIBS@
128modules_ecore_evas_engines_psl1ght_module_la_LDFLAGS = -module @EFL_LTMODULE_FLAGS@ 125modules_ecore_evas_engines_psl1ght_module_la_LDFLAGS = -module @EFL_LTMODULE_FLAGS@
129modules_ecore_evas_engines_psl1ght_module_la_LIBTOOLFLAGS = --tag=disable-static 126modules_ecore_evas_engines_psl1ght_module_la_LIBTOOLFLAGS = --tag=disable-static
130endif 127endif
@@ -139,14 +136,17 @@ ecoreevasenginewaylandpkgdir = $(libdir)/ecore_evas/engines/wayland/$(MODULE_ARC
139ecoreevasenginewaylandpkg_LTLIBRARIES = modules/ecore_evas/engines/wayland/module.la 136ecoreevasenginewaylandpkg_LTLIBRARIES = modules/ecore_evas/engines/wayland/module.la
140modules_ecore_evas_engines_wayland_module_la_SOURCES = $(WAYLANDSOURCES) 137modules_ecore_evas_engines_wayland_module_la_SOURCES = $(WAYLANDSOURCES)
141modules_ecore_evas_engines_wayland_module_la_CPPFLAGS = \ 138modules_ecore_evas_engines_wayland_module_la_CPPFLAGS = \
142$(lib_ecore_evas_libecore_evas_la_CPPFLAGS) \ 139@ECORE_EVAS_CFLAGS@ \
143-I$(top_srcdir)/src/lib/ecore_wayland \ 140@ECORE_WAYLAND_CFLAGS@ \
144-I$(top_srcdir)/src/modules/evas/engines/wayland_shm \ 141-I$(top_srcdir)/src/modules/evas/engines/wayland_shm \
145-I$(top_srcdir)/src/modules/evas/engines/wayland_egl \ 142-I$(top_srcdir)/src/modules/evas/engines/wayland_egl \
146@ECORE_WAYLAND_CFLAGS@ 143@ECORE_WAYLAND_CFLAGS@
147modules_ecore_evas_engines_wayland_module_la_LIBADD = \ 144modules_ecore_evas_engines_wayland_module_la_LIBADD = \
148lib/ecore_evas/libecore_evas.la \ 145@USE_ECORE_EVAS_LIBS@ \
149lib/ecore_wayland/libecore_wayland.la 146@USE_ECORE_WAYLAND_LIBS@
147modules_ecore_evas_engines_wayland_module_la_DEPENDENCIES = \
148@USE_ECORE_EVAS_INTERNAL_LIBS@ \
149@USE_ECORE_WAYLAND_INTERNAL_LIBS@
150modules_ecore_evas_engines_wayland_module_la_LDFLAGS = -module @EFL_LTMODULE_FLAGS@ 150modules_ecore_evas_engines_wayland_module_la_LDFLAGS = -module @EFL_LTMODULE_FLAGS@
151modules_ecore_evas_engines_wayland_module_la_LIBTOOLFLAGS = --tag=disable-static 151modules_ecore_evas_engines_wayland_module_la_LIBTOOLFLAGS = --tag=disable-static
152endif 152endif
@@ -158,12 +158,15 @@ ecoreevasenginesdlpkgdir = $(libdir)/ecore_evas/engines/sdl/$(MODULE_ARCH)
158ecoreevasenginesdlpkg_LTLIBRARIES = modules/ecore_evas/engines/sdl/module.la 158ecoreevasenginesdlpkg_LTLIBRARIES = modules/ecore_evas/engines/sdl/module.la
159modules_ecore_evas_engines_sdl_module_la_SOURCES = $(SDLSOURCES) 159modules_ecore_evas_engines_sdl_module_la_SOURCES = $(SDLSOURCES)
160modules_ecore_evas_engines_sdl_module_la_CPPFLAGS = \ 160modules_ecore_evas_engines_sdl_module_la_CPPFLAGS = \
161$(lib_ecore_evas_libecore_evas_la_CPPFLAGS) \ 161@ECORE_EVAS_CFLAGS@ \
162-I$(top_srcdir)/src/lib/ecore_sdl \ 162@ECORE_SDL_CFLAGS@ \
163-I$(top_srcdir)/src/modules/evas/engines/gl_sdl 163-I$(top_srcdir)/src/modules/evas/engines/gl_sdl
164modules_ecore_evas_engines_sdl_module_la_LIBADD = \ 164modules_ecore_evas_engines_sdl_module_la_LIBADD = \
165lib/ecore_evas/libecore_evas.la \ 165@USE_ECORE_EVAS_LIBS@ \
166lib/ecore_sdl/libecore_sdl.la 166@USE_ECORE_SDL_LIBS@
167modules_ecore_evas_engines_sdl_module_la_DEPENDENCIES = \
168@USE_ECORE_EVAS_INTERNAL_LIBS@ \
169@USE_ECORE_SDL_INTERNAL_LIBS@
167modules_ecore_evas_engines_sdl_module_la_LDFLAGS = -module @EFL_LTMODULE_FLAGS@ 170modules_ecore_evas_engines_sdl_module_la_LDFLAGS = -module @EFL_LTMODULE_FLAGS@
168modules_ecore_evas_engines_sdl_module_la_LIBTOOLFLAGS = --tag=disable-static 171modules_ecore_evas_engines_sdl_module_la_LIBTOOLFLAGS = --tag=disable-static
169endif 172endif
@@ -175,13 +178,16 @@ ecoreevasengineswin32pkgdir = $(libdir)/ecore_evas/engines/win32/$(MODULE_ARCH)
175ecoreevasengineswin32pkg_LTLIBRARIES = modules/ecore_evas/engines/win32/module.la 178ecoreevasengineswin32pkg_LTLIBRARIES = modules/ecore_evas/engines/win32/module.la
176modules_ecore_evas_engines_win32_module_la_SOURCES = $(WIN32SOURCES) 179modules_ecore_evas_engines_win32_module_la_SOURCES = $(WIN32SOURCES)
177modules_ecore_evas_engines_win32_module_la_CPPFLAGS = \ 180modules_ecore_evas_engines_win32_module_la_CPPFLAGS = \
178$(lib_ecore_evas_libecore_evas_la_CPPFLAGS) \ 181@ECORE_EVAS_CFLAGS@ \
179-I$(top_srcdir)/src/lib/ecore_win32 \ 182@ECORE_WIN32_CFLAGS@ \
180-I$(top_srcdir)/src/modules/evas/engines/software_ddraw \ 183-I$(top_srcdir)/src/modules/evas/engines/software_ddraw \
181-I$(top_srcdir)/src/modules/evas/engines/software_gdi 184-I$(top_srcdir)/src/modules/evas/engines/software_gdi
182modules_ecore_evas_engines_win32_module_la_LIBADD = \ 185modules_ecore_evas_engines_win32_module_la_LIBADD = \
183lib/ecore/libecore_evas.la \ 186@USE_ECORE_EVAS_LIBS@ \
184lib/ecore_win32/libecore_win32.la 187@USE_ECORE_WIN32_LIBS@
188modules_ecore_evas_engines_win32_module_la_DEPENDENCIES = \
189@USE_ECORE_EVAS_INTERNAL_LIBS@ \
190@USE_ECORE_WIN32_INTERNAL_LIBS@
185modules_ecore_evas_engines_win32_module_la_LDFLAGS = -module @EFL_LTMODULE_FLAGS@ 191modules_ecore_evas_engines_win32_module_la_LDFLAGS = -module @EFL_LTMODULE_FLAGS@
186modules_ecore_evas_engines_win32_module_la_LIBTOOLFLAGS = --tag=disable-static 192modules_ecore_evas_engines_win32_module_la_LIBTOOLFLAGS = --tag=disable-static
187endif 193endif