PageRenderTime 90ms CodeModel.GetById 19ms app.highlight 61ms RepoModel.GetById 1ms app.codeStats 0ms

/packages/pxlib/examples/Makefile

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

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