forked from bacnet-stack/bacnet-stack
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.bat
26 lines (21 loc) · 805 Bytes
/
build.bat
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
26
@echo off
echo Build with MinGW32 and MSYS: mingw.sourceforge.net
set PATH=C:\MinGW\msys\1.0\bin;C:\MinGW\bin;%PATH%
rem assumes rm, cp, size are already in path
set CC=mingw32-gcc.exe
set AR=mingw32-gcc-ar.exe
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
rem Build for MinGW debug
rem make BACNET_PORT=win32 BUILD=debug clean all
rem Build for MinGW MS/TP
rem make BACNET_PORT=win32 BACDL_DEFINE=-DBACDL_MSTP=1 clean all
rem make BACNET_PORT=win32 BACDL_DEFINE=-DBACDL_BIP6=1 clean all
rem On Linux, install mingw32 and use this:
rem make BACNET_PORT=win32 CC=i586-mingw32msvc-gcc AR=i586-mingw32msvc-ar clean all