dect
/
linux-2.6
Archived
13
0
Fork 0

power_supply: Makefile cleanup

Replace EXTRA_CFLAGS with ccflags-y; remove if-statements and replace
with lists using the kbuild idiom.

None of the dependencies are modified.

Signed-off-by: matt mooney <mfm@muteddisk.com>
Signed-off-by: Anton Vorontsov <cbouatmailru@gmail.com>
This commit is contained in:
matt mooney 2010-10-06 00:46:27 -07:00 committed by Anton Vorontsov
parent 9292585c67
commit 5789451713
1 changed files with 4 additions and 12 deletions

View File

@ -1,16 +1,8 @@
power_supply-objs := power_supply_core.o
ccflags-$(CONFIG_POWER_SUPPLY_DEBUG) := -DDEBUG
ifeq ($(CONFIG_SYSFS),y)
power_supply-objs += power_supply_sysfs.o
endif
ifeq ($(CONFIG_LEDS_TRIGGERS),y)
power_supply-objs += power_supply_leds.o
endif
ifeq ($(CONFIG_POWER_SUPPLY_DEBUG),y)
EXTRA_CFLAGS += -DDEBUG
endif
power_supply-y := power_supply_core.o
power_supply-$(CONFIG_SYSFS) += power_supply_sysfs.o
power_supply-$(CONFIG_LEDS_TRIGGERS) += power_supply_leds.o
obj-$(CONFIG_POWER_SUPPLY) += power_supply.o