1 # Info for make, this will be preprocessed by autoconf.
3 exec_prefix = @
exec_prefix@
4 datarootdir
= @datarootdir@
6 icondir
= @
datadir@
/icons
/wmbattery
7 man1dir = @
mandir@
/man1
10 PACKAGE_NAME
= @PACKAGE_NAME@
11 PACKAGE_TARNAME
= @PACKAGE_TARNAME@
12 PACKAGE_VERSION
= @PACKAGE_VERSION@
15 CFLAGS
= @CFLAGS@
-Wall @Xlib_CFLAGS@ @Xext_CFLAGS@ @libXpm_CFLAGS@
16 CPPFLAGS
= @CPPFLAGS@
-DACPI_APM
-DICONDIR
=\"$(icondir
)\"
18 INSTALL_DATA
= @INSTALL_DATA@
19 INSTALL_PROGRAM
= @INSTALL_PROGRAM@
21 LIBS
= @LIBS@ @Xlib_LIBS@ @Xext_LIBS@ @libXpm_LIBS@
23 USE_UPOWER
= @USE_UPOWER@
31 rm -rf autom4te.cache config.status config.cache config.log config.h \
35 $(INSTALL
) -d
$(DESTDIR
)$(bindir) $(DESTDIR
)$(man1dir) $(DESTDIR
)$(icondir
)
36 $(INSTALL_PROGRAM
) wmbattery
$(DESTDIR
)$(bindir)
37 $(INSTALL_DATA
) $(srcdir)/wmbattery
.1 $(DESTDIR
)$(man1dir)/wmbattery
.1
38 $(INSTALL_DATA
) $(srcdir)/*.xpm
$(DESTDIR
)$(icondir
)
41 rm -rf
$(bindir)/wmbattery
$(man1dir)/wmbattery
.1 $(icondir
)
44 @
test -d
$(PACKAGE_NAME
)-$(PACKAGE_VERSION
) \
45 && rm -fr
$(PACKAGE_NAME
)-$(PACKAGE_VERSION
) ||
:
46 @
$(INSTALL
) -d
$(PACKAGE_NAME
)-$(PACKAGE_VERSION
)
47 @
$(INSTALL
) -d
$(PACKAGE_NAME
)-$(PACKAGE_VERSION
)/autoconf
49 ! -name autogen
! -name configure
! -name .gitignore \
50 ! -name config.status
! -name config.cache
! -name config.log \
51 ! -name config.h
! -name Makefile \
52 ! -name
$(PACKAGE_TARNAME
)-$(PACKAGE_VERSION
).
tar.gz \
53 ! -path
'./autoconf/*' \
54 ! -path
'./autom4te.cache/*' \
55 ! -path
'./$(PACKAGE_NAME)-$(PACKAGE_VERSION)/*' \
56 -exec
$(INSTALL_DATA
) '{}' $(PACKAGE_NAME
)-$(PACKAGE_VERSION
) \
;
57 @
$(INSTALL_PROGRAM
) autogen configure
$(PACKAGE_NAME
)-$(PACKAGE_VERSION
)
58 @
$(INSTALL_PROGRAM
) autoconf
/* $(PACKAGE_NAME
)-$(PACKAGE_VERSION
)/autoconf
59 @
tar cf
- $(PACKAGE_NAME
)-$(PACKAGE_VERSION
) \
60 | gzip
>$(PACKAGE_TARNAME
)-$(PACKAGE_VERSION
).
tar.gz
61 @
rm -fr
$(PACKAGE_NAME
)-$(PACKAGE_VERSION
)
63 OBJS
=wmbattery.o acpi.o sonypi.o
67 CFLAGS
+= @hal_CFLAGS@
74 CFLAGS
+= @upower_CFLAGS@
80 $(CC
) -o wmbattery
$(LDFLAGS
) $(OBJS
) $(LIBS
)
82 wmbattery.o
: wmbattery.c wmbattery.h