1
2CFLAGS += -I .
3
4kernel_driver_hid_subdirs:= usbhid
5
6kernel_driver_hid_objs:= $(shell find ./*.c)
7
8ECHO:
9	@echo "$@"
10
11$(kernel_driver_hid_subdirs): ECHO
12	$(MAKE) -C $@ all CFLAGS="$(CFLAGS)" ASFLAGS="$(ASFLAGS)" PIC="$(PIC)"
13
14$(kernel_driver_hid_objs): ECHO
15	$(CC) $(CFLAGS) -c $@ -o $@.o
16
17all: $(kernel_driver_hid_objs) $(kernel_driver_hid_subdirs)
18	@echo $(kernel_driver_hid_objs)
19
20