+ netbsd target added

This commit is contained in:
pierre 2001-08-10 10:28:54 +00:00
parent 7e8bdc7fd5
commit 5f581298f0
3 changed files with 1377 additions and 1296 deletions

File diff suppressed because it is too large Load Diff

View File

@ -6,7 +6,7 @@
##################################################################### #####################################################################
# Autodetect OS (Linux or Dos or Windows NT or OS/2) # Autodetect OS (Linux or Dos or Windows NT or OS/2)
# define inUnix when running under Unix like environment # define inUnix when running under Unix like environment
# (Linux,FreeBSD,Cygwin) # (Linux,FreeBSD,NetBSD,Cygwin)
# define inWinNT when running under WinNT # define inWinNT when running under WinNT
# define inOS2 when running under OS/2 # define inOS2 when running under OS/2
# define inCygwin when running under Cygwin32 # define inCygwin when running under Cygwin32
@ -370,7 +370,7 @@ FPCMADE=fpcmade.lnx
ZIPSUFFIX=linux ZIPSUFFIX=linux
endif endif
# Linux # FreeBSD
ifeq ($(OS_TARGET),freebsd) ifeq ($(OS_TARGET),freebsd)
EXEEXT= EXEEXT=
HASSHAREDLIB=1 HASSHAREDLIB=1
@ -378,6 +378,14 @@ FPCMADE=fpcmade.freebsd
ZIPSUFFIX=freebsd ZIPSUFFIX=freebsd
endif endif
# NetBSD
ifeq ($(OS_TARGET),netbsd)
EXEEXT=
HASSHAREDLIB=1
FPCMADE=fpcmade.netbsd
ZIPSUFFIX=netbsd
endif
# Win32 # Win32
ifeq ($(OS_TARGET),win32) ifeq ($(OS_TARGET),win32)
PPUEXT=.ppw PPUEXT=.ppw
@ -442,7 +450,7 @@ override PACKAGESDIR+=$(REQUIRE_PACKAGESDIR)
endif endif
# Linux and freebsd use unix dirs with /usr/bin, /usr/lib # Linux, netbsd and freebsd use unix dirs with /usr/bin, /usr/lib
# When zipping use the target as default, when normal install then # When zipping use the target as default, when normal install then
# use the source os as default # use the source os as default
ifdef ZIPINSTALL ifdef ZIPINSTALL
@ -453,6 +461,9 @@ endif
ifeq ($(OS_TARGET),freebsd) ifeq ($(OS_TARGET),freebsd)
UNIXINSTALLDIR=1 UNIXINSTALLDIR=1
endif endif
ifeq ($(OS_TARGET),netbsd)
UNIXINSTALLDIR=1
endif
else else
# Normal install # Normal install
ifeq ($(OS_SOURCE),linux) ifeq ($(OS_SOURCE),linux)
@ -461,6 +472,9 @@ endif
ifeq ($(OS_SOURCE),freebsd) ifeq ($(OS_SOURCE),freebsd)
UNIXINSTALLDIR=1 UNIXINSTALLDIR=1
endif endif
ifeq ($(OS_SOURCE),netbsd)
UNIXINSTALLDIR=1
endif
endif endif
# set the prefix directory where to install everything # set the prefix directory where to install everything

View File

@ -36,19 +36,19 @@ interface
type type
TTarget=( TTarget=(
t_linux,t_go32v2,t_win32,t_os2,t_freebsd,t_beos, t_linux,t_go32v2,t_win32,t_os2,t_freebsd,t_beos,t_netbsd,
t_amiga,t_atari t_amiga,t_atari
); );
TTargetSet=set of TTarget; TTargetSet=set of TTarget;
const const
TargetStr : array[TTarget] of string=( TargetStr : array[TTarget] of string=(
'linux','go32v2','win32','os2','freebsd','beos', 'linux','go32v2','win32','os2','freebsd','beos','netbsd',
'amiga','atari' 'amiga','atari'
); );
TargetSuffix : array[TTarget] of string=( TargetSuffix : array[TTarget] of string=(
'_linux','_go32v2','_win32','_os2','_freebsd','_beos', '_linux','_go32v2','_win32','_os2','_freebsd','_beos','_netbsd',
'_amiga','_atari' '_amiga','_atari'
); );
@ -1314,7 +1314,10 @@ implementation
end. end.
{ {
$Log$ $Log$
Revision 1.11 2001-08-02 20:50:29 peter Revision 1.12 2001-08-10 10:28:55 pierre
+ netbsd target added
Revision 1.11 2001/08/02 20:50:29 peter
* -T<target> support * -T<target> support
* better error reporting for not found dirs * better error reporting for not found dirs
* some cleanups and nicer strings * some cleanups and nicer strings