Skip to content

Latest commit

 

History

History
109 lines (92 loc) · 3.1 KB

INSTALL.md

File metadata and controls

109 lines (92 loc) · 3.1 KB

Instruction to build fidoconf

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

Table of Contents

Prebuild

  • 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
      

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\fidoconf>make -f makefile.djg

Compiling and installing using Cmake

  • 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

Compile using Open Watcom 2.0

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.

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 fidoconf.