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/make.rb b/aos/externals/WPILib/make.rb
new file mode 100644
index 0000000..a22969d
--- /dev/null
+++ b/aos/externals/WPILib/make.rb
@@ -0,0 +1,23 @@
+
+$excludes = [/Vision2009/,/CInterfaces/,/NetworkTables/,/SmartDashboard/,/Commands/,/Buttons/,/Preferences/,/swp$/]
+
+files = `find WPILib`.split(/\n/).collect do |file|
+ if(file =~ /.*\.cpp/)
+ file.gsub!(/cpp\Z/,"o")
+ $excludes.each do |exclude|
+ if(file && file =~ exclude)
+ file = nil
+ end
+ end
+ file
+ end
+end.compact
+
+make = "make -f ../module.mk"
+defines = "DEFINES=-D\'SVN_REV=\\\"2262\\\"\'"
+added_includes = "ADDED_INCLUDES=-I./WPILib/"
+outfile = "wpilib.out PROJECT_TARGET=wpilib.out"
+objects = "PROJECT_OBJECTS=\"#{files.join(" ")}\""
+
+cmd = "#{make} #{outfile} #{added_includes} #{defines} #{objects}"
+system cmd