build files

This commit is contained in:
Sam Hatchett
2015-06-12 10:34:06 -04:00
parent 87a8aaaef8
commit 2d064c60ec
9 changed files with 98 additions and 443 deletions

17
build/WinSDK/Readme.txt Normal file
View File

@@ -0,0 +1,17 @@
For compiling EPANET2.DLL :
Open the EPANET.C file and make sure that the line
#define DLL
is not commented out while the lines
#define CLE
#define SOL
are commented out.
For compiling EPANET2.EXE :
Open the EPANET.C file and make sure that the line
#define CLE
is not commented out while the lines
#define DLL
#define SOL
are commented out.

View File

@@ -0,0 +1,11 @@
rem : set path to Windows SDK
SET SDK_PATH="C:\Program Files\Microsoft SDKs\Windows\v7.1\Bin\"
rem : set path for source EPANET files
SET SRC_PATH="D:\Projects\EPANET\Open Source\Code\owa\EPANET\src"
CALL %SDK_PATH%SetEnv.cmd /x86 /release
CHDIR /D %SRC_PATH%
rem : do the magic ...
cl -o epanet2.dll epanet.c hash.c hydraul.c inpfile.c input1.c input2.c input3.c mempool.c output.c quality.c report.c rules.c smatrix.c /I ..\include /I ..\run /link /DLL /def:epanet2.def /MAP

View File

@@ -0,0 +1,11 @@
rem : set path to Windows SDK
SET SDK_PATH="C:\Program Files\Microsoft SDKs\Windows\v7.1\Bin\"
rem : set path for source EPANET files
SET SRC_PATH="D:\Projects\EPANET\Open Source\Code\owa\EPANET\src"
CALL %SDK_PATH%SetEnv.cmd /x86 /release
CHDIR /D %SRC_PATH%
rem : do the magic ...
cl -o epanet2.exe ..\run\main.c /I ..\include /I ..\run /I ..\src /link