diff options
author | Jörg Frings-Fürst <debian@jff-webhosting.net> | 2014-07-06 18:04:32 +0200 |
---|---|---|
committer | Jörg Frings-Fürst <debian@jff-webhosting.net> | 2014-07-06 18:04:32 +0200 |
commit | a7f89980e5b3f4b9a74c70dbc5ffe8aabd28be28 (patch) | |
tree | 41c4deec1fdfbafd7821b4ca7a9772ac0abd92f5 /buildwin2.cmd |
Imported Upstream version 2.9.3upstream/2.9.3
Diffstat (limited to 'buildwin2.cmd')
-rw-r--r-- | buildwin2.cmd | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/buildwin2.cmd b/buildwin2.cmd new file mode 100644 index 0000000..c4fff81 --- /dev/null +++ b/buildwin2.cmd @@ -0,0 +1,31 @@ +@echo off
+REM # buildwin2.cmd
+REM # build ipmiutil for windows in standalone mode
+REM # without IPMI LAN 2.0 libraries, so no SOL. Use for bootables.
+REM #
+REM # First download a copy of getopt.c getopt.h.
+REM # copy getopt.* util
+REM #
+
+REM TODO, prebuild checking:
+REM check for getopt.c,h
+
+set | findstr VCINSTALLDIR
+if %errorlevel% EQU 1 goto vcerror
+
+set UTMAKE=ipmiutil2.mak
+echo %LIBPATH% |findstr /C:amd64 >NUL
+if %errorlevel% EQU 0 set UTMAKE=ipmiutil2-64.mak
+
+cd util
+nmake /nologo -f %UTMAKE% all
+cd ..
+
+echo buildwin2 ipmiutil done
+goto done
+
+:vcerror
+echo Need to first run vcvars.bat
+
+:done
+
|