Strip trailing slash from the user-supplied LUFA_PATH directory, to prevent double...
[pub/USBasp.git] / LUFA / Build / lufa.build.in
index 2cdf667..4207f17 100644 (file)
@@ -104,7 +104,7 @@ else
   $(error Unsupported architecture.)\r
 endif\r
 CC_FLAGS += -Wall -fno-strict-aliasing -funsigned-char -funsigned-bitfields -ffunction-sections\r
-CC_FLAGS += -I. -I$(LUFA_PATH)/..\r
+CC_FLAGS += -I. -I$(patsubst %/,%,$(LUFA_PATH))/..\r
 CC_FLAGS += -DARCH=ARCH_$(ARCH) -DBOARD=BOARD_$(BOARD) -DF_USB=$(F_USB)UL\r
 ifneq ($(F_CPU),)\r
    CC_FLAGS += -DF_CPU=$(F_CPU)UL\r