update for beta release
[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 if HAVE_OPENBSD
8 DEVICE_FILE = e_mod_openbsd.c
9 else
10 DEVICE_FILE = e_mod_dbus.c
11 endif
12 endif
13
14 # data files for the module
15 filesdir = $(libdir)/enlightenment/modules/$(MODULE)
16 files_DATA = \
17 e-module-$(MODULE).edj module.desktop
18
19 EXTRA_DIST = $(files_DATA)
20
21 # the module .so file
22 INCLUDES               = -I. \
23                          -I$(top_srcdir) \
24                          -I$(top_srcdir)/src/modules/$(MODULE) \
25                          -I$(top_srcdir)/src/bin \
26                          -I$(top_builddir)/src/bin \
27                          -I$(top_srcdir)/src/modules \
28                          @e_cflags@ \
29                          @cf_cflags@
30 pkgdir                 = $(libdir)/enlightenment/modules/$(MODULE)/$(MODULE_ARCH)
31 pkg_LTLIBRARIES        = module.la
32 module_la_SOURCES      = e_mod_main.c \
33                          e_mod_main.h \
34                          e_mod_config.c \
35                          $(DEVICE_FILE)
36
37 module_la_LIBADD       = @e_libs@ @cf_libs@ @dlopen_libs@
38 module_la_LDFLAGS      = -module -avoid-version
39 module_la_DEPENDENCIES = $(top_builddir)/config.h
40
41 batgetdir = $(pkgdir)
42
43 batget_PROGRAMS        = batget
44 batget_SOURCES         = batget.c
45 batget_LDADD           = @BATTERY_LIBS@
46 batget_LDFLAGS         = @BATTERY_LDFLAGS@
47
48
49 uninstall:
50         rm -rf $(DESTDIR)$(libdir)/enlightenment/modules/$(MODULE)