PageRenderTime 119ms CodeModel.GetById 15ms app.highlight 92ms RepoModel.GetById 0ms app.codeStats 1ms

/packages/httpd22/examples/Makefile

https://github.com/slibre/freepascal
Makefile | 2615 lines | 2612 code | 0 blank | 3 comment | 7 complexity | bcd45c9267672a35dc5fed870c0ccaca 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
 295ifeq ($(FULL_TARGET),i386-linux)
 296override TARGET_PROGRAMS+=mod_example  mod_hello  mod_spelling  testmodule
 297endif
 298ifeq ($(FULL_TARGET),i386-go32v2)
 299override TARGET_PROGRAMS+=mod_example  mod_hello  mod_spelling  testmodule
 300endif
 301ifeq ($(FULL_TARGET),i386-win32)
 302override TARGET_PROGRAMS+=mod_example  mod_hello  mod_spelling  testmodule
 303endif
 304ifeq ($(FULL_TARGET),i386-os2)
 305override TARGET_PROGRAMS+=mod_example  mod_hello  mod_spelling  testmodule
 306endif
 307ifeq ($(FULL_TARGET),i386-freebsd)
 308override TARGET_PROGRAMS+=mod_example  mod_hello  mod_spelling  testmodule
 309endif
 310ifeq ($(FULL_TARGET),i386-beos)
 311override TARGET_PROGRAMS+=mod_example  mod_hello  mod_spelling  testmodule
 312endif
 313ifeq ($(FULL_TARGET),i386-haiku)
 314override TARGET_PROGRAMS+=mod_example  mod_hello  mod_spelling  testmodule
 315endif
 316ifeq ($(FULL_TARGET),i386-netbsd)
 317override TARGET_PROGRAMS+=mod_example  mod_hello  mod_spelling  testmodule
 318endif
 319ifeq ($(FULL_TARGET),i386-solaris)
 320override TARGET_PROGRAMS+=mod_example  mod_hello  mod_spelling  testmodule
 321endif
 322ifeq ($(FULL_TARGET),i386-qnx)
 323override TARGET_PROGRAMS+=mod_example  mod_hello  mod_spelling  testmodule
 324endif
 325ifeq ($(FULL_TARGET),i386-netware)
 326override TARGET_PROGRAMS+=mod_example  mod_hello  mod_spelling  testmodule
 327endif
 328ifeq ($(FULL_TARGET),i386-openbsd)
 329override TARGET_PROGRAMS+=mod_example  mod_hello  mod_spelling  testmodule
 330endif
 331ifeq ($(FULL_TARGET),i386-wdosx)
 332override TARGET_PROGRAMS+=mod_example  mod_hello  mod_spelling  testmodule
 333endif
 334ifeq ($(FULL_TARGET),i386-darwin)
 335override TARGET_PROGRAMS+=mod_example  mod_hello  mod_spelling  testmodule
 336endif
 337ifeq ($(FULL_TARGET),i386-emx)
 338override TARGET_PROGRAMS+=mod_example  mod_hello  mod_spelling  testmodule
 339endif
 340ifeq ($(FULL_TARGET),i386-watcom)
 341override TARGET_PROGRAMS+=mod_example  mod_hello  mod_spelling  testmodule
 342endif
 343ifeq ($(FULL_TARGET),i386-netwlibc)
 344override TARGET_PROGRAMS+=mod_example  mod_hello  mod_spelling  testmodule
 345endif
 346ifeq ($(FULL_TARGET),i386-wince)
 347override TARGET_PROGRAMS+=mod_example  mod_hello  mod_spelling  testmodule
 348endif
 349ifeq ($(FULL_TARGET),i386-embedded)
 350override TARGET_PROGRAMS+=mod_example  mod_hello  mod_spelling  testmodule
 351endif
 352ifeq ($(FULL_TARGET),i386-symbian)
 353override TARGET_PROGRAMS+=mod_example  mod_hello  mod_spelling  testmodule
 354endif
 355ifeq ($(FULL_TARGET),i386-nativent)
 356override TARGET_PROGRAMS+=mod_example  mod_hello  mod_spelling  testmodule
 357endif
 358ifeq ($(FULL_TARGET),i386-iphonesim)
 359override TARGET_PROGRAMS+=mod_example  mod_hello  mod_spelling  testmodule
 360endif
 361ifeq ($(FULL_TARGET),m68k-linux)
 362override TARGET_PROGRAMS+=mod_example  mod_hello  mod_spelling  testmodule
 363endif
 364ifeq ($(FULL_TARGET),m68k-freebsd)
 365override TARGET_PROGRAMS+=mod_example  mod_hello  mod_spelling  testmodule
 366endif
 367ifeq ($(FULL_TARGET),m68k-netbsd)
 368override TARGET_PROGRAMS+=mod_example  mod_hello  mod_spelling  testmodule
 369endif
 370ifeq ($(FULL_TARGET),m68k-amiga)
 371override TARGET_PROGRAMS+=mod_example  mod_hello  mod_spelling  testmodule
 372endif
 373ifeq ($(FULL_TARGET),m68k-atari)
 374override TARGET_PROGRAMS+=mod_example  mod_hello  mod_spelling  testmodule
 375endif
 376ifeq ($(FULL_TARGET),m68k-openbsd)
 377override TARGET_PROGRAMS+=mod_example  mod_hello  mod_spelling  testmodule
 378endif
 379ifeq ($(FULL_TARGET),m68k-palmos)
 380override TARGET_PROGRAMS+=mod_example  mod_hello  mod_spelling  testmodule
 381endif
 382ifeq ($(FULL_TARGET),m68k-embedded)
 383override TARGET_PROGRAMS+=mod_example  mod_hello  mod_spelling  testmodule
 384endif
 385ifeq ($(FULL_TARGET),powerpc-linux)
 386override TARGET_PROGRAMS+=mod_example  mod_hello  mod_spelling  testmodule
 387endif
 388ifeq ($(FULL_TARGET),powerpc-netbsd)
 389override TARGET_PROGRAMS+=mod_example  mod_hello  mod_spelling  testmodule
 390endif
 391ifeq ($(FULL_TARGET),powerpc-amiga)
 392override TARGET_PROGRAMS+=mod_example  mod_hello  mod_spelling  testmodule
 393endif
 394ifeq ($(FULL_TARGET),powerpc-macos)
 395override TARGET_PROGRAMS+=mod_example  mod_hello  mod_spelling  testmodule
 396endif
 397ifeq ($(FULL_TARGET),powerpc-darwin)
 398override TARGET_PROGRAMS+=mod_example  mod_hello  mod_spelling  testmodule
 399endif
 400ifeq ($(FULL_TARGET),powerpc-morphos)
 401override TARGET_PROGRAMS+=mod_example  mod_hello  mod_spelling  testmodule
 402endif
 403ifeq ($(FULL_TARGET),powerpc-embedded)
 404override TARGET_PROGRAMS+=mod_example  mod_hello  mod_spelling  testmodule
 405endif
 406ifeq ($(FULL_TARGET),powerpc-wii)
 407override TARGET_PROGRAMS+=mod_example  mod_hello  mod_spelling  testmodule
 408endif
 409ifeq ($(FULL_TARGET),powerpc-aix)
 410override TARGET_PROGRAMS+=mod_example  mod_hello  mod_spelling  testmodule
 411endif
 412ifeq ($(FULL_TARGET),sparc-linux)
 413override TARGET_PROGRAMS+=mod_example  mod_hello  mod_spelling  testmodule
 414endif
 415ifeq ($(FULL_TARGET),sparc-netbsd)
 416override TARGET_PROGRAMS+=mod_example  mod_hello  mod_spelling  testmodule
 417endif
 418ifeq ($(FULL_TARGET),sparc-solaris)
 419override TARGET_PROGRAMS+=mod_example  mod_hello  mod_spelling  testmodule
 420endif
 421ifeq ($(FULL_TARGET),sparc-embedded)
 422override TARGET_PROGRAMS+=mod_example  mod_hello  mod_spelling  testmodule
 423endif
 424ifeq ($(FULL_TARGET),x86_64-linux)
 425override TARGET_PROGRAMS+=mod_example  mod_hello  mod_spelling  testmodule
 426endif
 427ifeq ($(FULL_TARGET),x86_64-freebsd)
 428override TARGET_PROGRAMS+=mod_example  mod_hello  mod_spelling  testmodule
 429endif
 430ifeq ($(FULL_TARGET),x86_64-netbsd)
 431override TARGET_PROGRAMS+=mod_example  mod_hello  mod_spelling  testmodule
 432endif
 433ifeq ($(FULL_TARGET),x86_64-solaris)
 434override TARGET_PROGRAMS+=mod_example  mod_hello  mod_spelling  testmodule
 435endif
 436ifeq ($(FULL_TARGET),x86_64-openbsd)
 437override TARGET_PROGRAMS+=mod_example  mod_hello  mod_spelling  testmodule
 438endif
 439ifeq ($(FULL_TARGET),x86_64-darwin)
 440override TARGET_PROGRAMS+=mod_example  mod_hello  mod_spelling  testmodule
 441endif
 442ifeq ($(FULL_TARGET),x86_64-win64)
 443override TARGET_PROGRAMS+=mod_example  mod_hello  mod_spelling  testmodule
 444endif
 445ifeq ($(FULL_TARGET),x86_64-embedded)
 446override TARGET_PROGRAMS+=mod_example  mod_hello  mod_spelling  testmodule
 447endif
 448ifeq ($(FULL_TARGET),arm-linux)
 449override TARGET_PROGRAMS+=mod_example  mod_hello  mod_spelling  testmodule
 450endif
 451ifeq ($(FULL_TARGET),arm-palmos)
 452override TARGET_PROGRAMS+=mod_example  mod_hello  mod_spelling  testmodule
 453endif
 454ifeq ($(FULL_TARGET),arm-darwin)
 455override TARGET_PROGRAMS+=mod_example  mod_hello  mod_spelling  testmodule
 456endif
 457ifeq ($(FULL_TARGET),arm-wince)
 458override TARGET_PROGRAMS+=mod_example  mod_hello  mod_spelling  testmodule
 459endif
 460ifeq ($(FULL_TARGET),arm-gba)
 461override TARGET_PROGRAMS+=mod_example  mod_hello  mod_spelling  testmodule
 462endif
 463ifeq ($(FULL_TARGET),arm-nds)
 464override TARGET_PROGRAMS+=mod_example  mod_hello  mod_spelling  testmodule
 465endif
 466ifeq ($(FULL_TARGET),arm-embedded)
 467override TARGET_PROGRAMS+=mod_example  mod_hello  mod_spelling  testmodule
 468endif
 469ifeq ($(FULL_TARGET),arm-symbian)
 470override TARGET_PROGRAMS+=mod_example  mod_hello  mod_spelling  testmodule
 471endif
 472ifeq ($(FULL_TARGET),powerpc64-linux)
 473override TARGET_PROGRAMS+=mod_example  mod_hello  mod_spelling  testmodule
 474endif
 475ifeq ($(FULL_TARGET),powerpc64-darwin)
 476override TARGET_PROGRAMS+=mod_example  mod_hello  mod_spelling  testmodule
 477endif
 478ifeq ($(FULL_TARGET),powerpc64-embedded)
 479override TARGET_PROGRAMS+=mod_example  mod_hello  mod_spelling  testmodule
 480endif
 481ifeq ($(FULL_TARGET),powerpc64-aix)
 482override TARGET_PROGRAMS+=mod_example  mod_hello  mod_spelling  testmodule
 483endif
 484ifeq ($(FULL_TARGET),avr-embedded)
 485override TARGET_PROGRAMS+=mod_example  mod_hello  mod_spelling  testmodule
 486endif
 487ifeq ($(FULL_TARGET),armeb-linux)
 488override TARGET_PROGRAMS+=mod_example  mod_hello  mod_spelling  testmodule
 489endif
 490ifeq ($(FULL_TARGET),armeb-embedded)
 491override TARGET_PROGRAMS+=mod_example  mod_hello  mod_spelling  testmodule
 492endif
 493ifeq ($(FULL_TARGET),mips-linux)
 494override TARGET_PROGRAMS+=mod_example  mod_hello  mod_spelling  testmodule
 495endif
 496ifeq ($(FULL_TARGET),mipsel-linux)
 497override TARGET_PROGRAMS+=mod_example  mod_hello  mod_spelling  testmodule
 498endif
 499ifeq ($(FULL_TARGET),i386-linux)
 500override TARGET_UNITS+=minimain
 501endif
 502ifeq ($(FULL_TARGET),i386-go32v2)
 503override TARGET_UNITS+=minimain
 504endif
 505ifeq ($(FULL_TARGET),i386-win32)
 506override TARGET_UNITS+=minimain
 507endif
 508ifeq ($(FULL_TARGET),i386-os2)
 509override TARGET_UNITS+=minimain
 510endif
 511ifeq ($(FULL_TARGET),i386-freebsd)
 512override TARGET_UNITS+=minimain
 513endif
 514ifeq ($(FULL_TARGET),i386-beos)
 515override TARGET_UNITS+=minimain
 516endif
 517ifeq ($(FULL_TARGET),i386-haiku)
 518override TARGET_UNITS+=minimain
 519endif
 520ifeq ($(FULL_TARGET),i386-netbsd)
 521override TARGET_UNITS+=minimain
 522endif
 523ifeq ($(FULL_TARGET),i386-solaris)
 524override TARGET_UNITS+=minimain
 525endif
 526ifeq ($(FULL_TARGET),i386-qnx)
 527override TARGET_UNITS+=minimain
 528endif
 529ifeq ($(FULL_TARGET),i386-netware)
 530override TARGET_UNITS+=minimain
 531endif
 532ifeq ($(FULL_TARGET),i386-openbsd)
 533override TARGET_UNITS+=minimain
 534endif
 535ifeq ($(FULL_TARGET),i386-wdosx)
 536override TARGET_UNITS+=minimain
 537endif
 538ifeq ($(FULL_TARGET),i386-darwin)
 539override TARGET_UNITS+=minimain
 540endif
 541ifeq ($(FULL_TARGET),i386-emx)
 542override TARGET_UNITS+=minimain
 543endif
 544ifeq ($(FULL_TARGET),i386-watcom)
 545override TARGET_UNITS+=minimain
 546endif
 547ifeq ($(FULL_TARGET),i386-netwlibc)
 548override TARGET_UNITS+=minimain
 549endif
 550ifeq ($(FULL_TARGET),i386-wince)
 551override TARGET_UNITS+=minimain
 552endif
 553ifeq ($(FULL_TARGET),i386-embedded)
 554override TARGET_UNITS+=minimain
 555endif
 556ifeq ($(FULL_TARGET),i386-symbian)
 557override TARGET_UNITS+=minimain
 558endif
 559ifeq ($(FULL_TARGET),i386-nativent)
 560override TARGET_UNITS+=minimain
 561endif
 562ifeq ($(FULL_TARGET),i386-iphonesim)
 563override TARGET_UNITS+=minimain
 564endif
 565ifeq ($(FULL_TARGET),m68k-linux)
 566override TARGET_UNITS+=minimain
 567endif
 568ifeq ($(FULL_TARGET),m68k-freebsd)
 569override TARGET_UNITS+=minimain
 570endif
 571ifeq ($(FULL_TARGET),m68k-netbsd)
 572override TARGET_UNITS+=minimain
 573endif
 574ifeq ($(FULL_TARGET),m68k-amiga)
 575override TARGET_UNITS+=minimain
 576endif
 577ifeq ($(FULL_TARGET),m68k-atari)
 578override TARGET_UNITS+=minimain
 579endif
 580ifeq ($(FULL_TARGET),m68k-openbsd)
 581override TARGET_UNITS+=minimain
 582endif
 583ifeq ($(FULL_TARGET),m68k-palmos)
 584override TARGET_UNITS+=minimain
 585endif
 586ifeq ($(FULL_TARGET),m68k-embedded)
 587override TARGET_UNITS+=minimain
 588endif
 589ifeq ($(FULL_TARGET),powerpc-linux)
 590override TARGET_UNITS+=minimain
 591endif
 592ifeq ($(FULL_TARGET),powerpc-netbsd)
 593override TARGET_UNITS+=minimain
 594endif
 595ifeq ($(FULL_TARGET),powerpc-amiga)
 596override TARGET_UNITS+=minimain
 597endif
 598ifeq ($(FULL_TARGET),powerpc-macos)
 599override TARGET_UNITS+=minimain
 600endif
 601ifeq ($(FULL_TARGET),powerpc-darwin)
 602override TARGET_UNITS+=minimain
 603endif
 604ifeq ($(FULL_TARGET),powerpc-morphos)
 605override TARGET_UNITS+=minimain
 606endif
 607ifeq ($(FULL_TARGET),powerpc-embedded)
 608override TARGET_UNITS+=minimain
 609endif
 610ifeq ($(FULL_TARGET),powerpc-wii)
 611override TARGET_UNITS+=minimain
 612endif
 613ifeq ($(FULL_TARGET),powerpc-aix)
 614override TARGET_UNITS+=minimain
 615endif
 616ifeq ($(FULL_TARGET),sparc-linux)
 617override TARGET_UNITS+=minimain
 618endif
 619ifeq ($(FULL_TARGET),sparc-netbsd)
 620override TARGET_UNITS+=minimain
 621endif
 622ifeq ($(FULL_TARGET),sparc-solaris)
 623override TARGET_UNITS+=minimain
 624endif
 625ifeq ($(FULL_TARGET),sparc-embedded)
 626override TARGET_UNITS+=minimain
 627endif
 628ifeq ($(FULL_TARGET),x86_64-linux)
 629override TARGET_UNITS+=minimain
 630endif
 631ifeq ($(FULL_TARGET),x86_64-freebsd)
 632override TARGET_UNITS+=minimain
 633endif
 634ifeq ($(FULL_TARGET),x86_64-netbsd)
 635override TARGET_UNITS+=minimain
 636endif
 637ifeq ($(FULL_TARGET),x86_64-solaris)
 638override TARGET_UNITS+=minimain
 639endif
 640ifeq ($(FULL_TARGET),x86_64-openbsd)
 641override TARGET_UNITS+=minimain
 642endif
 643ifeq ($(FULL_TARGET),x86_64-darwin)
 644override TARGET_UNITS+=minimain
 645endif
 646ifeq ($(FULL_TARGET),x86_64-win64)
 647override TARGET_UNITS+=minimain
 648endif
 649ifeq ($(FULL_TARGET),x86_64-embedded)
 650override TARGET_UNITS+=minimain
 651endif
 652ifeq ($(FULL_TARGET),arm-linux)
 653override TARGET_UNITS+=minimain
 654endif
 655ifeq ($(FULL_TARGET),arm-palmos)
 656override TARGET_UNITS+=minimain
 657endif
 658ifeq ($(FULL_TARGET),arm-darwin)
 659override TARGET_UNITS+=minimain
 660endif
 661ifeq ($(FULL_TARGET),arm-wince)
 662override TARGET_UNITS+=minimain
 663endif
 664ifeq ($(FULL_TARGET),arm-gba)
 665override TARGET_UNITS+=minimain
 666endif
 667ifeq ($(FULL_TARGET),arm-nds)
 668override TARGET_UNITS+=minimain
 669endif
 670ifeq ($(FULL_TARGET),arm-embedded)
 671override TARGET_UNITS+=minimain
 672endif
 673ifeq ($(FULL_TARGET),arm-symbian)
 674override TARGET_UNITS+=minimain
 675endif
 676ifeq ($(FULL_TARGET),powerpc64-linux)
 677override TARGET_UNITS+=minimain
 678endif
 679ifeq ($(FULL_TARGET),powerpc64-darwin)
 680override TARGET_UNITS+=minimain
 681endif
 682ifeq ($(FULL_TARGET),powerpc64-embedded)
 683override TARGET_UNITS+=minimain
 684endif
 685ifeq ($(FULL_TARGET),powerpc64-aix)
 686override TARGET_UNITS+=minimain
 687endif
 688ifeq ($(FULL_TARGET),avr-embedded)
 689override TARGET_UNITS+=minimain
 690endif
 691ifeq ($(FULL_TARGET),armeb-linux)
 692override TARGET_UNITS+=minimain
 693endif
 694ifeq ($(FULL_TARGET),armeb-embedded)
 695override TARGET_UNITS+=minimain
 696endif
 697ifeq ($(FULL_TARGET),mips-linux)
 698override TARGET_UNITS+=minimain
 699endif
 700ifeq ($(FULL_TARGET),mipsel-linux)
 701override TARGET_UNITS+=minimain
 702endif
 703override INSTALL_FPCPACKAGE=y
 704ifdef REQUIRE_UNITSDIR
 705override UNITSDIR+=$(REQUIRE_UNITSDIR)
 706endif
 707ifdef REQUIRE_PACKAGESDIR
 708override PACKAGESDIR+=$(REQUIRE_PACKAGESDIR)
 709endif
 710ifdef ZIPINSTALL
 711ifneq ($(findstring $(OS_TARGET),$(UNIXs)),)
 712UNIXHier=1
 713endif
 714else
 715ifneq ($(findstring $(OS_SOURCE),$(UNIXs)),)
 716UNIXHier=1
 717endif
 718endif
 719ifndef INSTALL_PREFIX
 720ifdef PREFIX
 721INSTALL_PREFIX=$(PREFIX)
 722endif
 723endif
 724ifndef INSTALL_PREFIX
 725ifdef UNIXHier
 726INSTALL_PREFIX=/usr/local
 727else
 728ifdef INSTALL_FPCPACKAGE
 729INSTALL_BASEDIR:=/pp
 730else
 731INSTALL_BASEDIR:=/$(PACKAGE_NAME)
 732endif
 733endif
 734endif
 735export INSTALL_PREFIX
 736ifdef INSTALL_FPCSUBDIR
 737export INSTALL_FPCSUBDIR
 738endif
 739ifndef DIST_DESTDIR
 740DIST_DESTDIR:=$(BASEDIR)
 741endif
 742export DIST_DESTDIR
 743ifndef COMPILER_UNITTARGETDIR
 744ifdef PACKAGEDIR_MAIN
 745COMPILER_UNITTARGETDIR=$(PACKAGEDIR_MAIN)/units/$(TARGETSUFFIX)
 746else
 747COMPILER_UNITTARGETDIR=units/$(TARGETSUFFIX)
 748endif
 749endif
 750ifndef COMPILER_TARGETDIR
 751COMPILER_TARGETDIR=.
 752endif
 753ifndef INSTALL_BASEDIR
 754ifdef UNIXHier
 755ifdef INSTALL_FPCPACKAGE
 756INSTALL_BASEDIR:=$(INSTALL_PREFIX)/lib/fpc/$(FPC_VERSION)
 757else
 758INSTALL_BASEDIR:=$(INSTALL_PREFIX)/lib/$(PACKAGE_NAME)
 759endif
 760else
 761INSTALL_BASEDIR:=$(INSTALL_PREFIX)
 762endif
 763endif
 764ifndef INSTALL_BINDIR
 765ifdef UNIXHier
 766INSTALL_BINDIR:=$(INSTALL_PREFIX)/bin
 767else
 768INSTALL_BINDIR:=$(INSTALL_BASEDIR)/bin
 769ifdef INSTALL_FPCPACKAGE
 770ifdef CROSSCOMPILE
 771ifdef CROSSINSTALL
 772INSTALL_BINDIR:=$(INSTALL_BINDIR)/$(SOURCESUFFIX)
 773else
 774INSTALL_BINDIR:=$(INSTALL_BINDIR)/$(TARGETSUFFIX)
 775endif
 776else
 777INSTALL_BINDIR:=$(INSTALL_BINDIR)/$(TARGETSUFFIX)
 778endif
 779endif
 780endif
 781endif
 782ifndef INSTALL_UNITDIR
 783INSTALL_UNITDIR:=$(INSTALL_BASEDIR)/units/$(TARGETSUFFIX)
 784ifdef INSTALL_FPCPACKAGE
 785ifdef PACKAGE_NAME
 786INSTALL_UNITDIR:=$(INSTALL_UNITDIR)/$(PACKAGE_NAME)
 787endif
 788endif
 789endif
 790ifndef INSTALL_LIBDIR
 791ifdef UNIXHier
 792INSTALL_LIBDIR:=$(INSTALL_PREFIX)/lib
 793else
 794INSTALL_LIBDIR:=$(INSTALL_UNITDIR)
 795endif
 796endif
 797ifndef INSTALL_SOURCEDIR
 798ifdef UNIXHier
 799ifdef BSDhier
 800SRCPREFIXDIR=share/src
 801else
 802ifdef linuxHier
 803SRCPREFIXDIR=share/src
 804else
 805SRCPREFIXDIR=src
 806endif
 807endif
 808ifdef INSTALL_FPCPACKAGE
 809ifdef INSTALL_FPCSUBDIR
 810INSTALL_SOURCEDIR:=$(INSTALL_PREFIX)/$(SRCPREFIXDIR)/fpc-$(FPC_VERSION)/$(INSTALL_FPCSUBDIR)/$(PACKAGE_NAME)
 811else
 812INSTALL_SOURCEDIR:=$(INSTALL_PREFIX)/$(SRCPREFIXDIR)/fpc-$(FPC_VERSION)/$(PACKAGE_NAME)
 813endif
 814else
 815INSTALL_SOURCEDIR:=$(INSTALL_PREFIX)/$(SRCPREFIXDIR)/$(PACKAGE_NAME)-$(PACKAGE_VERSION)
 816endif
 817else
 818ifdef INSTALL_FPCPACKAGE
 819ifdef INSTALL_FPCSUBDIR
 820INSTALL_SOURCEDIR:=$(INSTALL_BASEDIR)/source/$(INSTALL_FPCSUBDIR)/$(PACKAGE_NAME)
 821else
 822INSTALL_SOURCEDIR:=$(INSTALL_BASEDIR)/source/$(PACKAGE_NAME)
 823endif
 824else
 825INSTALL_SOURCEDIR:=$(INSTALL_BASEDIR)/source
 826endif
 827endif
 828endif
 829ifndef INSTALL_DOCDIR
 830ifdef UNIXHier
 831ifdef BSDhier
 832DOCPREFIXDIR=share/doc
 833else
 834ifdef linuxHier
 835DOCPREFIXDIR=share/doc
 836else
 837DOCPREFIXDIR=doc
 838endif
 839endif
 840ifdef INSTALL_FPCPACKAGE
 841INSTALL_DOCDIR:=$(INSTALL_PREFIX)/$(DOCPREFIXDIR)/fpc-$(FPC_VERSION)/$(PACKAGE_NAME)
 842else
 843INSTALL_DOCDIR:=$(INSTALL_PREFIX)/$(DOCPREFIXDIR)/$(PACKAGE_NAME)-$(PACKAGE_VERSION)
 844endif
 845else
 846ifdef INSTALL_FPCPACKAGE
 847INSTALL_DOCDIR:=$(INSTALL_BASEDIR)/doc/$(PACKAGE_NAME)
 848else
 849INSTALL_DOCDIR:=$(INSTALL_BASEDIR)/doc
 850endif
 851endif
 852endif
 853ifndef INSTALL_EXAMPLEDIR
 854ifdef UNIXHier
 855ifdef INSTALL_FPCPACKAGE
 856ifdef BSDhier
 857INSTALL_EXAMPLEDIR:=$(INSTALL_PREFIX)/share/examples/fpc-$(FPC_VERSION)/$(PACKAGE_NAME)
 858else
 859ifdef linuxHier
 860INSTALL_EXAMPLEDIR:=$(INSTALL_DOCDIR)/examples
 861else
 862INSTALL_EXAMPLEDIR:=$(INSTALL_PREFIX)/doc/fpc-$(FPC_VERSION)/examples/$(PACKAGE_NAME)
 863endif
 864endif
 865else
 866ifdef BSDhier
 867INSTALL_EXAMPLEDIR:=$(INSTALL_PREFIX)/share/examples/$(PACKAGE_NAME)-$(PACKAGE_VERSION)
 868else
 869ifdef linuxHier
 870INSTALL_EXAMPLEDIR:=$(INSTALL_DOCDIR)/examples/$(PACKAGE_NAME)-$(PACKAGE_VERSION)
 871else
 872INSTALL_EXAMPLEDIR:=$(INSTALL_PREFIX)/doc/$(PACKAGE_NAME)-$(PACKAGE_VERSION)
 873endif
 874endif
 875endif
 876else
 877ifdef INSTALL_FPCPACKAGE
 878INSTALL_EXAMPLEDIR:=$(INSTALL_BASEDIR)/examples/$(PACKAGE_NAME)
 879else
 880INSTALL_EXAMPLEDIR:=$(INSTALL_BASEDIR)/examples
 881endif
 882endif
 883endif
 884ifndef INSTALL_DATADIR
 885INSTALL_DATADIR=$(INSTALL_BASEDIR)
 886endif
 887ifndef INSTALL_SHAREDDIR
 888INSTALL_SHAREDDIR=$(INSTALL_PREFIX)/lib
 889endif
 890ifdef CROSSCOMPILE
 891ifndef CROSSBINDIR
 892CROSSBINDIR:=$(wildcard $(CROSSTARGETDIR)/bin/$(SOURCESUFFIX))
 893ifeq ($(CROSSBINDIR),)
 894CROSSBINDIR:=$(wildcard $(INSTALL_BASEDIR)/cross/$(TARGETSUFFIX)/bin/$(FULL_SOURCE))
 895endif
 896endif
 897else
 898CROSSBINDIR=
 899endif
 900BATCHEXT=.bat
 901LOADEREXT=.as
 902EXEEXT=.exe
 903PPLEXT=.ppl
 904PPUEXT=.ppu
 905OEXT=.o
 906ASMEXT=.s
 907SMARTEXT=.sl
 908STATICLIBEXT=.a
 909SHAREDLIBEXT=.so
 910SHAREDLIBPREFIX=libfp
 911STATICLIBPREFIX=libp
 912IMPORTLIBPREFIX=libimp
 913RSTEXT=.rst
 914EXEDBGEXT=.dbg
 915ifeq ($(OS_TARGET),go32v1)
 916STATICLIBPREFIX=
 917SHORTSUFFIX=v1
 918endif
 919ifeq ($(OS_TARGET),go32v2)
 920STATICLIBPREFIX=
 921SHORTSUFFIX=dos
 922IMPORTLIBPREFIX=
 923endif
 924ifeq ($(OS_TARGET),watcom)
 925STATICLIBPREFIX=
 926OEXT=.obj
 927ASMEXT=.asm
 928SHAREDLIBEXT=.dll
 929SHORTSUFFIX=wat
 930IMPORTLIBPREFIX=
 931endif
 932ifeq ($(OS_TARGET),linux)
 933BATCHEXT=.sh
 934EXEEXT=
 935HASSHAREDLIB=1
 936SHORTSUFFIX=lnx
 937endif
 938ifeq ($(OS_TARGET),freebsd)
 939BATCHEXT=.sh
 940EXEEXT=
 941HASSHAREDLIB=1
 942SHORTSUFFIX=fbs
 943endif
 944ifeq ($(OS_TARGET),netbsd)
 945BATCHEXT=.sh
 946EXEEXT=
 947HASSHAREDLIB=1
 948SHORTSUFFIX=nbs
 949endif
 950ifeq ($(OS_TARGET),openbsd)
 951BATCHEXT=.sh
 952EXEEXT=
 953HASSHAREDLIB=1
 954SHORTSUFFIX=obs
 955endif
 956ifeq ($(OS_TARGET),win32)
 957SHAREDLIBEXT=.dll
 958SHORTSUFFIX=w32
 959endif
 960ifeq ($(OS_TARGET),os2)
 961BATCHEXT=.cmd
 962AOUTEXT=.out
 963STATICLIBPREFIX=
 964SHAREDLIBEXT=.dll
 965SHORTSUFFIX=os2
 966ECHO=echo
 967IMPORTLIBPREFIX=
 968endif
 969ifeq ($(OS_TARGET),emx)
 970BATCHEXT=.cmd
 971AOUTEXT=.out
 972STATICLIBPREFIX=
 973SHAREDLIBEXT=.dll
 974SHORTSUFFIX=emx
 975ECHO=echo
 976IMPORTLIBPREFIX=
 977endif
 978ifeq ($(OS_TARGET),amiga)
 979EXEEXT=
 980SHAREDLIBEXT=.library
 981SHORTSUFFIX=amg
 982endif
 983ifeq ($(OS_TARGET),morphos)
 984EXEEXT=
 985SHAREDLIBEXT=.library
 986SHORTSUFFIX=mos
 987endif
 988ifeq ($(OS_TARGET),atari)
 989EXEEXT=.ttp
 990SHORTSUFFIX=ata
 991endif
 992ifeq ($(OS_TARGET),beos)
 993BATCHEXT=.sh
 994EXEEXT=
 995SHORTSUFFIX=be
 996endif
 997ifeq ($(OS_TARGET),haiku)
 998BATCHEXT=.sh
 999EXEEXT=
