PageRenderTime 173ms CodeModel.GetById 46ms app.highlight 119ms RepoModel.GetById 1ms app.codeStats 0ms

/packages/fcl-db/src/base/Makefile

https://github.com/slibre/freepascal
Makefile | 3113 lines | 3110 code | 0 blank | 3 comment | 7 complexity | 2bc8ae3212a093aa8d1f07431e251117 MD5 | raw file
Possible License(s): LGPL-2.0, LGPL-2.1, LGPL-3.0

Large files files are truncated, but you can click here to view the full file

   1#
   2# Don't edit, this file is generated by FPCMake Version 2.0.0 [2012/04/25]
   3#
   4default: all
   5MAKEFILETARGETS=i386-linux i386-go32v2 i386-win32 i386-os2 i386-freebsd i386-beos i386-haiku i386-netbsd i386-solaris i386-qnx i386-netware i386-openbsd i386-wdosx i386-darwin i386-emx i386-watcom i386-netwlibc i386-wince i386-embedded i386-symbian i386-nativent i386-iphonesim m68k-linux m68k-freebsd m68k-netbsd m68k-amiga m68k-atari m68k-openbsd m68k-palmos m68k-embedded powerpc-linux powerpc-netbsd powerpc-amiga powerpc-macos powerpc-darwin powerpc-morphos powerpc-embedded powerpc-wii powerpc-aix sparc-linux sparc-netbsd sparc-solaris sparc-embedded x86_64-linux x86_64-freebsd x86_64-netbsd x86_64-solaris x86_64-openbsd x86_64-darwin x86_64-win64 x86_64-embedded arm-linux arm-palmos arm-darwin arm-wince arm-gba arm-nds arm-embedded arm-symbian powerpc64-linux powerpc64-darwin powerpc64-embedded powerpc64-aix avr-embedded armeb-linux armeb-embedded mips-linux mipsel-linux
   6BSDs = freebsd netbsd openbsd darwin
   7UNIXs = linux $(BSDs) solaris qnx haiku aix
   8LIMIT83fs = go32v2 os2 emx watcom
   9OSNeedsComspecToRunBatch = go32v2 watcom
  10FORCE:
  11.PHONY: FORCE
  12override PATH:=$(patsubst %/,%,$(subst \,/,$(PATH)))
  13ifneq ($(findstring darwin,$(OSTYPE)),)
  14inUnix=1 #darwin
  15SEARCHPATH:=$(filter-out .,$(subst :, ,$(PATH)))
  16else
  17ifeq ($(findstring ;,$(PATH)),)
  18inUnix=1
  19SEARCHPATH:=$(filter-out .,$(subst :, ,$(PATH)))
  20else
  21SEARCHPATH:=$(subst ;, ,$(PATH))
  22endif
  23endif
  24SEARCHPATH+=$(patsubst %/,%,$(subst \,/,$(dir $(MAKE))))
  25PWD:=$(strip $(wildcard $(addsuffix /pwd.exe,$(SEARCHPATH))))
  26ifeq ($(PWD),)
  27PWD:=$(strip $(wildcard $(addsuffix /pwd,$(SEARCHPATH))))
  28ifeq ($(PWD),)
  29$(error You need the GNU utils package to use this Makefile)
  30else
  31PWD:=$(firstword $(PWD))
  32SRCEXEEXT=
  33endif
  34else
  35PWD:=$(firstword $(PWD))
  36SRCEXEEXT=.exe
  37endif
  38ifndef inUnix
  39ifeq ($(OS),Windows_NT)
  40inWinNT=1
  41else
  42ifdef OS2_SHELL
  43inOS2=1
  44endif
  45endif
  46else
  47ifneq ($(findstring cygdrive,$(PATH)),)
  48inCygWin=1
  49endif
  50endif
  51ifdef inUnix
  52SRCBATCHEXT=.sh
  53else
  54ifdef inOS2
  55SRCBATCHEXT=.cmd
  56else
  57SRCBATCHEXT=.bat
  58endif
  59endif
  60ifdef COMSPEC
  61ifneq ($(findstring $(OS_SOURCE),$(OSNeedsComspecToRunBatch)),)
  62ifndef RUNBATCH
  63RUNBATCH=$(COMSPEC) /C
  64endif
  65endif
  66endif
  67ifdef inUnix
  68PATHSEP=/
  69else
  70PATHSEP:=$(subst /,\,/)
  71ifdef inCygWin
  72PATHSEP=/
  73endif
  74endif
  75ifdef PWD
  76BASEDIR:=$(subst \,/,$(shell $(PWD)))
  77ifdef inCygWin
  78ifneq ($(findstring /cygdrive/,$(BASEDIR)),)
  79BASENODIR:=$(patsubst /cygdrive%,%,$(BASEDIR))
  80BASEDRIVE:=$(firstword $(subst /, ,$(BASENODIR)))
  81BASEDIR:=$(subst /cygdrive/$(BASEDRIVE)/,$(BASEDRIVE):/,$(BASEDIR))
  82endif
  83endif
  84else
  85BASEDIR=.
  86endif
  87ifdef inOS2
  88ifndef ECHO
  89ECHO:=$(strip $(wildcard $(addsuffix /gecho$(SRCEXEEXT),$(SEARCHPATH))))
  90ifeq ($(ECHO),)
  91ECHO:=$(strip $(wildcard $(addsuffix /echo$(SRCEXEEXT),$(SEARCHPATH))))
  92ifeq ($(ECHO),)
  93ECHO=echo
  94else
  95ECHO:=$(firstword $(ECHO))
  96endif
  97else
  98ECHO:=$(firstword $(ECHO))
  99endif
 100endif
 101export ECHO
 102endif
 103override DEFAULT_FPCDIR=../../../..
 104ifndef FPC
 105ifdef PP
 106FPC=$(PP)
 107endif
 108endif
 109ifndef FPC
 110FPCPROG:=$(strip $(wildcard $(addsuffix /fpc$(SRCEXEEXT),$(SEARCHPATH))))
 111ifneq ($(FPCPROG),)
 112FPCPROG:=$(firstword $(FPCPROG))
 113ifneq ($(CPU_TARGET),)
 114FPC:=$(shell $(FPCPROG) -P$(CPU_TARGET) -PB)
 115else
 116FPC:=$(shell $(FPCPROG) -PB)
 117endif
 118ifneq ($(findstring Error,$(FPC)),)
 119override FPC=$(firstword $(strip $(wildcard $(addsuffix /ppc386$(SRCEXEEXT),$(SEARCHPATH)))))
 120else
 121ifeq ($(strip $(wildcard $(FPC))),)
 122FPC:=$(firstword $(FPCPROG))
 123endif
 124endif
 125else
 126override FPC=$(firstword $(strip $(wildcard $(addsuffix /ppc386$(SRCEXEEXT),$(SEARCHPATH)))))
 127endif
 128endif
 129override FPC:=$(subst $(SRCEXEEXT),,$(FPC))
 130override FPC:=$(subst \,/,$(FPC))$(SRCEXEEXT)
 131FOUNDFPC:=$(strip $(wildcard $(FPC)))
 132ifeq ($(FOUNDFPC),)
 133FOUNDFPC=$(strip $(wildcard $(addsuffix /$(FPC),$(SEARCHPATH))))
 134ifeq ($(FOUNDFPC),)
 135$(error Compiler $(FPC) not found)
 136endif
 137endif
 138ifndef FPC_COMPILERINFO
 139FPC_COMPILERINFO:=$(shell $(FPC) -iVSPTPSOTO)
 140endif
 141ifndef FPC_VERSION
 142FPC_VERSION:=$(word 1,$(FPC_COMPILERINFO))
 143endif
 144export FPC FPC_VERSION FPC_COMPILERINFO
 145unexport CHECKDEPEND ALLDEPENDENCIES
 146ifndef CPU_TARGET
 147ifdef CPU_TARGET_DEFAULT
 148CPU_TARGET=$(CPU_TARGET_DEFAULT)
 149endif
 150endif
 151ifndef OS_TARGET
 152ifdef OS_TARGET_DEFAULT
 153OS_TARGET=$(OS_TARGET_DEFAULT)
 154endif
 155endif
 156ifndef CPU_SOURCE
 157CPU_SOURCE:=$(word 2,$(FPC_COMPILERINFO))
 158endif
 159ifndef CPU_TARGET
 160CPU_TARGET:=$(word 3,$(FPC_COMPILERINFO))
 161endif
 162ifndef OS_SOURCE
 163OS_SOURCE:=$(word 4,$(FPC_COMPILERINFO))
 164endif
 165ifndef OS_TARGET
 166OS_TARGET:=$(word 5,$(FPC_COMPILERINFO))
 167endif
 168FULL_TARGET=$(CPU_TARGET)-$(OS_TARGET)
 169FULL_SOURCE=$(CPU_SOURCE)-$(OS_SOURCE)
 170ifeq ($(CPU_TARGET),armeb)
 171ARCH=arm
 172override FPCOPT+=-Cb
 173else
 174ifeq ($(CPU_TARGET),armel)
 175ARCH=arm
 176override FPCOPT+=-CaEABI
 177else
 178ARCH=$(CPU_TARGET)
 179endif
 180endif
 181ifeq ($(FULL_TARGET),arm-embedded)
 182ifeq ($(SUBARCH),)
 183$(error When compiling for arm-embedded, a sub-architecture (e.g. SUBARCH=armv4t or SUBARCH=armv7m) must be defined)
 184endif
 185override FPCOPT+=-Cp$(SUBARCH)
 186endif
 187ifneq ($(findstring $(OS_SOURCE),$(LIMIT83fs)),)
 188TARGETSUFFIX=$(OS_TARGET)
 189SOURCESUFFIX=$(OS_SOURCE)
 190else
 191ifneq ($(findstring $(OS_TARGET),$(LIMIT83fs)),)
 192TARGETSUFFIX=$(OS_TARGET)
 193else
 194TARGETSUFFIX=$(FULL_TARGET)
 195endif
 196SOURCESUFFIX=$(FULL_SOURCE)
 197endif
 198ifneq ($(FULL_TARGET),$(FULL_SOURCE))
 199CROSSCOMPILE=1
 200endif
 201ifeq ($(findstring makefile,$(MAKECMDGOALS)),)
 202ifeq ($(findstring $(FULL_TARGET),$(MAKEFILETARGETS)),)
 203$(error The Makefile doesn't support target $(FULL_TARGET), please run fpcmake first)
 204endif
 205endif
 206ifneq ($(findstring $(OS_TARGET),$(BSDs)),)
 207BSDhier=1
 208endif
 209ifeq ($(OS_TARGET),linux)
 210linuxHier=1
 211endif
 212export OS_TARGET OS_SOURCE ARCH CPU_TARGET CPU_SOURCE FULL_TARGET FULL_SOURCE TARGETSUFFIX SOURCESUFFIX CROSSCOMPILE
 213ifdef FPCDIR
 214override FPCDIR:=$(subst \,/,$(FPCDIR))
 215ifeq ($(wildcard $(addprefix $(FPCDIR)/,rtl units)),)
 216override FPCDIR=wrong
 217endif
 218else
 219override FPCDIR=wrong
 220endif
 221ifdef DEFAULT_FPCDIR
 222ifeq ($(FPCDIR),wrong)
 223override FPCDIR:=$(subst \,/,$(DEFAULT_FPCDIR))
 224ifeq ($(wildcard $(addprefix $(FPCDIR)/,rtl units)),)
 225override FPCDIR=wrong
 226endif
 227endif
 228endif
 229ifeq ($(FPCDIR),wrong)
 230ifdef inUnix
 231override FPCDIR=/usr/local/lib/fpc/$(FPC_VERSION)
 232ifeq ($(wildcard $(FPCDIR)/units),)
 233override FPCDIR=/usr/lib/fpc/$(FPC_VERSION)
 234endif
 235else
 236override FPCDIR:=$(subst /$(FPC),,$(firstword $(strip $(wildcard $(addsuffix /$(FPC),$(SEARCHPATH))))))
 237override FPCDIR:=$(FPCDIR)/..
 238ifeq ($(wildcard $(addprefix $(FPCDIR)/,rtl units)),)
 239override FPCDIR:=$(FPCDIR)/..
 240ifeq ($(wildcard $(addprefix $(FPCDIR)/,rtl units)),)
 241override FPCDIR:=$(BASEDIR)
 242ifeq ($(wildcard $(addprefix $(FPCDIR)/,rtl units)),)
 243override FPCDIR=c:/pp
 244endif
 245endif
 246endif
 247endif
 248endif
 249ifndef CROSSBINDIR
 250CROSSBINDIR:=$(wildcard $(FPCDIR)/bin/$(TARGETSUFFIX))
 251endif
 252ifneq ($(findstring $(OS_TARGET),darwin iphonesim),)
 253ifeq ($(OS_SOURCE),darwin)
 254DARWIN2DARWIN=1
 255endif
 256endif
 257ifndef BINUTILSPREFIX
 258ifndef CROSSBINDIR
 259ifdef CROSSCOMPILE
 260ifndef DARWIN2DARWIN
 261BINUTILSPREFIX=$(CPU_TARGET)-$(OS_TARGET)-
 262endif
 263endif
 264endif
 265endif
 266UNITSDIR:=$(wildcard $(FPCDIR)/units/$(TARGETSUFFIX))
 267ifeq ($(UNITSDIR),)
 268UNITSDIR:=$(wildcard $(FPCDIR)/units/$(OS_TARGET))
 269endif
 270PACKAGESDIR:=$(wildcard $(FPCDIR) $(FPCDIR)/packages $(FPCDIR)/packages/base $(FPCDIR)/packages/extra)
 271ifndef FPCFPMAKE
 272ifdef CROSSCOMPILE
 273ifeq ($(strip $(wildcard $(addsuffix /compiler/ppc$(SRCEXEEXT),$(FPCDIR)))),)
 274FPCPROG:=$(strip $(wildcard $(addsuffix /fpc$(SRCEXEEXT),$(SEARCHPATH))))
 275ifneq ($(FPCPROG),)
 276FPCPROG:=$(firstword $(FPCPROG))
 277FPCFPMAKE:=$(shell $(FPCPROG) -PB)
 278ifeq ($(strip $(wildcard $(FPCFPMAKE))),)
 279FPCFPMAKE:=$(firstword $(FPCPROG))
 280endif
 281else
 282override FPCFPMAKE=$(firstword $(strip $(wildcard $(addsuffix /ppc386$(SRCEXEEXT),$(SEARCHPATH)))))
 283endif
 284else
 285FPCFPMAKE=$(strip $(wildcard $(addsuffix /compiler/ppc$(SRCEXEEXT),$(FPCDIR))))
 286FPMAKE_SKIP_CONFIG=-n
 287export FPCFPMAKE
 288export FPMAKE_SKIP_CONFIG
 289endif
 290else
 291FPMAKE_SKIP_CONFIG=-n
 292FPCFPMAKE=$(FPC)
 293endif
 294endif
 295override PACKAGE_NAME=fcl-db
 296override PACKAGE_VERSION=2.7.1
 297PACKAGEDIR_MAIN:=$(firstword $(subst /Makefile.fpc,,$(strip $(wildcard $(addsuffix /fcl-db/Makefile.fpc,$(PACKAGESDIR))))))
 298ifeq ($(FULL_TARGET),i386-linux)
 299override TARGET_UNITS+=dbconst db dbwhtml bufdataset_parser bufdataset dbcoll sqlscript xmldatapacketreader
 300endif
 301ifeq ($(FULL_TARGET),i386-go32v2)
 302override TARGET_UNITS+=dbconst db dbwhtml bufdataset_parser bufdataset dbcoll sqlscript xmldatapacketreader
 303endif
 304ifeq ($(FULL_TARGET),i386-win32)
 305override TARGET_UNITS+=dbconst db dbwhtml bufdataset_parser bufdataset dbcoll sqlscript xmldatapacketreader
 306endif
 307ifeq ($(FULL_TARGET),i386-os2)
 308override TARGET_UNITS+=dbconst db dbwhtml bufdataset_parser bufdataset dbcoll sqlscript xmldatapacketreader
 309endif
 310ifeq ($(FULL_TARGET),i386-freebsd)
 311override TARGET_UNITS+=dbconst db dbwhtml bufdataset_parser bufdataset dbcoll sqlscript xmldatapacketreader
 312endif
 313ifeq ($(FULL_TARGET),i386-beos)
 314override TARGET_UNITS+=dbconst db dbwhtml bufdataset_parser bufdataset dbcoll sqlscript xmldatapacketreader
 315endif
 316ifeq ($(FULL_TARGET),i386-haiku)
 317override TARGET_UNITS+=dbconst db dbwhtml bufdataset_parser bufdataset dbcoll sqlscript xmldatapacketreader
 318endif
 319ifeq ($(FULL_TARGET),i386-netbsd)
 320override TARGET_UNITS+=dbconst db dbwhtml bufdataset_parser bufdataset dbcoll sqlscript xmldatapacketreader
 321endif
 322ifeq ($(FULL_TARGET),i386-solaris)
 323override TARGET_UNITS+=dbconst db dbwhtml bufdataset_parser bufdataset dbcoll sqlscript xmldatapacketreader
 324endif
 325ifeq ($(FULL_TARGET),i386-qnx)
 326override TARGET_UNITS+=dbconst db dbwhtml bufdataset_parser bufdataset dbcoll sqlscript xmldatapacketreader
 327endif
 328ifeq ($(FULL_TARGET),i386-netware)
 329override TARGET_UNITS+=dbconst db dbwhtml bufdataset_parser bufdataset dbcoll sqlscript xmldatapacketreader
 330endif
 331ifeq ($(FULL_TARGET),i386-openbsd)
 332override TARGET_UNITS+=dbconst db dbwhtml bufdataset_parser bufdataset dbcoll sqlscript xmldatapacketreader
 333endif
 334ifeq ($(FULL_TARGET),i386-wdosx)
 335override TARGET_UNITS+=dbconst db dbwhtml bufdataset_parser bufdataset dbcoll sqlscript xmldatapacketreader
 336endif
 337ifeq ($(FULL_TARGET),i386-darwin)
 338override TARGET_UNITS+=dbconst db dbwhtml bufdataset_parser bufdataset dbcoll sqlscript xmldatapacketreader
 339endif
 340ifeq ($(FULL_TARGET),i386-emx)
 341override TARGET_UNITS+=dbconst db dbwhtml bufdataset_parser bufdataset dbcoll sqlscript xmldatapacketreader
 342endif
 343ifeq ($(FULL_TARGET),i386-watcom)
 344override TARGET_UNITS+=dbconst db dbwhtml bufdataset_parser bufdataset dbcoll sqlscript xmldatapacketreader
 345endif
 346ifeq ($(FULL_TARGET),i386-netwlibc)
 347override TARGET_UNITS+=dbconst db dbwhtml bufdataset_parser bufdataset dbcoll sqlscript xmldatapacketreader
 348endif
 349ifeq ($(FULL_TARGET),i386-wince)
 350override TARGET_UNITS+=dbconst db dbwhtml bufdataset_parser bufdataset dbcoll sqlscript xmldatapacketreader
 351endif
 352ifeq ($(FULL_TARGET),i386-embedded)
 353override TARGET_UNITS+=dbconst db dbwhtml bufdataset_parser bufdataset dbcoll sqlscript xmldatapacketreader
 354endif
 355ifeq ($(FULL_TARGET),i386-symbian)
 356override TARGET_UNITS+=dbconst db dbwhtml bufdataset_parser bufdataset dbcoll sqlscript xmldatapacketreader
 357endif
 358ifeq ($(FULL_TARGET),i386-nativent)
 359override TARGET_UNITS+=dbconst db dbwhtml bufdataset_parser bufdataset dbcoll sqlscript xmldatapacketreader
 360endif
 361ifeq ($(FULL_TARGET),i386-iphonesim)
 362override TARGET_UNITS+=dbconst db dbwhtml bufdataset_parser bufdataset dbcoll sqlscript xmldatapacketreader
 363endif
 364ifeq ($(FULL_TARGET),m68k-linux)
 365override TARGET_UNITS+=dbconst db dbwhtml bufdataset_parser bufdataset dbcoll sqlscript xmldatapacketreader
 366endif
 367ifeq ($(FULL_TARGET),m68k-freebsd)
 368override TARGET_UNITS+=dbconst db dbwhtml bufdataset_parser bufdataset dbcoll sqlscript xmldatapacketreader
 369endif
 370ifeq ($(FULL_TARGET),m68k-netbsd)
 371override TARGET_UNITS+=dbconst db dbwhtml bufdataset_parser bufdataset dbcoll sqlscript xmldatapacketreader
 372endif
 373ifeq ($(FULL_TARGET),m68k-amiga)
 374override TARGET_UNITS+=dbconst db dbwhtml bufdataset_parser bufdataset dbcoll sqlscript xmldatapacketreader
 375endif
 376ifeq ($(FULL_TARGET),m68k-atari)
 377override TARGET_UNITS+=dbconst db dbwhtml bufdataset_parser bufdataset dbcoll sqlscript xmldatapacketreader
 378endif
 379ifeq ($(FULL_TARGET),m68k-openbsd)
 380override TARGET_UNITS+=dbconst db dbwhtml bufdataset_parser bufdataset dbcoll sqlscript xmldatapacketreader
 381endif
 382ifeq ($(FULL_TARGET),m68k-palmos)
 383override TARGET_UNITS+=dbconst db dbwhtml bufdataset_parser bufdataset dbcoll sqlscript xmldatapacketreader
 384endif
 385ifeq ($(FULL_TARGET),m68k-embedded)
 386override TARGET_UNITS+=dbconst db dbwhtml bufdataset_parser bufdataset dbcoll sqlscript xmldatapacketreader
 387endif
 388ifeq ($(FULL_TARGET),powerpc-linux)
 389override TARGET_UNITS+=dbconst db dbwhtml bufdataset_parser bufdataset dbcoll sqlscript xmldatapacketreader
 390endif
 391ifeq ($(FULL_TARGET),powerpc-netbsd)
 392override TARGET_UNITS+=dbconst db dbwhtml bufdataset_parser bufdataset dbcoll sqlscript xmldatapacketreader
 393endif
 394ifeq ($(FULL_TARGET),powerpc-amiga)
 395override TARGET_UNITS+=dbconst db dbwhtml bufdataset_parser bufdataset dbcoll sqlscript xmldatapacketreader
 396endif
 397ifeq ($(FULL_TARGET),powerpc-macos)
 398override TARGET_UNITS+=dbconst db dbwhtml bufdataset_parser bufdataset dbcoll sqlscript xmldatapacketreader
 399endif
 400ifeq ($(FULL_TARGET),powerpc-darwin)
 401override TARGET_UNITS+=dbconst db dbwhtml bufdataset_parser bufdataset dbcoll sqlscript xmldatapacketreader
 402endif
 403ifeq ($(FULL_TARGET),powerpc-morphos)
 404override TARGET_UNITS+=dbconst db dbwhtml bufdataset_parser bufdataset dbcoll sqlscript xmldatapacketreader
 405endif
 406ifeq ($(FULL_TARGET),powerpc-embedded)
 407override TARGET_UNITS+=dbconst db dbwhtml bufdataset_parser bufdataset dbcoll sqlscript xmldatapacketreader
 408endif
 409ifeq ($(FULL_TARGET),powerpc-wii)
 410override TARGET_UNITS+=dbconst db dbwhtml bufdataset_parser bufdataset dbcoll sqlscript xmldatapacketreader
 411endif
 412ifeq ($(FULL_TARGET),powerpc-aix)
 413override TARGET_UNITS+=dbconst db dbwhtml bufdataset_parser bufdataset dbcoll sqlscript xmldatapacketreader
 414endif
 415ifeq ($(FULL_TARGET),sparc-linux)
 416override TARGET_UNITS+=dbconst db dbwhtml bufdataset_parser bufdataset dbcoll sqlscript xmldatapacketreader
 417endif
 418ifeq ($(FULL_TARGET),sparc-netbsd)
 419override TARGET_UNITS+=dbconst db dbwhtml bufdataset_parser bufdataset dbcoll sqlscript xmldatapacketreader
 420endif
 421ifeq ($(FULL_TARGET),sparc-solaris)
 422override TARGET_UNITS+=dbconst db dbwhtml bufdataset_parser bufdataset dbcoll sqlscript xmldatapacketreader
 423endif
 424ifeq ($(FULL_TARGET),sparc-embedded)
 425override TARGET_UNITS+=dbconst db dbwhtml bufdataset_parser bufdataset dbcoll sqlscript xmldatapacketreader
 426endif
 427ifeq ($(FULL_TARGET),x86_64-linux)
 428override TARGET_UNITS+=dbconst db dbwhtml bufdataset_parser bufdataset dbcoll sqlscript xmldatapacketreader
 429endif
 430ifeq ($(FULL_TARGET),x86_64-freebsd)
 431override TARGET_UNITS+=dbconst db dbwhtml bufdataset_parser bufdataset dbcoll sqlscript xmldatapacketreader
 432endif
 433ifeq ($(FULL_TARGET),x86_64-netbsd)
 434override TARGET_UNITS+=dbconst db dbwhtml bufdataset_parser bufdataset dbcoll sqlscript xmldatapacketreader
 435endif
 436ifeq ($(FULL_TARGET),x86_64-solaris)
 437override TARGET_UNITS+=dbconst db dbwhtml bufdataset_parser bufdataset dbcoll sqlscript xmldatapacketreader
 438endif
 439ifeq ($(FULL_TARGET),x86_64-openbsd)
 440override TARGET_UNITS+=dbconst db dbwhtml bufdataset_parser bufdataset dbcoll sqlscript xmldatapacketreader
 441endif
 442ifeq ($(FULL_TARGET),x86_64-darwin)
 443override TARGET_UNITS+=dbconst db dbwhtml bufdataset_parser bufdataset dbcoll sqlscript xmldatapacketreader
 444endif
 445ifeq ($(FULL_TARGET),x86_64-win64)
 446override TARGET_UNITS+=dbconst db dbwhtml bufdataset_parser bufdataset dbcoll sqlscript xmldatapacketreader
 447endif
 448ifeq ($(FULL_TARGET),x86_64-embedded)
 449override TARGET_UNITS+=dbconst db dbwhtml bufdataset_parser bufdataset dbcoll sqlscript xmldatapacketreader
 450endif
 451ifeq ($(FULL_TARGET),arm-linux)
 452override TARGET_UNITS+=dbconst db dbwhtml bufdataset_parser bufdataset dbcoll sqlscript xmldatapacketreader
 453endif
 454ifeq ($(FULL_TARGET),arm-palmos)
 455override TARGET_UNITS+=dbconst db dbwhtml bufdataset_parser bufdataset dbcoll sqlscript xmldatapacketreader
 456endif
 457ifeq ($(FULL_TARGET),arm-darwin)
 458override TARGET_UNITS+=dbconst db dbwhtml bufdataset_parser bufdataset dbcoll sqlscript xmldatapacketreader
 459endif
 460ifeq ($(FULL_TARGET),arm-wince)
 461override TARGET_UNITS+=dbconst db dbwhtml bufdataset_parser bufdataset dbcoll sqlscript xmldatapacketreader
 462endif
 463ifeq ($(FULL_TARGET),arm-gba)
 464override TARGET_UNITS+=dbconst db dbwhtml bufdataset_parser bufdataset dbcoll sqlscript xmldatapacketreader
 465endif
 466ifeq ($(FULL_TARGET),arm-nds)
 467override TARGET_UNITS+=dbconst db dbwhtml bufdataset_parser bufdataset dbcoll sqlscript xmldatapacketreader
 468endif
 469ifeq ($(FULL_TARGET),arm-embedded)
 470override TARGET_UNITS+=dbconst db dbwhtml bufdataset_parser bufdataset dbcoll sqlscript xmldatapacketreader
 471endif
 472ifeq ($(FULL_TARGET),arm-symbian)
 473override TARGET_UNITS+=dbconst db dbwhtml bufdataset_parser bufdataset dbcoll sqlscript xmldatapacketreader
 474endif
 475ifeq ($(FULL_TARGET),powerpc64-linux)
 476override TARGET_UNITS+=dbconst db dbwhtml bufdataset_parser bufdataset dbcoll sqlscript xmldatapacketreader
 477endif
 478ifeq ($(FULL_TARGET),powerpc64-darwin)
 479override TARGET_UNITS+=dbconst db dbwhtml bufdataset_parser bufdataset dbcoll sqlscript xmldatapacketreader
 480endif
 481ifeq ($(FULL_TARGET),powerpc64-embedded)
 482override TARGET_UNITS+=dbconst db dbwhtml bufdataset_parser bufdataset dbcoll sqlscript xmldatapacketreader
 483endif
 484ifeq ($(FULL_TARGET),powerpc64-aix)
 485override TARGET_UNITS+=dbconst db dbwhtml bufdataset_parser bufdataset dbcoll sqlscript xmldatapacketreader
 486endif
 487ifeq ($(FULL_TARGET),avr-embedded)
 488override TARGET_UNITS+=dbconst db dbwhtml bufdataset_parser bufdataset dbcoll sqlscript xmldatapacketreader
 489endif
 490ifeq ($(FULL_TARGET),armeb-linux)
 491override TARGET_UNITS+=dbconst db dbwhtml bufdataset_parser bufdataset dbcoll sqlscript xmldatapacketreader
 492endif
 493ifeq ($(FULL_TARGET),armeb-embedded)
 494override TARGET_UNITS+=dbconst db dbwhtml bufdataset_parser bufdataset dbcoll sqlscript xmldatapacketreader
 495endif
 496ifeq ($(FULL_TARGET),mips-linux)
 497override TARGET_UNITS+=dbconst db dbwhtml bufdataset_parser bufdataset dbcoll sqlscript xmldatapacketreader
 498endif
 499ifeq ($(FULL_TARGET),mipsel-linux)
 500override TARGET_UNITS+=dbconst db dbwhtml bufdataset_parser bufdataset dbcoll sqlscript xmldatapacketreader
 501endif
 502ifeq ($(FULL_TARGET),i386-linux)
 503override TARGET_RSTS+=dbconst dbcoll sqlscript xmldatapacketreader
 504endif
 505ifeq ($(FULL_TARGET),i386-go32v2)
 506override TARGET_RSTS+=dbconst dbcoll sqlscript xmldatapacketreader
 507endif
 508ifeq ($(FULL_TARGET),i386-win32)
 509override TARGET_RSTS+=dbconst dbcoll sqlscript xmldatapacketreader
 510endif
 511ifeq ($(FULL_TARGET),i386-os2)
 512override TARGET_RSTS+=dbconst dbcoll sqlscript xmldatapacketreader
 513endif
 514ifeq ($(FULL_TARGET),i386-freebsd)
 515override TARGET_RSTS+=dbconst dbcoll sqlscript xmldatapacketreader
 516endif
 517ifeq ($(FULL_TARGET),i386-beos)
 518override TARGET_RSTS+=dbconst dbcoll sqlscript xmldatapacketreader
 519endif
 520ifeq ($(FULL_TARGET),i386-haiku)
 521override TARGET_RSTS+=dbconst dbcoll sqlscript xmldatapacketreader
 522endif
 523ifeq ($(FULL_TARGET),i386-netbsd)
 524override TARGET_RSTS+=dbconst dbcoll sqlscript xmldatapacketreader
 525endif
 526ifeq ($(FULL_TARGET),i386-solaris)
 527override TARGET_RSTS+=dbconst dbcoll sqlscript xmldatapacketreader
 528endif
 529ifeq ($(FULL_TARGET),i386-qnx)
 530override TARGET_RSTS+=dbconst dbcoll sqlscript xmldatapacketreader
 531endif
 532ifeq ($(FULL_TARGET),i386-netware)
 533override TARGET_RSTS+=dbconst dbcoll sqlscript xmldatapacketreader
 534endif
 535ifeq ($(FULL_TARGET),i386-openbsd)
 536override TARGET_RSTS+=dbconst dbcoll sqlscript xmldatapacketreader
 537endif
 538ifeq ($(FULL_TARGET),i386-wdosx)
 539override TARGET_RSTS+=dbconst dbcoll sqlscript xmldatapacketreader
 540endif
 541ifeq ($(FULL_TARGET),i386-darwin)
 542override TARGET_RSTS+=dbconst dbcoll sqlscript xmldatapacketreader
 543endif
 544ifeq ($(FULL_TARGET),i386-emx)
 545override TARGET_RSTS+=dbconst dbcoll sqlscript xmldatapacketreader
 546endif
 547ifeq ($(FULL_TARGET),i386-watcom)
 548override TARGET_RSTS+=dbconst dbcoll sqlscript xmldatapacketreader
 549endif
 550ifeq ($(FULL_TARGET),i386-netwlibc)
 551override TARGET_RSTS+=dbconst dbcoll sqlscript xmldatapacketreader
 552endif
 553ifeq ($(FULL_TARGET),i386-wince)
 554override TARGET_RSTS+=dbconst dbcoll sqlscript xmldatapacketreader
 555endif
 556ifeq ($(FULL_TARGET),i386-embedded)
 557override TARGET_RSTS+=dbconst dbcoll sqlscript xmldatapacketreader
 558endif
 559ifeq ($(FULL_TARGET),i386-symbian)
 560override TARGET_RSTS+=dbconst dbcoll sqlscript xmldatapacketreader
 561endif
 562ifeq ($(FULL_TARGET),i386-nativent)
 563override TARGET_RSTS+=dbconst dbcoll sqlscript xmldatapacketreader
 564endif
 565ifeq ($(FULL_TARGET),i386-iphonesim)
 566override TARGET_RSTS+=dbconst dbcoll sqlscript xmldatapacketreader
 567endif
 568ifeq ($(FULL_TARGET),m68k-linux)
 569override TARGET_RSTS+=dbconst dbcoll sqlscript xmldatapacketreader
 570endif
 571ifeq ($(FULL_TARGET),m68k-freebsd)
 572override TARGET_RSTS+=dbconst dbcoll sqlscript xmldatapacketreader
 573endif
 574ifeq ($(FULL_TARGET),m68k-netbsd)
 575override TARGET_RSTS+=dbconst dbcoll sqlscript xmldatapacketreader
 576endif
 577ifeq ($(FULL_TARGET),m68k-amiga)
 578override TARGET_RSTS+=dbconst dbcoll sqlscript xmldatapacketreader
 579endif
 580ifeq ($(FULL_TARGET),m68k-atari)
 581override TARGET_RSTS+=dbconst dbcoll sqlscript xmldatapacketreader
 582endif
 583ifeq ($(FULL_TARGET),m68k-openbsd)
 584override TARGET_RSTS+=dbconst dbcoll sqlscript xmldatapacketreader
 585endif
 586ifeq ($(FULL_TARGET),m68k-palmos)
 587override TARGET_RSTS+=dbconst dbcoll sqlscript xmldatapacketreader
 588endif
 589ifeq ($(FULL_TARGET),m68k-embedded)
 590override TARGET_RSTS+=dbconst dbcoll sqlscript xmldatapacketreader
 591endif
 592ifeq ($(FULL_TARGET),powerpc-linux)
 593override TARGET_RSTS+=dbconst dbcoll sqlscript xmldatapacketreader
 594endif
 595ifeq ($(FULL_TARGET),powerpc-netbsd)
 596override TARGET_RSTS+=dbconst dbcoll sqlscript xmldatapacketreader
 597endif
 598ifeq ($(FULL_TARGET),powerpc-amiga)
 599override TARGET_RSTS+=dbconst dbcoll sqlscript xmldatapacketreader
 600endif
 601ifeq ($(FULL_TARGET),powerpc-macos)
 602override TARGET_RSTS+=dbconst dbcoll sqlscript xmldatapacketreader
 603endif
 604ifeq ($(FULL_TARGET),powerpc-darwin)
 605override TARGET_RSTS+=dbconst dbcoll sqlscript xmldatapacketreader
 606endif
 607ifeq ($(FULL_TARGET),powerpc-morphos)
 608override TARGET_RSTS+=dbconst dbcoll sqlscript xmldatapacketreader
 609endif
 610ifeq ($(FULL_TARGET),powerpc-embedded)
 611override TARGET_RSTS+=dbconst dbcoll sqlscript xmldatapacketreader
 612endif
 613ifeq ($(FULL_TARGET),powerpc-wii)
 614override TARGET_RSTS+=dbconst dbcoll sqlscript xmldatapacketreader
 615endif
 616ifeq ($(FULL_TARGET),powerpc-aix)
 617override TARGET_RSTS+=dbconst dbcoll sqlscript xmldatapacketreader
 618endif
 619ifeq ($(FULL_TARGET),sparc-linux)
 620override TARGET_RSTS+=dbconst dbcoll sqlscript xmldatapacketreader
 621endif
 622ifeq ($(FULL_TARGET),sparc-netbsd)
 623override TARGET_RSTS+=dbconst dbcoll sqlscript xmldatapacketreader
 624endif
 625ifeq ($(FULL_TARGET),sparc-solaris)
 626override TARGET_RSTS+=dbconst dbcoll sqlscript xmldatapacketreader
 627endif
 628ifeq ($(FULL_TARGET),sparc-embedded)
 629override TARGET_RSTS+=dbconst dbcoll sqlscript xmldatapacketreader
 630endif
 631ifeq ($(FULL_TARGET),x86_64-linux)
 632override TARGET_RSTS+=dbconst dbcoll sqlscript xmldatapacketreader
 633endif
 634ifeq ($(FULL_TARGET),x86_64-freebsd)
 635override TARGET_RSTS+=dbconst dbcoll sqlscript xmldatapacketreader
 636endif
 637ifeq ($(FULL_TARGET),x86_64-netbsd)
 638override TARGET_RSTS+=dbconst dbcoll sqlscript xmldatapacketreader
 639endif
 640ifeq ($(FULL_TARGET),x86_64-solaris)
 641override TARGET_RSTS+=dbconst dbcoll sqlscript xmldatapacketreader
 642endif
 643ifeq ($(FULL_TARGET),x86_64-openbsd)
 644override TARGET_RSTS+=dbconst dbcoll sqlscript xmldatapacketreader
 645endif
 646ifeq ($(FULL_TARGET),x86_64-darwin)
 647override TARGET_RSTS+=dbconst dbcoll sqlscript xmldatapacketreader
 648endif
 649ifeq ($(FULL_TARGET),x86_64-win64)
 650override TARGET_RSTS+=dbconst dbcoll sqlscript xmldatapacketreader
 651endif
 652ifeq ($(FULL_TARGET),x86_64-embedded)
 653override TARGET_RSTS+=dbconst dbcoll sqlscript xmldatapacketreader
 654endif
 655ifeq ($(FULL_TARGET),arm-linux)
 656override TARGET_RSTS+=dbconst dbcoll sqlscript xmldatapacketreader
 657endif
 658ifeq ($(FULL_TARGET),arm-palmos)
 659override TARGET_RSTS+=dbconst dbcoll sqlscript xmldatapacketreader
 660endif
 661ifeq ($(FULL_TARGET),arm-darwin)
 662override TARGET_RSTS+=dbconst dbcoll sqlscript xmldatapacketreader
 663endif
 664ifeq ($(FULL_TARGET),arm-wince)
 665override TARGET_RSTS+=dbconst dbcoll sqlscript xmldatapacketreader
 666endif
 667ifeq ($(FULL_TARGET),arm-gba)
 668override TARGET_RSTS+=dbconst dbcoll sqlscript xmldatapacketreader
 669endif
 670ifeq ($(FULL_TARGET),arm-nds)
 671override TARGET_RSTS+=dbconst dbcoll sqlscript xmldatapacketreader
 672endif
 673ifeq ($(FULL_TARGET),arm-embedded)
 674override TARGET_RSTS+=dbconst dbcoll sqlscript xmldatapacketreader
 675endif
 676ifeq ($(FULL_TARGET),arm-symbian)
 677override TARGET_RSTS+=dbconst dbcoll sqlscript xmldatapacketreader
 678endif
 679ifeq ($(FULL_TARGET),powerpc64-linux)
 680override TARGET_RSTS+=dbconst dbcoll sqlscript xmldatapacketreader
 681endif
 682ifeq ($(FULL_TARGET),powerpc64-darwin)
 683override TARGET_RSTS+=dbconst dbcoll sqlscript xmldatapacketreader
 684endif
 685ifeq ($(FULL_TARGET),powerpc64-embedded)
 686override TARGET_RSTS+=dbconst dbcoll sqlscript xmldatapacketreader
 687endif
 688ifeq ($(FULL_TARGET),powerpc64-aix)
 689override TARGET_RSTS+=dbconst dbcoll sqlscript xmldatapacketreader
 690endif
 691ifeq ($(FULL_TARGET),avr-embedded)
 692override TARGET_RSTS+=dbconst dbcoll sqlscript xmldatapacketreader
 693endif
 694ifeq ($(FULL_TARGET),armeb-linux)
 695override TARGET_RSTS+=dbconst dbcoll sqlscript xmldatapacketreader
 696endif
 697ifeq ($(FULL_TARGET),armeb-embedded)
 698override TARGET_RSTS+=dbconst dbcoll sqlscript xmldatapacketreader
 699endif
 700ifeq ($(FULL_TARGET),mips-linux)
 701override TARGET_RSTS+=dbconst dbcoll sqlscript xmldatapacketreader
 702endif
 703ifeq ($(FULL_TARGET),mipsel-linux)
 704override TARGET_RSTS+=dbconst dbcoll sqlscript xmldatapacketreader
 705endif
 706override INSTALL_FPCPACKAGE=y
 707ifeq ($(FULL_TARGET),i386-linux)
 708override COMPILER_OPTIONS+=-S2h
 709endif
 710ifeq ($(FULL_TARGET),i386-go32v2)
 711override COMPILER_OPTIONS+=-S2h
 712endif
 713ifeq ($(FULL_TARGET),i386-win32)
 714override COMPILER_OPTIONS+=-S2h
 715endif
 716ifeq ($(FULL_TARGET),i386-os2)
 717override COMPILER_OPTIONS+=-S2h
 718endif
 719ifeq ($(FULL_TARGET),i386-freebsd)
 720override COMPILER_OPTIONS+=-S2h
 721endif
 722ifeq ($(FULL_TARGET),i386-beos)
 723override COMPILER_OPTIONS+=-S2h
 724endif
 725ifeq ($(FULL_TARGET),i386-haiku)
 726override COMPILER_OPTIONS+=-S2h
 727endif
 728ifeq ($(FULL_TARGET),i386-netbsd)
 729override COMPILER_OPTIONS+=-S2h
 730endif
 731ifeq ($(FULL_TARGET),i386-solaris)
 732override COMPILER_OPTIONS+=-S2h
 733endif
 734ifeq ($(FULL_TARGET),i386-qnx)
 735override COMPILER_OPTIONS+=-S2h
 736endif
 737ifeq ($(FULL_TARGET),i386-netware)
 738override COMPILER_OPTIONS+=-S2h
 739endif
 740ifeq ($(FULL_TARGET),i386-openbsd)
 741override COMPILER_OPTIONS+=-S2h
 742endif
 743ifeq ($(FULL_TARGET),i386-wdosx)
 744override COMPILER_OPTIONS+=-S2h
 745endif
 746ifeq ($(FULL_TARGET),i386-darwin)
 747override COMPILER_OPTIONS+=-S2h
 748endif
 749ifeq ($(FULL_TARGET),i386-emx)
 750override COMPILER_OPTIONS+=-S2h
 751endif
 752ifeq ($(FULL_TARGET),i386-watcom)
 753override COMPILER_OPTIONS+=-S2h
 754endif
 755ifeq ($(FULL_TARGET),i386-netwlibc)
 756override COMPILER_OPTIONS+=-S2h
 757endif
 758ifeq ($(FULL_TARGET),i386-wince)
 759override COMPILER_OPTIONS+=-S2h
 760endif
 761ifeq ($(FULL_TARGET),i386-embedded)
 762override COMPILER_OPTIONS+=-S2h
 763endif
 764ifeq ($(FULL_TARGET),i386-symbian)
 765override COMPILER_OPTIONS+=-S2h
 766endif
 767ifeq ($(FULL_TARGET),i386-nativent)
 768override COMPILER_OPTIONS+=-S2h
 769endif
 770ifeq ($(FULL_TARGET),i386-iphonesim)
 771override COMPILER_OPTIONS+=-S2h
 772endif
 773ifeq ($(FULL_TARGET),m68k-linux)
 774override COMPILER_OPTIONS+=-S2h
 775endif
 776ifeq ($(FULL_TARGET),m68k-freebsd)
 777override COMPILER_OPTIONS+=-S2h
 778endif
 779ifeq ($(FULL_TARGET),m68k-netbsd)
 780override COMPILER_OPTIONS+=-S2h
 781endif
 782ifeq ($(FULL_TARGET),m68k-amiga)
 783override COMPILER_OPTIONS+=-S2h
 784endif
 785ifeq ($(FULL_TARGET),m68k-atari)
 786override COMPILER_OPTIONS+=-S2h
 787endif
 788ifeq ($(FULL_TARGET),m68k-openbsd)
 789override COMPILER_OPTIONS+=-S2h
 790endif
 791ifeq ($(FULL_TARGET),m68k-palmos)
 792override COMPILER_OPTIONS+=-S2h
 793endif
 794ifeq ($(FULL_TARGET),m68k-embedded)
 795override COMPILER_OPTIONS+=-S2h
 796endif
 797ifeq ($(FULL_TARGET),powerpc-linux)
 798override COMPILER_OPTIONS+=-S2h
 799endif
 800ifeq ($(FULL_TARGET),powerpc-netbsd)
 801override COMPILER_OPTIONS+=-S2h
 802endif
 803ifeq ($(FULL_TARGET),powerpc-amiga)
 804override COMPILER_OPTIONS+=-S2h
 805endif
 806ifeq ($(FULL_TARGET),powerpc-macos)
 807override COMPILER_OPTIONS+=-S2h
 808endif
 809ifeq ($(FULL_TARGET),powerpc-darwin)
 810override COMPILER_OPTIONS+=-S2h
 811endif
 812ifeq ($(FULL_TARGET),powerpc-morphos)
 813override COMPILER_OPTIONS+=-S2h
 814endif
 815ifeq ($(FULL_TARGET),powerpc-embedded)
 816override COMPILER_OPTIONS+=-S2h
 817endif
 818ifeq ($(FULL_TARGET),powerpc-wii)
 819override COMPILER_OPTIONS+=-S2h
 820endif
 821ifeq ($(FULL_TARGET),powerpc-aix)
 822override COMPILER_OPTIONS+=-S2h
 823endif
 824ifeq ($(FULL_TARGET),sparc-linux)
 825override COMPILER_OPTIONS+=-S2h
 826endif
 827ifeq ($(FULL_TARGET),sparc-netbsd)
 828override COMPILER_OPTIONS+=-S2h
 829endif
 830ifeq ($(FULL_TARGET),sparc-solaris)
 831override COMPILER_OPTIONS+=-S2h
 832endif
 833ifeq ($(FULL_TARGET),sparc-embedded)
 834override COMPILER_OPTIONS+=-S2h
 835endif
 836ifeq ($(FULL_TARGET),x86_64-linux)
 837override COMPILER_OPTIONS+=-S2h
 838endif
 839ifeq ($(FULL_TARGET),x86_64-freebsd)
 840override COMPILER_OPTIONS+=-S2h
 841endif
 842ifeq ($(FULL_TARGET),x86_64-netbsd)
 843override COMPILER_OPTIONS+=-S2h
 844endif
 845ifeq ($(FULL_TARGET),x86_64-solaris)
 846override COMPILER_OPTIONS+=-S2h
 847endif
 848ifeq ($(FULL_TARGET),x86_64-openbsd)
 849override COMPILER_OPTIONS+=-S2h
 850endif
 851ifeq ($(FULL_TARGET),x86_64-darwin)
 852override COMPILER_OPTIONS+=-S2h
 853endif
 854ifeq ($(FULL_TARGET),x86_64-win64)
 855override COMPILER_OPTIONS+=-S2h
 856endif
 857ifeq ($(FULL_TARGET),x86_64-embedded)
 858override COMPILER_OPTIONS+=-S2h
 859endif
 860ifeq ($(FULL_TARGET),arm-linux)
 861override COMPILER_OPTIONS+=-S2h
 862endif
 863ifeq ($(FULL_TARGET),arm-palmos)
 864override COMPILER_OPTIONS+=-S2h
 865endif
 866ifeq ($(FULL_TARGET),arm-darwin)
 867override COMPILER_OPTIONS+=-S2h
 868endif
 869ifeq ($(FULL_TARGET),arm-wince)
 870override COMPILER_OPTIONS+=-S2h
 871endif
 872ifeq ($(FULL_TARGET),arm-gba)
 873override COMPILER_OPTIONS+=-S2h
 874endif
 875ifeq ($(FULL_TARGET),arm-nds)
 876override COMPILER_OPTIONS+=-S2h
 877endif
 878ifeq ($(FULL_TARGET),arm-embedded)
 879override COMPILER_OPTIONS+=-S2h
 880endif
 881ifeq ($(FULL_TARGET),arm-symbian)
 882override COMPILER_OPTIONS+=-S2h
 883endif
 884ifeq ($(FULL_TARGET),powerpc64-linux)
 885override COMPILER_OPTIONS+=-S2h
 886endif
 887ifeq ($(FULL_TARGET),powerpc64-darwin)
 888override COMPILER_OPTIONS+=-S2h
 889endif
 890ifeq ($(FULL_TARGET),powerpc64-embedded)
 891override COMPILER_OPTIONS+=-S2h
 892endif
 893ifeq ($(FULL_TARGET),powerpc64-aix)
 894override COMPILER_OPTIONS+=-S2h
 895endif
 896ifeq ($(FULL_TARGET),avr-embedded)
 897override COMPILER_OPTIONS+=-S2h
 898endif
 899ifeq ($(FULL_TARGET),armeb-linux)
 900override COMPILER_OPTIONS+=-S2h
 901endif
 902ifeq ($(FULL_TARGET),armeb-embedded)
 903override COMPILER_OPTIONS+=-S2h
 904endif
 905ifeq ($(FULL_TARGET),mips-linux)
 906override COMPILER_OPTIONS+=-S2h
 907endif
 908ifeq ($(FULL_TARGET),mipsel-linux)
 909override COMPILER_OPTIONS+=-S2h
 910endif
 911ifeq ($(FULL_TARGET),i386-linux)
 912override COMPILER_UNITDIR+=../dbase
 913endif
 914ifeq ($(FULL_TARGET),i386-go32v2)
 915override COMPILER_UNITDIR+=../dbase
 916endif
 917ifeq ($(FULL_TARGET),i386-win32)
 918override COMPILER_UNITDIR+=../dbase
 919endif
 920ifeq ($(FULL_TARGET),i386-os2)
 921override COMPILER_UNITDIR+=../dbase
 922endif
 923ifeq ($(FULL_TARGET),i386-freebsd)
 924override COMPILER_UNITDIR+=../dbase
 925endif
 926ifeq ($(FULL_TARGET),i386-beos)
 927override COMPILER_UNITDIR+=../dbase
 928endif
 929ifeq ($(FULL_TARGET),i386-haiku)
 930override COMPILER_UNITDIR+=../dbase
 931endif
 932ifeq ($(FULL_TARGET),i386-netbsd)
 933override COMPILER_UNITDIR+=../dbase
 934endif
 935ifeq ($(FULL_TARGET),i386-solaris)
 936override COMPILER_UNITDIR+=../dbase
 937endif
 938ifeq ($(FULL_TARGET),i386-qnx)
 939override COMPILER_UNITDIR+=../dbase
 940endif
 941ifeq ($(FULL_TARGET),i386-netware)
 942override COMPILER_UNITDIR+=../dbase
 943endif
 944ifeq ($(FULL_TARGET),i386-openbsd)
 945override COMPILER_UNITDIR+=../dbase
 946endif
 947ifeq ($(FULL_TARGET),i386-wdosx)
 948override COMPILER_UNITDIR+=../dbase
 949endif
 950ifeq ($(FULL_TARGET),i386-darwin)
 951override COMPILER_UNITDIR+=../dbase
 952endif
 953ifeq ($(FULL_TARGET),i386-emx)
 954override COMPILER_UNITDIR+=../dbase
 955endif
 956ifeq ($(FULL_TARGET),i386-watcom)
 957override COMPILER_UNITDIR+=../dbase
 958endif
 959ifeq ($(FULL_TARGET),i386-netwlibc)
 960override COMPILER_UNITDIR+=../dbase
 961endif
 962ifeq ($(FULL_TARGET),i386-wince)
 963override COMPILER_UNITDIR+=../dbase
 964endif
 965ifeq ($(FULL_TARGET),i386-embedded)
 966override COMPILER_UNITDIR+=../dbase
 967endif
 968ifeq ($(FULL_TARGET),i386-symbian)
 969override COMPILER_UNITDIR+=../dbase
 970endif
 971ifeq ($(FULL_TARGET),i386-nativent)
 972override COMPILER_UNITDIR+=../dbase
 973endif
 974ifeq ($(FULL_TARGET),i386-iphonesim)
 975override COMPILER_UNITDIR+=../dbase
 976endif
 977ifeq ($(FULL_TARGET),m68k-linux)
 978override COMPILER_UNITDIR+=../dbase
 979endif
 980ifeq ($(FULL_TARGET),m68k-freebsd)
 981override COMPILER_UNITDIR+=../dbase
 982endif
 983ifeq ($(FULL_TARGET),m68k-netbsd)
 984override COMPILER_UNITDIR+=../dbase
 985endif
 986ifeq ($(FULL_TARGET),m68k-amiga)
 987override COMPILER_UNITDIR+=../dbase
 988endif
 989ifeq ($(FULL_TARGET),m68k-atari)
 990override COMPILER_UNITDIR+=../dbase
 991endif
 992ifeq ($(FULL_TARGET),m68k-openbsd)
 993override COMPILER_UNITDIR+=../dbase
 994endif
 995ifeq ($(FULL_TARGET),m68k-palmos)
 996override COMPILER_UNITDIR+=../dbase
 997endif
 998ifeq ($(FULL_TARGET),m68k-embedded)
 999override COMPILER_UNITDIR+=../dbase
1000endif
1001ifeq ($(FULL_TARGET),powerpc-linux)
1002override COMPILER_UNITDIR+=../dbase
1003endif
1004ifeq ($(FULL_TARGET),powerpc-netbsd)
1005override COMPILER_UNITDIR+=../dbase
1006endif
1007ifeq ($(FULL_TARGET),powerpc-amiga)
1008override COMPILER_UNITDIR+=../dbase
1009endif
1010ifeq ($(FULL_TARGET),powerpc-macos)
1011override COMPILER_UNITDIR+=../dbase
1012endif
1013ifeq ($(FULL_TARGET),powerpc-darwin)
1014override COMPILER_UNITDIR+=../dbase
1015endif
1016ifeq ($(FULL_TARGET),powerpc-morphos)
1017override COMPILER_UNITDIR+=../dbase
1018endif
1019ifeq ($(FULL_TARGET),powerpc-embedded)
1020override COMPILER_UNITDIR+=../dbase
1021endif
1022ifeq ($(FULL_TARGET),powerpc-wii)
1023override COMPILER_UNITDIR+=../dbase
1024endif
1025ifeq ($(FULL_TARGET),powerpc-aix)
1026override COMPILER_UNITDIR+=../dbase
1027endif
1028ifeq ($(FULL_TARGET),sparc-linux)
1029override COMPILER_UNITDIR+=../dbase
1030endif
1031ifeq ($(FULL_TARGET),sparc-netbsd)
1032override COMPILER_UNITDIR+=../dbase
1033endif
1034ifeq ($(FULL_TARGET),sparc-solaris)
1035override COMPILER_UNITDIR+=../dbase
1036endif
1037ifeq ($(FULL_TARGET),sparc-embedded)
1038override COMPILER_UNITDIR+=../dbase
1039endif
1040ifeq ($(FULL_TARGET),x86_64-linux)
1041override COMPILER_UNITDIR+=../dbase
1042endif
1043ifeq ($(FULL_TARGET),x86_64-freebsd)
1044override COMPILER_UNITDIR+=../dbase
1045endif
1046ifeq ($(FULL_TARGET),x86_64-netbsd)
1047override COMPILER_UNITDIR+=../dbase
1048endif
1049ifeq ($(FULL_TARGET),x86_64-solaris)
1050override COMPILER_UNITDIR+=../dbase
1051endif
1052ifeq ($(FULL_TARGET),x86_64-openbsd)
1053override COMPILER_UNITDIR+=../dbase
1054endif
1055ifeq ($(FULL_TARGET),x86_64-darwin)
1056override COMPILER_UNITDIR+=../dbase
1057endif
1058ifeq ($(FULL_TARGET),x86_64-win64)
1059override COMPILER_UNITDIR+=../dbase
1060endif
1061ifeq ($(FULL_TARGET),x86_64-embedded)
1062override COMPILER_UNITDIR+=../dbase
1063endif
1064ifeq ($(FULL_TARGET),arm-linux)
1065override COMPILER_UNITDIR+=../dbase
1066endif
1067ifeq ($(FULL_TARGET),arm-palmos)
1068override COMPILER_UNITDIR+=../dbase
1069endif
1070ifeq ($(FULL_TARGET),arm-darwin)
1071override COMPILER_UNITDIR+=../dbase
1072endif
1073ifeq ($(FULL_TARGET),arm-wince)
1074override COMPILER_UNITDIR+=../dbase
1075endif
1076ifeq ($(FULL_TARGET),arm-gba)
1077override COMPILER_UNITDIR+=../dbase
1078endif
1079ifeq ($(FULL_TARGET),arm-nds)
1080override COMPILER_UNITDIR+=../dbase
1081endif
1082ifeq ($(FULL_TARGET),arm-embedded)
1083override COMPILER_UNITDIR+=../dbase
1084endif
1085ifeq ($(FULL_TARGET),arm-symbian)
1086override COMPILER_UNITDIR+=../dbase
1087endif
1088ifeq ($(FULL_TARGET),powerpc64-linux)
1089override COMPILER_UNITDIR+=../dbase
1090endif
1091ifeq ($(FULL_TARGET),powerpc64-darwin)
1092override COMPILER_UNITDIR+=../dbase
1093endif
1094ifeq ($(FULL_TARGET),powerpc64-embedded)
1095override COMPILER_UNITDIR+=../dbase
1096endif
1097ifeq ($(FULL_TARGET),powerpc64-aix)
1098override COMPILER_UNITDIR+=../dbase
1099endif
1100ifeq ($(FULL_TARGET),avr-embedded)
1101override COMPILER_UNITDIR+=../dbase
1102endif
1103ifeq ($(FULL_TARGET),armeb-linux)
1104override COMPILER_UNITDIR+=../dbase
1105endif
1106ifeq ($(FULL_TARGET),armeb-embedded)
1107override COMPILER_UNITDIR+=../dbase
1108endif
1109ifeq ($(FULL_TARGET),mips-linux)
1110override COMPILER_UNITDIR+=../dbase
1111endif
1112ifeq ($(FULL_TARGET),mipsel-linux)
1113override COMPILER_UNITDIR+=../dbase
1114endif
1115ifdef REQUIRE_UNITSDIR
1116override UNITSDIR+=$(REQUIRE_UNITSDIR)
1117endif
1118ifdef REQUIRE_PACKAGESDIR
1119override PACKAGESDIR+=$(REQUIRE_PACKAGESDIR)
1120endif
1121ifdef ZIPINSTALL
1122ifneq ($(findstring $(OS_TARGET),$(UNIXs)),)
1123UNIXHier=1
1124endif
1125else
1126ifneq ($(findstring $(OS_SOURCE),$(UNIXs)),)
1127UNIXHier=1
1128endif
1129endif
1130ifndef INSTALL_PREFIX
1131ifdef PREFIX
1132INSTALL_PREFIX=$(PREFIX)
1133endif
1134endif
1135ifndef INSTALL_PREFIX
1136ifdef UNIXHier
1137INSTALL_PREFIX=/usr/local
1138else
1139ifdef INSTALL_FPCPACKAGE
1140INSTALL_BASEDIR:=/pp
1141else
1142INSTALL_BASEDIR:=/$(PACKAGE_NAME)
1143endif
1144endif
1145endif
1146export INSTALL_PREFIX
1147ifdef INSTALL_FPCSUBDIR
1148export INSTALL_FPCSUBDIR
1149endif
1150ifndef DIST_DESTDIR
1151DIST_DESTDIR:=$(BASEDIR)
1152endif
1153export DIST_DESTDIR
1154ifndef COMPILER_UNITTARGETDIR
1155ifdef PACKAGEDIR_MAIN
1156COMPILER_UNITTARGETDIR=$(PACKAGEDIR_MAIN)/units/$(TARGETSUFFIX)
1157else
1158COMPILER_UNITTARGETDIR=units/$(TARGETSUFFIX)
1159endif
1160endif
1161ifndef COMPILER_TARGETDIR
1162COMPILER_TARGETDIR=.
1163endif
1164ifndef INSTALL_BASEDIR
1165ifdef UNIXHier
1166ifdef INSTALL_FPCPACKAGE
1167INSTALL_BASEDIR:=$(INSTALL_PREFIX)/lib/fpc/$(FPC_VERSION)
1168else
1169INSTALL_BASEDIR:=$(INSTALL_PREFIX)/lib/$(PACKAGE_NAME)
1170endif
1171else
1172INSTALL_BASEDIR:=$(INSTALL_PREFIX)
1173endif
1174endif
1175ifndef INSTALL_BINDIR
1176ifdef UNIXHier
1177INSTALL_BINDIR:=$(INSTALL_PREFIX)/bin
1178else
1179INSTALL_BINDIR:=$(INSTALL_BASEDIR)/bin
1180ifdef INSTALL_FPCPACKAGE
1181ifdef CROSSCOMPILE
1182ifdef CROSSINSTALL
1183INSTALL_BINDIR:=$(INSTALL_BINDIR)/$(SOURCESUFFIX)
1184else
1185INSTALL_BINDIR:=$(INSTALL_BINDIR)/$(TARGETSUFFIX)
1186endif
1187else
1188INSTALL_BINDIR:=$(INSTALL_BINDIR)/$(TARGETSUFFIX)
1189endif
1190endif
1191endif
1192endif
1193ifndef INSTALL_UNITDIR
1194INSTALL_UNITDIR:=$(INSTALL_BASEDIR)/units/$(TARGETSUFFIX)
1195ifdef INSTALL_FPCPACKAGE
1196ifdef PACKAGE_NAME
1197INSTALL_UNITDIR:=$(INSTALL_UNITDIR)/$(PACKAGE_NAME)
1198endif
1199endif
1200endif
1201ifndef INSTALL_LIBDIR
1202ifdef UNIXHier
1203INSTALL_LIBDIR:=$(INSTALL_PREFIX)/lib
1204else
1205INSTALL_LIBDIR:=$(INSTALL_UNITDIR)
1206endif
1207endif
1208ifndef INSTALL_SOURCEDIR
1209ifdef UNIXHier
1210ifdef BSDhier
1211SRCPREFIXDIR=share/src
1212else
1213ifdef linuxHier
1214SRCPREFIXDIR=share/src
1215else
1216SRCPREFIXDIR=src
1217endif
1218endif
1219ifdef INSTALL_FPCPACKAGE
1220ifdef INSTALL_FPCSUBDIR
1221INSTALL_SOURCEDIR:=$(INSTALL_PREFIX)/$(SRCPREFIXDIR)/fpc-$(FPC_VERSION)/$(INSTALL_FPCSUBDIR)/$(PACKAGE_NAME)
1222else
1223INSTALL_SOURCEDIR:=$(INSTALL_PREFIX)/$(SRCPREFIXDIR)/fpc-$(FPC_VERSION)/$(PACKAGE_NAME)
1224endif
1225else
1226INSTALL_SOURCEDIR:=$(INSTALL_PREFIX)/$(SRCPREFIXDIR)/$(PACKAGE_NAME)-$(PACKAGE_VERSION)
1227endif
1228else
1229ifdef INSTALL_FPCPACKAGE
1230ifdef INSTALL_FPCSUBDIR
1231INSTALL_SOURCEDIR:=$(INSTALL_BASEDIR)/source/$(INSTALL_FPCSUBDIR)/$(PACKAGE_NAME)
1232else
1233INSTALL_SOURCEDIR:=$(INSTALL_BASEDIR)/source/$(PACKAGE_NAME)
1234endif
1235else
1236INSTALL_SOURCEDIR:=$(INSTALL_BASEDIR)/source
1237endif
1238endif
1239endif
1240ifndef INSTALL_DOCDIR
1241ifdef UNIXHier
1242ifdef BSDhier
1243DOCPREFIXDIR=share/doc
1244else
1245ifdef linuxHier
1246DOCPREFIXDIR=share/doc
1247else
1248DOCPREFIXDIR=doc
1249endif
1250endif
1251ifdef INSTALL_FPCPACKAGE
1252INSTALL_DOCDIR:=$(INSTALL_PREFIX)/$(DOCPREFIXDIR)/fpc-$(FPC_VERSION)/$(PACKAGE_NAME)
1253else
1254INSTALL_DOCDIR:=$(INSTALL_PREFIX)/$(DOCPREFIXDIR)/$(PACKAGE_NAME)-$(PACKAGE_VERSION)
1255endif
1256else
1257ifdef INSTALL_FPCPACKAGE
1258INSTALL_DOCDIR:=$(INSTALL_BASEDIR)/doc/$(PACKAGE_NAME)
1259else
1260INSTALL_DOCDIR:=$(INSTALL_BASEDIR)/doc
1261endif
1262endif
1263endif
1264ifndef INSTALL_EXAMPLEDIR
1265ifdef UNIXHier
1266ifdef INSTALL_FPCPACKAGE
1267ifdef BSDhier
1268INSTALL_EXAMPLEDIR:=$(INSTALL_PREFIX)/share/examples/fpc-$(FPC_VERSION)/$(PACKAGE_NAME)
1269else
1270ifdef linuxHier
1271INSTALL_EXAMPLEDIR:=$(INSTALL_DOCDIR)/examples
1272else
1273INSTALL_EXAMPLEDIR:=$(INSTALL_PREFIX)/doc/fpc-$(FPC_VERSION)/examples/$(PACKAGE_NAME)
1274endif
1275endif
1276else
1277ifdef BSDhier
1278INSTALL_EXAMPLEDIR:=$(INSTALL_PREFIX)/share/examples/$(PACKAGE_NAME)-$(PACKAGE_VERSION)
1279else
1280ifdef linuxHier
1281INSTALL_EXAMPLEDIR:=$(INSTALL_DOCDIR)/examples/$(PACKAGE_NAME)-$(PACKAGE_VERSION)
1282else
1283INSTALL_EXAMPLEDIR:=$(INSTALL_PREFIX)/doc/$(PACKAGE_NAME)-$(PACKAGE_VERSION)
1284endif
1285endif
1286endif
1287else
1288ifdef INSTALL_FPCPACKAGE
1289INSTALL_EXAMPLEDIR:=$(INSTALL_BASEDIR)/examples/$(PACKAGE_NAME)
1290else
1291INSTALL_EXAMPLEDIR:=$(INSTALL_BASEDIR)/examples
1292endif
1293endif
1294endif
1295ifndef INSTALL_DATADIR
1296INSTALL_DATADIR=$(INSTALL_BASEDIR)
1297endif
1298ifndef INSTALL_SHAREDDIR
1299INSTALL_SHAREDDIR=$(INSTALL_PREFIX)/lib
1300endif
1301ifdef CROSSCOMPILE
1302ifndef CROSSBINDIR
1303CROSSBINDIR:=$(wildcard $(CROSSTARGETDIR)/bin/$(SOURCESUFFIX))
1304ifeq ($(CROSSBINDIR),)
1305CROSSBINDIR:=$(wildcard $(INSTALL_BASEDIR)/cross/$(TARGETSUFFIX)/bin/$(FULL_SOURCE))
1306endif
1307endif
1308else
1309CROSSBINDIR=
1310endif
1311BATCHEXT=.bat
1312LOADEREXT=.as
1313EXEEXT=.exe
1314PPLEXT=.ppl
1315PPUEXT=.ppu
1316OEXT=.o
1317ASMEXT=.s
1318SMARTEXT=.sl
1319STATICLIBEXT=.a
1320SHAREDLIBEXT=.so
1321SHAREDLIBPREFIX=libfp
1322STATICLIBPREFIX=libp
1323IMPORTLIBPREFIX=libimp
1324RSTEXT=.rst
1325EXEDBGEXT=.dbg
1326ifeq ($(OS_TARGET),go32v1)
1327STATICLIBPREFIX=
1328SHORTSUFFIX=v1
1329endif
1330ifeq ($(OS_TARGET),go32v2)
1331STATICLIBPREFIX=
1332SHORTSUFFIX=dos
1333IMPORTLIBPREFIX=
1334endif
1335ifeq ($(OS_TARGET),watcom)
1336STATICLIBPREFIX=
1337OEXT=.obj
1338ASMEXT=.asm
1339SHAREDLIBEXT=.dll
1340SHORTSUFFIX=wat
1341IMPORTLIBPREFIX=
1342endif
1343ifeq ($(OS_TARGET),linux)
1344BATCHEXT=.sh
1345EXEEXT=
1346HASSHAREDLIB=1
1347SHORTSUFFIX=lnx
1348endif
1349ifeq ($(OS_TARGET),freebsd)
1350BATCHEXT=.sh
1351EXEEXT=
1352HASSHAREDLIB=1
1353SHORTSUFFIX=fbs
1354endif
1355ifeq ($(OS_TARGET),netbsd)
1356BATCHEXT=.sh
1357EXEEXT=
1358HASSHAREDLIB=1
1359SHORTSUFFIX=nbs
1360endif
1361ifeq ($(OS_TARGET),openbsd)
1362BATCHEXT=.sh
1363EXEEXT=
1364HASSHAREDLIB=1
1365SHORTSUFFIX=obs
1366endif
1367ifeq ($(OS_TARGET),win32)
1368SHAREDLIBEXT=.dll
1369SHORTSUFFIX=w32
1370endif
1371ifeq ($(OS_TARGET),os2)
1372BATCHEXT=.cmd
1373AOUTEXT=.out
1374STATICLIBPREFIX=
1375SHAREDLIBEXT=.dll
1376SHORTSUFFIX=os2
1377ECHO=echo
1378IMPORTLIBPREFIX=
1379endif
1380ifeq ($(OS_TARGET),emx)
1381BATCHEXT=.cmd
1382AOUTEXT=.out
1383STATICLIBPREFIX=
1384SHAREDLIBEXT=.dll
1385SHORTSUFFIX=emx
1386ECHO=echo
1387IMPORTLIBPREFIX=
1388endif
1389ifeq ($(OS_TARGET),amiga)
1390EXEEXT=
1391SHAREDLIBEXT=.library
1392SHORTSUFFIX=amg
1393endif
1394ifeq ($(OS_TARGET),morphos)
1395EXEEXT=
1396SHAREDLIBEXT=.library
1397SHORTSUFFIX=mos
1398endif
1399ifeq ($(OS_TARGET),atari)
1400EXEEXT=.ttp
1401SHORTSUFFIX=ata
1402endif
1403ifeq ($(OS_TARGET),beos)
1404BATCHEXT=.sh
1405EXEEXT=
1406SHORTSUFFIX=be
1407endif
1408ifeq ($(OS_TARGET),haiku)
1409BATCHEXT=.sh
1410EXEEXT=
1411SHORTSUFFIX=hai
1412endif
1413ifeq ($(OS_TARGET),solaris)
1414BATCHEXT=.sh
1415EXEEXT=
1416SHORTSUFFIX=sun
1417endif
1418ifeq ($(OS_TARGET),qnx)
1419BATCHEXT=.sh
1420EXEEXT=
1421SHORTSUFFIX=qnx
1422endif
1423ifeq ($(OS_TARGET),netware)
1424EXEEXT=.nlm
1425STATICLIBPREFIX=
1426SHORTSUFFIX=nw
1427IMPORTLIBPREFIX=imp
1428endif
1429ifeq ($(OS_TARGET),netwlibc)
1430EXEEXT=.nlm
1431STATICLIBPREFIX=
1432SHORTSUFFIX=nwl
1433IMPORTLIBPREFIX=imp
1434endif
1435ifeq ($(OS_TARGET),macos)
1436BATCHEXT=
1437EXEEXT=
1438DEBUGSYMEXT=.xcoff
1439SHORTSUFFIX=mac
1440IMPORTLIBPREFIX=imp
1441endif
1442ifneq ($(findstring $(OS_TARGET),darwin iphonesim),)
1443BATCHEXT=.sh
1444EXEEXT=
1445HASSHAREDLIB=1
1446SHORTSUFFIX=dwn
1447EXEDBGEXT=.dSYM
1448endif
1449ifeq ($(OS_TARGET),gba)
1450EXEEXT=.gba
1451SHAREDLIBEXT=.so
1452SHORTSUFFIX=gba
1453endif
1454ifeq ($(OS_TARGET),symbian)
1455SHAREDLIBEXT=.dll
1456SHORTSUFFIX=symbian
1457endif
1458ifeq ($(OS_TARGET),NativeNT)
1459SHAREDLIBEXT=.dll
1460SHORTSUFFIX=nativent
1461endif
1462ifeq ($(OS_TARGET),wii)
1463EXEEXT=.dol
1464SHAREDLIBEXT=.so
1465SHORTSUFFIX=wii
1466endif
1467ifeq ($(OS_TARGET),aix)
1468BATCHEXT=.sh
1469EXEEXT=
1470SHORTSUFFIX=aix
1471endif
1472ifneq ($(findstring $(OS_SOURCE),$(LIMIT83fs)),)
1473FPCMADE=fpcmade.$(SHORTSUFFIX)
1474ZIPSUFFIX=$(SHORTSUFFIX)
1475ZIPCROSSPREFIX=
1476ZIPSOURCESUFFIX=src
1477ZIPEXAMPLESUFFIX=exm
1478else
1479FPCMADE=fpcmade.$(TARGETSUFFIX)
1480ZIPSOURCESUFFIX=.source
1481ZIPEXAMPLESUFFIX=.examples
1482ifdef CROSSCOMPILE
1483ZIPSUFFIX=.$(SOURCESUFFIX)
1484ZIPCROSSPREFIX=$(TARGETSUFFIX)-
1485else
1486ZIPSUFFIX=.$(TARGETSUFFIX)
1487ZIPCROSSPREFIX=
1488endif
1489endif
1490ifndef ECHO
1491ECHO:=$(strip $(wildcard $(addsuffix /gecho$(SRCEXEEXT),$(SEARCHPATH))))
1492ifeq ($(ECHO),)
1493ECHO:=$(strip $(wildcard $(addsuffix /echo$(SRCEXEEXT),$(SEARCHPATH))))
1494ifeq ($(ECHO),)
1495ECHO= __missing_command_ECHO
1496else
1497ECHO:=$(firstword $(ECHO))
1498endif
1499else
1500ECHO:=$(firstword $(ECHO))
1501endif
1502endif
1503export ECHO
1504ifndef DATE
1505DATE:=$(strip $(wildcard $(addsuffix /gdate$(SRCEXEEXT),$(SEARCHPATH))))
1506ifeq ($(DATE),)
1507DATE:=$(strip $(wildcard $(addsuffix /date$(SRCEXEEXT),$(SEARCHPATH))))
1508ifeq ($(DATE),)
1509DATE= __missing_command_DATE
1510else
1511DATE:=$(firstword $(DATE))
1512endif
1513else
1514DATE:=$(firstword $(DATE))
1515endif
1516endif
1517export DATE
1518ifndef GINSTALL
1519GINSTALL:=$(strip $(wildcard $(addsuffix /ginstall$(SRCEXEEXT),$(SEARCHPATH))))
1520ifeq ($(GINSTALL),)
1521GINSTALL:=$(strip $(wildcard $(addsuffix /install$(SRCEXEEXT),$(SEARCHPATH))))
1522ifeq ($(GINSTALL),)
1523GINSTALL= __missing_command_GINSTALL
1524else
1525GINSTALL:=$(firstword $(GINSTALL))
1526endif
1527else
1528GINSTALL:=$(firstword $(GINSTALL))
1529endif
1530endif
1531export GINSTALL
1532ifndef CPPROG
1533CPPROG:=$(strip $(wildcard $(addsuffix /cp$(SRCEXEEXT),$(SEARCHPATH))))
1534ifeq ($(CPPROG),)
1535CPPROG= __missing_command_CPPROG
1536else
1537CPPROG:=$(firstword $(CPPROG))
1538endif
1539endif
1540export CPPROG
1541ifndef RMPROG
1542RMPROG:=$(strip $(wildcard $(addsuffix /rm$(SRCEXEEXT),$(SEARCHPATH))))
1543ifeq ($(RMPROG),)
1544RMPROG= __missing_command_RMPROG
1545else
1546RMPROG:=$(firstword $(RMPROG))
1547endif
1548endif
1549export RMPROG
1550ifndef MVPROG
1551MVPROG:=$(strip $(wildcard $(addsuffix /mv$(SRCEXEEXT),$(SEARCHPATH))))
1552ifeq ($(MVPROG),)
1553MVPROG= __missing_command_MVPROG
1554else
1555MVPROG:=$(firstword $(MVPROG))
1556endif
1557endif
1558export MVPROG
1559ifndef MKDIRPROG
1560MKDIRPROG:=$(strip $(wildcard $(addsuffix /gmkdir$(SRCEXEEXT),$(SEARCHPATH))))
1561ifeq ($(MKDIRPROG),)
1562MKDIRPROG:=$(strip $(wildcard $(addsuffix /mkdir$(SRCEXEEXT),$(SEARCHPATH))))
1563ifeq ($(MKDIRPROG),)
1564MKDIRPROG= __missing_command_MKDIRPROG
1565else
1566MKDIRPROG:=$(firstword $(MKDIRPROG))
1567endif
1568else
1569MKDIRPROG:=$(firstword $(MKDIRPROG))
1570endif
1571endif
1572export MKDIRPROG
1573ifndef ECHOREDIR
1574ifndef inUnix
1575ECHOREDIR=echo
1576else
1577ECHOREDIR=$(ECHO)
1578endif
1579endif
1580ifndef COPY
1581COPY:=$(CPPROG) -fp
1582endif
1583ifndef COPYTREE
1584COPYTREE:=$(CPPROG) -Rfp
1585endif
1586ifndef MKDIRTREE
1587MKDIRTREE:=$(MKDIRPROG) -p
1588endif
1589ifndef MOVE
1590MOVE:=$(MVPROG) -f
1591endif
1592ifndef DEL
1593DEL:=$(RMPROG) -f
1594endif
1595ifndef DELTREE
1596DELTREE:=$(RMPROG) -rf
1597endif
1598ifndef INSTALL
1599ifdef inUnix
1600INSTALL:=$(GINSTALL) -c -m 644
1601else
1602INSTALL:=$(COPY)
1603endif
1604endif
1605ifndef INSTALLEXE
1606ifdef inUnix
1607INSTALLEXE:=$(GINSTALL) -c -m 755
1608else
1609INSTALLEXE:=$(COPY)
1610endif
1611endif
1612ifndef MKDIR
1613MKDIR:=$(GINSTALL) -m 755 -d
1614endif
1615export ECHOREDIR COPY COPYTREE MOVE DEL DELTREE INSTALL INSTALLEXE MKDIR
1616ifndef PPUMOVE
1617PPUMOVE:=$(strip $(wildcard $(addsuffix /ppumove$(SRCEXEEXT),$(SEARCHPATH))))
1618ifeq ($(PPUMOVE),)
1619PPUMOVE= __missing_command_PPUMOVE
1620else
1621PPUMOVE:=$(firstword $(PPUMOVE))
1622endif
1623endif
1624export PPUMOVE
1625ifndef FPCMAKE
1626FPCMAKE:=$(strip $(wildcard $(addsuffix /fpcmake$(SRCEXEEXT),$(SEARCHPATH))))
1627ifeq ($(FPCMAKE),)
1628FPCMAKE= __missing_command_FPCMAKE
1629else
1630FPCMAKE:=$(firstword $(FPCMAKE))
1631endif
1632endif
1633export FPCMAKE
1634ifndef ZIPPROG
1635ZIPPROG:=$(strip $(wildcard $(addsuffix /zip$(SRCEXEEXT),$(SEARCHPATH))))
1636ifeq ($(ZIPPROG),)
1637ZIPPROG= __missing_command_ZIPPROG
1638else
1639ZIPPROG:=$(firstword $(ZIPPROG))
1640endif
1641endif
1642export ZIPPROG
1643ifndef TARPROG
1644TARPROG:=$(strip $(wildcard $(addsuffix /gtar$(SRCEXEEXT),$(SEARCHPATH))))
1645ifeq ($(TARPROG),)
1646TARPROG:=$(strip $(wildcard $(addsuffix /tar$(SRCEXEEXT),$(SEARCHPATH))))
1647ifeq ($(TARPROG),)
1648TARPROG= __missing_command_TARPROG
1649else
1650TARPROG:=$(firstword $(TARPROG))
1651endif
1652else
1653TARPROG:=$(firstword $(TARPROG))
1654endif
1655endif
1656export TARPROG
1657ASNAME=$(BINUTILSPREFIX)as
1658LDNAME=$(BINUTILSPREFIX)ld
1659ARNAME=$(BINUTILSPREFIX)ar
1660RCNAME=$(BINUTILSPREFIX)rc
1661ifndef ASPROG
1662ifdef CROSSBINDIR
1663ASPROG=$(CROSSBINDIR)/$(ASNAME)$(SRCEXEEXT)
1664else
1665ASPROG=$(ASNAME)
1666endif
1667endif
1668ifndef LDPROG
1669ifdef CROSSBINDIR
1670LDPROG=$(CROSSBINDIR)/$(LDNAME)$(SRCEXEEXT)
1671else
1672LDPROG=$(LDNAME)
1673endif
1674endif
1675ifndef RCPROG
1676ifdef CROSSBINDIR
1677RCPROG=$(CROSSBINDIR)/$(RCNAME)$(SRCEXEEXT)
1678else
1679RCPROG=$(RCNAME)
1680endif
1681endif
1682ifndef ARPROG
1683ifdef CROSSBINDIR
1684ARPROG=$(CROSSBINDIR)/$(ARNAME)$(SRCEXEEXT)
1685else
1686ARPROG=$(ARNAME)
1687endif
1688endif
1689AS=$(ASPROG)
1690LD=$(LDPROG)
1691RC=$(RCPROG)
1692AR=$(ARPROG)
1693PPAS=ppas$(SRCBATCHEXT)
1694ifdef inUnix
1695LDCONFIG=ldconfig
1696else
1697LDCONFIG=
1698endif
1699ifdef DATE
1700DATESTR:=$(shell $(DATE) +%Y%m%d)
1701else
1702DATESTR=
1703endif
1704ZIPOPT=-9
1705ZIPEXT=.zip
1706ifeq ($(USETAR),bz2)
1707TAROPT=vj
1708TAREXT=.tar.bz2
1709else
1710TAROPT=vz
1711TAREXT=.tar.gz
1712endif
1713override REQUIRE_PACKAGES=rtl fcl-base fcl-xml
1714ifeq ($(FULL_TARGET),i386-linux)
1715REQUIRE_PACKAGES_RTL=1
1716REQUIRE_PACKAGES_PASZLIB=1
1717REQUIRE_PACKAGES_FCL-PROCESS=1
1718REQUIRE_PACKAGES_HASH=1
1719REQUIRE_PACKAGES_FPMKUNIT=1
1720REQUIRE_PACKAGES_FCL-BASE=1
1721REQUIRE_PACKAGES_FCL-XML=1
1722endif
1723ifeq ($(FULL_TARGET),i386-go32v2)
1724REQUIRE_PACKAGES_RTL=1
1725REQUIRE_PACKAGES_PASZLIB=1
1726REQUIRE_PACKAGES_FCL-PROCESS=1
1727REQUIRE_PACKAGES_HASH=1
1728REQUIRE_PACKAGES_FPMKUNIT=1
1729REQUIRE_PACKAGES_FCL-BASE=1
1730REQUIRE_PACKAGES_FCL-XML=1
1731endif
1732ifeq ($(FULL_TARGET),i386-win32)
1733REQUIRE_PACKAGES_RTL=1
1734REQUIRE_PACKAGES_PASZLIB=1
1735REQUIRE_PACKAGES_FCL-PROCESS=1
1736REQUIRE_PACKAGES_HASH=1
1737REQUIRE_PACKAGES_FPMKUNIT=1
1738REQUIRE_PACKAGES_FCL-BASE=1
1739REQUIRE_PACKAGES_FCL-XML=1
1740endif
1741ifeq ($(FULL_TARGET),i386-os2)
1742REQUIRE_PACKAGES_RTL=1
1743REQUIRE_PACKAGES_PASZLIB=1
1744REQUIRE_PACKAGES_FCL-PROCESS=1
1745REQUIRE_PACKAGES_HASH=1
1746REQUIRE_PACKAGES_FPMKUNIT=1
1747REQUIRE_PACKAGES_FCL-BASE=1
1748REQUIRE_PACKAGES_FCL-XML=1
1749endif
1750ifeq ($(FULL_TARGET),i386-freebsd)
1751REQUIRE_PACKAGES_RTL=1
1752REQUIRE_PACKAGES_PASZLIB=1
1753REQUIRE_PACKAGES_FCL-PROCESS=1
1754REQUIRE_PACKAGES_HASH=1
1755REQUIRE_PACKAGES_FPMKUNIT=1
1756REQUIRE_PACKAGES_FCL-BASE=1
1757REQUIRE_PACKAGES_FCL-XML=1
1758endif
1759ifeq ($(FULL_TARGET),i386-beos)
1760REQUIRE_PACKAGES_RTL=1
1761REQUIRE_PACKAGES_PASZLIB=1
1762REQUIRE_PACKAGES_FCL-PROCESS=1
1763REQUIRE_PACKAGES_HASH=1
1764REQUIRE_PACKAGES_FPMKUNIT=1
1765REQUIRE_PACKAGES_FCL-BASE=1
1766REQUIRE_PACKAGES_FCL-XML=1
1767endif
1768ifeq ($(FULL_TARGET),i386-haiku)
1769REQUIRE_PACKAGES_RTL=1
1770REQUIRE_PACKAGES_PASZLIB=1
1771REQUIRE_PACKAGES_FCL-PROCESS=1
1772REQUIRE_PACKAGES_HASH=1
1773REQUIRE_PACKAGES_FPMKUNIT=1
1774REQUIRE_PACKAGES_FCL-BASE=1
1775REQUIRE_PACKAGES_FCL-XML=1
1776endif
1777ifeq ($(FULL_TARGET),i386-netbsd)
1778REQUIRE_PACKAGES_RTL=1
1779REQUIRE_PACKAGES_PASZLIB=1
1780REQUIRE_PACKAGES_FCL-PROCESS=1
1781REQUIRE_PACKAGES_HASH=1
1782REQUIRE_PACKAGES_FPMKUNIT=1
1783REQUIRE_PACKAGES_FCL-BASE=1
1784REQUIRE_PACKAGES_FCL-XML=1
1785endif
1786ifeq ($(FULL_TARGET),i386-solaris)
1787REQUIRE_PACKAGES_RTL=1
1788REQUIRE_PACKAGES_PASZLIB=1
1789REQUIRE_PACKAGES_FCL-PROCESS=1
1790REQUIRE_PACKAGES_HASH=1
1791REQUIRE_PACKAGES_FPMKUNIT=1
1792REQUIRE_PACKAGES_FCL-BASE=1
1793REQUIRE_PACKAGES_FCL-XML=1
1794endif
1795ifeq ($(FULL_TARGET),i386-qnx)
1796REQUIRE_PACKAGES_RTL=1
1797REQUIRE_PACKAGES_PASZLIB=1
1798REQUIRE_PACKAGES_FCL-PROCESS=1
1799REQUIRE_PACKAGES_HASH=1
1800REQUIRE_PACKAGES_FPMKUNIT=1
1801REQUIRE_PACKAGES_FCL-BASE=1
1802REQUIRE_PACKAGES_FCL-XML=1
1803endif
1804ifeq ($(FULL_TARGET),i386-netware)
1805REQUIRE_PACKAGES_RTL=1
1806REQUIRE_PACKAGES_PASZLIB=1
1807REQUIRE_PACKAGES_FCL-PROCESS=1
1808REQUIRE_PACKAGES_HASH=1
1809REQUIRE_PACKAGES_FPMKUNIT=1
1810REQUIRE_PACKAGES_FCL-BASE=1
1811REQUIRE_PACKAGES_FCL-XML=1
1812endif
1813ifeq ($(FULL_TARGET),i386-openbsd)
1814REQUIRE_PACKAGES_RTL=1
1815REQUIRE_PACKAGES_PASZLIB=1
1816REQUIRE_PACKAGES_FCL-PROCESS=1
1817REQUIRE_PACKAGE

Large files files are truncated, but you can click here to view the full file