Skip to content

Files

85 lines (72 loc) · 2.36 KB

INSTALL.md

File metadata and controls

85 lines (72 loc) · 2.36 KB

Instruction to build hpt

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

Table of Contents

Prebuild

  • Put the hpt 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

require huskymak.cfg (see huskybse), unixes only:

   $ make
   $ make install

Compiling with the Legacy Makefiles

unix:

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

dos:

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

Compiling and installing using Cmake

  • Run CMake to configure the build tree.

       $ cmake -H. -Bbuild
  • 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 hpt.