summaryrefslogtreecommitdiff
path: root/src/Makefile_Eeze.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_Eeze.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_Eeze.am')
-rw-r--r--src/Makefile_Eeze.am90
1 files changed, 31 insertions, 59 deletions
diff --git a/src/Makefile_Eeze.am b/src/Makefile_Eeze.am
index 3429b02..3c13c7a 100644
--- a/src/Makefile_Eeze.am
+++ b/src/Makefile_Eeze.am
@@ -5,30 +5,6 @@ if HAVE_EEZE
5lib_LTLIBRARIES += \ 5lib_LTLIBRARIES += \
6lib/eeze/libeeze.la 6lib/eeze/libeeze.la
7 7
8EEZE_COMMON_CPPFLAGS = \
9-I$(top_srcdir)/src/lib/eina \
10-I$(top_builddir)/src/lib/eina \
11-I$(top_srcdir)/src/lib/eo \
12-I$(top_builddir)/src/lib/eo \
13-I$(top_srcdir)/src/lib/ecore \
14-I$(top_builddir)/src/lib/ecore \
15-I$(top_srcdir)/src/lib/ecore_file \
16-I$(top_builddir)/src/lib/ecore_file \
17-I$(top_srcdir)/src/lib/ecore_con \
18-I$(top_builddir)/src/lib/ecore_con \
19-I$(top_srcdir)/src/lib/eet \
20-I$(top_builddir)/src/lib/eet \
21-I$(top_srcdir)/src/lib/eeze \
22-I$(top_builddir)/src/lib/eeze \
23@EFL_COV_CFLAGS@ \
24@EEZE_CFLAGS@
25
26EEZE_COMMON_LDADD = \
27lib/eina/libeina.la \
28lib/eo/libeo.la \
29lib/ecore/libecore.la \
30@EFL_COV_LIBS@
31
32installed_eezemainheadersdir = $(includedir)/eeze-@VMAJ@ 8installed_eezemainheadersdir = $(includedir)/eeze-@VMAJ@
33dist_installed_eezemainheaders_DATA = \ 9dist_installed_eezemainheaders_DATA = \
34lib/eeze/Eeze.h \ 10lib/eeze/Eeze.h \
@@ -57,27 +33,16 @@ lib/eeze/eeze_disk_udev.c \
57lib/eeze/eeze_disk_mount.c \ 33lib/eeze/eeze_disk_mount.c \
58lib/eeze/eeze_disk_private.h \ 34lib/eeze/eeze_disk_private.h \
59lib/eeze/eeze_disk_libmount_new.c 35lib/eeze/eeze_disk_libmount_new.c
60
61EEZE_COMMON_LDADD += \
62lib/ecore_file/libecore_file.la \
63lib/ecore_con/libecore_con.la \
64lib/eet/libeet.la
65endif 36endif
66 37
67EEZE_COMMON_LIBADD = $(EEZE_COMMON_LDADD) @EEZE_LIBS@
68EEZE_COMMON_LDADD += @EEZE_LDFLAGS@
69EEZE_COMMON_USER_LIBADD = $(EEZE_COMMON_LIBADD) lib/eeze/libeeze.la
70EEZE_COMMON_USER_LDADD = $(EEZE_COMMON_LDADD) lib/eeze/libeeze.la
71
72lib_eeze_libeeze_la_CPPFLAGS = \ 38lib_eeze_libeeze_la_CPPFLAGS = \
73$(EEZE_COMMON_CPPFLAGS) \
74-DPACKAGE_BIN_DIR=\"$(bindir)\" \ 39-DPACKAGE_BIN_DIR=\"$(bindir)\" \
75-DPACKAGE_LIB_DIR=\"$(libdir)\" \ 40-DPACKAGE_LIB_DIR=\"$(libdir)\" \
76-DPACKAGE_DATA_DIR=\"$(datadir)/eeze\" \ 41-DPACKAGE_DATA_DIR=\"$(datadir)/eeze\" \
77-DPACKAGE_BUILD_DIR=\"`pwd`/$(top_builddir)\" \ 42-DPACKAGE_BUILD_DIR=\"`pwd`/$(top_builddir)\" \
78-DEFL_EEZE_BUILD 43@EEZE_CFLAGS@
79 44lib_eeze_libeeze_la_LIBADD = @EEZE_LIBS@
80lib_eeze_libeeze_la_LIBADD = $(EEZE_COMMON_LIBADD) 45lib_eeze_libeeze_la_DEPENDENCIES = @EEZE_INTERNAL_LIBS@
81lib_eeze_libeeze_la_LDFLAGS = @EFL_LTLIBRARY_FLAGS@ 46lib_eeze_libeeze_la_LDFLAGS = @EFL_LTLIBRARY_FLAGS@
82 47
83if HAVE_EEZE_TIZEN 48if HAVE_EEZE_TIZEN
@@ -86,20 +51,21 @@ eezemodulesensortizen_LTLIBRARIES = modules/eeze/sensor/tizen/module.la
86modules_eeze_sensor_tizen_module_la_SOURCES = \ 51modules_eeze_sensor_tizen_module_la_SOURCES = \
87modules/eeze/sensor/tizen/tizen.c 52modules/eeze/sensor/tizen/tizen.c
88modules_eeze_sensor_tizen_module_la_CPPFLAGS = \ 53modules_eeze_sensor_tizen_module_la_CPPFLAGS = \
89$(EEZE_COMMON_CPPFLAGS) \ 54@EEZE_CFLAGS@ \
90@TIZEN_SENSOR_CFLAGS@ 55@TIZEN_SENSOR_CFLAGS@
91modules_eeze_sensor_tizen_module_la_LIBADD = \ 56modules_eeze_sensor_tizen_module_la_LIBADD = \
92$(EEZE_COMMON_USER_LIBADD) \ 57@USE_EEZE_LIBS@ \
93@TIZEN_SENSOR_LIBS@ 58@TIZEN_SENSOR_LIBS@
59modules_eeze_sensor_tizen_module_la_DEPENDENCIES = @USE_EEZE_INTERNAL_LIBS@
94modules_eeze_sensor_tizen_module_la_LDFLAGS = -module @EFL_LTMODULE_FLAGS@ 60modules_eeze_sensor_tizen_module_la_LDFLAGS = -module @EFL_LTMODULE_FLAGS@
95modules_eeze_sensor_tizen_module_la_LIBTOOLFLAGS = --tag=disable-static 61modules_eeze_sensor_tizen_module_la_LIBTOOLFLAGS = --tag=disable-static
96else 62else
97eezemodulesensorfakedir = $(libdir)/eeze/modules/sensor/fake/$(MODULE_ARCH) 63eezemodulesensorfakedir = $(libdir)/eeze/modules/sensor/fake/$(MODULE_ARCH)
98eezemodulesensorfake_LTLIBRARIES = modules/eeze/sensor/fake/module.la 64eezemodulesensorfake_LTLIBRARIES = modules/eeze/sensor/fake/module.la
99modules_eeze_sensor_fake_module_la_SOURCES = \ 65modules_eeze_sensor_fake_module_la_SOURCES = modules/eeze/sensor/fake/fake.c
100modules/eeze/sensor/fake/fake.c 66modules_eeze_sensor_fake_module_la_CPPFLAGS = @EEZE_CFLAGS@
101modules_eeze_sensor_fake_module_la_CPPFLAGS = $(EEZE_COMMON_CPPFLAGS) 67modules_eeze_sensor_fake_module_la_LIBADD = @USE_EEZE_LIBS@
102modules_eeze_sensor_fake_module_la_LIBADD = $(EEZE_COMMON_USER_LIBADD) 68modules_eeze_sensor_fake_module_la_DEPENDENCIES = @USE_EEZE_INTERNAL_LIBS@
103modules_eeze_sensor_fake_module_la_LDFLAGS = -module @EFL_LTMODULE_FLAGS@ 69modules_eeze_sensor_fake_module_la_LDFLAGS = -module @EFL_LTMODULE_FLAGS@
104modules_eeze_sensor_fake_module_la_LIBTOOLFLAGS = --tag=disable-static 70modules_eeze_sensor_fake_module_la_LIBTOOLFLAGS = --tag=disable-static
105endif 71endif
@@ -111,12 +77,14 @@ bin/eeze/eeze_udev_test \
111bin/eeze/eeze_sensor_test 77bin/eeze/eeze_sensor_test
112 78
113bin_eeze_eeze_udev_test_SOURCES = bin/eeze/eeze_udev_test.c 79bin_eeze_eeze_udev_test_SOURCES = bin/eeze/eeze_udev_test.c
114bin_eeze_eeze_udev_test_CPPFLAGS = $(EEZE_COMMON_CPPFLAGS) 80bin_eeze_eeze_udev_test_CPPFLAGS = @EEZE_CFLAGS@
115bin_eeze_eeze_udev_test_LDADD = $(EEZE_COMMON_USER_LDADD) 81bin_eeze_eeze_udev_test_LDADD = @USE_EEZE_LIBS@
82bin_eeze_eeze_udev_test_DEPENDENCIES = @USE_EEZE_INTERNAL_LIBS@
116 83
117bin_eeze_eeze_sensor_test_SOURCES = bin/eeze/eeze_sensor_test.c 84bin_eeze_eeze_sensor_test_SOURCES = bin/eeze/eeze_sensor_test.c
118bin_eeze_eeze_sensor_test_CPPFLAGS = $(EEZE_COMMON_CPPFLAGS) 85bin_eeze_eeze_sensor_test_CPPFLAGS = @EEZE_CFLAGS@
119bin_eeze_eeze_sensor_test_LDADD = $(EEZE_COMMON_USER_LDADD) 86bin_eeze_eeze_sensor_test_LDADD = @USE_EEZE_LIBS@
87bin_eeze_eeze_sensor_test_DEPENDENCIES = @USE_EEZE_INTERNAL_LIBS@
120 88
121if HAVE_EEZE_MOUNT 89if HAVE_EEZE_MOUNT
122bin_PROGRAMS += \ 90bin_PROGRAMS += \
@@ -126,22 +94,26 @@ bin/eeze/eeze_disk_ls \
126bin/eeze/eeze_scanner 94bin/eeze/eeze_scanner
127 95
128bin_eeze_eeze_mount_SOURCES = bin/eeze/eeze_mount.c 96bin_eeze_eeze_mount_SOURCES = bin/eeze/eeze_mount.c
129bin_eeze_eeze_mount_CPPFLAGS = $(EEZE_COMMON_CPPFLAGS) 97bin_eeze_eeze_mount_CPPFLAGS = @EEZE_CFLAGS@
130bin_eeze_eeze_mount_LDADD = $(EEZE_COMMON_USER_LDADD) 98bin_eeze_eeze_mount_LDADD = @USE_EEZE_LIBS@
99bin_eeze_eeze_mount_DEPENDENCIES = @USE_EEZE_INTERNAL_LIBS@
131 100
132bin_eeze_eeze_umount_SOURCES = bin/eeze/eeze_umount.c 101bin_eeze_eeze_umount_SOURCES = bin/eeze/eeze_umount.c
133bin_eeze_eeze_umount_CPPFLAGS = $(EEZE_COMMON_CPPFLAGS) 102bin_eeze_eeze_umount_CPPFLAGS = @EEZE_CFLAGS@
134bin_eeze_eeze_umount_LDADD = $(EEZE_COMMON_USER_LDADD) 103bin_eeze_eeze_umount_LDADD = @USE_EEZE_LIBS@
104bin_eeze_eeze_umount_DEPENDENCIES = @USE_EEZE_INTERNAL_LIBS@
135 105
136bin_eeze_eeze_disk_ls_SOURCES = bin/eeze/eeze_disk_ls.c 106bin_eeze_eeze_disk_ls_SOURCES = bin/eeze/eeze_disk_ls.c
137bin_eeze_eeze_disk_ls_CPPFLAGS = $(EEZE_COMMON_CPPFLAGS) 107bin_eeze_eeze_disk_ls_CPPFLAGS = @EEZE_CFLAGS@
138bin_eeze_eeze_disk_ls_LDADD = $(EEZE_COMMON_USER_LDADD) 108bin_eeze_eeze_disk_ls_LDADD = @USE_EEZE_LIBS@
109bin_eeze_eeze_disk_ls_DEPENDENCIES = @USE_EEZE_INTERNAL_LIBS@
139 110
140bin_eeze_eeze_scanner_SOURCES = \ 111bin_eeze_eeze_scanner_SOURCES = \
141bin/eeze/eeze_scanner.c \ 112bin/eeze/eeze_scanner.c \
142bin/eeze/eeze_scanner.h 113bin/eeze/eeze_scanner.h
143bin_eeze_eeze_scanner_CPPFLAGS = $(EEZE_COMMON_CPPFLAGS) 114bin_eeze_eeze_scanner_CPPFLAGS = @EEZE_CFLAGS@
144bin_eeze_eeze_scanner_LDADD = $(EEZE_COMMON_USER_LDADD) 115bin_eeze_eeze_scanner_LDADD = @USE_EEZE_LIBS@
116bin_eeze_eeze_scanner_DEPENDENCIES = @USE_EEZE_INTERNAL_LIBS@
145endif 117endif
146 118
147setuid_root_mode = a=rx,u+xs 119setuid_root_mode = a=rx,u+xs
@@ -158,9 +130,9 @@ check_PROGRAMS += tests/eeze/eeze_suite
158tests_eeze_eeze_suite_SOURCES = tests/eeze/eeze_suite.c 130tests_eeze_eeze_suite_SOURCES = tests/eeze/eeze_suite.c
159tests_eeze_eeze_suite_CPPFLAGS = \ 131tests_eeze_eeze_suite_CPPFLAGS = \
160-DTESTS_SRC_DIR=\"$(top_srcdir)/src/tests/eeze\" \ 132-DTESTS_SRC_DIR=\"$(top_srcdir)/src/tests/eeze\" \
161$(EEZE_COMMON_CPPFLAGS) \ 133@EEZE_CFLAGS@ \
162@CHECK_CFLAGS@ 134@CHECK_CFLAGS@
163tests_eeze_eeze_suite_LDADD = $(EEZE_COMMON_USER_LDADD) @CHECK_LIBS@ 135tests_eeze_eeze_suite_LDADD = @CHECK_LIBS@ @USE_EEZE_LIBS@
164 136tests_eeze_eeze_suite_DEPENDENCIES = @USE_EEZE_INTERNAL_LIBS@
165endif 137endif
166endif 138endif