fix DOS command line build using build.bat or build.sh file (#272)

Co-authored-by: Steve Karg <skarg@users.sourceforge.net>
This commit is contained in:
Steve Karg
2022-05-12 14:38:04 -05:00
committed by GitHub
parent b0bed813de
commit 1c1b676247
2 changed files with 23 additions and 10 deletions
+13 -5
View File
@@ -1,10 +1,18 @@
@echo off @echo off
echo Build with MinGW and MSYS: mingw.sourceforge.net echo Build with MinGW32 and MSYS: mingw.sourceforge.net
rem set PATH=C:\MinGW\msys\1.0\bin;C:\MinGW\bin set PATH=C:\MinGW\msys\1.0\bin;C:\MinGW\bin;%PATH%
rem assumes rm, cp, size are already in path rem assumes rm, cp, size are already in path
set CC=gcc set CC=mingw32-gcc.exe
set AR=ar set AR=mingw32-gcc-ar.exe
set MAKE=make set NM=mingw32-gcc-nm.exe
set NM=mingw32-gcc-nm.exe
set OBJCOPY=objcopy.exe
set SIZE=size.exe
set MAKE=mingw32-make.exe
doskey make = mingw32-make.exe $*
make BACNET_PORT=win32 clean
make BACNET_PORT=win32 BUILD=release clean all make BACNET_PORT=win32 BUILD=release clean all
rem Build for MinGW debug rem Build for MinGW debug
+10 -5
View File
@@ -1,7 +1,12 @@
#!/bin/sh #!/bin/sh
rm -rf _build alias make=mingw32-make.exe
mkdir _build PATH=/c/MinGW/bin:$PATH
cd _build export MAKE=mingw32-make.exe
cmake .. export CC=mingw32-gcc.exe
make export OBJCOPY=objcopy.exe
export AR=ar.exe
export SIZE=size.exe
make clean
make all