c080d89ad9
hid-debug.h contains a lot of code, and should not therefore be a header. This patch moves the code to generic hid layer as .c source, and introduces CONFIG_HID_DEBUG to conditionally compile it, instead of playing with #define DEBUG and including hid-debug.h. Signed-off-by: Jiri Kosina <jkosina@suse.cz>
20 lines
283 B
Makefile
20 lines
283 B
Makefile
#
|
|
# Makefile for the HID driver
|
|
#
|
|
|
|
# Multipart objects.
|
|
hid-objs := hid-core.o hid-input.o
|
|
|
|
# Optional parts of multipart objects.
|
|
ifeq ($(CONFIG_HID_DEBUG),y)
|
|
hid-objs += hid-debug.o
|
|
endif
|
|
|
|
ifeq ($(CONFIG_INPUT_DEBUG),y)
|
|
EXTRA_CFLAGS += -DDEBUG
|
|
endif
|
|
|
|
|
|
obj-$(CONFIG_HID) += hid.o
|
|
|