summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Buesch <m@bues.ch>2014-02-06 19:09:20 +0100
committerMichael Buesch <m@bues.ch>2014-02-06 19:09:20 +0100
commit439c7e2f67454a4fc107f760f9e1c43fda0e9f36 (patch)
tree33bb2776fa54ab4a35689f5b53b496d9dcc15fb2
parent8fc796e82d9f2110091e3a3fcd3f5f025d641071 (diff)
downloadmoistcontrol-439c7e2f67454a4fc107f760f9e1c43fda0e9f36.tar.xz
moistcontrol-439c7e2f67454a4fc107f760f9e1c43fda0e9f36.zip
Add compile helper for windows
Signed-off-by: Michael Buesch <m@bues.ch>
-rw-r--r--firmware/compile-win.bat24
1 files changed, 24 insertions, 0 deletions
diff --git a/firmware/compile-win.bat b/firmware/compile-win.bat
new file mode 100644
index 0000000..97029ee
--- /dev/null
+++ b/firmware/compile-win.bat
@@ -0,0 +1,24 @@
+@echo off
+
+echo ************************************************************
+echo ************************************************************
+echo INFO: If make.exe, avr-gcc.exe or other tools are not found,
+echo please make sure the AVR GCC toolchain is in your PATH
+echo environment variable.
+echo ************************************************************
+echo ************************************************************
+
+
+rem Some bad guesses for toolchain paths...
+set "PATH=%PATH%;%PROGRAMFILES%\Atmel\AVR Tools\AVR Toolchain\bin"
+set "PATH=%PATH%;%PROGRAMFILES%\Atmel\Atmel Studio 6.1\shellUtils"
+set "PATH=%PATH%;%PROGRAMFILES%\Atmel\Atmel Toolchain\AVR8 GCC\Native\3.4.2.1002\avr8-gnu-toolchain\bin"
+
+
+echo Cleaning source tree...
+make.exe distclean V=1 BINEXT=.exe NODEPS=1
+
+echo Compiling...
+make.exe V=1 BINEXT=.exe NODEPS=1
+
+pause
bues.ch cgit interface