summaryrefslogtreecommitdiff
path: root/buildwin64.cmd
diff options
context:
space:
mode:
authorJörg Frings-Fürst <debian@jff-webhosting.net>2017-09-26 05:42:52 +0200
committerJörg Frings-Fürst <debian@jff-webhosting.net>2017-09-26 05:42:52 +0200
commit4d636b96fa149e64d8a716b64828d63a0b9544e5 (patch)
tree609ef00fbb38a96c214484d06bf2f990d86bbdbf /buildwin64.cmd
parent64529036a8d742cc45f4b35085205c86ab46b5e0 (diff)
parent6219857d0cc595597fa712decf9eeaabbf9d291b (diff)
Merge branch 'feature/upstream' into develop
Diffstat (limited to 'buildwin64.cmd')
-rw-r--r--buildwin64.cmd50
1 files changed, 50 insertions, 0 deletions
diff --git a/buildwin64.cmd b/buildwin64.cmd
new file mode 100644
index 0000000..ae61fbf
--- /dev/null
+++ b/buildwin64.cmd
@@ -0,0 +1,50 @@
+@echo off
+REM # buildwin.cmd
+REM # build ipmiutil for windows
+REM #
+REM # First download a copy of getopt.c getopt.h.
+REM # copy getopt.* util
+REM # Then download and build a copy of openssl for Windows,
+REM # and copy the built openssl files needed to lib & inc.
+REM # copy libeay32.lib ssleay32.lib lib
+REM # copy libeay32.dll ssleay32.dll util
+REM # copy include\openssl\*.h lib\lanplus\inc\openssl
+REM #
+REM # You should either run this from the Visual Studio Command Line,
+REM # or first run the appropriate vcvars.bat script.
+set | findstr VCINSTALLDIR
+if %errorlevel% EQU 1 goto vcerror
+
+call vcvars64.bat
+
+REM TODO, prebuild checking:
+REM check for getopt.c,h
+REM check for ssl libs
+REM check for ssl includes
+REM call mkssl
+
+set UTMAKE=ipmiutil64.mak
+echo %LIBPATH% |findstr /C:64 >NUL
+if %errorlevel% EQU 1 goto vcerror
+
+call cleanwin.cmd
+
+cd lib
+nmake /nologo -f ipmilib.mak all
+cd ..
+REM # echo make lib done
+
+cd util
+nmake /nologo -f %UTMAKE% all
+cd ..
+REM # echo make util done
+
+echo buildwin64 ipmiutil done
+goto done
+
+:vcerror
+echo Either VCINSTALLDIR is missing or LIBPATH does not include 64bit
+echo Need to run vcvars64.bat for 64bit from a fresh session
+
+:done
+