Archived
1
0
This repo is archived. You can view files and clone it, but cannot push or open issues or pull requests.
controller/winbuild.sh

26 lines
552 B
Bash
Raw Normal View History

2013-04-10 18:06:10 +00:00
#!/bin/bash
#temp jo
#export PATH="/c/WinAVR-20100110/bin:/c/Program Files (x86)/CMake 2.8/bin:${PATH}"
#echo $PATH
export PATH="/c/WinAVR-20100110/bin:/c/Program Files (x86)/CMake 2.8/bin:/usr/local/bin:/usr/bin:/bin:/c/Windows/system32"
echo $PATH
which cmake.exe
which -a cmake.exe
which avr-gcc
which make
#alias cmake="cmake.exe"
#alias make="avr-nm"
#cd build
cmake -G "Unix Makefiles" -D \
CMAKE_C_COMPILER="C:/WinAVR-20100110/bin/avr-gcc.exe" \
-D CMAKE_CXX_COMPILER="C:/WinAVR-20100110/bin/avr-g++.exe" .
#cd ..
make
#nm
#./buildall.bash