summaryrefslogtreecommitdiff
path: root/src/Makefile_Eeze.am
diff options
context:
space:
mode:
authorGustavo Sverzut Barbieri <barbieri@gmail.com>2013-01-03 20:37:42 +0000
committerGustavo Sverzut Barbieri <barbieri@gmail.com>2013-01-03 20:37:42 +0000
commit68188ac0c89407cb35a0f04f86ad44b0deb95bdb (patch)
tree0ddf76421ab114f162c5a113f65119a6662d6a54 /src/Makefile_Eeze.am
parentf7cc32f78bf86c804a3f3ae7b8428a408092fbdf (diff)
efl: merge eeze.
Changes also in this commit: * fix missing EAPI in symbols used by modules * removed old libudev and libmount support as agreed by discomfitor/zmike * replaced __UNUSED__ with EINA_UNUSED * fixed docs hierarchy SVN revision: 82100
Diffstat (limited to '')
-rw-r--r--src/Makefile_Eeze.am166
1 files changed, 166 insertions, 0 deletions
diff --git a/src/Makefile_Eeze.am b/src/Makefile_Eeze.am
new file mode 100644
index 0000000..8e29128
--- /dev/null
+++ b/src/Makefile_Eeze.am
@@ -0,0 +1,166 @@
1
2### Library
3
4lib_LTLIBRARIES += \
5lib/eeze/libeeze.la
6
7EEZE_COMMON_CPPFLAGS = \
8-I$(top_srcdir)/src/lib/eina \
9-I$(top_builddir)/src/lib/eina \
10-I$(top_srcdir)/src/lib/eco \
11-I$(top_builddir)/src/lib/eo \
12-I$(top_srcdir)/src/lib/ecore \
13-I$(top_builddir)/src/lib/ecore \
14-I$(top_srcdir)/src/lib/ecore_file \
15-I$(top_builddir)/src/lib/ecore_file \
16-I$(top_srcdir)/src/lib/ecore_con \
17-I$(top_builddir)/src/lib/ecore_con \
18-I$(top_srcdir)/src/lib/eet \
19-I$(top_builddir)/src/lib/eet \
20-I$(top_srcdir)/src/lib/eeze \
21-I$(top_builddir)/src/lib/eeze \
22@EFL_COV_CFLAGS@ \
23@EEZE_CFLAGS@
24
25EEZE_COMMON_LDADD = \
26lib/eina/libeina.la \
27lib/eo/libeo.la \
28lib/ecore/libecore.la \
29@EFL_COV_LIBS@
30
31installed_eezemainheadersdir = $(includedir)/eeze-@VMAJ@
32dist_installed_eezemainheaders_DATA = \
33lib/eeze/Eeze.h \
34lib/eeze/Eeze_Net.h \
35lib/eeze/Eeze_Sensor.h
36
37# libeeze.la
38lib_eeze_libeeze_la_SOURCES = \
39lib/eeze/eeze_main.c \
40lib/eeze/eeze_net.c \
41lib/eeze/eeze_net_private.h \
42lib/eeze/eeze_udev_find.c \
43lib/eeze/eeze_udev_private.h \
44lib/eeze/eeze_udev_private.c \
45lib/eeze/eeze_udev_syspath.c \
46lib/eeze/eeze_udev_walk.c \
47lib/eeze/eeze_udev_watch.c \
48lib/eeze/eeze_sensor_private.h \
49lib/eeze/eeze_sensor.c
50
51if HAVE_EEZE_MOUNT
52dist_installed_eezemainheaders_DATA += lib/eeze/Eeze_Disk.h
53lib_eeze_libeeze_la_SOURCES += \
54lib/eeze/eeze_disk.c \
55lib/eeze/eeze_disk_udev.c \
56lib/eeze/eeze_disk_mount.c \
57lib/eeze/eeze_disk_private.h \
58lib/eeze/eeze_disk_libmount_new.c
59
60EEZE_COMMON_LDADD += \
61lib/ecore_file/libecore_file.la \
62lib/ecore_con/libecore_con.la \
63lib/eet/libeet.la
64endif
65
66EEZE_COMMON_LIBADD = $(EEZE_COMMON_LDADD) @EEZE_LIBS@
67EEZE_COMMON_LDADD += @EEZE_LDFLAGS@
68EEZE_COMMON_USER_LIBADD = $(EEZE_COMMON_LIBADD) lib/eeze/libeeze.la
69EEZE_COMMON_USER_LDADD = $(EEZE_COMMON_LDADD) lib/eeze/libeeze.la
70
71lib_eeze_libeeze_la_CPPFLAGS = \
72$(EEZE_COMMON_CPPFLAGS) \
73-DPACKAGE_BUILD_DIR=\"`pwd`/$(top_builddir)\" \
74-DPACKAGE_LIB_DIR=\"$(libdir)\" \
75-DEFL_EEZE_BUILD
76
77lib_eeze_libeeze_la_LIBADD = $(EEZE_COMMON_LIBADD)
78lib_eeze_libeeze_la_LDFLAGS = @EFL_LTLIBRARY_FLAGS@
79
80eezemodulesensordir = $(libdir)/eeze/sensor
81eezemodulesensor_LTLIBRARIES =
82
83if HAVE_EEZE_TIZEN
84eezemodulesensor_LTLIBRARIES += \
85modules/eeze/eeze-sensor-tizen.la
86modules_eeze_eeze_sensor_tizen_la_SOURCES = \
87modules/eeze/eeze_sensor_tizen.c
88modules_eeze_eeze_sensor_tizen_la_CPPFLAGS = \
89$(EEZE_COMMON_CPPFLAGS) \
90@TIZEN_SENSOR_CFLAGS@
91modules_eeze_eeze_sensor_tizen_la_LIBADD = \
92$(EEZE_COMMON_USER_LIBADD) \
93@TIZEN_SENSOR_LIBS@
94modules_eeze_eeze_sensor_tizen_la_LDFLAGS = -module @EFL_LTMODULE_FLAGS@
95modules_eeze_eeze_sensor_tizen_la_LIBTOOLFLAGS = --tag=disable-static
96else
97
98eezemodulesensor_LTLIBRARIES += \
99modules/eeze/eeze-sensor-fake.la
100modules_eeze_eeze_sensor_fake_la_SOURCES = \
101modules/eeze/eeze_sensor_fake.c
102modules_eeze_eeze_sensor_fake_la_CPPFLAGS = $(EEZE_COMMON_CPPFLAGS)
103modules_eeze_eeze_sensor_fake_la_LIBADD = $(EEZE_COMMON_USER_LIBADD)
104modules_eeze_eeze_sensor_fake_la_LDFLAGS = -module @EFL_LTMODULE_FLAGS@
105modules_eeze_eeze_sensor_fake_la_LIBTOOLFLAGS = --tag=disable-static
106endif
107
108### Binary
109
110noinst_PROGRAMS += \
111bin/eeze/eeze_udev_test \
112bin/eeze/eeze_sensor_test
113
114bin_eeze_eeze_udev_test_SOURCES = bin/eeze/eeze_udev_test.c
115bin_eeze_eeze_udev_test_CPPFLAGS = $(EEZE_COMMON_CPPFLAGS)
116bin_eeze_eeze_udev_test_LDADD = $(EEZE_COMMON_USER_LDADD)
117
118bin_eeze_eeze_sensor_test_SOURCES = bin/eeze/eeze_sensor_test.c
119bin_eeze_eeze_sensor_test_CPPFLAGS = $(EEZE_COMMON_CPPFLAGS)
120bin_eeze_eeze_sensor_test_LDADD = $(EEZE_COMMON_USER_LDADD)
121
122if HAVE_EEZE_MOUNT
123bin_PROGRAMS += \
124bin/eeze/eeze_mount \
125bin/eeze/eeze_umount \
126bin/eeze/eeze_disk_ls \
127bin/eeze/eeze_scanner
128
129bin_eeze_eeze_mount_SOURCES = bin/eeze/eeze_mount.c
130bin_eeze_eeze_mount_CPPFLAGS = $(EEZE_COMMON_CPPFLAGS)
131bin_eeze_eeze_mount_LDADD = $(EEZE_COMMON_USER_LDADD)
132
133bin_eeze_eeze_umount_SOURCES = bin/eeze/eeze_umount.c
134bin_eeze_eeze_umount_CPPFLAGS = $(EEZE_COMMON_CPPFLAGS)
135bin_eeze_eeze_umount_LDADD = $(EEZE_COMMON_USER_LDADD)
136
137bin_eeze_eeze_disk_ls_SOURCES = bin/eeze/eeze_disk_ls.c
138bin_eeze_eeze_disk_ls_CPPFLAGS = $(EEZE_COMMON_CPPFLAGS)
139bin_eeze_eeze_disk_ls_LDADD = $(EEZE_COMMON_USER_LDADD)
140
141bin_eeze_eeze_scanner_SOURCES = \
142bin/eeze/eeze_scanner.c \
143bin/eeze/eeze_scanner.h
144bin_eeze_eeze_scanner_CPPFLAGS = $(EEZE_COMMON_CPPFLAGS)
145bin_eeze_eeze_scanner_LDADD = $(EEZE_COMMON_USER_LDADD)
146endif
147
148setuid_root_mode = a=rx,u+xs
149install-data-hook::
150 @chmod $(setuid_root_mode) $(DESTDIR)$(bindir)/eeze_scanner$(EXEEXT) || true
151
152
153### Unit tests
154
155if EFL_ENABLE_TESTS
156
157check_PROGRAMS += tests/eeze/eeze_suite
158
159tests_eeze_eeze_suite_SOURCES = tests/eeze/eeze_suite.c
160tests_eeze_eeze_suite_CPPFLAGS = \
161-DTESTS_SRC_DIR=\"$(top_srcdir)/src/tests/eeze\" \
162$(EEZE_COMMON_CPPFLAGS) \
163@CHECK_CFLAGS@
164tests_eeze_eeze_suite_LDADD = $(EEZE_COMMON_USER_LDADD) @CHECK_LIBS@
165
166endif