Update SVN line endings property on newer source files to native.
[pub/USBasp.git] / BuildTests / BoardDriverTest / makefile
index 6ed32a4..4325620 100644 (file)
@@ -1,66 +1,66 @@
-#\r
-#             LUFA Library\r
-#     Copyright (C) Dean Camera, 2012.\r
-#\r
-#  dean [at] fourwalledcubicle [dot] com\r
-#           www.lufa-lib.org\r
-#\r
-\r
-# Makefile for the board driver build test. This\r
-# test attempts to build a dummy project with all\r
-# possible board targets using their respective\r
-# compiler.\r
-\r
-# Path to the LUFA library core\r
-LUFA_PATH         = ../../LUFA/\r
-\r
-\r
-all: begin makeboardlist testboards clean end\r
-\r
-begin:\r
-       @echo Executing build test "BoardDriverTest".\r
-       @echo\r
-\r
-end:\r
-       @echo Build test "BoardDriverTest" complete.\r
-       @echo\r
-\r
-makeboardlist:\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
-       \r
-       @while read line;                                                                               \\r
-        do                                                                                             \\r
-          build_cfg=`grep "$$line " BoardDeviceMap.cfg | grep -v "#" | cut -d'=' -f2- | sed 's/ //g'`; \\r
-                                                                                                       \\r
-          build_board=$$line;                                                                          \\r
-          build_arch=`echo $$build_cfg | cut -d':' -f1`;                                               \\r
-          build_mcu=`echo $$build_cfg | cut -d':' -f2`;                                                \\r
-                                                                                                       \\r
-          if ( test -z "$$build_cfg" ); then                                                           \\r
-            echo "No matching information set for board $$build_board";                                \\r
-          else                                                                                         \\r
-            echo "Found board configuration for $$build_board - $$build_arch, $$build_mcu";            \\r
-                                                                                                           \\r
-                printf "\t@echo Building dummy project for $$build_board...\n" >> BuildMakefile;           \\r
-                printf "\t$(MAKE) -s -f makefile.test clean elf MCU=%s ARCH=%s BOARD=%s\n\n" $$build_mcu $$build_arch $$build_board >> BuildMakefile; \\r
-          fi;                                                                                          \\r
-        done < BoardList.txt\r
-        \r
-        $(MAKE) -f BuildMakefile buildtest\r
-\r
-clean:\r
-       rm -f BuildMakefile\r
-       rm -f BoardList.txt\r
-       $(MAKE) -s -f makefile.test clean ARCH=AVR8 MCU=at90usb1287\r
-       $(MAKE) -s -f makefile.test clean ARCH=XMEGA MCU=atxmega128a1u\r
-       $(MAKE) -s -f makefile.test clean ARCH=UC3 MCU=uc3a0256\r
-\r
-%:\r
-\r
-.PHONY: all begin end makeboardlist testboards clean\r
-\r
-# Include LUFA build script makefiles\r
-include $(LUFA_PATH)/Build/lufa.core.in\r
+#
+#             LUFA Library
+#     Copyright (C) Dean Camera, 2012.
+#
+#  dean [at] fourwalledcubicle [dot] com
+#           www.lufa-lib.org
+#
+
+# Makefile for the board driver build test. This
+# test attempts to build a dummy project with all
+# possible board targets using their respective
+# compiler.
+
+# Path to the LUFA library core
+LUFA_PATH         = ../../LUFA/
+
+
+all: begin makeboardlist testboards clean end
+
+begin:
+       @echo Executing build test "BoardDriverTest".
+       @echo
+
+end:
+       @echo Build test "BoardDriverTest" complete.
+       @echo
+
+makeboardlist:
+       @grep "BOARD_" $(patsubst %/,%,$(LUFA_PATH))/Common/BoardTypes.h | cut -d'#' -f2 | cut -d' ' -f2 | grep "BOARD_" > BoardList.txt
+       
+testboards:
+       @echo "buildtest:" > BuildMakefile
+       
+       @while read line;                                                                               \
+        do                                                                                             \
+          build_cfg=`grep "$$line " BoardDeviceMap.cfg | grep -v "#" | cut -d'=' -f2- | sed 's/ //g'`; \
+                                                                                                       \
+          build_board=$$line;                                                                          \
+          build_arch=`echo $$build_cfg | cut -d':' -f1`;                                               \
+          build_mcu=`echo $$build_cfg | cut -d':' -f2`;                                                \
+                                                                                                       \
+          if ( test -z "$$build_cfg" ); then                                                           \
+            echo "No matching information set for board $$build_board";                                \
+          else                                                                                         \
+            echo "Found board configuration for $$build_board - $$build_arch, $$build_mcu";            \
+                                                                                                           \
+                printf "\t@echo Building dummy project for $$build_board...\n" >> BuildMakefile;           \
+                printf "\t$(MAKE) -s -f makefile.test clean elf MCU=%s ARCH=%s BOARD=%s\n\n" $$build_mcu $$build_arch $$build_board >> BuildMakefile; \
+          fi;                                                                                          \
+        done < BoardList.txt
+        
+        $(MAKE) -f BuildMakefile buildtest
+
+clean:
+       rm -f BuildMakefile
+       rm -f BoardList.txt
+       $(MAKE) -s -f makefile.test clean ARCH=AVR8 MCU=at90usb1287
+       $(MAKE) -s -f makefile.test clean ARCH=XMEGA MCU=atxmega128a1u
+       $(MAKE) -s -f makefile.test clean ARCH=UC3 MCU=uc3a0256
+
+%:
+
+.PHONY: all begin end makeboardlist testboards clean
+
+# Include LUFA build script makefiles
+include $(LUFA_PATH)/Build/lufa.core.in