Please read the files (especially README.Makefiles) in the husky-common (huskybse) package FIRST!
-
Put the areafix 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\areafix>make -f makefile.djg
-
Run CMake to configure the build tree.
$ cmake -H. -Bbuild -DBUILD_SHARED_LIBS=OFF
This will prepare for building a static library. If you want to build a dynamic library, then you have to run
$ cmake -H. -Bbuild
Be shure 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
- (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 areafix.