2013-01-04 12:55:12 -08:00
|
|
|
if HAVE_EEZE
|
2013-01-03 12:37:42 -08:00
|
|
|
|
|
|
|
### Library
|
|
|
|
|
|
|
|
lib_LTLIBRARIES += \
|
|
|
|
lib/eeze/libeeze.la
|
|
|
|
|
|
|
|
installed_eezemainheadersdir = $(includedir)/eeze-@VMAJ@
|
|
|
|
dist_installed_eezemainheaders_DATA = \
|
|
|
|
lib/eeze/Eeze.h \
|
|
|
|
lib/eeze/Eeze_Net.h \
|
2013-01-16 13:05:19 -08:00
|
|
|
lib/eeze/Eeze_Sensor.h \
|
|
|
|
lib/eeze/Eeze_Disk.h
|
2013-01-03 12:37:42 -08:00
|
|
|
|
|
|
|
# libeeze.la
|
|
|
|
lib_eeze_libeeze_la_SOURCES = \
|
2013-01-16 13:05:19 -08:00
|
|
|
lib/eeze/eeze_disk.c \
|
|
|
|
lib/eeze/eeze_disk_libmount_new.c \
|
|
|
|
lib/eeze/eeze_disk_mount.c \
|
|
|
|
lib/eeze/eeze_disk_private.h \
|
|
|
|
lib/eeze/eeze_disk_udev.c \
|
2013-01-03 12:37:42 -08:00
|
|
|
lib/eeze/eeze_main.c \
|
|
|
|
lib/eeze/eeze_net.c \
|
|
|
|
lib/eeze/eeze_net_private.h \
|
2013-01-16 13:05:19 -08:00
|
|
|
lib/eeze/eeze_sensor.c \
|
|
|
|
lib/eeze/eeze_sensor_private.h \
|
2013-01-03 12:37:42 -08:00
|
|
|
lib/eeze/eeze_udev_find.c \
|
|
|
|
lib/eeze/eeze_udev_private.c \
|
2013-01-16 13:05:19 -08:00
|
|
|
lib/eeze/eeze_udev_private.h \
|
2013-01-03 12:37:42 -08:00
|
|
|
lib/eeze/eeze_udev_syspath.c \
|
|
|
|
lib/eeze/eeze_udev_walk.c \
|
2013-01-16 13:05:19 -08:00
|
|
|
lib/eeze/eeze_udev_watch.c
|
2013-01-03 12:37:42 -08:00
|
|
|
|
|
|
|
lib_eeze_libeeze_la_CPPFLAGS = \
|
2013-01-04 09:19:43 -08:00
|
|
|
-DPACKAGE_BIN_DIR=\"$(bindir)\" \
|
2013-01-03 12:37:42 -08:00
|
|
|
-DPACKAGE_LIB_DIR=\"$(libdir)\" \
|
2013-01-04 09:19:43 -08:00
|
|
|
-DPACKAGE_DATA_DIR=\"$(datadir)/eeze\" \
|
|
|
|
-DPACKAGE_BUILD_DIR=\"`pwd`/$(top_builddir)\" \
|
2013-01-14 14:36:23 -08:00
|
|
|
@EEZE_CFLAGS@
|
|
|
|
lib_eeze_libeeze_la_LIBADD = @EEZE_LIBS@
|
|
|
|
lib_eeze_libeeze_la_DEPENDENCIES = @EEZE_INTERNAL_LIBS@
|
2013-01-03 12:37:42 -08:00
|
|
|
lib_eeze_libeeze_la_LDFLAGS = @EFL_LTLIBRARY_FLAGS@
|
|
|
|
|
|
|
|
if HAVE_EEZE_TIZEN
|
2013-01-09 12:51:56 -08:00
|
|
|
eezemodulesensortizendir = $(libdir)/eeze/modules/sensor/tizen/$(MODULE_ARCH)
|
|
|
|
eezemodulesensortizen_LTLIBRARIES = modules/eeze/sensor/tizen/module.la
|
|
|
|
modules_eeze_sensor_tizen_module_la_SOURCES = \
|
2013-01-10 08:14:55 -08:00
|
|
|
modules/eeze/sensor/tizen/tizen.c
|
2013-01-09 12:51:56 -08:00
|
|
|
modules_eeze_sensor_tizen_module_la_CPPFLAGS = \
|
2013-01-14 14:36:23 -08:00
|
|
|
@EEZE_CFLAGS@ \
|
2013-01-03 12:37:42 -08:00
|
|
|
@TIZEN_SENSOR_CFLAGS@
|
2013-01-09 12:51:56 -08:00
|
|
|
modules_eeze_sensor_tizen_module_la_LIBADD = \
|
2013-01-14 14:36:23 -08:00
|
|
|
@USE_EEZE_LIBS@ \
|
2013-01-03 12:37:42 -08:00
|
|
|
@TIZEN_SENSOR_LIBS@
|
2013-01-14 14:36:23 -08:00
|
|
|
modules_eeze_sensor_tizen_module_la_DEPENDENCIES = @USE_EEZE_INTERNAL_LIBS@
|
2013-01-09 12:51:56 -08:00
|
|
|
modules_eeze_sensor_tizen_module_la_LDFLAGS = -module @EFL_LTMODULE_FLAGS@
|
|
|
|
modules_eeze_sensor_tizen_module_la_LIBTOOLFLAGS = --tag=disable-static
|
2013-01-03 12:37:42 -08:00
|
|
|
else
|
2013-01-09 12:51:56 -08:00
|
|
|
eezemodulesensorfakedir = $(libdir)/eeze/modules/sensor/fake/$(MODULE_ARCH)
|
|
|
|
eezemodulesensorfake_LTLIBRARIES = modules/eeze/sensor/fake/module.la
|
2013-01-14 14:36:23 -08:00
|
|
|
modules_eeze_sensor_fake_module_la_SOURCES = modules/eeze/sensor/fake/fake.c
|
|
|
|
modules_eeze_sensor_fake_module_la_CPPFLAGS = @EEZE_CFLAGS@
|
|
|
|
modules_eeze_sensor_fake_module_la_LIBADD = @USE_EEZE_LIBS@
|
|
|
|
modules_eeze_sensor_fake_module_la_DEPENDENCIES = @USE_EEZE_INTERNAL_LIBS@
|
2013-01-09 12:51:56 -08:00
|
|
|
modules_eeze_sensor_fake_module_la_LDFLAGS = -module @EFL_LTMODULE_FLAGS@
|
|
|
|
modules_eeze_sensor_fake_module_la_LIBTOOLFLAGS = --tag=disable-static
|
2013-01-03 12:37:42 -08:00
|
|
|
endif
|
|
|
|
|
|
|
|
### Binary
|
|
|
|
|
|
|
|
noinst_PROGRAMS += \
|
|
|
|
bin/eeze/eeze_udev_test \
|
|
|
|
bin/eeze/eeze_sensor_test
|
|
|
|
|
|
|
|
bin_eeze_eeze_udev_test_SOURCES = bin/eeze/eeze_udev_test.c
|
2013-01-14 14:36:23 -08:00
|
|
|
bin_eeze_eeze_udev_test_CPPFLAGS = @EEZE_CFLAGS@
|
|
|
|
bin_eeze_eeze_udev_test_LDADD = @USE_EEZE_LIBS@
|
|
|
|
bin_eeze_eeze_udev_test_DEPENDENCIES = @USE_EEZE_INTERNAL_LIBS@
|
2013-01-03 12:37:42 -08:00
|
|
|
|
|
|
|
bin_eeze_eeze_sensor_test_SOURCES = bin/eeze/eeze_sensor_test.c
|
2013-01-14 14:36:23 -08:00
|
|
|
bin_eeze_eeze_sensor_test_CPPFLAGS = @EEZE_CFLAGS@
|
|
|
|
bin_eeze_eeze_sensor_test_LDADD = @USE_EEZE_LIBS@
|
|
|
|
bin_eeze_eeze_sensor_test_DEPENDENCIES = @USE_EEZE_INTERNAL_LIBS@
|
2013-01-03 12:37:42 -08:00
|
|
|
|
|
|
|
bin_PROGRAMS += \
|
|
|
|
bin/eeze/eeze_mount \
|
|
|
|
bin/eeze/eeze_umount \
|
|
|
|
bin/eeze/eeze_disk_ls \
|
|
|
|
bin/eeze/eeze_scanner
|
|
|
|
|
|
|
|
bin_eeze_eeze_mount_SOURCES = bin/eeze/eeze_mount.c
|
2013-01-14 14:36:23 -08:00
|
|
|
bin_eeze_eeze_mount_CPPFLAGS = @EEZE_CFLAGS@
|
|
|
|
bin_eeze_eeze_mount_LDADD = @USE_EEZE_LIBS@
|
|
|
|
bin_eeze_eeze_mount_DEPENDENCIES = @USE_EEZE_INTERNAL_LIBS@
|
2013-01-03 12:37:42 -08:00
|
|
|
|
|
|
|
bin_eeze_eeze_umount_SOURCES = bin/eeze/eeze_umount.c
|
2013-01-14 14:36:23 -08:00
|
|
|
bin_eeze_eeze_umount_CPPFLAGS = @EEZE_CFLAGS@
|
|
|
|
bin_eeze_eeze_umount_LDADD = @USE_EEZE_LIBS@
|
|
|
|
bin_eeze_eeze_umount_DEPENDENCIES = @USE_EEZE_INTERNAL_LIBS@
|
2013-01-03 12:37:42 -08:00
|
|
|
|
|
|
|
bin_eeze_eeze_disk_ls_SOURCES = bin/eeze/eeze_disk_ls.c
|
2013-01-14 14:36:23 -08:00
|
|
|
bin_eeze_eeze_disk_ls_CPPFLAGS = @EEZE_CFLAGS@
|
|
|
|
bin_eeze_eeze_disk_ls_LDADD = @USE_EEZE_LIBS@
|
|
|
|
bin_eeze_eeze_disk_ls_DEPENDENCIES = @USE_EEZE_INTERNAL_LIBS@
|
2013-01-03 12:37:42 -08:00
|
|
|
|
|
|
|
bin_eeze_eeze_scanner_SOURCES = \
|
|
|
|
bin/eeze/eeze_scanner.c \
|
|
|
|
bin/eeze/eeze_scanner.h
|
2013-01-14 14:36:23 -08:00
|
|
|
bin_eeze_eeze_scanner_CPPFLAGS = @EEZE_CFLAGS@
|
|
|
|
bin_eeze_eeze_scanner_LDADD = @USE_EEZE_LIBS@
|
|
|
|
bin_eeze_eeze_scanner_DEPENDENCIES = @USE_EEZE_INTERNAL_LIBS@
|
2013-01-03 12:37:42 -08:00
|
|
|
|
|
|
|
setuid_root_mode = a=rx,u+xs
|
|
|
|
install-data-hook::
|
|
|
|
@chmod $(setuid_root_mode) $(DESTDIR)$(bindir)/eeze_scanner$(EXEEXT) || true
|
|
|
|
|
|
|
|
|
|
|
|
### Unit tests
|
|
|
|
|
|
|
|
if EFL_ENABLE_TESTS
|
|
|
|
|
|
|
|
check_PROGRAMS += tests/eeze/eeze_suite
|
|
|
|
|
|
|
|
tests_eeze_eeze_suite_SOURCES = tests/eeze/eeze_suite.c
|
|
|
|
tests_eeze_eeze_suite_CPPFLAGS = \
|
|
|
|
-DTESTS_SRC_DIR=\"$(top_srcdir)/src/tests/eeze\" \
|
2013-01-14 14:36:23 -08:00
|
|
|
@EEZE_CFLAGS@ \
|
2013-01-03 12:37:42 -08:00
|
|
|
@CHECK_CFLAGS@
|
2013-01-14 14:36:23 -08:00
|
|
|
tests_eeze_eeze_suite_LDADD = @CHECK_LIBS@ @USE_EEZE_LIBS@
|
|
|
|
tests_eeze_eeze_suite_DEPENDENCIES = @USE_EEZE_INTERNAL_LIBS@
|
2013-01-03 12:37:42 -08:00
|
|
|
endif
|
2013-01-04 12:55:12 -08:00
|
|
|
endif
|