9 rm -f config.status config.cache config.log
makeinfo config.h \
13 $(INSTALL
) -d
$(DESTDIR
)$(bindir) $(DESTDIR
)$(man1dir) $(DESTDIR
)$(icondir
)
14 $(INSTALL_PROGRAM
) wmbattery
$(DESTDIR
)$(bindir)
15 $(INSTALL_DATA
) $(srcdir)/wmbattery
.1 $(DESTDIR
)$(man1dir)/wmbattery
.1
16 $(INSTALL_DATA
) $(srcdir)/*.xpm
$(DESTDIR
)$(icondir
)
19 rm -rf
$(bindir)/wmbattery
$(man1dir)/wmbattery
.1 $(icondir
)
21 OBJS
=wmbattery.o acpi.o sonypi.o
24 LIBS
+=$(shell pkg-config
--libs hal
)
27 simplehal.o
: simplehal.c
28 $(CC
) $(CFLAGS
) $(shell pkg-config
--cflags hal
) -c simplehal.c
-o simplehal.o
32 LIBS
+=$(shell pkg-config
--libs upower-glib
)
36 $(CC
) $(CPPFLAGS
) $(CFLAGS
) $(shell pkg-config
--cflags upower-glib
) -c upower.c
-o upower.o
40 $(CC
) -o wmbattery
$(LDFLAGS
) $(OBJS
) $(LIBS
)
42 wmbattery.o
: wmbattery.c wmbattery.h