summaryrefslogtreecommitdiff
path: root/src/Makefile_Eeze.am
diff options
context:
space:
mode:
Diffstat (limited to 'src/Makefile_Eeze.am')
-rw-r--r--src/Makefile_Eeze.am192
1 files changed, 0 insertions, 192 deletions
diff --git a/src/Makefile_Eeze.am b/src/Makefile_Eeze.am
deleted file mode 100644
index 5f8eb02..0000000
--- a/src/Makefile_Eeze.am
+++ /dev/null
@@ -1,192 +0,0 @@
1if HAVE_EEZE
2
3### Library
4
5lib_LTLIBRARIES += \
6lib/eeze/libeeze.la
7
8installed_eezemainheadersdir = $(includedir)/eeze-@VMAJ@
9dist_installed_eezemainheaders_DATA = \
10lib/eeze/Eeze.h \
11lib/eeze/Eeze_Net.h \
12lib/eeze/Eeze_Sensor.h \
13lib/eeze/Eeze_Disk.h \
14bin/eeze/eeze_scanner/eeze_scanner.h
15
16# libeeze.la
17lib_eeze_libeeze_la_SOURCES = \
18lib/eeze/eeze_main.c \
19lib/eeze/eeze_net.c \
20lib/eeze/eeze_net_private.h \
21lib/eeze/eeze_sensor.c \
22lib/eeze/eeze_sensor_private.h \
23lib/eeze/eeze_udev_find.c \
24lib/eeze/eeze_udev_private.c \
25lib/eeze/eeze_udev_private.h \
26lib/eeze/eeze_udev_syspath.c \
27lib/eeze/eeze_udev_walk.c \
28lib/eeze/eeze_udev_watch.c \
29lib/eeze/eeze_disk.c \
30lib/eeze/eeze_disk_udev.c \
31lib/eeze/eeze_disk_mount.c \
32lib/eeze/eeze_disk_private.h \
33static_libs/buildsystem/buildsystem.h \
34static_libs/buildsystem/buildsystem_autotools.c
35
36if HAVE_EEZE_MOUNT
37if EEZE_LIBMOUNT_BEFORE_219
38lib_eeze_libeeze_la_SOURCES += lib/eeze/eeze_disk_libmount_old.c
39else
40if EEZE_LIBMOUNT_AFTER_219
41lib_eeze_libeeze_la_SOURCES += lib/eeze/eeze_disk_libmount_new.c
42else
43lib_eeze_libeeze_la_SOURCES += lib/eeze/eeze_disk_libmount.c
44endif
45endif
46else
47lib_eeze_libeeze_la_SOURCES += lib/eeze/eeze_disk_dummy.c
48endif
49
50lib_eeze_libeeze_la_CPPFLAGS = -I$(top_builddir)/src/lib/efl \
51-DPACKAGE_BIN_DIR=\"$(bindir)\" \
52-DPACKAGE_LIB_DIR=\"$(libdir)\" \
53-DPACKAGE_DATA_DIR=\"$(datadir)/eeze\" \
54-DPACKAGE_BUILD_DIR=\"$(abs_top_builddir)\" \
55-DPACKAGE_SRC_DIR=\"$(abs_top_srcdir)\" \
56-DEFL_BUILD \
57@EEZE_CFLAGS@
58lib_eeze_libeeze_la_LIBADD = @EEZE_LIBS@
59lib_eeze_libeeze_la_DEPENDENCIES = @EEZE_INTERNAL_LIBS@
60lib_eeze_libeeze_la_LDFLAGS = @EFL_LTLIBRARY_FLAGS@
61
62if HAVE_EEZE_TIZEN
63eezemodulesensortizendir = $(libdir)/eeze/modules/sensor/tizen/$(MODULE_ARCH)
64eezemodulesensortizen_LTLIBRARIES = modules/eeze/sensor/tizen/module.la
65
66# Workaround for broken parallel install support in automake (relink issue)
67# http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7328
68install_eezemodulesensortizenLTLIBRARIES = install-eezemodulesensortizenLTLIBRARIES
69$(install_eezemodulesensortizenLTLIBRARIES): install-libLTLIBRARIES
70
71modules_eeze_sensor_tizen_module_la_SOURCES = \
72modules/eeze/sensor/tizen/tizen.c
73modules_eeze_sensor_tizen_module_la_CPPFLAGS = -I$(top_builddir)/src/lib/efl \
74@EEZE_CFLAGS@ \
75@TIZEN_SENSOR_CFLAGS@
76modules_eeze_sensor_tizen_module_la_LIBADD = \
77@USE_EEZE_LIBS@ \
78@TIZEN_SENSOR_LIBS@
79modules_eeze_sensor_tizen_module_la_DEPENDENCIES = @USE_EEZE_INTERNAL_LIBS@
80modules_eeze_sensor_tizen_module_la_LDFLAGS = -module @EFL_LTMODULE_FLAGS@
81modules_eeze_sensor_tizen_module_la_LIBTOOLFLAGS = --tag=disable-static
82else
83eezemodulesensorfakedir = $(libdir)/eeze/modules/sensor/fake/$(MODULE_ARCH)
84eezemodulesensorfake_LTLIBRARIES = modules/eeze/sensor/fake/module.la
85
86# Workaround for broken parallel install support in automake (relink issue)
87# http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7328
88install_eezemodulesensorfakeLTLIBRARIES = install-eezemodulesensorfakeLTLIBRARIES
89$(install_eezemodulesensorfakeLTLIBRARIES): install-libLTLIBRARIES
90
91modules_eeze_sensor_fake_module_la_SOURCES = modules/eeze/sensor/fake/fake.c
92modules_eeze_sensor_fake_module_la_CPPFLAGS = -I$(top_builddir)/src/lib/efl @EEZE_CFLAGS@
93modules_eeze_sensor_fake_module_la_LIBADD = @USE_EEZE_LIBS@
94modules_eeze_sensor_fake_module_la_DEPENDENCIES = @USE_EEZE_INTERNAL_LIBS@
95modules_eeze_sensor_fake_module_la_LDFLAGS = -module @EFL_LTMODULE_FLAGS@
96modules_eeze_sensor_fake_module_la_LIBTOOLFLAGS = --tag=disable-static
97endif
98eezemodulesensorudevdir = $(libdir)/eeze/modules/sensor/udev/$(MODULE_ARCH)
99eezemodulesensorudev_LTLIBRARIES = modules/eeze/sensor/udev/module.la
100
101# Workaround for broken parallel install support in automake (relink issue)
102# http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7328
103install_eezemodulesensorudevLTLIBRARIES = install-eezemodulesensorudevLTLIBRARIES
104$(install_eezemodulesensorudevLTLIBRARIES): install-libLTLIBRARIES
105
106modules_eeze_sensor_udev_module_la_SOURCES = modules/eeze/sensor/udev/udev.c
107modules_eeze_sensor_udev_module_la_CPPFLAGS = -I$(top_builddir)/src/lib/efl @EEZE_CFLAGS@
108modules_eeze_sensor_udev_module_la_LIBADD = @USE_EEZE_LIBS@
109modules_eeze_sensor_udev_module_la_DEPENDENCIES = @USE_EEZE_INTERNAL_LIBS@
110modules_eeze_sensor_udev_module_la_LDFLAGS = -module @EFL_LTMODULE_FLAGS@
111modules_eeze_sensor_udev_module_la_LIBTOOLFLAGS = --tag=disable-static
112
113### Binary
114
115noinst_PROGRAMS += \
116bin/eeze/eeze_udev_test/eeze_udev_test \
117bin/eeze/eeze_sensor_test/eeze_sensor_test
118
119bin_eeze_eeze_udev_test_eeze_udev_test_SOURCES = bin/eeze/eeze_udev_test/eeze_udev_test.c
120bin_eeze_eeze_udev_test_eeze_udev_test_CPPFLAGS = -I$(top_builddir)/src/lib/efl @EEZE_CFLAGS@
121bin_eeze_eeze_udev_test_eeze_udev_test_LDADD = @USE_EEZE_LIBS@
122bin_eeze_eeze_udev_test_eeze_udev_test_DEPENDENCIES = @USE_EEZE_INTERNAL_LIBS@
123
124bin_eeze_eeze_sensor_test_eeze_sensor_test_SOURCES = bin/eeze/eeze_sensor_test/eeze_sensor_test.c
125bin_eeze_eeze_sensor_test_eeze_sensor_test_CPPFLAGS = -I$(top_builddir)/src/lib/efl @EEZE_CFLAGS@
126bin_eeze_eeze_sensor_test_eeze_sensor_test_LDADD = @USE_EEZE_LIBS@
127bin_eeze_eeze_sensor_test_eeze_sensor_test_DEPENDENCIES = @USE_EEZE_INTERNAL_LIBS@
128
129bin_PROGRAMS += \
130bin/eeze/eeze_mount/eeze_mount \
131bin/eeze/eeze_umount/eeze_umount \
132bin/eeze/eeze_disk_ls/eeze_disk_ls \
133bin/eeze/eeze_scanner/eeze_scanner \
134bin/eeze/eeze_scanner_monitor/eeze_scanner_monitor
135
136bin_eeze_eeze_mount_eeze_mount_SOURCES = bin/eeze/eeze_mount/eeze_mount.c
137bin_eeze_eeze_mount_eeze_mount_CPPFLAGS = -I$(top_builddir)/src/lib/efl @EEZE_CFLAGS@
138bin_eeze_eeze_mount_eeze_mount_LDADD = @USE_EEZE_LIBS@
139bin_eeze_eeze_mount_eeze_mount_DEPENDENCIES = @USE_EEZE_INTERNAL_LIBS@
140
141bin_eeze_eeze_umount_eeze_umount_SOURCES = bin/eeze/eeze_umount/eeze_umount.c
142bin_eeze_eeze_umount_eeze_umount_CPPFLAGS = -I$(top_builddir)/src/lib/efl @EEZE_CFLAGS@
143bin_eeze_eeze_umount_eeze_umount_LDADD = @USE_EEZE_LIBS@
144bin_eeze_eeze_umount_eeze_umount_DEPENDENCIES = @USE_EEZE_INTERNAL_LIBS@
145
146bin_eeze_eeze_disk_ls_eeze_disk_ls_SOURCES = bin/eeze/eeze_disk_ls/eeze_disk_ls.c
147bin_eeze_eeze_disk_ls_eeze_disk_ls_CPPFLAGS = -I$(top_builddir)/src/lib/efl @EEZE_CFLAGS@
148bin_eeze_eeze_disk_ls_eeze_disk_ls_LDADD = @USE_EEZE_LIBS@
149bin_eeze_eeze_disk_ls_eeze_disk_ls_DEPENDENCIES = @USE_EEZE_INTERNAL_LIBS@
150
151bin_eeze_eeze_scanner_eeze_scanner_SOURCES = \
152bin/eeze/eeze_scanner/eeze_scanner.c \
153bin/eeze/eeze_scanner/eeze_scanner.h
154bin_eeze_eeze_scanner_eeze_scanner_CPPFLAGS = -I$(top_builddir)/src/lib/efl @EEZE_CFLAGS@
155bin_eeze_eeze_scanner_eeze_scanner_LDADD = @USE_EEZE_LIBS@
156bin_eeze_eeze_scanner_eeze_scanner_DEPENDENCIES = @USE_EEZE_INTERNAL_LIBS@
157
158bin_eeze_eeze_scanner_monitor_eeze_scanner_monitor_SOURCES = \
159bin/eeze/eeze_scanner_monitor/eeze_scanner_monitor.c
160bin_eeze_eeze_scanner_monitor_eeze_scanner_monitor_CPPFLAGS = -I$(top_builddir)/src/lib/efl @EEZE_CFLAGS@
161bin_eeze_eeze_scanner_monitor_eeze_scanner_monitor_LDADD = @USE_EEZE_LIBS@
162bin_eeze_eeze_scanner_monitor_eeze_scanner_monitor_DEPENDENCIES = @USE_EEZE_INTERNAL_LIBS@
163
164setuid_root_mode = a=rx,u+xs
165
166EFL_INSTALL_EXEC_HOOK+=chmod $(setuid_root_mode) $(DESTDIR)$(bindir)/eeze_scanner$(EXEEXT) || true;
167
168
169### Unit tests
170
171if EFL_ENABLE_TESTS
172
173check_PROGRAMS += tests/eeze/eeze_suite
174TESTS += tests/eeze/eeze_suite
175
176tests_eeze_eeze_suite_SOURCES = \
177tests/eeze/eeze_suite.c \
178tests/eeze/eeze_test_init.c \
179tests/eeze/eeze_test_net.c \
180tests/eeze/eeze_test_sensor.c \
181tests/eeze/eeze_test_udev.c \
182tests/eeze/eeze_suite.h
183tests_eeze_eeze_suite_CPPFLAGS = -I$(top_builddir)/src/lib/efl \
184-DPACKAGE_BUILD_DIR=\"$(abs_top_builddir)\" \
185@EEZE_CFLAGS@ \
186-DTESTS_SRC_DIR=\"$(top_srcdir)/src/tests/eeze\" \
187-DTESTS_BUILD_DIR=\"$(top_builddir)/src/tests/eeze\" \
188@CHECK_CFLAGS@
189tests_eeze_eeze_suite_LDADD = @CHECK_LIBS@ @USE_EEZE_LIBS@
190tests_eeze_eeze_suite_DEPENDENCIES = @USE_EEZE_INTERNAL_LIBS@
191endif
192endif