summaryrefslogtreecommitdiff
path: root/src/modules/Makefile_battery.am
blob: e0e56b988e54d12240e4c186f6ae21aa844475f4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
batterydir = $(MDIR)/battery
battery_DATA = battery/e-module-battery.edj \
	       battery/module.desktop

EXTRA_DIST += $(battery_DATA)

batterypkgdir = $(MDIR)/battery/$(MODULE_ARCH)
batterypkg_LTLIBRARIES = battery/module.la

battery_module_la_DEPENDENCIES = $(MDEPENDENCIES)
battery_module_la_CFLAGS = $(AM_CFLAGS)
battery_module_la_LIBADD = $(AM_LIBADD)
battery_module_la_SOURCES  = battery/e_mod_main.h \
			     battery/e_mod_main.c \
			     battery/e_mod_config.c

if HAVE_EEZE
battery_module_la_SOURCES += battery/e_mod_udev.c
else
if HAVE_OPENBSD
battery_module_la_SOURCES += battery/e_mod_openbsd.c
else
battery_module_la_SOURCES += battery/e_mod_dbus.c
endif
endif

if HAVE_ENOTIFY
battery_module_la_CFLAGS += @ENOTIFY_CFLAGS@
battery_module_la_LIBADD += @ENOTIFY_LIBS@
endif

batgetdir = $(batterypkgdir)
batget_PROGRAMS = battery/batget

battery_batget_SOURCES = battery/batget.c
battery_batget_LDADD   = @BATTERY_LIBS@
battery_batget_LDFLAGS = @BATTERY_LDFLAGS@