From db10fd699523ae6854ad84d89733efb7887fffef Mon Sep 17 00:00:00 2001 From: "David G. Holm" Date: Wed, 5 Dec 2001 21:04:28 +0000 Subject: [PATCH] See ChangeLog entry 2001-12-05 16:00 UTC-0500 David G. Holm --- harbour/ChangeLog | 8 +++++++- harbour/doc/gmake.txt | 21 ++++++++++++++++++++- harbour/doc/howtobsd.txt | 37 +++++++++++++++++++++++++++++++++++++ 3 files changed, 64 insertions(+), 2 deletions(-) create mode 100644 harbour/doc/howtobsd.txt diff --git a/harbour/ChangeLog b/harbour/ChangeLog index cb311d4245..10d8f96889 100644 --- a/harbour/ChangeLog +++ b/harbour/ChangeLog @@ -1,3 +1,9 @@ +2001-12-05 16:00 UTC-0500 David G. Holm + + * doc/gmake.txt + + doc/howtobsd.txt + + FreeBSD 4.4 port + 2001-12-05 15:30 UTC-0500 David G. Holm + config/bsd @@ -10,7 +16,6 @@ * source/rtl/gtstd/gtstd.c + FreeBSD 4.4 port - 2001-12-05 19:44 UTC+0100 Viktor Szakats * include/hbmath.h @@ -2644,6 +2649,7 @@ *Now Setbuild() return the command line to gcc(Linux and Os/2) insted of an response file + * source/pp/pragma.c * contrib/dot/pp_harb.ch * tests/inline_c.prg diff --git a/harbour/doc/gmake.txt b/harbour/doc/gmake.txt index 6c1a493ab5..9ef216ab42 100644 --- a/harbour/doc/gmake.txt +++ b/harbour/doc/gmake.txt @@ -164,6 +164,22 @@ For MSVC on Win95/WinNT: HB_COMPILER msvc HB_GT_LIB gtwin +For GCC on BSD: + HB_ARCHITECTURE bsd + HB_COMPILER gcc + HB_GT_LIB gtstd + Notes: + 1) You have to have bison and gmake installed in order to build + Harbour for BSD. The file doc/howtobsd.txt gives an overview + of what is required. + 2) If you have an ncurses library or a slang library, you may + want to try one of the following two values for HB_GT_LIB: + gtcrs + gtsln + In which case you'll also need to export HB_SCREEN_LIB with + the name of the appropriate screen library, if it doesn't + match the default value in config/bsd/gcc.cf + For GCC on Linux: HB_ARCHITECTURE linux HB_COMPILER gcc @@ -173,7 +189,8 @@ For GCC on Linux: gtcrs gtsln In which case you'll also need to export HB_SCREEN_LIB with - the name of the appropriate screen library. + the name of the appropriate screen library, if it doesn't + match the default value in config/linux/gcc.cf. For GCC on OS/2 for VIO mode: Note: You must point C_INCLUDE_PATH to the EMX include directory and @@ -271,3 +288,5 @@ can also be used for modules that aren't in the Makefile. You can also pass parameters to the program. For example, 'build readfile harbour.ini' will rebuild the readfile.prg program and run it with 'harbour.ini' as a command line parameter. + + diff --git a/harbour/doc/howtobsd.txt b/harbour/doc/howtobsd.txt new file mode 100644 index 0000000000..2082e5ab47 --- /dev/null +++ b/harbour/doc/howtobsd.txt @@ -0,0 +1,37 @@ +/* + * $Id$ + */ + +HOW TO CONFIGURE BSD TO BUILD HARBOUR +------------------------------------- + +First, you'll need a FreeBSD 4.4 developer installation. Then you'll need +to install bison and gmake. If you installed the ports collection, then all +you need to do to install bison and gmake is to run the following commands, +which may require that you run su first to get the correct permissions. + + cd /usr/ports/devel/bison + make + make install + make clean + cd /usr/ports/devel/gmake + make + make install + make clean + +If you want to use the GTSLN library instead of GTSTD or GTCRS, then you +also need to install libslang. If you installed the ports collection, then +all you need to do to install libslang is to run the following commands, +which may require that you run su first to get the correct permissions. + + cd /usr/ports/devel/libslang + make + make install + make clean + +Then read the doc/gmake.txt file for generic GNU make instructions and the +specific Harbour settings needed for BSD. When you want to build Harbour, +be sure to run 'gmake -r' at the command line instead of 'make -r'. + +David G. Holm +