copied everything over from 2012 and removed all of the actual robot code except the drivetrain stuff


git-svn-id: https://robotics.mvla.net/svn/frc971/2013/trunk/src@4078 f308d9b7-e957-4cde-b6ac-9a88185e7312
diff --git a/aos/externals/WPILib/Makefile b/aos/externals/WPILib/Makefile
new file mode 100644
index 0000000..6e13be8
--- /dev/null
+++ b/aos/externals/WPILib/Makefile
@@ -0,0 +1,25 @@
+all: make.rb WPILib.a
+	#ruby make.rb
+clean:
+	rm -f *.out WPILib/*.o WPILib/*/*.o *.d
+
+deploy: all
+	ncftpput robot /ni-rt/system/ wpilib.out
+
+wpilibupdate.exe:
+	wget http://firstforge.wpi.edu/sf/frs/do/downloadFile/projects.wpilib/frs.2012_update_for_c.frc_update_3111/frs1405?dl=1 -O wpilibupdate.exe
+
+WPILib: wpilibupdate.exe
+	mkdir wpilibinstaller
+	cd wpilibinstaller
+	unzip wpilibupdate.exe -d wpilibinstaller/ | tee wpilibinstaller/unziplog.txt
+	cat wpilibinstaller/unziplog.txt | grep "inflating: wpilibinstaller/.*\.zip" | sed "s/.*\(wpilibinstaller\/.*\.zip\).*/\1/" | xargs -I '{}' cp '{}' ./
+	#cat wpilibinstaller/unziplog.txt | grep "inflating: wpilibinstaller/.*\.zip" | sed "s/.*wpilibinstaller\/\(.*\.zip\).*/\1/" | xargs -I '{}' ln -s '{}' ./WPILib.zip
+	unzip -a WPILib*.zip
+	rm -r wpilibinstaller
+	rm -f wpilib_page1.url wpilib_page2.url wpilib_page3.url
+
+WPILib.a: wpilibupdate.exe
+	unzip wpilibupdate.exe
+	cp vxworks-6.3/target/lib/WPILib.a ./
+