wmbattery: use CPPFLAGS for defining preprocessor macros.
Signed-off-by: Jeremy Sowden <jeremy@azazel.net>
This commit is contained in:
parent
bf484198ea
commit
08912c26f3
|
@ -8,8 +8,8 @@ man1dir = @mandir@/man1
|
||||||
srcdir = @srcdir@
|
srcdir = @srcdir@
|
||||||
|
|
||||||
CC = @CC@
|
CC = @CC@
|
||||||
CFLAGS = @CFLAGS@ -Wall -DACPI_APM
|
CFLAGS = @CFLAGS@ -Wall
|
||||||
CPPFLAGS = @CPPFLAGS@ -DICONDIR=\"$(icondir)\"
|
CPPFLAGS = @CPPFLAGS@ -DACPI_APM -DICONDIR=\"$(icondir)\"
|
||||||
INSTALL = @INSTALL@
|
INSTALL = @INSTALL@
|
||||||
INSTALL_DATA = @INSTALL_DATA@
|
INSTALL_DATA = @INSTALL_DATA@
|
||||||
INSTALL_PROGRAM = @INSTALL_PROGRAM@
|
INSTALL_PROGRAM = @INSTALL_PROGRAM@
|
||||||
|
@ -42,17 +42,17 @@ uninstall:
|
||||||
OBJS=wmbattery.o acpi.o sonypi.o
|
OBJS=wmbattery.o acpi.o sonypi.o
|
||||||
|
|
||||||
ifdef USE_HAL
|
ifdef USE_HAL
|
||||||
LIBS+=$(shell pkg-config --libs hal)
|
CPPFLAGS += -DHAL
|
||||||
OBJS+=simplehal.o
|
LIBS += $(shell pkg-config --libs hal)
|
||||||
CFLAGS+=-DHAL
|
OBJS += simplehal.o
|
||||||
simplehal.o: simplehal.c
|
simplehal.o: simplehal.c
|
||||||
$(CC) $(CFLAGS) $(shell pkg-config --cflags hal) -c simplehal.c -o simplehal.o
|
$(CC) $(CPPFLAGS) $(CFLAGS) $(shell pkg-config --cflags hal) -c simplehal.c -o simplehal.o
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifdef USE_UPOWER
|
ifdef USE_UPOWER
|
||||||
LIBS+=$(shell pkg-config --libs upower-glib)
|
CPPFLAGS += -DUPOWER
|
||||||
OBJS+=upower.o
|
LIBS += $(shell pkg-config --libs upower-glib)
|
||||||
CFLAGS+=-DUPOWER
|
OBJS += upower.o
|
||||||
upower.o: upower.c
|
upower.o: upower.c
|
||||||
$(CC) $(CPPFLAGS) $(CFLAGS) $(shell pkg-config --cflags upower-glib) -c upower.c -o upower.o
|
$(CC) $(CPPFLAGS) $(CFLAGS) $(shell pkg-config --cflags upower-glib) -c upower.c -o upower.o
|
||||||
endif
|
endif
|
||||||
|
|
Loading…
Reference in a new issue