-------------------------------------
 INSTALL for ipmiutil source
-------------------------------------
 
The ipmiutil source package provides IPMI-based utilities and kernel 
patches for managing various servers in Linux 2.x.
 
-----------------------
  Build instructions
-----------------------

To add LanDesk IPMI support:
Support for the LanDesk IPMI driver requires a library supplied by 
LanDesk (libipmiapi.a).  After obtaining this library, place it in
lib/libipmiapi.a.  Then you can link ipmiutil to support it by 
modifying util/Makefile.am and uncommenting the lines with 
"AM_CPPFLAGS += -DLINK_LANDESK" and "LDADD = -lipmiapi -L../lib".

To build with GNU freeipmi:
Edit util/Makefile.am to uncomment the line with -lfreeipmi and
also comment out the following GNU_STUB line.

Steps to build for Linux:
# aclocal   (may be needed if automake versions are different)
# autoconf  (may be needed if automake versions are different)
# automake  (may be needed if automake versions are different)
# configure
# make
To install this package, use one of the following:
#  make install
#  make rpm
The make rpm produces a binary rpm, and a source rpm, which can be 
installed with "rpm -i *.rpm".

Steps to build for Windows:
- Install Visual Studio or other Windows SDK.
- Install Windows DDK
- Edit doc/mk*.bat to point to the above DDK & VC/SDK directories
- copy doc/mk.bat, doc/mksel.bat and doc/showsel.mc to util/.
- Get or create your own getopt.c & getopt.h 
- cd util
- Build the ipmiutil *.EXE files:
  call mksel 
  call mk alarms
  call mk bmchealth
  call mk hwreset
  call mk sensor
  call mk wdt
  call mk icmd
  call mk fruconfig
  call mk pefconfig
  call mk tmconfig
  call mk getevent
- To make showselmsg.dll (included in mksel.bat above):
  mc -U showsel.mc
  rc -r showsel.rc
  link /MACHINE:IX86 -dll -noentry -out:showselmsg.dll showsel.res

