diff options
-rw-r--r-- | lufa.mk | 2 | ||||
-rw-r--r-- | rf433send/Makefile | 2 | ||||
-rw-r--r-- | usb-i2c-sl018/Makefile | 2 | ||||
-rw-r--r-- | usb-led/Makefile | 2 | ||||
-rw-r--r-- | usb-serial/Makefile | 2 | ||||
-rw-r--r-- | usb-spi/Makefile | 2 |
6 files changed, 11 insertions, 1 deletions
@@ -23,7 +23,7 @@ include ../defines.mk
include $(LUFA_PATH)/LUFA/makefile
-SRC = $(LUFA_SRC_USB) $(LUFA_SRC_USBCLASS)
+SRC:=$(foreach COMP,$(LUFA_COMPONENTS),$(LUFA_SRC_$(COMP)))
CFLAGS += -DF_USB=$(F_USB)UL
CFLAGS += -DBOARD=BOARD_$(LUFA_BOARD)
diff --git a/rf433send/Makefile b/rf433send/Makefile index 04b484d..1cbd877 100644 --- a/rf433send/Makefile +++ b/rf433send/Makefile @@ -40,4 +40,6 @@ LUFA_OPTS += -D INTERRUPT_CONTROL_ENDPOINT LUFA_OPTS += -D USB_MANUFACTURER="L\"equinox\""
LUFA_OPTS += -D USB_PRODUCT="L\"$(NAME)\""
+LUFA_COMPONENTS := USB USBCLASS
+
include ../include.mk
diff --git a/usb-i2c-sl018/Makefile b/usb-i2c-sl018/Makefile index 738e7e7..f505450 100644 --- a/usb-i2c-sl018/Makefile +++ b/usb-i2c-sl018/Makefile @@ -39,4 +39,6 @@ LUFA_OPTS += -D INTERRUPT_CONTROL_ENDPOINT LUFA_OPTS += -D USB_MANUFACTURER="L\"equinox\""
LUFA_OPTS += -D USB_PRODUCT="L\"$(NAME)\""
+LUFA_COMPONENTS := USB USBCLASS TWI
+
include ../include.mk
diff --git a/usb-led/Makefile b/usb-led/Makefile index d73cb3e..8188c95 100644 --- a/usb-led/Makefile +++ b/usb-led/Makefile @@ -39,4 +39,6 @@ LUFA_OPTS += -D INTERRUPT_CONTROL_ENDPOINT LUFA_OPTS += -D USB_MANUFACTURER="L\"equinox\""
LUFA_OPTS += -D USB_PRODUCT="L\"$(NAME)\""
+LUFA_COMPONENTS := USB USBCLASS
+
include ../include.mk
diff --git a/usb-serial/Makefile b/usb-serial/Makefile index 7ec4afa..84f0c7e 100644 --- a/usb-serial/Makefile +++ b/usb-serial/Makefile @@ -39,4 +39,6 @@ LUFA_OPTS += -D INTERRUPT_CONTROL_ENDPOINT LUFA_OPTS += -D USB_MANUFACTURER="L\"equinox\""
LUFA_OPTS += -D USB_PRODUCT="L\"$(NAME)\""
+LUFA_COMPONENTS := USB USBCLASS SERIAL
+
include ../include.mk
diff --git a/usb-spi/Makefile b/usb-spi/Makefile index 15b9bde..be3367a 100644 --- a/usb-spi/Makefile +++ b/usb-spi/Makefile @@ -39,4 +39,6 @@ LUFA_OPTS += -D INTERRUPT_CONTROL_ENDPOINT LUFA_OPTS += -D USB_MANUFACTURER="L\"equinox\""
LUFA_OPTS += -D USB_PRODUCT="L\"$(NAME)\""
+LUFA_COMPONENTS := USB USBCLASS
+
include ../include.mk
|