# possible board targets using their respective\r
# compiler.\r
\r
-# Path to the root of the LUFA tree to scan\r
-LUFA_ROOT_PATH = ../..\r
+# Path to the LUFA library core\r
+LUFA_PATH = ../../LUFA/\r
\r
\r
all: begin makeboardlist testboards clean end\r
@echo\r
\r
makeboardlist:\r
- @grep "BOARD_" $(LUFA_ROOT_PATH)/LUFA/Common/BoardTypes.h | cut -d'#' -f2 | cut -d' ' -f2 | grep "BOARD_" > BoardList.txt\r
+ @grep "BOARD_" $(patsubst %/,%,$(LUFA_PATH))/Common/BoardTypes.h | cut -d'#' -f2 | cut -d' ' -f2 | grep "BOARD_" > BoardList.txt\r
\r
testboards:\r
@echo "buildtest:" > BuildMakefile\r
$(MAKE) -s -f makefile.test clean ARCH=UC3\r
\r
%:\r
-
\ No newline at end of file
+\r
+.PHONY: all begin end makeboardlist testboards clean\r
+\r
+# Include LUFA build script makefiles\r
+include $(LUFA_PATH)/Build/lufa.core.in\r