1Building from source
2====================
3
4Linux
5-----
6Once the source tarball has been untarred move to its top
7level directory and issue these commands: 
8
9    ./configure
10    make
11    make install (you may need to be root to do this)
12
13
14If configure.ac, Makefile.am or src/Makefile.am have changed
15then ./autogen.sh should be run prior to the above sequence.
16
17A linux rpm spec file called sdparm.spec is included in the main
18directory. This spec file expects to find a tarball
19called "sdparm-<version_num>.tgz" in the appropriate place.
20
21To build a linux debian "deb" (binary) package, first untar the tarball,
22then change directory to the top level within the sdparm source. Then:
23 # chmod +x debian/rules
24 # dpkg-buildpackage -b -rfakeroot
25A script file called build_debian.sh in the main directory contains
26these lines. The binary deb packages will be placed in the parent
27directory (of the sdparm source directory) if all goes well.
28
29FreeBSD
30-------
31In FreeBSD, the "./configure;make;make install" method should work.
32
33Solaris
34-------
35In Solaris, the "./configure;make;make install" method should work.
36It is assumed gcc is present.
37
38Tru64 (OSF)
39-----------
40With Tru64 this invocation can be used:
41    "./autogen.sh && CC=cc ./configure && gmake"
42
43Windows
44-------
45On Windows (NT or later) download cygwin plus gcc, makefile
46and binutils (if they are not in the minimal cygwin distribution).
47Then from within a cygwin (bash) shell issue these commands:
48    ./configure
49    make
50A 'make install' can also be done. The executable is called
51sdparm.exe and is in the 'src' subdirectory. It can be executed
52in a DOS ("cmd") shell as long as the cygwin1.dll file that it
53depends on is placed in an appropriate place.
54
55Alternatively the MinGW/MSYS environment can be used: first
56download and install MinGW (the gcc compiler and tools), then
57download and install MSYS (bash like shell that supports
58automake). From the MSYS shell, in the top level of the sdparm
59source issue these commands:
60    ./configure
61    make
62The executable is called sdparm.exe and is in the 'src' subdirectory.
63It can be executed in a MSYS or DOS ("cmd") shell.
64   
65
667th October 2007
67Douglas Gilbert
68
69