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
11 CFLAGS
= @CFLAGS@
-Wall @Xlib_CFLAGS@ @Xext_CFLAGS@ @libXpm_CFLAGS@
12 CPPFLAGS
= @CPPFLAGS@
-DACPI_APM
-DICONDIR
=\"$(icondir
)\"
14 INSTALL_DATA
= @INSTALL_DATA@
15 INSTALL_PROGRAM
= @INSTALL_PROGRAM@
17 LIBS
= @LIBS@ @Xlib_LIBS@ @Xext_LIBS@ @libXpm_LIBS@
19 USE_UPOWER
= @USE_UPOWER@
27 rm -f config.status config.cache config.log
makeinfo config.h \
31 $(INSTALL
) -d
$(DESTDIR
)$(bindir) $(DESTDIR
)$(man1dir) $(DESTDIR
)$(icondir
)
32 $(INSTALL_PROGRAM
) wmbattery
$(DESTDIR
)$(bindir)
33 $(INSTALL_DATA
) $(srcdir)/wmbattery
.1 $(DESTDIR
)$(man1dir)/wmbattery
.1
34 $(INSTALL_DATA
) $(srcdir)/*.xpm
$(DESTDIR
)$(icondir
)
37 rm -rf
$(bindir)/wmbattery
$(man1dir)/wmbattery
.1 $(icondir
)
39 OBJS
=wmbattery.o acpi.o sonypi.o
43 CFLAGS
+= @HAL_CFLAGS@
46 simplehal.o
: simplehal.c
47 $(CC
) $(CPPFLAGS
) $(CFLAGS
) -c simplehal.c
-o simplehal.o
52 CFLAGS
+= @UPOWER_GLIB_CFLAGS@
53 LIBS
+= @UPOWER_GLIB_LIBS@
56 $(CC
) $(CPPFLAGS
) $(CFLAGS
) -c upower.c
-o upower.o
60 $(CC
) -o wmbattery
$(LDFLAGS
) $(OBJS
) $(LIBS
)
62 wmbattery.o
: wmbattery.c wmbattery.h