summaryrefslogtreecommitdiff
path: root/src/Makefile_Emotion.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_Emotion.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_Emotion.am')
-rw-r--r--src/Makefile_Emotion.am103
1 files changed, 28 insertions, 75 deletions
diff --git a/src/Makefile_Emotion.am b/src/Makefile_Emotion.am
index 45a2dedad0..085f2b4e53 100644
--- a/src/Makefile_Emotion.am
+++ b/src/Makefile_Emotion.am
@@ -3,45 +3,6 @@
3lib_LTLIBRARIES += \ 3lib_LTLIBRARIES += \
4lib/emotion/libemotion.la 4lib/emotion/libemotion.la
5 5
6EMOTION_COMMON_CPPFLAGS = \
7-I$(top_srcdir)/src/lib/eina \
8-I$(top_builddir)/src/lib/eina \
9-I$(top_srcdir)/src/lib/eo \
10-I$(top_builddir)/src/lib/eo \
11-I$(top_srcdir)/src/lib/ecore \
12-I$(top_builddir)/src/lib/ecore \
13-I$(top_srcdir)/src/lib/ecore_x \
14-I$(top_builddir)/src/lib/ecore_x \
15-I$(top_srcdir)/src/lib/ecore_input \
16-I$(top_builddir)/src/lib/ecore_input \
17-I$(top_srcdir)/src/lib/ecore_evas \
18-I$(top_builddir)/src/lib/ecore_evas \
19-I$(top_srcdir)/src/lib/eet \
20-I$(top_builddir)/src/lib/eet \
21-I$(top_srcdir)/src/lib/evas \
22-I$(top_builddir)/src/lib/evas \
23-I$(top_srcdir)/src/lib/eio \
24-I$(top_builddir)/src/lib/eio \
25-I$(top_srcdir)/src/lib/eeze \
26-I$(top_builddir)/src/lib/eeze \
27-I$(top_srcdir)/src/lib/emotion \
28-I$(top_builddir)/src/lib/emotion \
29@EFL_COV_CFLAGS@ \
30@EMOTION_CFLAGS@
31
32EMOTION_COMMON_LDADD = \
33lib/eina/libeina.la \
34lib/eo/libeo.la \
35lib/ecore/libecore.la \
36lib/eet/libeet.la \
37lib/evas/libevas.la \
38lib/eio/libeio.la \
39@EFL_COV_LIBS@
40
41if EMOTION_HAVE_V4L2
42EMOTION_COMMON_LDADD += lib/eeze/libeeze.la
43endif
44
45installed_emotionmainheadersdir = $(includedir)/emotion-@VMAJ@ 6installed_emotionmainheadersdir = $(includedir)/emotion-@VMAJ@
46dist_installed_emotionmainheaders_DATA = lib/emotion/Emotion.h 7dist_installed_emotionmainheaders_DATA = lib/emotion/Emotion.h
47 8
@@ -54,20 +15,14 @@ lib/emotion/emotion_webcam.c \
54lib/emotion/emotion_modules.c \ 15lib/emotion/emotion_modules.c \
55lib/emotion/emotion_main.c 16lib/emotion/emotion_main.c
56 17
57EMOTION_COMMON_LIBADD = $(EMOTION_COMMON_LDADD) @EMOTION_LIBS@
58EMOTION_COMMON_LDADD += @EMOTION_LDFLAGS@
59EMOTION_COMMON_USER_LIBADD = $(EMOTION_COMMON_LIBADD) lib/emotion/libemotion.la
60EMOTION_COMMON_USER_LDADD = $(EMOTION_COMMON_LDADD) lib/emotion/libemotion.la
61
62lib_emotion_libemotion_la_CPPFLAGS = \ 18lib_emotion_libemotion_la_CPPFLAGS = \
63$(EMOTION_COMMON_CPPFLAGS) \
64-DPACKAGE_BIN_DIR=\"$(bindir)\" \ 19-DPACKAGE_BIN_DIR=\"$(bindir)\" \
65-DPACKAGE_LIB_DIR=\"$(libdir)\" \ 20-DPACKAGE_LIB_DIR=\"$(libdir)\" \
66-DPACKAGE_DATA_DIR=\"$(datadir)/emotion\" \ 21-DPACKAGE_DATA_DIR=\"$(datadir)/emotion\" \
67-DPACKAGE_BUILD_DIR=\"`pwd`/$(top_builddir)\" \ 22-DPACKAGE_BUILD_DIR=\"`pwd`/$(top_builddir)\" \
68-DEFL_EMOTION_BUILD 23@EMOTION_CFLAGS@
69 24lib_emotion_libemotion_la_LIBADD = @EMOTION_LIBS@
70lib_emotion_libemotion_la_LIBADD = $(EMOTION_COMMON_LIBADD) 25lib_emotion_libemotion_la_DEPENDENCIES = @EMOTION_INTERNAL_LIBS@
71lib_emotion_libemotion_la_LDFLAGS = @EFL_LTLIBRARY_FLAGS@ 26lib_emotion_libemotion_la_LDFLAGS = @EFL_LTLIBRARY_FLAGS@
72 27
73## Modules 28## Modules
@@ -86,11 +41,12 @@ emotionmodulexinedir = $(libdir)/emotion/modules/xine/$(MODULE_ARCH)
86emotionmodulexine_LTLIBRARIES = modules/emotion/xine/module.la 41emotionmodulexine_LTLIBRARIES = modules/emotion/xine/module.la
87modules_emotion_xine_module_la_SOURCES = $(EMOTION_XINE_SOURCES) 42modules_emotion_xine_module_la_SOURCES = $(EMOTION_XINE_SOURCES)
88modules_emotion_xine_module_la_CPPFLAGS = \ 43modules_emotion_xine_module_la_CPPFLAGS = \
89$(EMOTION_COMMON_CPPFLAGS) \ 44@EMOTION_CFLAGS@ \
90@EMOTION_MODULE_XINE_CFLAGS@ 45@EMOTION_MODULE_XINE_CFLAGS@
91modules_emotion_xine_module_la_LIBADD = \ 46modules_emotion_xine_module_la_LIBADD = \
92$(EMOTION_COMMON_USER_LIBADD) \ 47@USE_EMOTION_LIBS@ \
93@EMOTION_MODULE_XINE_LIBS@ 48@EMOTION_MODULE_XINE_LIBS@
49modules_emotion_xine_module_la_DEPENDENCIES = @USE_EMOTION_INTERNAL_LIBS@
94modules_emotion_xine_module_la_LDFLAGS = -module @EFL_LTMODULE_FLAGS@ 50modules_emotion_xine_module_la_LDFLAGS = -module @EFL_LTMODULE_FLAGS@
95modules_emotion_xine_module_la_LIBTOOLFLAGS = --tag=disable-static 51modules_emotion_xine_module_la_LIBTOOLFLAGS = --tag=disable-static
96endif 52endif
@@ -107,28 +63,24 @@ modules/emotion/gstreamer/emotion_sink.c
107 63
108if EMOTION_STATIC_BUILD_GSTREAMER 64if EMOTION_STATIC_BUILD_GSTREAMER
109lib_emotion_libemotion_la_SOURCES += $(EMOTION_GSTREAMER_SOURCES) 65lib_emotion_libemotion_la_SOURCES += $(EMOTION_GSTREAMER_SOURCES)
110if HAVE_ECORE_X
111EMOTION_COMMON_LDADD += \
112lib/ecore_evas/libecore_evas.la \
113lib/ecore_x/libecore_x.la
114endif
115else 66else
116if EMOTION_BUILD_GSTREAMER 67if EMOTION_BUILD_GSTREAMER
117emotionmodulegstreamerdir = $(libdir)/emotion/modules/gstreamer/$(MODULE_ARCH) 68emotionmodulegstreamerdir = $(libdir)/emotion/modules/gstreamer/$(MODULE_ARCH)
118emotionmodulegstreamer_LTLIBRARIES = modules/emotion/gstreamer/module.la 69emotionmodulegstreamer_LTLIBRARIES = modules/emotion/gstreamer/module.la
119modules_emotion_gstreamer_module_la_SOURCES = $(EMOTION_GSTREAMER_SOURCES) 70modules_emotion_gstreamer_module_la_SOURCES = $(EMOTION_GSTREAMER_SOURCES)
120modules_emotion_gstreamer_module_la_CPPFLAGS = \ 71modules_emotion_gstreamer_module_la_CPPFLAGS = \
121$(EMOTION_COMMON_CPPFLAGS) \ 72@EMOTION_CFLAGS@ \
122@EMOTION_MODULE_GSTREAMER_CFLAGS@ 73@EMOTION_MODULE_GSTREAMER_CFLAGS@
123modules_emotion_gstreamer_module_la_LIBADD = \ 74modules_emotion_gstreamer_module_la_LIBADD = \
124$(EMOTION_COMMON_USER_LIBADD) \ 75@USE_EMOTION_LIBS@ \
125@EMOTION_MODULE_GSTREAMER_LIBS@ 76@EMOTION_MODULE_GSTREAMER_LIBS@
77modules_emotion_gstreamer_module_la_DEPENDENCIES = @USE_EMOTION_INTERNAL_LIBS@
126modules_emotion_gstreamer_module_la_LDFLAGS = -module @EFL_LTMODULE_FLAGS@ 78modules_emotion_gstreamer_module_la_LDFLAGS = -module @EFL_LTMODULE_FLAGS@
127modules_emotion_gstreamer_module_la_LIBTOOLFLAGS = --tag=disable-static 79modules_emotion_gstreamer_module_la_LIBTOOLFLAGS = --tag=disable-static
128if HAVE_ECORE_X 80if HAVE_ECORE_X
129modules_emotion_gstreamer_module_la_LIBADD += \ 81modules_emotion_gstreamer_module_la_CPPFLAGS += @ECORE_X_CFLAGS@ @ECORE_EVAS_CFLAGS@
130lib/ecore_evas/libecore_evas.la \ 82modules_emotion_gstreamer_module_la_LIBADD += @USE_ECORE_X_LIBS@ @USE_ECORE_EVAS_LIBS@
131lib/ecore_x/libecore_x.la 83modules_emotion_gstreamer_module_la_DEPENDENCIES += @USE_ECORE_X_INTERNAL_LIBS@ @USE_ECORE_EVAS_INTERNAL_LIBS@
132endif 84endif
133endif 85endif
134endif 86endif
@@ -146,12 +98,12 @@ emotionmodulegenericdir = $(libdir)/emotion/modules/generic/$(MODULE_ARCH)
146emotionmodulegeneric_LTLIBRARIES = modules/emotion/generic/module.la 98emotionmodulegeneric_LTLIBRARIES = modules/emotion/generic/module.la
147modules_emotion_generic_module_la_SOURCES = $(EMOTION_GENERIC_SOURCES) 99modules_emotion_generic_module_la_SOURCES = $(EMOTION_GENERIC_SOURCES)
148modules_emotion_generic_module_la_CPPFLAGS = \ 100modules_emotion_generic_module_la_CPPFLAGS = \
149$(EMOTION_COMMON_CPPFLAGS) \ 101@EMOTION_CFLAGS@ \
150-DPACKAGE_BIN_DIR=\"$(bindir)\" \ 102-DPACKAGE_BIN_DIR=\"$(bindir)\" \
151-DPACKAGE_LIB_DIR=\"$(libdir)\" \ 103-DPACKAGE_LIB_DIR=\"$(libdir)\" \
152-DPACKAGE_DATA_DIR=\"$(datadir)/emotion\" 104-DPACKAGE_DATA_DIR=\"$(datadir)/emotion\"
153modules_emotion_generic_module_la_LIBADD = \ 105modules_emotion_generic_module_la_LIBADD = @USE_EMOTION_LIBS@
154$(EMOTION_COMMON_USER_LIBADD) 106modules_emotion_generic_module_la_DEPENDENCIES = @USE_EMOTION_INTERNAL_LIBS@
155modules_emotion_generic_module_la_LDFLAGS = -module @EFL_LTMODULE_FLAGS@ 107modules_emotion_generic_module_la_LDFLAGS = -module @EFL_LTMODULE_FLAGS@
156modules_emotion_generic_module_la_LIBTOOLFLAGS = --tag=disable-static 108modules_emotion_generic_module_la_LIBTOOLFLAGS = --tag=disable-static
157endif 109endif
@@ -170,11 +122,15 @@ emotionedjeexternal_LTLIBRARIES = edje_external/emotion/module.la
170edje_external_emotion_module_la_SOURCES = \ 122edje_external_emotion_module_la_SOURCES = \
171edje_external/emotion/emotion.c 123edje_external/emotion/emotion.c
172edje_external_emotion_module_la_CPPFLAGS = \ 124edje_external_emotion_module_la_CPPFLAGS = \
173$(EMOTION_COMMON_CPPFLAGS) \ 125@EDJE_CFLAGS@ \
174$(EDJE_COMMON_CPPFLAGS) 126@EMOTION_CFLAGS@ \
127-DPACKAGE_DATA_DIR=\"$(datadir)/emotion\"
175edje_external_emotion_module_la_LIBADD = \ 128edje_external_emotion_module_la_LIBADD = \
176$(EMOTION_COMMON_USER_LIBADD) \ 129@USE_EDJE_LIBS@ \
177$(EDJE_COMMON_USER_LIBADD) 130@USE_EMOTION_LIBS@
131edje_external_emotion_module_la_DEPENDENCIES = \
132@USE_EDJE_INTERNAL_LIBS@ \
133@USE_EMOTION_INTERNAL_LIBS@
178edje_external_emotion_module_la_LDFLAGS = -module @EFL_LTMODULE_FLAGS@ 134edje_external_emotion_module_la_LDFLAGS = -module @EFL_LTMODULE_FLAGS@
179edje_external_emotion_module_la_LIBTOOLFLAGS = --tag=disable-static 135edje_external_emotion_module_la_LIBTOOLFLAGS = --tag=disable-static
180 136
@@ -190,18 +146,15 @@ tests_emotion_emotion_test_SOURCES = \
190tests/emotion/emotion_test_main.c 146tests/emotion/emotion_test_main.c
191 147
192tests_emotion_emotion_test_CPPFLAGS = \ 148tests_emotion_emotion_test_CPPFLAGS = \
193$(EMOTION_COMMON_CPPFLAGS) \
194-I$(top_srcdir)/src/lib/edje \
195-I$(top_builddir)/src/lib/edje \
196-DPACKAGE_BIN_DIR=\"$(bindir)\" \ 149-DPACKAGE_BIN_DIR=\"$(bindir)\" \
197-DPACKAGE_LIB_DIR=\"$(libdir)\" \ 150-DPACKAGE_LIB_DIR=\"$(libdir)\" \
198-DPACKAGE_DATA_DIR=\"$(datadir)/emotion\" \ 151-DPACKAGE_DATA_DIR=\"$(datadir)/emotion\" \
199-DPACKAGE_BUILD_DIR=\"`pwd`/$(top_builddir)\" 152-DPACKAGE_BUILD_DIR=\"`pwd`/$(top_builddir)\" \
153@EDJE_CFLAGS@ \
154@EMOTION_CFLAGS@
200 155
201tests_emotion_emotion_test_LDADD = \ 156tests_emotion_emotion_test_LDADD = @USE_EDJE_LIBS@ @USE_EMOTION_LIBS@
202$(EMOTION_COMMON_USER_LDADD) \ 157tests_emotion_emotion_test_DEPENDENCIES = @USE_EDJE_INTERNAL_LIBS@ @USE_EMOTION_INTERNAL_LIBS@
203lib/ecore_evas/libecore_evas.la \
204lib/edje/libedje.la
205 158
206tests/emotion/data/theme.edj: tests/emotion/data/theme.edc bin/edje/edje_cc 159tests/emotion/data/theme.edj: tests/emotion/data/theme.edc bin/edje/edje_cc
207 @$(MKDIR_P) tests/emotion/data 160 @$(MKDIR_P) tests/emotion/data