1000SHORTSUFFIX=hai
1001endif
1002ifeq ($(OS_TARGET),solaris)
1003BATCHEXT=.sh
1004EXEEXT=
1005SHORTSUFFIX=sun
1006endif
1007ifeq ($(OS_TARGET),qnx)
1008BATCHEXT=.sh
1009EXEEXT=
1010SHORTSUFFIX=qnx
1011endif
1012ifeq ($(OS_TARGET),netware)
1013EXEEXT=.nlm
1014STATICLIBPREFIX=
1015SHORTSUFFIX=nw
1016IMPORTLIBPREFIX=imp
1017endif
1018ifeq ($(OS_TARGET),netwlibc)
1019EXEEXT=.nlm
1020STATICLIBPREFIX=
1021SHORTSUFFIX=nwl
1022IMPORTLIBPREFIX=imp
1023endif
1024ifeq ($(OS_TARGET),macos)
1025BATCHEXT=
1026EXEEXT=
1027DEBUGSYMEXT=.xcoff
1028SHORTSUFFIX=mac
1029IMPORTLIBPREFIX=imp
1030endif
1031ifneq ($(findstring $(OS_TARGET),darwin iphonesim),)
1032BATCHEXT=.sh
1033EXEEXT=
1034HASSHAREDLIB=1
1035SHORTSUFFIX=dwn
1036EXEDBGEXT=.dSYM
1037endif
1038ifeq ($(OS_TARGET),gba)
1039EXEEXT=.gba
1040SHAREDLIBEXT=.so
1041SHORTSUFFIX=gba
1042endif
1043ifeq ($(OS_TARGET),symbian)
1044SHAREDLIBEXT=.dll
1045SHORTSUFFIX=symbian
1046endif
1047ifeq ($(OS_TARGET),NativeNT)
1048SHAREDLIBEXT=.dll
1049SHORTSUFFIX=nativent
1050endif
1051ifeq ($(OS_TARGET),wii)
1052EXEEXT=.dol
1053SHAREDLIBEXT=.so
1054SHORTSUFFIX=wii
1055endif
1056ifeq ($(OS_TARGET),aix)
1057BATCHEXT=.sh
1058EXEEXT=
1059SHORTSUFFIX=aix
1060endif
1061ifneq ($(findstring $(OS_SOURCE),$(LIMIT83fs)),)
1062FPCMADE=fpcmade.$(SHORTSUFFIX)
1063ZIPSUFFIX=$(SHORTSUFFIX)
1064ZIPCROSSPREFIX=
1065ZIPSOURCESUFFIX=src
1066ZIPEXAMPLESUFFIX=exm
1067else
1068FPCMADE=fpcmade.$(TARGETSUFFIX)
1069ZIPSOURCESUFFIX=.source
1070ZIPEXAMPLESUFFIX=.examples
1071ifdef CROSSCOMPILE
1072ZIPSUFFIX=.$(SOURCESUFFIX)
1073ZIPCROSSPREFIX=$(TARGETSUFFIX)-
1074else
1075ZIPSUFFIX=.$(TARGETSUFFIX)
1076ZIPCROSSPREFIX=
1077endif
1078endif
1079ifndef ECHO
1080ECHO:=$(strip $(wildcard $(addsuffix /gecho$(SRCEXEEXT),$(SEARCHPATH))))
1081ifeq ($(ECHO),)
1082ECHO:=$(strip $(wildcard $(addsuffix /echo$(SRCEXEEXT),$(SEARCHPATH))))
1083ifeq ($(ECHO),)
1084ECHO= __missing_command_ECHO
1085else
1086ECHO:=$(firstword $(ECHO))
1087endif
1088else
1089ECHO:=$(firstword $(ECHO))
1090endif
1091endif
1092export ECHO
1093ifndef DATE
1094DATE:=$(strip $(wildcard $(addsuffix /gdate$(SRCEXEEXT),$(SEARCHPATH))))
1095ifeq ($(DATE),)
1096DATE:=$(strip $(wildcard $(addsuffix /date$(SRCEXEEXT),$(SEARCHPATH))))
1097ifeq ($(DATE),)
1098DATE= __missing_command_DATE
1099else
1100DATE:=$(firstword $(DATE))
1101endif
1102else
1103DATE:=$(firstword $(DATE))
1104endif
1105endif
1106export DATE
1107ifndef GINSTALL
1108GINSTALL:=$(strip $(wildcard $(addsuffix /ginstall$(SRCEXEEXT),$(SEARCHPATH))))
1109ifeq ($(GINSTALL),)
1110GINSTALL:=$(strip $(wildcard $(addsuffix /install$(SRCEXEEXT),$(SEARCHPATH))))
1111ifeq ($(GINSTALL),)
1112GINSTALL= __missing_command_GINSTALL
1113else
1114GINSTALL:=$(firstword $(GINSTALL))
1115endif
1116else
1117GINSTALL:=$(firstword $(GINSTALL))
1118endif
1119endif
1120export GINSTALL
1121ifndef CPPROG
1122CPPROG:=$(strip $(wildcard $(addsuffix /cp$(SRCEXEEXT),$(SEARCHPATH))))
1123ifeq ($(CPPROG),)
1124CPPROG= __missing_command_CPPROG
1125else
1126CPPROG:=$(firstword $(CPPROG))
1127endif
1128endif
1129export CPPROG
1130ifndef RMPROG
1131RMPROG:=$(strip $(wildcard $(addsuffix /rm$(SRCEXEEXT),$(SEARCHPATH))))
1132ifeq ($(RMPROG),)
1133RMPROG= __missing_command_RMPROG
1134else
1135RMPROG:=$(firstword $(RMPROG))
1136endif
1137endif
1138export RMPROG
1139ifndef MVPROG
1140MVPROG:=$(strip $(wildcard $(addsuffix /mv$(SRCEXEEXT),$(SEARCHPATH))))
1141ifeq ($(MVPROG),)
1142MVPROG= __missing_command_MVPROG
1143else
1144MVPROG:=$(firstword $(MVPROG))
1145endif
1146endif
1147export MVPROG
1148ifndef MKDIRPROG
1149MKDIRPROG:=$(strip $(wildcard $(addsuffix /gmkdir$(SRCEXEEXT),$(SEARCHPATH))))
1150ifeq ($(MKDIRPROG),)
1151MKDIRPROG:=$(strip $(wildcard $(addsuffix /mkdir$(SRCEXEEXT),$(SEARCHPATH))))
1152ifeq ($(MKDIRPROG),)
1153MKDIRPROG= __missing_command_MKDIRPROG
1154else
1155MKDIRPROG:=$(firstword $(MKDIRPROG))
1156endif
1157else
1158MKDIRPROG:=$(firstword $(MKDIRPROG))
1159endif
1160endif
1161export MKDIRPROG
1162ifndef ECHOREDIR
1163ifndef inUnix
1164ECHOREDIR=echo
1165else
1166ECHOREDIR=$(ECHO)
1167endif
1168endif
1169ifndef COPY
1170COPY:=$(CPPROG) -fp
1171endif
1172ifndef COPYTREE
1173COPYTREE:=$(CPPROG) -Rfp
1174endif
1175ifndef MKDIRTREE
1176MKDIRTREE:=$(MKDIRPROG) -p
1177endif
1178ifndef MOVE
1179MOVE:=$(MVPROG) -f
1180endif
1181ifndef DEL
1182DEL:=$(RMPROG) -f
1183endif
1184ifndef DELTREE
1185DELTREE:=$(RMPROG) -rf
1186endif
1187ifndef INSTALL
1188ifdef inUnix
1189INSTALL:=$(GINSTALL) -c -m 644
1190else
1191INSTALL:=$(COPY)
1192endif
1193endif
1194ifndef INSTALLEXE
1195ifdef inUnix
1196INSTALLEXE:=$(GINSTALL) -c -m 755
1197else
1198INSTALLEXE:=$(COPY)
1199endif
1200endif
1201ifndef MKDIR
1202MKDIR:=$(GINSTALL) -m 755 -d
1203endif
1204export ECHOREDIR COPY COPYTREE MOVE DEL DELTREE INSTALL INSTALLEXE MKDIR
1205ifndef PPUMOVE
1206PPUMOVE:=$(strip $(wildcard $(addsuffix /ppumove$(SRCEXEEXT),$(SEARCHPATH))))
1207ifeq ($(PPUMOVE),)
1208PPUMOVE= __missing_command_PPUMOVE
1209else
1210PPUMOVE:=$(firstword $(PPUMOVE))
1211endif
1212endif
1213export PPUMOVE
1214ifndef FPCMAKE
1215FPCMAKE:=$(strip $(wildcard $(addsuffix /fpcmake$(SRCEXEEXT),$(SEARCHPATH))))
1216ifeq ($(FPCMAKE),)
1217FPCMAKE= __missing_command_FPCMAKE
1218else
1219FPCMAKE:=$(firstword $(FPCMAKE))
1220endif
1221endif
1222export FPCMAKE
1223ifndef ZIPPROG
1224ZIPPROG:=$(strip $(wildcard $(addsuffix /zip$(SRCEXEEXT),$(SEARCHPATH))))
1225ifeq ($(ZIPPROG),)
1226ZIPPROG= __missing_command_ZIPPROG
1227else
1228ZIPPROG:=$(firstword $(ZIPPROG))
1229endif
1230endif
1231export ZIPPROG
1232ifndef TARPROG
1233TARPROG:=$(strip $(wildcard $(addsuffix /gtar$(SRCEXEEXT),$(SEARCHPATH))))
1234ifeq ($(TARPROG),)
1235TARPROG:=$(strip $(wildcard $(addsuffix /tar$(SRCEXEEXT),$(SEARCHPATH))))
1236ifeq ($(TARPROG),)
1237TARPROG= __missing_command_TARPROG
1238else
1239TARPROG:=$(firstword $(TARPROG))
1240endif
1241else
1242TARPROG:=$(firstword $(TARPROG))
1243endif
1244endif
1245export TARPROG
1246ASNAME=$(BINUTILSPREFIX)as
1247LDNAME=$(BINUTILSPREFIX)ld
1248ARNAME=$(BINUTILSPREFIX)ar
1249RCNAME=$(BINUTILSPREFIX)rc
1250ifndef ASPROG
1251ifdef CROSSBINDIR
1252ASPROG=$(CROSSBINDIR)/$(ASNAME)$(SRCEXEEXT)
1253else
1254ASPROG=$(ASNAME)
1255endif
1256endif
1257ifndef LDPROG
1258ifdef CROSSBINDIR
1259LDPROG=$(CROSSBINDIR)/$(LDNAME)$(SRCEXEEXT)
1260else
1261LDPROG=$(LDNAME)
1262endif
1263endif
1264ifndef RCPROG
1265ifdef CROSSBINDIR
1266RCPROG=$(CROSSBINDIR)/$(RCNAME)$(SRCEXEEXT)
1267else
1268RCPROG=$(RCNAME)
1269endif
1270endif
1271ifndef ARPROG
1272ifdef CROSSBINDIR
1273ARPROG=$(CROSSBINDIR)/$(ARNAME)$(SRCEXEEXT)
1274else
1275ARPROG=$(ARNAME)
1276endif
1277endif
1278AS=$(ASPROG)
1279LD=$(LDPROG)
1280RC=$(RCPROG)
1281AR=$(ARPROG)
1282PPAS=ppas$(SRCBATCHEXT)
1283ifdef inUnix
1284LDCONFIG=ldconfig
1285else
1286LDCONFIG=
1287endif
1288ifdef DATE
1289DATESTR:=$(shell $(DATE) +%Y%m%d)
1290else
1291DATESTR=
1292endif
1293ZIPOPT=-9
1294ZIPEXT=.zip
1295ifeq ($(USETAR),bz2)
1296TAROPT=vj
1297TAREXT=.tar.bz2
1298else
1299TAROPT=vz
1300TAREXT=.tar.gz
1301endif
1302override REQUIRE_PACKAGES=rtl httpd22
1303ifeq ($(FULL_TARGET),i386-linux)
1304REQUIRE_PACKAGES_RTL=1
1305REQUIRE_PACKAGES_PASZLIB=1
1306REQUIRE_PACKAGES_FCL-PROCESS=1
1307REQUIRE_PACKAGES_HASH=1
1308REQUIRE_PACKAGES_FPMKUNIT=1
1309REQUIRE_PACKAGES_HTTPD22=1
1310endif
1311ifeq ($(FULL_TARGET),i386-go32v2)
1312REQUIRE_PACKAGES_RTL=1
1313REQUIRE_PACKAGES_PASZLIB=1
1314REQUIRE_PACKAGES_FCL-PROCESS=1
1315REQUIRE_PACKAGES_HASH=1
1316REQUIRE_PACKAGES_FPMKUNIT=1
1317REQUIRE_PACKAGES_HTTPD22=1
1318endif
1319ifeq ($(FULL_TARGET),i386-win32)
1320REQUIRE_PACKAGES_RTL=1
1321REQUIRE_PACKAGES_PASZLIB=1
1322REQUIRE_PACKAGES_FCL-PROCESS=1
1323REQUIRE_PACKAGES_HASH=1
1324REQUIRE_PACKAGES_FPMKUNIT=1
1325REQUIRE_PACKAGES_HTTPD22=1
1326endif
1327ifeq ($(FULL_TARGET),i386-os2)
1328REQUIRE_PACKAGES_RTL=1
1329REQUIRE_PACKAGES_PASZLIB=1
1330REQUIRE_PACKAGES_FCL-PROCESS=1
1331REQUIRE_PACKAGES_HASH=1
1332REQUIRE_PACKAGES_FPMKUNIT=1
1333REQUIRE_PACKAGES_HTTPD22=1
1334endif
1335ifeq ($(FULL_TARGET),i386-freebsd)
1336REQUIRE_PACKAGES_RTL=1
1337REQUIRE_PACKAGES_PASZLIB=1
1338REQUIRE_PACKAGES_FCL-PROCESS=1
1339REQUIRE_PACKAGES_HASH=1
1340REQUIRE_PACKAGES_FPMKUNIT=1
1341REQUIRE_PACKAGES_HTTPD22=1
1342endif
1343ifeq ($(FULL_TARGET),i386-beos)
1344REQUIRE_PACKAGES_RTL=1
1345REQUIRE_PACKAGES_PASZLIB=1
1346REQUIRE_PACKAGES_FCL-PROCESS=1
1347REQUIRE_PACKAGES_HASH=1
1348REQUIRE_PACKAGES_FPMKUNIT=1
1349REQUIRE_PACKAGES_HTTPD22=1
1350endif
1351ifeq ($(FULL_TARGET),i386-haiku)
1352REQUIRE_PACKAGES_RTL=1
1353REQUIRE_PACKAGES_PASZLIB=1
1354REQUIRE_PACKAGES_FCL-PROCESS=1
1355REQUIRE_PACKAGES_HASH=1
1356REQUIRE_PACKAGES_FPMKUNIT=1
1357REQUIRE_PACKAGES_HTTPD22=1
1358endif
1359ifeq ($(FULL_TARGET),i386-netbsd)
1360REQUIRE_PACKAGES_RTL=1
1361REQUIRE_PACKAGES_PASZLIB=1
1362REQUIRE_PACKAGES_FCL-PROCESS=1
1363REQUIRE_PACKAGES_HASH=1
1364REQUIRE_PACKAGES_FPMKUNIT=1
1365REQUIRE_PACKAGES_HTTPD22=1
1366endif
1367ifeq ($(FULL_TARGET),i386-solaris)
1368REQUIRE_PACKAGES_RTL=1
1369REQUIRE_PACKAGES_PASZLIB=1
1370REQUIRE_PACKAGES_FCL-PROCESS=1
1371REQUIRE_PACKAGES_HASH=1
1372REQUIRE_PACKAGES_FPMKUNIT=1
1373REQUIRE_PACKAGES_HTTPD22=1
1374endif
1375ifeq ($(FULL_TARGET),i386-qnx)
1376REQUIRE_PACKAGES_RTL=1
1377REQUIRE_PACKAGES_PASZLIB=1
1378REQUIRE_PACKAGES_FCL-PROCESS=1
1379REQUIRE_PACKAGES_HASH=1
1380REQUIRE_PACKAGES_FPMKUNIT=1
1381REQUIRE_PACKAGES_HTTPD22=1
1382endif
1383ifeq ($(FULL_TARGET),i386-netware)
1384REQUIRE_PACKAGES_RTL=1
1385REQUIRE_PACKAGES_PASZLIB=1
1386REQUIRE_PACKAGES_FCL-PROCESS=1
1387REQUIRE_PACKAGES_HASH=1
1388REQUIRE_PACKAGES_FPMKUNIT=1
1389REQUIRE_PACKAGES_HTTPD22=1
1390endif
1391ifeq ($(FULL_TARGET),i386-openbsd)
1392REQUIRE_PACKAGES_RTL=1
1393REQUIRE_PACKAGES_PASZLIB=1
1394REQUIRE_PACKAGES_FCL-PROCESS=1
1395REQUIRE_PACKAGES_HASH=1
1396REQUIRE_PACKAGES_FPMKUNIT=1
1397REQUIRE_PACKAGES_HTTPD22=1
1398endif
1399ifeq ($(FULL_TARGET),i386-wdosx)
1400REQUIRE_PACKAGES_RTL=1
1401REQUIRE_PACKAGES_PASZLIB=1
1402REQUIRE_PACKAGES_FCL-PROCESS=1
1403REQUIRE_PACKAGES_HASH=1
1404REQUIRE_PACKAGES_FPMKUNIT=1
1405REQUIRE_PACKAGES_HTTPD22=1
1406endif
1407ifeq ($(FULL_TARGET),i386-darwin)
1408REQUIRE_PACKAGES_RTL=1
1409REQUIRE_PACKAGES_PASZLIB=1
1410REQUIRE_PACKAGES_FCL-PROCESS=1
1411REQUIRE_PACKAGES_HASH=1
1412REQUIRE_PACKAGES_FPMKUNIT=1
1413REQUIRE_PACKAGES_HTTPD22=1
1414endif
1415ifeq ($(FULL_TARGET),i386-emx)
1416REQUIRE_PACKAGES_RTL=1
1417REQUIRE_PACKAGES_PASZLIB=1
1418REQUIRE_PACKAGES_FCL-PROCESS=1
1419REQUIRE_PACKAGES_HASH=1
1420REQUIRE_PACKAGES_FPMKUNIT=1
1421REQUIRE_PACKAGES_HTTPD22=1
1422endif
1423ifeq ($(FULL_TARGET),i386-watcom)
1424REQUIRE_PACKAGES_RTL=1
1425REQUIRE_PACKAGES_PASZLIB=1
1426REQUIRE_PACKAGES_FCL-PROCESS=1
1427REQUIRE_PACKAGES_HASH=1
1428REQUIRE_PACKAGES_FPMKUNIT=1
1429REQUIRE_PACKAGES_HTTPD22=1
1430endif
1431ifeq ($(FULL_TARGET),i386-netwlibc)
1432REQUIRE_PACKAGES_RTL=1
1433REQUIRE_PACKAGES_PASZLIB=1
1434REQUIRE_PACKAGES_FCL-PROCESS=1
1435REQUIRE_PACKAGES_HASH=1
1436REQUIRE_PACKAGES_FPMKUNIT=1
1437REQUIRE_PACKAGES_HTTPD22=1
1438endif
1439ifeq ($(FULL_TARGET),i386-wince)
1440REQUIRE_PACKAGES_RTL=1
1441REQUIRE_PACKAGES_PASZLIB=1
1442REQUIRE_PACKAGES_FCL-PROCESS=1
1443REQUIRE_PACKAGES_HASH=1
1444REQUIRE_PACKAGES_FPMKUNIT=1
1445REQUIRE_PACKAGES_HTTPD22=1
1446endif
1447ifeq ($(FULL_TARGET),i386-embedded)
1448REQUIRE_PACKAGES_RTL=1
1449REQUIRE_PACKAGES_PASZLIB=1
1450REQUIRE_PACKAGES_FCL-PROCESS=1
1451REQUIRE_PACKAGES_HASH=1
1452REQUIRE_PACKAGES_FPMKUNIT=1
1453REQUIRE_PACKAGES_HTTPD22=1
1454endif
1455ifeq ($(FULL_TARGET),i386-symbian)
1456REQUIRE_PACKAGES_RTL=1
1457REQUIRE_PACKAGES_PASZLIB=1
1458REQUIRE_PACKAGES_FCL-PROCESS=1
1459REQUIRE_PACKAGES_HASH=1
1460REQUIRE_PACKAGES_FPMKUNIT=1
1461REQUIRE_PACKAGES_HTTPD22=1
1462endif
1463ifeq ($(FULL_TARGET),i386-nativent)
1464REQUIRE_PACKAGES_RTL=1
1465REQUIRE_PACKAGES_PASZLIB=1
1466REQUIRE_PACKAGES_FCL-PROCESS=1
1467REQUIRE_PACKAGES_HASH=1
1468REQUIRE_PACKAGES_FPMKUNIT=1
1469REQUIRE_PACKAGES_HTTPD22=1
1470endif
1471ifeq ($(FULL_TARGET),i386-iphonesim)
1472REQUIRE_PACKAGES_RTL=1
1473REQUIRE_PACKAGES_PASZLIB=1
1474REQUIRE_PACKAGES_FCL-PROCESS=1
1475REQUIRE_PACKAGES_HASH=1
1476REQUIRE_PACKAGES_FPMKUNIT=1
1477REQUIRE_PACKAGES_HTTPD22=1
1478endif
1479ifeq ($(FULL_TARGET),m68k-linux)
1480REQUIRE_PACKAGES_RTL=1
1481REQUIRE_PACKAGES_PASZLIB=1
1482REQUIRE_PACKAGES_FCL-PROCESS=1
1483REQUIRE_PACKAGES_HASH=1
1484REQUIRE_PACKAGES_FPMKUNIT=1
1485REQUIRE_PACKAGES_HTTPD22=1
1486endif
1487ifeq ($(FULL_TARGET),m68k-freebsd)
1488REQUIRE_PACKAGES_RTL=1
1489REQUIRE_PACKAGES_PASZLIB=1
1490REQUIRE_PACKAGES_FCL-PROCESS=1
1491REQUIRE_PACKAGES_HASH=1
1492REQUIRE_PACKAGES_FPMKUNIT=1
1493REQUIRE_PACKAGES_HTTPD22=1
1494endif
1495ifeq ($(FULL_TARGET),m68k-netbsd)
1496REQUIRE_PACKAGES_RTL=1
1497REQUIRE_PACKAGES_PASZLIB=1
1498REQUIRE_PACKAGES_FCL-PROCESS=1
1499REQUIRE_PACKAGES_HASH=1
1500REQUIRE_PACKAGES_FPMKUNIT=1
1501REQUIRE_PACKAGES_HTTPD22=1
1502endif
1503ifeq ($(FULL_TARGET),m68k-amiga)
1504REQUIRE_PACKAGES_RTL=1
1505REQUIRE_PACKAGES_PASZLIB=1
1506REQUIRE_PACKAGES_FCL-PROCESS=1
1507REQUIRE_PACKAGES_HASH=1
1508REQUIRE_PACKAGES_FPMKUNIT=1
1509REQUIRE_PACKAGES_HTTPD22=1
1510endif
1511ifeq ($(FULL_TARGET),m68k-atari)
1512REQUIRE_PACKAGES_RTL=1
1513REQUIRE_PACKAGES_PASZLIB=1
1514REQUIRE_PACKAGES_FCL-PROCESS=1
1515REQUIRE_PACKAGES_HASH=1
1516REQUIRE_PACKAGES_FPMKUNIT=1
1517REQUIRE_PACKAGES_HTTPD22=1
1518endif
1519ifeq ($(FULL_TARGET),m68k-openbsd)
1520REQUIRE_PACKAGES_RTL=1
1521REQUIRE_PACKAGES_PASZLIB=1
1522REQUIRE_PACKAGES_FCL-PROCESS=1
1523REQUIRE_PACKAGES_HASH=1
1524REQUIRE_PACKAGES_FPMKUNIT=1
1525REQUIRE_PACKAGES_HTTPD22=1
1526endif
1527ifeq ($(FULL_TARGET),m68k-palmos)
1528REQUIRE_PACKAGES_RTL=1
1529REQUIRE_PACKAGES_PASZLIB=1
1530REQUIRE_PACKAGES_FCL-PROCESS=1
1531REQUIRE_PACKAGES_HASH=1
1532REQUIRE_PACKAGES_FPMKUNIT=1
1533REQUIRE_PACKAGES_HTTPD22=1
1534endif
1535ifeq ($(FULL_TARGET),m68k-embedded)
1536REQUIRE_PACKAGES_RTL=1
1537REQUIRE_PACKAGES_PASZLIB=1
1538REQUIRE_PACKAGES_FCL-PROCESS=1
1539REQUIRE_PACKAGES_HASH=1
1540REQUIRE_PACKAGES_FPMKUNIT=1
1541REQUIRE_PACKAGES_HTTPD22=1
1542endif
1543ifeq ($(FULL_TARGET),powerpc-linux)
1544REQUIRE_PACKAGES_RTL=1
1545REQUIRE_PACKAGES_PASZLIB=1
1546REQUIRE_PACKAGES_FCL-PROCESS=1
1547REQUIRE_PACKAGES_HASH=1
1548REQUIRE_PACKAGES_FPMKUNIT=1
1549REQUIRE_PACKAGES_HTTPD22=1
1550endif
1551ifeq ($(FULL_TARGET),powerpc-netbsd)
1552REQUIRE_PACKAGES_RTL=1
1553REQUIRE_PACKAGES_PASZLIB=1
1554REQUIRE_PACKAGES_FCL-PROCESS=1
1555REQUIRE_PACKAGES_HASH=1
1556REQUIRE_PACKAGES_FPMKUNIT=1
1557REQUIRE_PACKAGES_HTTPD22=1
1558endif
1559ifeq ($(FULL_TARGET),powerpc-amiga)
1560REQUIRE_PACKAGES_RTL=1
1561REQUIRE_PACKAGES_PASZLIB=1
1562REQUIRE_PACKAGES_FCL-PROCESS=1
1563REQUIRE_PACKAGES_HASH=1
1564REQUIRE_PACKAGES_FPMKUNIT=1
1565REQUIRE_PACKAGES_HTTPD22=1
1566endif
1567ifeq ($(FULL_TARGET),powerpc-macos)
1568REQUIRE_PACKAGES_RTL=1
1569REQUIRE_PACKAGES_PASZLIB=1
1570REQUIRE_PACKAGES_FCL-PROCESS=1
1571REQUIRE_PACKAGES_HASH=1
1572REQUIRE_PACKAGES_FPMKUNIT=1
1573REQUIRE_PACKAGES_HTTPD22=1
1574endif
1575ifeq ($(FULL_TARGET),powerpc-darwin)
1576REQUIRE_PACKAGES_RTL=1
1577REQUIRE_PACKAGES_PASZLIB=1
1578REQUIRE_PACKAGES_FCL-PROCESS=1
1579REQUIRE_PACKAGES_HASH=1
1580REQUIRE_PACKAGES_FPMKUNIT=1
1581REQUIRE_PACKAGES_HTTPD22=1
1582endif
1583ifeq ($(FULL_TARGET),powerpc-morphos)
1584REQUIRE_PACKAGES_RTL=1
1585REQUIRE_PACKAGES_PASZLIB=1
1586REQUIRE_PACKAGES_FCL-PROCESS=1
1587REQUIRE_PACKAGES_HASH=1
1588REQUIRE_PACKAGES_FPMKUNIT=1
1589REQUIRE_PACKAGES_HTTPD22=1
1590endif
1591ifeq ($(FULL_TARGET),powerpc-embedded)
1592REQUIRE_PACKAGES_RTL=1
1593REQUIRE_PACKAGES_PASZLIB=1
1594REQUIRE_PACKAGES_FCL-PROCESS=1
1595REQUIRE_PACKAGES_HASH=1
1596REQUIRE_PACKAGES_FPMKUNIT=1
1597REQUIRE_PACKAGES_HTTPD22=1
1598endif
1599ifeq ($(FULL_TARGET),powerpc-wii)
1600REQUIRE_PACKAGES_RTL=1
1601REQUIRE_PACKAGES_PASZLIB=1
1602REQUIRE_PACKAGES_FCL-PROCESS=1
1603REQUIRE_PACKAGES_HASH=1
1604REQUIRE_PACKAGES_FPMKUNIT=1
1605REQUIRE_PACKAGES_HTTPD22=1
1606endif
1607ifeq ($(FULL_TARGET),powerpc-aix)
1608REQUIRE_PACKAGES_RTL=1
1609REQUIRE_PACKAGES_PASZLIB=1
1610REQUIRE_PACKAGES_FCL-PROCESS=1
1611REQUIRE_PACKAGES_HASH=1
1612REQUIRE_PACKAGES_FPMKUNIT=1
1613REQUIRE_PACKAGES_HTTPD22=1
1614endif
1615ifeq ($(FULL_TARGET),sparc-linux)
1616REQUIRE_PACKAGES_RTL=1
1617REQUIRE_PACKAGES_PASZLIB=1
1618REQUIRE_PACKAGES_FCL-PROCESS=1
1619REQUIRE_PACKAGES_HASH=1
1620REQUIRE_PACKAGES_FPMKUNIT=1
1621REQUIRE_PACKAGES_HTTPD22=1
1622endif
1623ifeq ($(FULL_TARGET),sparc-netbsd)
1624REQUIRE_PACKAGES_RTL=1
1625REQUIRE_PACKAGES_PASZLIB=1
1626REQUIRE_PACKAGES_FCL-PROCESS=1
1627REQUIRE_PACKAGES_HASH=1
1628REQUIRE_PACKAGES_FPMKUNIT=1
1629REQUIRE_PACKAGES_HTTPD22=1
1630endif
1631ifeq ($(FULL_TARGET),sparc-solaris)
1632REQUIRE_PACKAGES_RTL=1
1633REQUIRE_PACKAGES_PASZLIB=1
1634REQUIRE_PACKAGES_FCL-PROCESS=1
1635REQUIRE_PACKAGES_HASH=1
1636REQUIRE_PACKAGES_FPMKUNIT=1
1637REQUIRE_PACKAGES_HTTPD22=1
1638endif
1639ifeq ($(FULL_TARGET),sparc-embedded)
1640REQUIRE_PACKAGES_RTL=1
1641REQUIRE_PACKAGES_PASZLIB=1
1642REQUIRE_PACKAGES_FCL-PROCESS=1
1643REQUIRE_PACKAGES_HASH=1
1644REQUIRE_PACKAGES_FPMKUNIT=1
1645REQUIRE_PACKAGES_HTTPD22=1
1646endif
1647ifeq ($(FULL_TARGET),x86_64-linux)
1648REQUIRE_PACKAGES_RTL=1
1649REQUIRE_PACKAGES_PASZLIB=1
1650REQUIRE_PACKAGES_FCL-PROCESS=1
1651REQUIRE_PACKAGES_HASH=1
1652REQUIRE_PACKAGES_FPMKUNIT=1
1653REQUIRE_PACKAGES_HTTPD22=1
1654endif
1655ifeq ($(FULL_TARGET),x86_64-freebsd)
1656REQUIRE_PACKAGES_RTL=1
1657REQUIRE_PACKAGES_PASZLIB=1
1658REQUIRE_PACKAGES_FCL-PROCESS=1
1659REQUIRE_PACKAGES_HASH=1
1660REQUIRE_PACKAGES_FPMKUNIT=1
1661REQUIRE_PACKAGES_HTTPD22=1
1662endif
1663ifeq ($(FULL_TARGET),x86_64-netbsd)
1664REQUIRE_PACKAGES_RTL=1
1665REQUIRE_PACKAGES_PASZLIB=1
1666REQUIRE_PACKAGES_FCL-PROCESS=1
1667REQUIRE_PACKAGES_HASH=1
1668REQUIRE_PACKAGES_FPMKUNIT=1
1669REQUIRE_PACKAGES_HTTPD22=1
1670endif
1671ifeq ($(FULL_TARGET),x86_64-solaris)
1672REQUIRE_PACKAGES_RTL=1
1673REQUIRE_PACKAGES_PASZLIB=1
1674REQUIRE_PACKAGES_FCL-PROCESS=1
1675REQUIRE_PACKAGES_HASH=1
1676REQUIRE_PACKAGES_FPMKUNIT=1
1677REQUIRE_PACKAGES_HTTPD22=1
1678endif
1679ifeq ($(FULL_TARGET),x86_64-openbsd)
1680REQUIRE_PACKAGES_RTL=1
1681REQUIRE_PACKAGES_PASZLIB=1
1682REQUIRE_PACKAGES_FCL-PROCESS=1
1683REQUIRE_PACKAGES_HASH=1
1684REQUIRE_PACKAGES_FPMKUNIT=1
1685REQUIRE_PACKAGES_HTTPD22=1
1686endif
1687ifeq ($(FULL_TARGET),x86_64-darwin)
1688REQUIRE_PACKAGES_RTL=1
1689REQUIRE_PACKAGES_PASZLIB=1
1690REQUIRE_PACKAGES_FCL-PROCESS=1
1691REQUIRE_PACKAGES_HASH=1
1692REQUIRE_PACKAGES_FPMKUNIT=1
1693REQUIRE_PACKAGES_HTTPD22=1
1694endif
1695ifeq ($(FULL_TARGET),x86_64-win64)
1696REQUIRE_PACKAGES_RTL=1
1697REQUIRE_PACKAGES_PASZLIB=1
1698REQUIRE_PACKAGES_FCL-PROCESS=1
1699REQUIRE_PACKAGES_HASH=1
1700REQUIRE_PACKAGES_FPMKUNIT=1
1701REQUIRE_PACKAGES_HTTPD22=1
1702endif
1703ifeq ($(FULL_TARGET),x86_64-embedded)
1704REQUIRE_PACKAGES_RTL=1
1705REQUIRE_PACKAGES_PASZLIB=1
1706REQUIRE_PACKAGES_FCL-PROCESS=1
1707REQUIRE_PACKAGES_HASH=1
1708REQUIRE_PACKAGES_FPMKUNIT=1
1709REQUIRE_PACKAGES_HTTPD22=1
1710endif
1711ifeq ($(FULL_TARGET),arm-linux)
1712REQUIRE_PACKAGES_RTL=1
1713REQUIRE_PACKAGES_PASZLIB=1
1714REQUIRE_PACKAGES_FCL-PROCESS=1
1715REQUIRE_PACKAGES_HASH=1
1716REQUIRE_PACKAGES_FPMKUNIT=1
1717REQUIRE_PACKAGES_HTTPD22=1
1718endif
1719ifeq ($(FULL_TARGET),arm-palmos)
1720REQUIRE_PACKAGES_RTL=1
1721REQUIRE_PACKAGES_PASZLIB=1
1722REQUIRE_PACKAGES_FCL-PROCESS=1
1723REQUIRE_PACKAGES_HASH=1
1724REQUIRE_PACKAGES_FPMKUNIT=1
1725REQUIRE_PACKAGES_HTTPD22=1
1726endif
1727ifeq ($(FULL_TARGET),arm-darwin)
1728REQUIRE_PACKAGES_RTL=1
1729REQUIRE_PACKAGES_PASZLIB=1
1730REQUIRE_PACKAGES_FCL-PROCESS=1
1731REQUIRE_PACKAGES_HASH=1
1732REQUIRE_PACKAGES_FPMKUNIT=1
1733REQUIRE_PACKAGES_HTTPD22=1
1734endif
1735ifeq ($(FULL_TARGET),arm-wince)
1736REQUIRE_PACKAGES_RTL=1
1737REQUIRE_PACKAGES_PASZLIB=1
1738REQUIRE_PACKAGES_FCL-PROCESS=1
1739REQUIRE_PACKAGES_HASH=1
1740REQUIRE_PACKAGES_FPMKUNIT=1
1741REQUIRE_PACKAGES_HTTPD22=1
1742endif
1743ifeq ($(FULL_TARGET),arm-gba)
1744REQUIRE_PACKAGES_RTL=1
1745REQUIRE_PACKAGES_PASZLIB=1
1746REQUIRE_PACKAGES_FCL-PROCESS=1
1747REQUIRE_PACKAGES_HASH=1
1748REQUIRE_PACKAGES_FPMKUNIT=1
1749REQUIRE_PACKAGES_HTTPD22=1
1750endif
1751ifeq ($(FULL_TARGET),arm-nds)
1752REQUIRE_PACKAGES_RTL=1
1753REQUIRE_PACKAGES_PASZLIB=1
1754REQUIRE_PACKAGES_FCL-PROCESS=1
1755REQUIRE_PACKAGES_HASH=1
1756REQUIRE_PACKAGES_FPMKUNIT=1
1757REQUIRE_PACKAGES_HTTPD22=1
1758endif
1759ifeq ($(FULL_TARGET),arm-embedded)
1760REQUIRE_PACKAGES_RTL=1
1761REQUIRE_PACKAGES_PASZLIB=1
1762REQUIRE_PACKAGES_FCL-PROCESS=1
1763REQUIRE_PACKAGES_HASH=1
1764REQUIRE_PACKAGES_FPMKUNIT=1
1765REQUIRE_PACKAGES_HTTPD22=1
1766endif
1767ifeq ($(FULL_TARGET),arm-symbian)
1768REQUIRE_PACKAGES_RTL=1
1769REQUIRE_PACKAGES_PASZLIB=1
1770REQUIRE_PACKAGES_FCL-PROCESS=1
1771REQUIRE_PACKAGES_HASH=1
1772REQUIRE_PACKAGES_FPMKUNIT=1
1773REQUIRE_PACKAGES_HTTPD22=1
1774endif
1775ifeq ($(FULL_TARGET),powerpc64-linux)
1776REQUIRE_PACKAGES_RTL=1
1777REQUIRE_PACKAGES_PASZLIB=1
1778REQUIRE_PACKAGES_FCL-PROCESS=1
1779REQUIRE_PACKAGES_HASH=1
1780REQUIRE_PACKAGES_FPMKUNIT=1
1781REQUIRE_PACKAGES_HTTPD22=1
1782endif
1783ifeq ($(FULL_TARGET),powerpc64-darwin)
1784REQUIRE_PACKAGES_RTL=1
1785REQUIRE_PACKAGES_PASZLIB=1
1786REQUIRE_PACKAGES_FCL-PROCESS=1
1787REQUIRE_PACKAGES_HASH=1
1788REQUIRE_PACKAGES_FPMKUNIT=1
1789REQUIRE_PACKAGES_HTTPD22=1
1790endif
1791ifeq ($(FULL_TARGET),powerpc64-embedded)
1792REQUIRE_PACKAGES_RTL=1
1793REQUIRE_PACKAGES_PASZLIB=1
1794REQUIRE_PACKAGES_FCL-PROCESS=1
1795REQUIRE_PACKAGES_HASH=1
1796REQUIRE_PACKAGES_FPMKUNIT=1
1797REQUIRE_PACKAGES_HTTPD22=1
1798endif
1799ifeq ($(FULL_TARGET),powerpc64-aix)
1800REQUIRE_PACKAGES_RTL=1
1801REQUIRE_PACKAGES_PASZLIB=1
1802REQUIRE_PACKAGES_FCL-PROCESS=1
1803REQUIRE_PACKAGES_HASH=1
1804REQUIRE_PACKAGES_FPMKUNIT=1
1805REQUIRE_PACKAGES_HTTPD22=1
1806endif
1807ifeq ($(FULL_TARGET),avr-embedded)
1808REQUIRE_PACKAGES_RTL=1
1809REQUIRE_PACKAGES_PASZLIB=1
1810REQUIRE_PACKAGES_FCL-PROCESS=1
1811REQUIRE_PACKAGES_HASH=1
1812REQUIRE_PACKAGES_FPMKUNIT=1
1813REQUIRE_PACKAGES_HTTPD22=1
1814endif
1815ifeq ($(FULL_TARGET),armeb-linux)
1816REQUIRE_PACKAGES_RTL=1
1817REQUIRE_PACKAGES_PASZLIB=1
1818REQUIRE_PACKAGES_FCL-PROCESS=1
1819REQUIRE_PACKAGES_HASH=1
1820REQUIRE_PACKAGES_FPMKUNIT=1
1821REQUIRE_PACKAGES_HTTPD22=1
1822endif
1823ifeq ($(FULL_TARGET),armeb-embedded)
1824REQUIRE_PACKAGES_RTL=1
1825REQUIRE_PACKAGES_PASZLIB=1
1826REQUIRE_PACKAGES_FCL-PROCESS=1
1827REQUIRE_PACKAGES_HASH=1
1828REQUIRE_PACKAGES_FPMKUNIT=1
1829REQUIRE_PACKAGES_HTTPD22=1
1830endif
1831ifeq ($(FULL_TARGET),mips-linux)
1832REQUIRE_PACKAGES_RTL=1
1833REQUIRE_PACKAGES_PASZLIB=1
1834REQUIRE_PACKAGES_FCL-PROCESS=1
1835REQUIRE_PACKAGES_HASH=1
1836REQUIRE_PACKAGES_FPMKUNIT=1
1837REQUIRE_PACKAGES_HTTPD22=1
1838endif
1839ifeq ($(FULL_TARGET),mipsel-linux)
1840REQUIRE_PACKAGES_RTL=1
1841REQUIRE_PACKAGES_PASZLIB=1
1842REQUIRE_PACKAGES_FCL-PROCESS=1
1843REQUIRE_PACKAGES_HASH=1
1844REQUIRE_PACKAGES_FPMKUNIT=1
1845REQUIRE_PACKAGES_HTTPD22=1
1846endif
1847ifdef REQUIRE_PACKAGES_RTL
1848PACKAGEDIR_RTL:=$(firstword $(subst /Makefile.fpc,,$(strip $(wildcard $(addsuffix /rtl/Makefile.fpc,$(PACKAGESDIR))))))
1849ifneq ($(PACKAGEDIR_RTL),)
1850ifneq ($(wildcard $(PACKAGEDIR_RTL)/units/$(TARGETSUFFIX)),)
1851UNITDIR_RTL=$(PACKAGEDIR_RTL)/units/$(TARGETSUFFIX)
1852else
1853UNITDIR_RTL=$(PACKAGEDIR_RTL)
1854endif
1855ifneq ($(wildcard $(PACKAGEDIR_RTL)/units/$(SOURCESUFFIX)),)
1856UNITDIR_FPMAKE_RTL=$(PACKAGEDIR_RTL)/units/$(SOURCESUFFIX)
1857else
1858ifneq ($(wildcard $(PACKAGEDIR_RTL)/units_bs/$(SOURCESUFFIX)),)
1859UNITDIR_FPMAKE_RTL=$(PACKAGEDIR_RTL)/units_bs/$(SOURCESUFFIX)
1860else
1861UNITDIR_FPMAKE_RTL=$(PACKAGEDIR_RTL)
1862endif
1863endif
1864ifdef CHECKDEPEND
1865$(PACKAGEDIR_RTL)/$(OS_TARGET)/$(FPCMADE):
1866	$(MAKE) -C $(PACKAGEDIR_RTL)/$(OS_TARGET) $(FPCMADE)
1867override ALLDEPENDENCIES+=$(PACKAGEDIR_RTL)/$(OS_TARGET)/$(FPCMADE)
1868endif
1869else
1870PACKAGEDIR_RTL=
1871UNITDIR_RTL:=$(subst /Package.fpc,,$(strip $(wildcard $(addsuffix /rtl/Package.fpc,$(UNITSDIR)))))
1872ifneq ($(UNITDIR_RTL),)
1873UNITDIR_RTL:=$(firstword $(UNITDIR_RTL))
1874else
1875UNITDIR_RTL=
1876endif
1877endif
1878ifdef UNITDIR_RTL
1879override COMPILER_UNITDIR+=$(UNITDIR_RTL)
1880endif
1881ifdef UNITDIR_FPMAKE_RTL
1882override COMPILER_FPMAKE_UNITDIR+=$(UNITDIR_FPMAKE_RTL)
1883endif
1884endif
1885ifdef REQUIRE_PACKAGES_PASZLIB
1886PACKAGEDIR_PASZLIB:=$(firstword $(subst /Makefile.fpc,,$(strip $(wildcard $(addsuffix /paszlib/Makefile.fpc,$(PACKAGESDIR))))))
1887ifneq ($(PACKAGEDIR_PASZLIB),)
1888ifneq ($(wildcard $(PACKAGEDIR_PASZLIB)/units/$(TARGETSUFFIX)),)
1889UNITDIR_PASZLIB=$(PACKAGEDIR_PASZLIB)/units/$(TARGETSUFFIX)
1890else
1891UNITDIR_PASZLIB=$(PACKAGEDIR_PASZLIB)
1892endif
1893ifneq ($(wildcard $(PACKAGEDIR_PASZLIB)/units/$(SOURCESUFFIX)),)
1894UNITDIR_FPMAKE_PASZLIB=$(PACKAGEDIR_PASZLIB)/units/$(SOURCESUFFIX)
1895else
1896ifneq ($(wildcard $(PACKAGEDIR_PASZLIB)/units_bs/$(SOURCESUFFIX)),)
1897UNITDIR_FPMAKE_PASZLIB=$(PACKAGEDIR_PASZLIB)/units_bs/$(SOURCESUFFIX)
1898else
1899UNITDIR_FPMAKE_PASZLIB=$(PACKAGEDIR_PASZLIB)
1900endif
1901endif
1902ifdef CHECKDEPEND
1903$(PACKAGEDIR_PASZLIB)/$(FPCMADE):
1904	$(MAKE) -C $(PACKAGEDIR_PASZLIB) $(FPCMADE)
1905override ALLDEPENDENCIES+=$(PACKAGEDIR_PASZLIB)/$(FPCMADE)
1906endif
1907else
1908PACKAGEDIR_PASZLIB=
1909UNITDIR_PASZLIB:=$(subst /Package.fpc,,$(strip $(wildcard $(addsuffix /paszlib/Package.fpc,$(UNITSDIR)))))
1910ifneq ($(UNITDIR_PASZLIB),)
1911UNITDIR_PASZLIB:=$(firstword $(UNITDIR_PASZLIB))
1912else
1913UNITDIR_PASZLIB=
1914endif
1915endif
1916ifdef UNITDIR_PASZLIB
1917override COMPILER_UNITDIR+=$(UNITDIR_PASZLIB)
1918endif
1919ifdef UNITDIR_FPMAKE_PASZLIB
1920override COMPILER_FPMAKE_UNITDIR+=$(UNITDIR_FPMAKE_PASZLIB)
1921endif
1922endif
1923ifdef REQUIRE_PACKAGES_FCL-PROCESS
1924PACKAGEDIR_FCL-PROCESS:=$(firstword $(subst /Makefile.fpc,,$(strip $(wildcard $(addsuffix /fcl-process/Makefile.fpc,$(PACKAGESDIR))))))
1925ifneq ($(PACKAGEDIR_FCL-PROCESS),)
1926ifneq ($(wildcard $(PACKAGEDIR_FCL-PROCESS)/units/$(TARGETSUFFIX)),)
1927UNITDIR_FCL-PROCESS=$(PACKAGEDIR_FCL-PROCESS)/units/$(TARGETSUFFIX)
1928else
1929UNITDIR_FCL-PROCESS=$(PACKAGEDIR_FCL-PROCESS)
1930endif
1931ifneq ($(wildcard $(PACKAGEDIR_FCL-PROCESS)/units/$(SOURCESUFFIX)),)
1932UNITDIR_FPMAKE_FCL-PROCESS=$(PACKAGEDIR_FCL-PROCESS)/units/$(SOURCESUFFIX)
1933else
1934ifneq ($(wildcard $(PACKAGEDIR_FCL-PROCESS)/units_bs/$(SOURCESUFFIX)),)
1935UNITDIR_FPMAKE_FCL-PROCESS=$(PACKAGEDIR_FCL-PROCESS)/units_bs/$(SOURCESUFFIX)
1936else
1937UNITDIR_FPMAKE_FCL-PROCESS=$(PACKAGEDIR_FCL-PROCESS)
1938endif
1939endif
1940ifdef CHECKDEPEND
1941$(PACKAGEDIR_FCL-PROCESS)/$(FPCMADE):
1942	$(MAKE) -C $(PACKAGEDIR_FCL-PROCESS) $(FPCMADE)
1943override ALLDEPENDENCIES+=$(PACKAGEDIR_FCL-PROCESS)/$(FPCMADE)
1944endif
1945else
1946PACKAGEDIR_FCL-PROCESS=
1947UNITDIR_FCL-PROCESS:=$(subst /Package.fpc,,$(strip $(wildcard $(addsuffix /fcl-process/Package.fpc,$(UNITSDIR)))))
1948ifneq ($(UNITDIR_FCL-PROCESS),)
1949UNITDIR_FCL-PROCESS:=$(firstword $(UNITDIR_FCL-PROCESS))
1950else
1951UNITDIR_FCL-PROCESS=
1952endif
1953endif
1954ifdef UNITDIR_FCL-PROCESS
1955override COMPILER_UNITDIR+=$(UNITDIR_FCL-PROCESS)
1956endif
1957ifdef UNITDIR_FPMAKE_FCL-PROCESS
1958override COMPILER_FPMAKE_UNITDIR+=$(UNITDIR_FPMAKE_FCL-PROCESS)
1959endif
1960endif
1961ifdef REQUIRE_PACKAGES_HASH
1962PACKAGEDIR_HASH:=$(firstword $(subst /Makefile.fpc,,$(strip…

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