summaryrefslogtreecommitdiff
path: root/src/modules/battery/Makefile.am
blob: fdfa2f7cce1eb49cf27c8b13077395c03c1fabf2 (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
38
39
40
41
42
43
MAINTAINERCLEANFILES = Makefile.in
MODULE = battery

# data files for the module
filesdir = $(libdir)/enlightenment/modules/$(MODULE)
files_DATA = \
e-module-$(MODULE).edj module.desktop

EXTRA_DIST = $(files_DATA)

# the module .so file
INCLUDES               = -I. \
                         -I$(top_srcdir) \
                         -I$(top_srcdir)/src/modules/$(MODULE) \
                         -I$(top_srcdir)/src/bin \
                         -I$(top_srcdir)/src/lib \
                         -I$(top_srcdir)/src/modules \
                         @e_cflags@ \
			 @cf_cflags@
pkgdir                 = $(libdir)/enlightenment/modules/$(MODULE)/$(MODULE_ARCH)
pkg_LTLIBRARIES        = module.la
module_la_SOURCES      = e_mod_main.c \
                         e_mod_main.h \
			 e_mod_config.c
module_la_LIBADD       = @e_libs@ @cf_libs@ @dlopen_libs@
module_la_LDFLAGS      = -module -avoid-version
module_la_DEPENDENCIES = $(top_builddir)/config.h

batgetdir = $(pkgdir)
batget_DATA = \
batget$(EXEEXT)

x_mode = a=rx,u+x
install-data-hook:
	@chmod $(x_mode) $(DESTDIR)$(batgetdir)/batget$(EXEEXT) || true

noinst_PROGRAMS        = batget
batget_SOURCES         = batget.c
batget_LDFLAGS         = @BATTERY_LIBS@


uninstall:
	rm -rf $(DESTDIR)$(libdir)/enlightenment/modules/$(MODULE)