Skip to content

Latest commit

 

History

History
89 lines (75 loc) · 2.58 KB

INSTALL.md

File metadata and controls

89 lines (75 loc) · 2.58 KB

Instruction to build areafix

Please read the files (especially README.Makefiles) in the husky-common (huskybse) package FIRST!

Table of Contents

Prebuild

  • 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
      

Build

Compiling and installing with the standard Makefile and huskymak.cfg

See huskybse/INSTALL.asciidoc

Compiling with the Legacy Makefiles

unix:

   $ make -f makefile.lnx
   $ make -f makefile.lnx install

dos:

   d:\husky\areafix>make -f makefile.djg

Compiling and installing using Cmake

  • 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

Afterbuild actions

  • (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.