Move LUFA compile time options to a new section in the application makefiles for...
[pub/USBasp.git] / Demos / OTG / TestApp / makefile
index 55b9881..b5c50bb 100644 (file)
@@ -122,6 +122,10 @@ OBJDIR = .
 LUFA_PATH = ../../..\r
 \r
 \r
+# LUFA library compile-time options\r
+LUFA_OPTS  = USE_NONSTANDARD_DESCRIPTOR_NAMES\r
+\r
+\r
 # List C source files here. (C dependencies are automatically generated.)\r
 SRC = $(TARGET).c                                                 \\r
          TestEvents.c                                                \\r
@@ -184,8 +188,7 @@ CSTANDARD = -std=gnu99
 \r
 \r
 # Place -D or -U options here for C sources\r
-CDEFS  = -DF_CPU=$(F_CPU)UL -DF_CLOCK=$(F_CLOCK)UL -DBOARD=BOARD_$(BOARD)\r
-CDEFS += -DUSE_NONSTANDARD_DESCRIPTOR_NAMES\r
+CDEFS  = -DF_CPU=$(F_CPU)UL -DF_CLOCK=$(F_CLOCK)UL -DBOARD=BOARD_$(BOARD) $(patsubst %,-D%,$(LUFA_OPTS))\r
 \r
 \r
 # Place -D or -U options here for ASM sources\r