-
-
Notifications
You must be signed in to change notification settings - Fork 48
/
Copy patharch.win32.build.bash
executable file
·26 lines (21 loc) · 1.09 KB
/
arch.win32.build.bash
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#!/bin/bash -ex
# Copyright (c) 2014-2015 Arduino LLC
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
export PATH=$PATH:/c/MinGW/bin/:/c/cygwin/bin/
CFLAGS="-DWIN32 -static" CXXFLAGS="-DWIN32 -static" LDFLAGS="-DWIN32 -static" CC="mingw32-gcc -m32" CXX="mingw32-g++ -m32" ./build.all.bash
rm -f *arduino*.tar.bz2 *arduino*.zip
zip -r -9 ./avr-gcc-4.8.1-arduino5-i686-mingw32.zip avr/
zip -r -9 ./avrdude-6.0.1-arduino5-i686-mingw32.zip avrdude-6.0.1/