From feabfd12ce3d14b43d2decb2b2f1c5b27e9d6181 Mon Sep 17 00:00:00 2001 From: Dean Camera Date: Fri, 19 Jun 2009 05:08:04 +0000 Subject: Fix makefiles -- the auto-addition of -D switches to each LUFA compile time option was faulty, due to GNUMake becomming confused by the spaces in the USE_STATIC_OPTIONS lines. Make user add in the switches explicitly instead. --- Demos/OTG/TestApp/makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Demos/OTG/TestApp') diff --git a/Demos/OTG/TestApp/makefile b/Demos/OTG/TestApp/makefile index b5c50bb61..b0021af4a 100644 --- a/Demos/OTG/TestApp/makefile +++ b/Demos/OTG/TestApp/makefile @@ -123,7 +123,7 @@ LUFA_PATH = ../../.. # LUFA library compile-time options -LUFA_OPTS = USE_NONSTANDARD_DESCRIPTOR_NAMES +LUFA_OPTS = -D USE_NONSTANDARD_DESCRIPTOR_NAMES # List C source files here. (C dependencies are automatically generated.) @@ -188,7 +188,7 @@ CSTANDARD = -std=gnu99 # Place -D or -U options here for C sources -CDEFS = -DF_CPU=$(F_CPU)UL -DF_CLOCK=$(F_CLOCK)UL -DBOARD=BOARD_$(BOARD) $(patsubst %,-D%,$(LUFA_OPTS)) +CDEFS = -DF_CPU=$(F_CPU)UL -DF_CLOCK=$(F_CLOCK)UL -DBOARD=BOARD_$(BOARD) $(LUFA_OPTS) # Place -D or -U options here for ASM sources -- cgit v1.2.3