Please read the files (especially README.Makefiles) in the husky-common (huskybse) package FIRST!
-
Put the fidoconf package in the directory where the other packages of fido husky reside:
- unix, beos, possible cygwin:
/usr/src/packages/ -> huskybse/ -> huskylib/ -> smapi/ -> fidoconfig/ -> hpt/ -> htick/ ...some other
- windows, dos, os/2 & etc:
d:\husky\ -> huskylib\ -> smapi\ -> fidoconf\ -> hpt\ -> htick\ ...some other
- unix, beos, possible cygwin:
See huskybse/INSTALL.asciidoc
unix:
$ make -f makefile.lnx
$ make -f makefile.lnx install
dos:
d:\husky\fidoconf>make -f makefile.djg
-
Run CMake to configure the build tree.
$ cmake -H. -Bbuild -DCFGDIR=~/fido/etc/husky -DBUILD_SHARED_LIBS=OFF
Here you may set CFGDIR, that is, the directory containing Husky config, as you like. This will prepare for building a static library. If you want to build a dynamic library, then you have to run
$ cmake -H. -Bbuild -DCFGDIR=~/fido/etc/husky
Be sure to build all Husky projects the same way, either statically or dynamically.
-
Afterwards, generated files can be used to compile the project.
$ cmake --build build
-
Make distrib rpm, deb,tgz (optional)
$ cpack -G RPM --config build/CPackConfig.cmake $ cpack -G DEB --config build/CPackConfig.cmake $ cpack -G TGZ --config build/CPackConfig.cmake
-
Install the built files (optional).
$ cmake --build build --target install
This fork allows cross-compilation from Linux to Windows NT & OS/2 using Open Watcom 2.0:
$ cd make
Windows NT build:
$ wmake -f makefile.watcom NT=1
OS/2 build:
$ wmake -f makefile.watcom OS2=1
Where 'wmake' is Open Watcom 2.0's WMAKE.
- (For UNIXes only) Ensure /usr/local/lib/ is in /etc/ld.so.conf
- (For UNIXes only) Execute ldconfig as root
You're ready. Now you can install software which uses fidoconf.