afb87b8412b795f2b86b3682a277c461dba58ea0
[framework/uifw/e17.git] / src / modules / battery / Makefile.am
1 MAINTAINERCLEANFILES = Makefile.in
2 MODULE = battery
3
4 if HAVE_EEZE
5   DEVICE_FILE = e_mod_udev.c
6 else
7   DEVICE_FILE = e_mod_dbus.c
8 endif
9
10 # data files for the module
11 filesdir = $(libdir)/enlightenment/modules/$(MODULE)
12 files_DATA = \
13 e-module-$(MODULE).edj module.desktop
14
15 EXTRA_DIST = $(files_DATA)
16
17 # the module .so file
18 INCLUDES               = -I. \
19                          -I$(top_srcdir) \
20                          -I$(top_srcdir)/src/modules/$(MODULE) \
21                          -I$(top_srcdir)/src/bin \
22                          -I$(top_builddir)/src/bin \
23                          -I$(top_srcdir)/src/modules \
24                          @e_cflags@ \
25                          @cf_cflags@
26 pkgdir                 = $(libdir)/enlightenment/modules/$(MODULE)/$(MODULE_ARCH)
27 pkg_LTLIBRARIES        = module.la
28 module_la_SOURCES      = e_mod_main.c \
29                          e_mod_main.h \
30                          e_mod_config.c \
31                          $(DEVICE_FILE)
32
33 module_la_LIBADD       = @e_libs@ @cf_libs@ @dlopen_libs@
34 module_la_LDFLAGS      = -module -avoid-version
35 module_la_DEPENDENCIES = $(top_builddir)/config.h
36
37 batgetdir = $(pkgdir)
38
39 batget_PROGRAMS        = batget
40 batget_SOURCES         = batget.c
41 batget_LDADD           = @BATTERY_LIBS@
42 batget_LDFLAGS         = @BATTERY_LDFLAGS@
43
44
45 uninstall:
46         rm -rf $(DESTDIR)$(libdir)/enlightenment/modules/$(MODULE)