PageRenderTime 352ms CodeModel.GetById 26ms app.highlight 304ms RepoModel.GetById 1ms app.codeStats 1ms

/components/macfiles/Makefile

http://github.com/graemeg/lazarus
Makefile | 3151 lines | 3148 code | 0 blank | 3 comment | 9 complexity | 0b749c04358358143c8b8e3417b73676 MD5 | raw file
   1#
   2# Don't edit, this file is generated by FPCMake Version 2.0.0 [2015-09-05 rev 31523]
   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 i386-android i386-aros 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 x86_64-iphonesim x86_64-aros x86_64-dragonfly arm-linux arm-palmos arm-darwin arm-wince arm-gba arm-nds arm-embedded arm-symbian arm-android powerpc64-linux powerpc64-darwin powerpc64-embedded powerpc64-aix avr-embedded armeb-linux armeb-embedded mips-linux mipsel-linux mipsel-embedded mipsel-android jvm-java jvm-android i8086-msdos i8086-win16 aarch64-linux aarch64-darwin
   6BSDs = freebsd netbsd openbsd darwin dragonfly
   7UNIXs = linux $(BSDs) solaris qnx haiku aix
   8LIMIT83fs = go32v2 os2 emx watcom msdos win16
   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
 103ifndef FPC
 104ifdef PP
 105FPC=$(PP)
 106endif
 107endif
 108ifndef FPC
 109FPCPROG:=$(strip $(wildcard $(addsuffix /fpc$(SRCEXEEXT),$(SEARCHPATH))))
 110ifneq ($(FPCPROG),)
 111FPCPROG:=$(firstword $(FPCPROG))
 112ifneq ($(CPU_TARGET),)
 113FPC:=$(shell $(FPCPROG) -P$(CPU_TARGET) -PB)
 114else
 115FPC:=$(shell $(FPCPROG) -PB)
 116endif
 117ifneq ($(findstring Error,$(FPC)),)
 118override FPC=$(firstword $(strip $(wildcard $(addsuffix /ppc386$(SRCEXEEXT),$(SEARCHPATH)))))
 119else
 120ifeq ($(strip $(wildcard $(FPC))),)
 121FPC:=$(firstword $(FPCPROG))
 122endif
 123endif
 124else
 125override FPC=$(firstword $(strip $(wildcard $(addsuffix /ppc386$(SRCEXEEXT),$(SEARCHPATH)))))
 126endif
 127endif
 128override FPC:=$(subst $(SRCEXEEXT),,$(FPC))
 129override FPC:=$(subst \,/,$(FPC))$(SRCEXEEXT)
 130FOUNDFPC:=$(strip $(wildcard $(FPC)))
 131ifeq ($(FOUNDFPC),)
 132FOUNDFPC=$(strip $(wildcard $(addsuffix /$(FPC),$(SEARCHPATH))))
 133ifeq ($(FOUNDFPC),)
 134$(error Compiler $(FPC) not found)
 135endif
 136endif
 137ifndef FPC_COMPILERINFO
 138FPC_COMPILERINFO:=$(shell $(FPC) -iVSPTPSOTO)
 139endif
 140ifndef FPC_VERSION
 141FPC_VERSION:=$(word 1,$(FPC_COMPILERINFO))
 142endif
 143export FPC FPC_VERSION FPC_COMPILERINFO
 144unexport CHECKDEPEND ALLDEPENDENCIES
 145ifndef CPU_TARGET
 146ifdef CPU_TARGET_DEFAULT
 147CPU_TARGET=$(CPU_TARGET_DEFAULT)
 148endif
 149endif
 150ifndef OS_TARGET
 151ifdef OS_TARGET_DEFAULT
 152OS_TARGET=$(OS_TARGET_DEFAULT)
 153endif
 154endif
 155ifndef CPU_SOURCE
 156CPU_SOURCE:=$(word 2,$(FPC_COMPILERINFO))
 157endif
 158ifndef CPU_TARGET
 159CPU_TARGET:=$(word 3,$(FPC_COMPILERINFO))
 160endif
 161ifndef OS_SOURCE
 162OS_SOURCE:=$(word 4,$(FPC_COMPILERINFO))
 163endif
 164ifndef OS_TARGET
 165OS_TARGET:=$(word 5,$(FPC_COMPILERINFO))
 166endif
 167FULL_TARGET=$(CPU_TARGET)-$(OS_TARGET)
 168FULL_SOURCE=$(CPU_SOURCE)-$(OS_SOURCE)
 169ifeq ($(CPU_TARGET),armeb)
 170ARCH=arm
 171override FPCOPT+=-Cb
 172else
 173ifeq ($(CPU_TARGET),armel)
 174ARCH=arm
 175override FPCOPT+=-CaEABI
 176else
 177ARCH=$(CPU_TARGET)
 178endif
 179endif
 180ifeq ($(FULL_TARGET),arm-embedded)
 181ifeq ($(SUBARCH),)
 182$(error When compiling for arm-embedded, a sub-architecture (e.g. SUBARCH=armv4t or SUBARCH=armv7m) must be defined)
 183endif
 184override FPCOPT+=-Cp$(SUBARCH)
 185endif
 186ifeq ($(FULL_TARGET),avr-embedded)
 187ifeq ($(SUBARCH),)
 188$(error When compiling for avr-embedded, a sub-architecture (e.g. SUBARCH=avr25 or SUBARCH=avr35) must be defined)
 189endif
 190override FPCOPT+=-Cp$(SUBARCH)
 191endif
 192ifeq ($(FULL_TARGET),mipsel-embedded)
 193ifeq ($(SUBARCH),)
 194$(error When compiling for mipsel-embedded, a sub-architecture (e.g. SUBARCH=pic32mx) must be defined)
 195endif
 196override FPCOPT+=-Cp$(SUBARCH)
 197endif
 198ifneq ($(findstring $(OS_SOURCE),$(LIMIT83fs)),)
 199TARGETSUFFIX=$(OS_TARGET)
 200SOURCESUFFIX=$(OS_SOURCE)
 201else
 202ifneq ($(findstring $(OS_TARGET),$(LIMIT83fs)),)
 203TARGETSUFFIX=$(OS_TARGET)
 204else
 205TARGETSUFFIX=$(FULL_TARGET)
 206endif
 207SOURCESUFFIX=$(FULL_SOURCE)
 208endif
 209ifneq ($(FULL_TARGET),$(FULL_SOURCE))
 210CROSSCOMPILE=1
 211endif
 212ifeq ($(findstring makefile,$(MAKECMDGOALS)),)
 213ifeq ($(findstring $(FULL_TARGET),$(MAKEFILETARGETS)),)
 214$(error The Makefile doesn't support target $(FULL_TARGET), please run fpcmake first)
 215endif
 216endif
 217ifneq ($(findstring $(OS_TARGET),$(BSDs)),)
 218BSDhier=1
 219endif
 220ifeq ($(OS_TARGET),linux)
 221linuxHier=1
 222endif
 223ifndef CROSSCOMPILE
 224BUILDFULLNATIVE=1
 225export BUILDFULLNATIVE
 226endif
 227ifdef BUILDFULLNATIVE
 228BUILDNATIVE=1
 229export BUILDNATIVE
 230endif
 231export OS_TARGET OS_SOURCE ARCH CPU_TARGET CPU_SOURCE FULL_TARGET FULL_SOURCE TARGETSUFFIX SOURCESUFFIX CROSSCOMPILE
 232ifdef FPCDIR
 233override FPCDIR:=$(subst \,/,$(FPCDIR))
 234ifeq ($(wildcard $(addprefix $(FPCDIR)/,rtl units)),)
 235override FPCDIR=wrong
 236endif
 237else
 238override FPCDIR=wrong
 239endif
 240ifdef DEFAULT_FPCDIR
 241ifeq ($(FPCDIR),wrong)
 242override FPCDIR:=$(subst \,/,$(DEFAULT_FPCDIR))
 243ifeq ($(wildcard $(addprefix $(FPCDIR)/,rtl units)),)
 244override FPCDIR=wrong
 245endif
 246endif
 247endif
 248ifeq ($(FPCDIR),wrong)
 249ifdef inUnix
 250override FPCDIR=/usr/local/lib/fpc/$(FPC_VERSION)
 251ifeq ($(wildcard $(FPCDIR)/units),)
 252override FPCDIR=/usr/lib/fpc/$(FPC_VERSION)
 253endif
 254else
 255override FPCDIR:=$(subst /$(FPC),,$(firstword $(strip $(wildcard $(addsuffix /$(FPC),$(SEARCHPATH))))))
 256override FPCDIR:=$(FPCDIR)/..
 257ifeq ($(wildcard $(addprefix $(FPCDIR)/,rtl units)),)
 258override FPCDIR:=$(FPCDIR)/..
 259ifeq ($(wildcard $(addprefix $(FPCDIR)/,rtl units)),)
 260override FPCDIR:=$(BASEDIR)
 261ifeq ($(wildcard $(addprefix $(FPCDIR)/,rtl units)),)
 262override FPCDIR=c:/pp
 263endif
 264endif
 265endif
 266endif
 267endif
 268ifndef CROSSBINDIR
 269CROSSBINDIR:=$(wildcard $(FPCDIR)/bin/$(TARGETSUFFIX))
 270endif
 271ifneq ($(findstring $(OS_TARGET),darwin iphonesim),)
 272ifeq ($(OS_SOURCE),darwin)
 273DARWIN2DARWIN=1
 274endif
 275endif
 276ifndef BINUTILSPREFIX
 277ifndef CROSSBINDIR
 278ifdef CROSSCOMPILE
 279ifneq ($(OS_TARGET),msdos)
 280ifndef DARWIN2DARWIN
 281ifneq ($(CPU_TARGET),jvm)
 282BINUTILSPREFIX=$(CPU_TARGET)-$(OS_TARGET)-
 283ifeq ($(OS_TARGET),android)
 284ifeq ($(CPU_TARGET),arm)
 285BINUTILSPREFIX=arm-linux-androideabi-
 286else
 287ifeq ($(CPU_TARGET),i386)
 288BINUTILSPREFIX=i686-linux-android-
 289else
 290ifeq ($(CPU_TARGET),mipsel)
 291BINUTILSPREFIX=mipsel-linux-android-
 292endif
 293endif
 294endif
 295endif
 296endif
 297endif
 298else
 299BINUTILSPREFIX=$(OS_TARGET)-
 300endif
 301endif
 302endif
 303endif
 304UNITSDIR:=$(wildcard $(FPCDIR)/units/$(TARGETSUFFIX))
 305ifeq ($(UNITSDIR),)
 306UNITSDIR:=$(wildcard $(FPCDIR)/units/$(OS_TARGET))
 307endif
 308PACKAGESDIR:=$(wildcard $(FPCDIR) $(FPCDIR)/packages $(FPCDIR)/packages/base $(FPCDIR)/packages/extra)
 309ifndef FPCFPMAKE
 310ifdef CROSSCOMPILE
 311ifeq ($(strip $(wildcard $(addsuffix /compiler/ppc$(SRCEXEEXT),$(FPCDIR)))),)
 312FPCPROG:=$(strip $(wildcard $(addsuffix /fpc$(SRCEXEEXT),$(SEARCHPATH))))
 313ifneq ($(FPCPROG),)
 314FPCPROG:=$(firstword $(FPCPROG))
 315FPCFPMAKE:=$(shell $(FPCPROG) -PB)
 316ifeq ($(strip $(wildcard $(FPCFPMAKE))),)
 317FPCFPMAKE:=$(firstword $(FPCPROG))
 318endif
 319else
 320override FPCFPMAKE=$(firstword $(strip $(wildcard $(addsuffix /ppc386$(SRCEXEEXT),$(SEARCHPATH)))))
 321endif
 322else
 323FPCFPMAKE=$(strip $(wildcard $(addsuffix /compiler/ppc$(SRCEXEEXT),$(FPCDIR))))
 324FPMAKE_SKIP_CONFIG=-n
 325export FPCFPMAKE
 326export FPMAKE_SKIP_CONFIG
 327endif
 328else
 329FPMAKE_SKIP_CONFIG=-n
 330FPCFPMAKE=$(FPC)
 331endif
 332endif
 333override PACKAGE_NAME=macosfiles
 334override PACKAGE_VERSION=0.0
 335ifndef LCL_PLATFORM
 336ifeq ($(OS_TARGET),win32)
 337LCL_PLATFORM=win32
 338else
 339ifeq ($(OS_TARGET),win64)
 340LCL_PLATFORM=win32
 341else
 342ifeq ($(OS_TARGET),darwin)
 343LCL_PLATFORM=carbon
 344else
 345LCL_PLATFORM=gtk2
 346endif
 347endif
 348endif
 349endif
 350export LCL_PLATFORM
 351DBG_OPTIONS=
 352ifeq ($(OS_TARGET),darwin)
 353DBG_OPTIONS=-gw
 354endif
 355ifeq ($(FULL_TARGET),i386-linux)
 356override TARGET_UNITS+=macosfiles.pas
 357endif
 358ifeq ($(FULL_TARGET),i386-go32v2)
 359override TARGET_UNITS+=macosfiles.pas
 360endif
 361ifeq ($(FULL_TARGET),i386-win32)
 362override TARGET_UNITS+=macosfiles.pas
 363endif
 364ifeq ($(FULL_TARGET),i386-os2)
 365override TARGET_UNITS+=macosfiles.pas
 366endif
 367ifeq ($(FULL_TARGET),i386-freebsd)
 368override TARGET_UNITS+=macosfiles.pas
 369endif
 370ifeq ($(FULL_TARGET),i386-beos)
 371override TARGET_UNITS+=macosfiles.pas
 372endif
 373ifeq ($(FULL_TARGET),i386-haiku)
 374override TARGET_UNITS+=macosfiles.pas
 375endif
 376ifeq ($(FULL_TARGET),i386-netbsd)
 377override TARGET_UNITS+=macosfiles.pas
 378endif
 379ifeq ($(FULL_TARGET),i386-solaris)
 380override TARGET_UNITS+=macosfiles.pas
 381endif
 382ifeq ($(FULL_TARGET),i386-qnx)
 383override TARGET_UNITS+=macosfiles.pas
 384endif
 385ifeq ($(FULL_TARGET),i386-netware)
 386override TARGET_UNITS+=macosfiles.pas
 387endif
 388ifeq ($(FULL_TARGET),i386-openbsd)
 389override TARGET_UNITS+=macosfiles.pas
 390endif
 391ifeq ($(FULL_TARGET),i386-wdosx)
 392override TARGET_UNITS+=macosfiles.pas
 393endif
 394ifeq ($(FULL_TARGET),i386-darwin)
 395override TARGET_UNITS+=macosfiles.pas
 396endif
 397ifeq ($(FULL_TARGET),i386-emx)
 398override TARGET_UNITS+=macosfiles.pas
 399endif
 400ifeq ($(FULL_TARGET),i386-watcom)
 401override TARGET_UNITS+=macosfiles.pas
 402endif
 403ifeq ($(FULL_TARGET),i386-netwlibc)
 404override TARGET_UNITS+=macosfiles.pas
 405endif
 406ifeq ($(FULL_TARGET),i386-wince)
 407override TARGET_UNITS+=macosfiles.pas
 408endif
 409ifeq ($(FULL_TARGET),i386-embedded)
 410override TARGET_UNITS+=macosfiles.pas
 411endif
 412ifeq ($(FULL_TARGET),i386-symbian)
 413override TARGET_UNITS+=macosfiles.pas
 414endif
 415ifeq ($(FULL_TARGET),i386-nativent)
 416override TARGET_UNITS+=macosfiles.pas
 417endif
 418ifeq ($(FULL_TARGET),i386-iphonesim)
 419override TARGET_UNITS+=macosfiles.pas
 420endif
 421ifeq ($(FULL_TARGET),i386-android)
 422override TARGET_UNITS+=macosfiles.pas
 423endif
 424ifeq ($(FULL_TARGET),i386-aros)
 425override TARGET_UNITS+=macosfiles.pas
 426endif
 427ifeq ($(FULL_TARGET),m68k-linux)
 428override TARGET_UNITS+=macosfiles.pas
 429endif
 430ifeq ($(FULL_TARGET),m68k-freebsd)
 431override TARGET_UNITS+=macosfiles.pas
 432endif
 433ifeq ($(FULL_TARGET),m68k-netbsd)
 434override TARGET_UNITS+=macosfiles.pas
 435endif
 436ifeq ($(FULL_TARGET),m68k-amiga)
 437override TARGET_UNITS+=macosfiles.pas
 438endif
 439ifeq ($(FULL_TARGET),m68k-atari)
 440override TARGET_UNITS+=macosfiles.pas
 441endif
 442ifeq ($(FULL_TARGET),m68k-openbsd)
 443override TARGET_UNITS+=macosfiles.pas
 444endif
 445ifeq ($(FULL_TARGET),m68k-palmos)
 446override TARGET_UNITS+=macosfiles.pas
 447endif
 448ifeq ($(FULL_TARGET),m68k-embedded)
 449override TARGET_UNITS+=macosfiles.pas
 450endif
 451ifeq ($(FULL_TARGET),powerpc-linux)
 452override TARGET_UNITS+=macosfiles.pas
 453endif
 454ifeq ($(FULL_TARGET),powerpc-netbsd)
 455override TARGET_UNITS+=macosfiles.pas
 456endif
 457ifeq ($(FULL_TARGET),powerpc-amiga)
 458override TARGET_UNITS+=macosfiles.pas
 459endif
 460ifeq ($(FULL_TARGET),powerpc-macos)
 461override TARGET_UNITS+=macosfiles.pas
 462endif
 463ifeq ($(FULL_TARGET),powerpc-darwin)
 464override TARGET_UNITS+=macosfiles.pas
 465endif
 466ifeq ($(FULL_TARGET),powerpc-morphos)
 467override TARGET_UNITS+=macosfiles.pas
 468endif
 469ifeq ($(FULL_TARGET),powerpc-embedded)
 470override TARGET_UNITS+=macosfiles.pas
 471endif
 472ifeq ($(FULL_TARGET),powerpc-wii)
 473override TARGET_UNITS+=macosfiles.pas
 474endif
 475ifeq ($(FULL_TARGET),powerpc-aix)
 476override TARGET_UNITS+=macosfiles.pas
 477endif
 478ifeq ($(FULL_TARGET),sparc-linux)
 479override TARGET_UNITS+=macosfiles.pas
 480endif
 481ifeq ($(FULL_TARGET),sparc-netbsd)
 482override TARGET_UNITS+=macosfiles.pas
 483endif
 484ifeq ($(FULL_TARGET),sparc-solaris)
 485override TARGET_UNITS+=macosfiles.pas
 486endif
 487ifeq ($(FULL_TARGET),sparc-embedded)
 488override TARGET_UNITS+=macosfiles.pas
 489endif
 490ifeq ($(FULL_TARGET),x86_64-linux)
 491override TARGET_UNITS+=macosfiles.pas
 492endif
 493ifeq ($(FULL_TARGET),x86_64-freebsd)
 494override TARGET_UNITS+=macosfiles.pas
 495endif
 496ifeq ($(FULL_TARGET),x86_64-netbsd)
 497override TARGET_UNITS+=macosfiles.pas
 498endif
 499ifeq ($(FULL_TARGET),x86_64-solaris)
 500override TARGET_UNITS+=macosfiles.pas
 501endif
 502ifeq ($(FULL_TARGET),x86_64-openbsd)
 503override TARGET_UNITS+=macosfiles.pas
 504endif
 505ifeq ($(FULL_TARGET),x86_64-darwin)
 506override TARGET_UNITS+=macosfiles.pas
 507endif
 508ifeq ($(FULL_TARGET),x86_64-win64)
 509override TARGET_UNITS+=macosfiles.pas
 510endif
 511ifeq ($(FULL_TARGET),x86_64-embedded)
 512override TARGET_UNITS+=macosfiles.pas
 513endif
 514ifeq ($(FULL_TARGET),x86_64-iphonesim)
 515override TARGET_UNITS+=macosfiles.pas
 516endif
 517ifeq ($(FULL_TARGET),x86_64-aros)
 518override TARGET_UNITS+=macosfiles.pas
 519endif
 520ifeq ($(FULL_TARGET),x86_64-dragonfly)
 521override TARGET_UNITS+=macosfiles.pas
 522endif
 523ifeq ($(FULL_TARGET),arm-linux)
 524override TARGET_UNITS+=macosfiles.pas
 525endif
 526ifeq ($(FULL_TARGET),arm-palmos)
 527override TARGET_UNITS+=macosfiles.pas
 528endif
 529ifeq ($(FULL_TARGET),arm-darwin)
 530override TARGET_UNITS+=macosfiles.pas
 531endif
 532ifeq ($(FULL_TARGET),arm-wince)
 533override TARGET_UNITS+=macosfiles.pas
 534endif
 535ifeq ($(FULL_TARGET),arm-gba)
 536override TARGET_UNITS+=macosfiles.pas
 537endif
 538ifeq ($(FULL_TARGET),arm-nds)
 539override TARGET_UNITS+=macosfiles.pas
 540endif
 541ifeq ($(FULL_TARGET),arm-embedded)
 542override TARGET_UNITS+=macosfiles.pas
 543endif
 544ifeq ($(FULL_TARGET),arm-symbian)
 545override TARGET_UNITS+=macosfiles.pas
 546endif
 547ifeq ($(FULL_TARGET),arm-android)
 548override TARGET_UNITS+=macosfiles.pas
 549endif
 550ifeq ($(FULL_TARGET),powerpc64-linux)
 551override TARGET_UNITS+=macosfiles.pas
 552endif
 553ifeq ($(FULL_TARGET),powerpc64-darwin)
 554override TARGET_UNITS+=macosfiles.pas
 555endif
 556ifeq ($(FULL_TARGET),powerpc64-embedded)
 557override TARGET_UNITS+=macosfiles.pas
 558endif
 559ifeq ($(FULL_TARGET),powerpc64-aix)
 560override TARGET_UNITS+=macosfiles.pas
 561endif
 562ifeq ($(FULL_TARGET),avr-embedded)
 563override TARGET_UNITS+=macosfiles.pas
 564endif
 565ifeq ($(FULL_TARGET),armeb-linux)
 566override TARGET_UNITS+=macosfiles.pas
 567endif
 568ifeq ($(FULL_TARGET),armeb-embedded)
 569override TARGET_UNITS+=macosfiles.pas
 570endif
 571ifeq ($(FULL_TARGET),mips-linux)
 572override TARGET_UNITS+=macosfiles.pas
 573endif
 574ifeq ($(FULL_TARGET),mipsel-linux)
 575override TARGET_UNITS+=macosfiles.pas
 576endif
 577ifeq ($(FULL_TARGET),mipsel-embedded)
 578override TARGET_UNITS+=macosfiles.pas
 579endif
 580ifeq ($(FULL_TARGET),mipsel-android)
 581override TARGET_UNITS+=macosfiles.pas
 582endif
 583ifeq ($(FULL_TARGET),jvm-java)
 584override TARGET_UNITS+=macosfiles.pas
 585endif
 586ifeq ($(FULL_TARGET),jvm-android)
 587override TARGET_UNITS+=macosfiles.pas
 588endif
 589ifeq ($(FULL_TARGET),i8086-msdos)
 590override TARGET_UNITS+=macosfiles.pas
 591endif
 592ifeq ($(FULL_TARGET),i8086-win16)
 593override TARGET_UNITS+=macosfiles.pas
 594endif
 595ifeq ($(FULL_TARGET),aarch64-linux)
 596override TARGET_UNITS+=macosfiles.pas
 597endif
 598ifeq ($(FULL_TARGET),aarch64-darwin)
 599override TARGET_UNITS+=macosfiles.pas
 600endif
 601ifeq ($(FULL_TARGET),i386-linux)
 602override CLEAN_FILES+=$(wildcard $(COMPILER_UNITTARGETDIR)/*$(OEXT)) $(wildcard $(COMPILER_UNITTARGETDIR)/*$(PPUEXT)) $(wildcard $(COMPILER_UNITTARGETDIR)/*$(RSTEXT)) $(wildcard $(COMPILER_UNITTARGETDIR)/*.lfm) $(wildcard $(COMPILER_UNITTARGETDIR)/*.res) $(wildcard $(COMPILER_UNITTARGETDIR)/*.compiled) $(wildcard *$(OEXT)) $(wildcard *$(PPUEXT)) $(wildcard *$(RSTEXT))
 603endif
 604ifeq ($(FULL_TARGET),i386-go32v2)
 605override CLEAN_FILES+=$(wildcard $(COMPILER_UNITTARGETDIR)/*$(OEXT)) $(wildcard $(COMPILER_UNITTARGETDIR)/*$(PPUEXT)) $(wildcard $(COMPILER_UNITTARGETDIR)/*$(RSTEXT)) $(wildcard $(COMPILER_UNITTARGETDIR)/*.lfm) $(wildcard $(COMPILER_UNITTARGETDIR)/*.res) $(wildcard $(COMPILER_UNITTARGETDIR)/*.compiled) $(wildcard *$(OEXT)) $(wildcard *$(PPUEXT)) $(wildcard *$(RSTEXT))
 606endif
 607ifeq ($(FULL_TARGET),i386-win32)
 608override CLEAN_FILES+=$(wildcard $(COMPILER_UNITTARGETDIR)/*$(OEXT)) $(wildcard $(COMPILER_UNITTARGETDIR)/*$(PPUEXT)) $(wildcard $(COMPILER_UNITTARGETDIR)/*$(RSTEXT)) $(wildcard $(COMPILER_UNITTARGETDIR)/*.lfm) $(wildcard $(COMPILER_UNITTARGETDIR)/*.res) $(wildcard $(COMPILER_UNITTARGETDIR)/*.compiled) $(wildcard *$(OEXT)) $(wildcard *$(PPUEXT)) $(wildcard *$(RSTEXT))
 609endif
 610ifeq ($(FULL_TARGET),i386-os2)
 611override CLEAN_FILES+=$(wildcard $(COMPILER_UNITTARGETDIR)/*$(OEXT)) $(wildcard $(COMPILER_UNITTARGETDIR)/*$(PPUEXT)) $(wildcard $(COMPILER_UNITTARGETDIR)/*$(RSTEXT)) $(wildcard $(COMPILER_UNITTARGETDIR)/*.lfm) $(wildcard $(COMPILER_UNITTARGETDIR)/*.res) $(wildcard $(COMPILER_UNITTARGETDIR)/*.compiled) $(wildcard *$(OEXT)) $(wildcard *$(PPUEXT)) $(wildcard *$(RSTEXT))
 612endif
 613ifeq ($(FULL_TARGET),i386-freebsd)
 614override CLEAN_FILES+=$(wildcard $(COMPILER_UNITTARGETDIR)/*$(OEXT)) $(wildcard $(COMPILER_UNITTARGETDIR)/*$(PPUEXT)) $(wildcard $(COMPILER_UNITTARGETDIR)/*$(RSTEXT)) $(wildcard $(COMPILER_UNITTARGETDIR)/*.lfm) $(wildcard $(COMPILER_UNITTARGETDIR)/*.res) $(wildcard $(COMPILER_UNITTARGETDIR)/*.compiled) $(wildcard *$(OEXT)) $(wildcard *$(PPUEXT)) $(wildcard *$(RSTEXT))
 615endif
 616ifeq ($(FULL_TARGET),i386-beos)
 617override CLEAN_FILES+=$(wildcard $(COMPILER_UNITTARGETDIR)/*$(OEXT)) $(wildcard $(COMPILER_UNITTARGETDIR)/*$(PPUEXT)) $(wildcard $(COMPILER_UNITTARGETDIR)/*$(RSTEXT)) $(wildcard $(COMPILER_UNITTARGETDIR)/*.lfm) $(wildcard $(COMPILER_UNITTARGETDIR)/*.res) $(wildcard $(COMPILER_UNITTARGETDIR)/*.compiled) $(wildcard *$(OEXT)) $(wildcard *$(PPUEXT)) $(wildcard *$(RSTEXT))
 618endif
 619ifeq ($(FULL_TARGET),i386-haiku)
 620override CLEAN_FILES+=$(wildcard $(COMPILER_UNITTARGETDIR)/*$(OEXT)) $(wildcard $(COMPILER_UNITTARGETDIR)/*$(PPUEXT)) $(wildcard $(COMPILER_UNITTARGETDIR)/*$(RSTEXT)) $(wildcard $(COMPILER_UNITTARGETDIR)/*.lfm) $(wildcard $(COMPILER_UNITTARGETDIR)/*.res) $(wildcard $(COMPILER_UNITTARGETDIR)/*.compiled) $(wildcard *$(OEXT)) $(wildcard *$(PPUEXT)) $(wildcard *$(RSTEXT))
 621endif
 622ifeq ($(FULL_TARGET),i386-netbsd)
 623override CLEAN_FILES+=$(wildcard $(COMPILER_UNITTARGETDIR)/*$(OEXT)) $(wildcard $(COMPILER_UNITTARGETDIR)/*$(PPUEXT)) $(wildcard $(COMPILER_UNITTARGETDIR)/*$(RSTEXT)) $(wildcard $(COMPILER_UNITTARGETDIR)/*.lfm) $(wildcard $(COMPILER_UNITTARGETDIR)/*.res) $(wildcard $(COMPILER_UNITTARGETDIR)/*.compiled) $(wildcard *$(OEXT)) $(wildcard *$(PPUEXT)) $(wildcard *$(RSTEXT))
 624endif
 625ifeq ($(FULL_TARGET),i386-solaris)
 626override CLEAN_FILES+=$(wildcard $(COMPILER_UNITTARGETDIR)/*$(OEXT)) $(wildcard $(COMPILER_UNITTARGETDIR)/*$(PPUEXT)) $(wildcard $(COMPILER_UNITTARGETDIR)/*$(RSTEXT)) $(wildcard $(COMPILER_UNITTARGETDIR)/*.lfm) $(wildcard $(COMPILER_UNITTARGETDIR)/*.res) $(wildcard $(COMPILER_UNITTARGETDIR)/*.compiled) $(wildcard *$(OEXT)) $(wildcard *$(PPUEXT)) $(wildcard *$(RSTEXT))
 627endif
 628ifeq ($(FULL_TARGET),i386-qnx)
 629override CLEAN_FILES+=$(wildcard $(COMPILER_UNITTARGETDIR)/*$(OEXT)) $(wildcard $(COMPILER_UNITTARGETDIR)/*$(PPUEXT)) $(wildcard $(COMPILER_UNITTARGETDIR)/*$(RSTEXT)) $(wildcard $(COMPILER_UNITTARGETDIR)/*.lfm) $(wildcard $(COMPILER_UNITTARGETDIR)/*.res) $(wildcard $(COMPILER_UNITTARGETDIR)/*.compiled) $(wildcard *$(OEXT)) $(wildcard *$(PPUEXT)) $(wildcard *$(RSTEXT))
 630endif
 631ifeq ($(FULL_TARGET),i386-netware)
 632override CLEAN_FILES+=$(wildcard $(COMPILER_UNITTARGETDIR)/*$(OEXT)) $(wildcard $(COMPILER_UNITTARGETDIR)/*$(PPUEXT)) $(wildcard $(COMPILER_UNITTARGETDIR)/*$(RSTEXT)) $(wildcard $(COMPILER_UNITTARGETDIR)/*.lfm) $(wildcard $(COMPILER_UNITTARGETDIR)/*.res) $(wildcard $(COMPILER_UNITTARGETDIR)/*.compiled) $(wildcard *$(OEXT)) $(wildcard *$(PPUEXT)) $(wildcard *$(RSTEXT))
 633endif
 634ifeq ($(FULL_TARGET),i386-openbsd)
 635override CLEAN_FILES+=$(wildcard $(COMPILER_UNITTARGETDIR)/*$(OEXT)) $(wildcard $(COMPILER_UNITTARGETDIR)/*$(PPUEXT)) $(wildcard $(COMPILER_UNITTARGETDIR)/*$(RSTEXT)) $(wildcard $(COMPILER_UNITTARGETDIR)/*.lfm) $(wildcard $(COMPILER_UNITTARGETDIR)/*.res) $(wildcard $(COMPILER_UNITTARGETDIR)/*.compiled) $(wildcard *$(OEXT)) $(wildcard *$(PPUEXT)) $(wildcard *$(RSTEXT))
 636endif
 637ifeq ($(FULL_TARGET),i386-wdosx)
 638override CLEAN_FILES+=$(wildcard $(COMPILER_UNITTARGETDIR)/*$(OEXT)) $(wildcard $(COMPILER_UNITTARGETDIR)/*$(PPUEXT)) $(wildcard $(COMPILER_UNITTARGETDIR)/*$(RSTEXT)) $(wildcard $(COMPILER_UNITTARGETDIR)/*.lfm) $(wildcard $(COMPILER_UNITTARGETDIR)/*.res) $(wildcard $(COMPILER_UNITTARGETDIR)/*.compiled) $(wildcard *$(OEXT)) $(wildcard *$(PPUEXT)) $(wildcard *$(RSTEXT))
 639endif
 640ifeq ($(FULL_TARGET),i386-darwin)
 641override CLEAN_FILES+=$(wildcard $(COMPILER_UNITTARGETDIR)/*$(OEXT)) $(wildcard $(COMPILER_UNITTARGETDIR)/*$(PPUEXT)) $(wildcard $(COMPILER_UNITTARGETDIR)/*$(RSTEXT)) $(wildcard $(COMPILER_UNITTARGETDIR)/*.lfm) $(wildcard $(COMPILER_UNITTARGETDIR)/*.res) $(wildcard $(COMPILER_UNITTARGETDIR)/*.compiled) $(wildcard *$(OEXT)) $(wildcard *$(PPUEXT)) $(wildcard *$(RSTEXT))
 642endif
 643ifeq ($(FULL_TARGET),i386-emx)
 644override CLEAN_FILES+=$(wildcard $(COMPILER_UNITTARGETDIR)/*$(OEXT)) $(wildcard $(COMPILER_UNITTARGETDIR)/*$(PPUEXT)) $(wildcard $(COMPILER_UNITTARGETDIR)/*$(RSTEXT)) $(wildcard $(COMPILER_UNITTARGETDIR)/*.lfm) $(wildcard $(COMPILER_UNITTARGETDIR)/*.res) $(wildcard $(COMPILER_UNITTARGETDIR)/*.compiled) $(wildcard *$(OEXT)) $(wildcard *$(PPUEXT)) $(wildcard *$(RSTEXT))
 645endif
 646ifeq ($(FULL_TARGET),i386-watcom)
 647override CLEAN_FILES+=$(wildcard $(COMPILER_UNITTARGETDIR)/*$(OEXT)) $(wildcard $(COMPILER_UNITTARGETDIR)/*$(PPUEXT)) $(wildcard $(COMPILER_UNITTARGETDIR)/*$(RSTEXT)) $(wildcard $(COMPILER_UNITTARGETDIR)/*.lfm) $(wildcard $(COMPILER_UNITTARGETDIR)/*.res) $(wildcard $(COMPILER_UNITTARGETDIR)/*.compiled) $(wildcard *$(OEXT)) $(wildcard *$(PPUEXT)) $(wildcard *$(RSTEXT))
 648endif
 649ifeq ($(FULL_TARGET),i386-netwlibc)
 650override CLEAN_FILES+=$(wildcard $(COMPILER_UNITTARGETDIR)/*$(OEXT)) $(wildcard $(COMPILER_UNITTARGETDIR)/*$(PPUEXT)) $(wildcard $(COMPILER_UNITTARGETDIR)/*$(RSTEXT)) $(wildcard $(COMPILER_UNITTARGETDIR)/*.lfm) $(wildcard $(COMPILER_UNITTARGETDIR)/*.res) $(wildcard $(COMPILER_UNITTARGETDIR)/*.compiled) $(wildcard *$(OEXT)) $(wildcard *$(PPUEXT)) $(wildcard *$(RSTEXT))
 651endif
 652ifeq ($(FULL_TARGET),i386-wince)
 653override CLEAN_FILES+=$(wildcard $(COMPILER_UNITTARGETDIR)/*$(OEXT)) $(wildcard $(COMPILER_UNITTARGETDIR)/*$(PPUEXT)) $(wildcard $(COMPILER_UNITTARGETDIR)/*$(RSTEXT)) $(wildcard $(COMPILER_UNITTARGETDIR)/*.lfm) $(wildcard $(COMPILER_UNITTARGETDIR)/*.res) $(wildcard $(COMPILER_UNITTARGETDIR)/*.compiled) $(wildcard *$(OEXT)) $(wildcard *$(PPUEXT)) $(wildcard *$(RSTEXT))
 654endif
 655ifeq ($(FULL_TARGET),i386-embedded)
 656override CLEAN_FILES+=$(wildcard $(COMPILER_UNITTARGETDIR)/*$(OEXT)) $(wildcard $(COMPILER_UNITTARGETDIR)/*$(PPUEXT)) $(wildcard $(COMPILER_UNITTARGETDIR)/*$(RSTEXT)) $(wildcard $(COMPILER_UNITTARGETDIR)/*.lfm) $(wildcard $(COMPILER_UNITTARGETDIR)/*.res) $(wildcard $(COMPILER_UNITTARGETDIR)/*.compiled) $(wildcard *$(OEXT)) $(wildcard *$(PPUEXT)) $(wildcard *$(RSTEXT))
 657endif
 658ifeq ($(FULL_TARGET),i386-symbian)
 659override CLEAN_FILES+=$(wildcard $(COMPILER_UNITTARGETDIR)/*$(OEXT)) $(wildcard $(COMPILER_UNITTARGETDIR)/*$(PPUEXT)) $(wildcard $(COMPILER_UNITTARGETDIR)/*$(RSTEXT)) $(wildcard $(COMPILER_UNITTARGETDIR)/*.lfm) $(wildcard $(COMPILER_UNITTARGETDIR)/*.res) $(wildcard $(COMPILER_UNITTARGETDIR)/*.compiled) $(wildcard *$(OEXT)) $(wildcard *$(PPUEXT)) $(wildcard *$(RSTEXT))
 660endif
 661ifeq ($(FULL_TARGET),i386-nativent)
 662override CLEAN_FILES+=$(wildcard $(COMPILER_UNITTARGETDIR)/*$(OEXT)) $(wildcard $(COMPILER_UNITTARGETDIR)/*$(PPUEXT)) $(wildcard $(COMPILER_UNITTARGETDIR)/*$(RSTEXT)) $(wildcard $(COMPILER_UNITTARGETDIR)/*.lfm) $(wildcard $(COMPILER_UNITTARGETDIR)/*.res) $(wildcard $(COMPILER_UNITTARGETDIR)/*.compiled) $(wildcard *$(OEXT)) $(wildcard *$(PPUEXT)) $(wildcard *$(RSTEXT))
 663endif
 664ifeq ($(FULL_TARGET),i386-iphonesim)
 665override CLEAN_FILES+=$(wildcard $(COMPILER_UNITTARGETDIR)/*$(OEXT)) $(wildcard $(COMPILER_UNITTARGETDIR)/*$(PPUEXT)) $(wildcard $(COMPILER_UNITTARGETDIR)/*$(RSTEXT)) $(wildcard $(COMPILER_UNITTARGETDIR)/*.lfm) $(wildcard $(COMPILER_UNITTARGETDIR)/*.res) $(wildcard $(COMPILER_UNITTARGETDIR)/*.compiled) $(wildcard *$(OEXT)) $(wildcard *$(PPUEXT)) $(wildcard *$(RSTEXT))
 666endif
 667ifeq ($(FULL_TARGET),i386-android)
 668override CLEAN_FILES+=$(wildcard $(COMPILER_UNITTARGETDIR)/*$(OEXT)) $(wildcard $(COMPILER_UNITTARGETDIR)/*$(PPUEXT)) $(wildcard $(COMPILER_UNITTARGETDIR)/*$(RSTEXT)) $(wildcard $(COMPILER_UNITTARGETDIR)/*.lfm) $(wildcard $(COMPILER_UNITTARGETDIR)/*.res) $(wildcard $(COMPILER_UNITTARGETDIR)/*.compiled) $(wildcard *$(OEXT)) $(wildcard *$(PPUEXT)) $(wildcard *$(RSTEXT))
 669endif
 670ifeq ($(FULL_TARGET),i386-aros)
 671override CLEAN_FILES+=$(wildcard $(COMPILER_UNITTARGETDIR)/*$(OEXT)) $(wildcard $(COMPILER_UNITTARGETDIR)/*$(PPUEXT)) $(wildcard $(COMPILER_UNITTARGETDIR)/*$(RSTEXT)) $(wildcard $(COMPILER_UNITTARGETDIR)/*.lfm) $(wildcard $(COMPILER_UNITTARGETDIR)/*.res) $(wildcard $(COMPILER_UNITTARGETDIR)/*.compiled) $(wildcard *$(OEXT)) $(wildcard *$(PPUEXT)) $(wildcard *$(RSTEXT))
 672endif
 673ifeq ($(FULL_TARGET),m68k-linux)
 674override CLEAN_FILES+=$(wildcard $(COMPILER_UNITTARGETDIR)/*$(OEXT)) $(wildcard $(COMPILER_UNITTARGETDIR)/*$(PPUEXT)) $(wildcard $(COMPILER_UNITTARGETDIR)/*$(RSTEXT)) $(wildcard $(COMPILER_UNITTARGETDIR)/*.lfm) $(wildcard $(COMPILER_UNITTARGETDIR)/*.res) $(wildcard $(COMPILER_UNITTARGETDIR)/*.compiled) $(wildcard *$(OEXT)) $(wildcard *$(PPUEXT)) $(wildcard *$(RSTEXT))
 675endif
 676ifeq ($(FULL_TARGET),m68k-freebsd)
 677override CLEAN_FILES+=$(wildcard $(COMPILER_UNITTARGETDIR)/*$(OEXT)) $(wildcard $(COMPILER_UNITTARGETDIR)/*$(PPUEXT)) $(wildcard $(COMPILER_UNITTARGETDIR)/*$(RSTEXT)) $(wildcard $(COMPILER_UNITTARGETDIR)/*.lfm) $(wildcard $(COMPILER_UNITTARGETDIR)/*.res) $(wildcard $(COMPILER_UNITTARGETDIR)/*.compiled) $(wildcard *$(OEXT)) $(wildcard *$(PPUEXT)) $(wildcard *$(RSTEXT))
 678endif
 679ifeq ($(FULL_TARGET),m68k-netbsd)
 680override CLEAN_FILES+=$(wildcard $(COMPILER_UNITTARGETDIR)/*$(OEXT)) $(wildcard $(COMPILER_UNITTARGETDIR)/*$(PPUEXT)) $(wildcard $(COMPILER_UNITTARGETDIR)/*$(RSTEXT)) $(wildcard $(COMPILER_UNITTARGETDIR)/*.lfm) $(wildcard $(COMPILER_UNITTARGETDIR)/*.res) $(wildcard $(COMPILER_UNITTARGETDIR)/*.compiled) $(wildcard *$(OEXT)) $(wildcard *$(PPUEXT)) $(wildcard *$(RSTEXT))
 681endif
 682ifeq ($(FULL_TARGET),m68k-amiga)
 683override CLEAN_FILES+=$(wildcard $(COMPILER_UNITTARGETDIR)/*$(OEXT)) $(wildcard $(COMPILER_UNITTARGETDIR)/*$(PPUEXT)) $(wildcard $(COMPILER_UNITTARGETDIR)/*$(RSTEXT)) $(wildcard $(COMPILER_UNITTARGETDIR)/*.lfm) $(wildcard $(COMPILER_UNITTARGETDIR)/*.res) $(wildcard $(COMPILER_UNITTARGETDIR)/*.compiled) $(wildcard *$(OEXT)) $(wildcard *$(PPUEXT)) $(wildcard *$(RSTEXT))
 684endif
 685ifeq ($(FULL_TARGET),m68k-atari)
 686override CLEAN_FILES+=$(wildcard $(COMPILER_UNITTARGETDIR)/*$(OEXT)) $(wildcard $(COMPILER_UNITTARGETDIR)/*$(PPUEXT)) $(wildcard $(COMPILER_UNITTARGETDIR)/*$(RSTEXT)) $(wildcard $(COMPILER_UNITTARGETDIR)/*.lfm) $(wildcard $(COMPILER_UNITTARGETDIR)/*.res) $(wildcard $(COMPILER_UNITTARGETDIR)/*.compiled) $(wildcard *$(OEXT)) $(wildcard *$(PPUEXT)) $(wildcard *$(RSTEXT))
 687endif
 688ifeq ($(FULL_TARGET),m68k-openbsd)
 689override CLEAN_FILES+=$(wildcard $(COMPILER_UNITTARGETDIR)/*$(OEXT)) $(wildcard $(COMPILER_UNITTARGETDIR)/*$(PPUEXT)) $(wildcard $(COMPILER_UNITTARGETDIR)/*$(RSTEXT)) $(wildcard $(COMPILER_UNITTARGETDIR)/*.lfm) $(wildcard $(COMPILER_UNITTARGETDIR)/*.res) $(wildcard $(COMPILER_UNITTARGETDIR)/*.compiled) $(wildcard *$(OEXT)) $(wildcard *$(PPUEXT)) $(wildcard *$(RSTEXT))
 690endif
 691ifeq ($(FULL_TARGET),m68k-palmos)
 692override CLEAN_FILES+=$(wildcard $(COMPILER_UNITTARGETDIR)/*$(OEXT)) $(wildcard $(COMPILER_UNITTARGETDIR)/*$(PPUEXT)) $(wildcard $(COMPILER_UNITTARGETDIR)/*$(RSTEXT)) $(wildcard $(COMPILER_UNITTARGETDIR)/*.lfm) $(wildcard $(COMPILER_UNITTARGETDIR)/*.res) $(wildcard $(COMPILER_UNITTARGETDIR)/*.compiled) $(wildcard *$(OEXT)) $(wildcard *$(PPUEXT)) $(wildcard *$(RSTEXT))
 693endif
 694ifeq ($(FULL_TARGET),m68k-embedded)
 695override CLEAN_FILES+=$(wildcard $(COMPILER_UNITTARGETDIR)/*$(OEXT)) $(wildcard $(COMPILER_UNITTARGETDIR)/*$(PPUEXT)) $(wildcard $(COMPILER_UNITTARGETDIR)/*$(RSTEXT)) $(wildcard $(COMPILER_UNITTARGETDIR)/*.lfm) $(wildcard $(COMPILER_UNITTARGETDIR)/*.res) $(wildcard $(COMPILER_UNITTARGETDIR)/*.compiled) $(wildcard *$(OEXT)) $(wildcard *$(PPUEXT)) $(wildcard *$(RSTEXT))
 696endif
 697ifeq ($(FULL_TARGET),powerpc-linux)
 698override CLEAN_FILES+=$(wildcard $(COMPILER_UNITTARGETDIR)/*$(OEXT)) $(wildcard $(COMPILER_UNITTARGETDIR)/*$(PPUEXT)) $(wildcard $(COMPILER_UNITTARGETDIR)/*$(RSTEXT)) $(wildcard $(COMPILER_UNITTARGETDIR)/*.lfm) $(wildcard $(COMPILER_UNITTARGETDIR)/*.res) $(wildcard $(COMPILER_UNITTARGETDIR)/*.compiled) $(wildcard *$(OEXT)) $(wildcard *$(PPUEXT)) $(wildcard *$(RSTEXT))
 699endif
 700ifeq ($(FULL_TARGET),powerpc-netbsd)
 701override CLEAN_FILES+=$(wildcard $(COMPILER_UNITTARGETDIR)/*$(OEXT)) $(wildcard $(COMPILER_UNITTARGETDIR)/*$(PPUEXT)) $(wildcard $(COMPILER_UNITTARGETDIR)/*$(RSTEXT)) $(wildcard $(COMPILER_UNITTARGETDIR)/*.lfm) $(wildcard $(COMPILER_UNITTARGETDIR)/*.res) $(wildcard $(COMPILER_UNITTARGETDIR)/*.compiled) $(wildcard *$(OEXT)) $(wildcard *$(PPUEXT)) $(wildcard *$(RSTEXT))
 702endif
 703ifeq ($(FULL_TARGET),powerpc-amiga)
 704override CLEAN_FILES+=$(wildcard $(COMPILER_UNITTARGETDIR)/*$(OEXT)) $(wildcard $(COMPILER_UNITTARGETDIR)/*$(PPUEXT)) $(wildcard $(COMPILER_UNITTARGETDIR)/*$(RSTEXT)) $(wildcard $(COMPILER_UNITTARGETDIR)/*.lfm) $(wildcard $(COMPILER_UNITTARGETDIR)/*.res) $(wildcard $(COMPILER_UNITTARGETDIR)/*.compiled) $(wildcard *$(OEXT)) $(wildcard *$(PPUEXT)) $(wildcard *$(RSTEXT))
 705endif
 706ifeq ($(FULL_TARGET),powerpc-macos)
 707override CLEAN_FILES+=$(wildcard $(COMPILER_UNITTARGETDIR)/*$(OEXT)) $(wildcard $(COMPILER_UNITTARGETDIR)/*$(PPUEXT)) $(wildcard $(COMPILER_UNITTARGETDIR)/*$(RSTEXT)) $(wildcard $(COMPILER_UNITTARGETDIR)/*.lfm) $(wildcard $(COMPILER_UNITTARGETDIR)/*.res) $(wildcard $(COMPILER_UNITTARGETDIR)/*.compiled) $(wildcard *$(OEXT)) $(wildcard *$(PPUEXT)) $(wildcard *$(RSTEXT))
 708endif
 709ifeq ($(FULL_TARGET),powerpc-darwin)
 710override CLEAN_FILES+=$(wildcard $(COMPILER_UNITTARGETDIR)/*$(OEXT)) $(wildcard $(COMPILER_UNITTARGETDIR)/*$(PPUEXT)) $(wildcard $(COMPILER_UNITTARGETDIR)/*$(RSTEXT)) $(wildcard $(COMPILER_UNITTARGETDIR)/*.lfm) $(wildcard $(COMPILER_UNITTARGETDIR)/*.res) $(wildcard $(COMPILER_UNITTARGETDIR)/*.compiled) $(wildcard *$(OEXT)) $(wildcard *$(PPUEXT)) $(wildcard *$(RSTEXT))
 711endif
 712ifeq ($(FULL_TARGET),powerpc-morphos)
 713override CLEAN_FILES+=$(wildcard $(COMPILER_UNITTARGETDIR)/*$(OEXT)) $(wildcard $(COMPILER_UNITTARGETDIR)/*$(PPUEXT)) $(wildcard $(COMPILER_UNITTARGETDIR)/*$(RSTEXT)) $(wildcard $(COMPILER_UNITTARGETDIR)/*.lfm) $(wildcard $(COMPILER_UNITTARGETDIR)/*.res) $(wildcard $(COMPILER_UNITTARGETDIR)/*.compiled) $(wildcard *$(OEXT)) $(wildcard *$(PPUEXT)) $(wildcard *$(RSTEXT))
 714endif
 715ifeq ($(FULL_TARGET),powerpc-embedded)
 716override CLEAN_FILES+=$(wildcard $(COMPILER_UNITTARGETDIR)/*$(OEXT)) $(wildcard $(COMPILER_UNITTARGETDIR)/*$(PPUEXT)) $(wildcard $(COMPILER_UNITTARGETDIR)/*$(RSTEXT)) $(wildcard $(COMPILER_UNITTARGETDIR)/*.lfm) $(wildcard $(COMPILER_UNITTARGETDIR)/*.res) $(wildcard $(COMPILER_UNITTARGETDIR)/*.compiled) $(wildcard *$(OEXT)) $(wildcard *$(PPUEXT)) $(wildcard *$(RSTEXT))
 717endif
 718ifeq ($(FULL_TARGET),powerpc-wii)
 719override CLEAN_FILES+=$(wildcard $(COMPILER_UNITTARGETDIR)/*$(OEXT)) $(wildcard $(COMPILER_UNITTARGETDIR)/*$(PPUEXT)) $(wildcard $(COMPILER_UNITTARGETDIR)/*$(RSTEXT)) $(wildcard $(COMPILER_UNITTARGETDIR)/*.lfm) $(wildcard $(COMPILER_UNITTARGETDIR)/*.res) $(wildcard $(COMPILER_UNITTARGETDIR)/*.compiled) $(wildcard *$(OEXT)) $(wildcard *$(PPUEXT)) $(wildcard *$(RSTEXT))
 720endif
 721ifeq ($(FULL_TARGET),powerpc-aix)
 722override CLEAN_FILES+=$(wildcard $(COMPILER_UNITTARGETDIR)/*$(OEXT)) $(wildcard $(COMPILER_UNITTARGETDIR)/*$(PPUEXT)) $(wildcard $(COMPILER_UNITTARGETDIR)/*$(RSTEXT)) $(wildcard $(COMPILER_UNITTARGETDIR)/*.lfm) $(wildcard $(COMPILER_UNITTARGETDIR)/*.res) $(wildcard $(COMPILER_UNITTARGETDIR)/*.compiled) $(wildcard *$(OEXT)) $(wildcard *$(PPUEXT)) $(wildcard *$(RSTEXT))
 723endif
 724ifeq ($(FULL_TARGET),sparc-linux)
 725override CLEAN_FILES+=$(wildcard $(COMPILER_UNITTARGETDIR)/*$(OEXT)) $(wildcard $(COMPILER_UNITTARGETDIR)/*$(PPUEXT)) $(wildcard $(COMPILER_UNITTARGETDIR)/*$(RSTEXT)) $(wildcard $(COMPILER_UNITTARGETDIR)/*.lfm) $(wildcard $(COMPILER_UNITTARGETDIR)/*.res) $(wildcard $(COMPILER_UNITTARGETDIR)/*.compiled) $(wildcard *$(OEXT)) $(wildcard *$(PPUEXT)) $(wildcard *$(RSTEXT))
 726endif
 727ifeq ($(FULL_TARGET),sparc-netbsd)
 728override CLEAN_FILES+=$(wildcard $(COMPILER_UNITTARGETDIR)/*$(OEXT)) $(wildcard $(COMPILER_UNITTARGETDIR)/*$(PPUEXT)) $(wildcard $(COMPILER_UNITTARGETDIR)/*$(RSTEXT)) $(wildcard $(COMPILER_UNITTARGETDIR)/*.lfm) $(wildcard $(COMPILER_UNITTARGETDIR)/*.res) $(wildcard $(COMPILER_UNITTARGETDIR)/*.compiled) $(wildcard *$(OEXT)) $(wildcard *$(PPUEXT)) $(wildcard *$(RSTEXT))
 729endif
 730ifeq ($(FULL_TARGET),sparc-solaris)
 731override CLEAN_FILES+=$(wildcard $(COMPILER_UNITTARGETDIR)/*$(OEXT)) $(wildcard $(COMPILER_UNITTARGETDIR)/*$(PPUEXT)) $(wildcard $(COMPILER_UNITTARGETDIR)/*$(RSTEXT)) $(wildcard $(COMPILER_UNITTARGETDIR)/*.lfm) $(wildcard $(COMPILER_UNITTARGETDIR)/*.res) $(wildcard $(COMPILER_UNITTARGETDIR)/*.compiled) $(wildcard *$(OEXT)) $(wildcard *$(PPUEXT)) $(wildcard *$(RSTEXT))
 732endif
 733ifeq ($(FULL_TARGET),sparc-embedded)
 734override CLEAN_FILES+=$(wildcard $(COMPILER_UNITTARGETDIR)/*$(OEXT)) $(wildcard $(COMPILER_UNITTARGETDIR)/*$(PPUEXT)) $(wildcard $(COMPILER_UNITTARGETDIR)/*$(RSTEXT)) $(wildcard $(COMPILER_UNITTARGETDIR)/*.lfm) $(wildcard $(COMPILER_UNITTARGETDIR)/*.res) $(wildcard $(COMPILER_UNITTARGETDIR)/*.compiled) $(wildcard *$(OEXT)) $(wildcard *$(PPUEXT)) $(wildcard *$(RSTEXT))
 735endif
 736ifeq ($(FULL_TARGET),x86_64-linux)
 737override CLEAN_FILES+=$(wildcard $(COMPILER_UNITTARGETDIR)/*$(OEXT)) $(wildcard $(COMPILER_UNITTARGETDIR)/*$(PPUEXT)) $(wildcard $(COMPILER_UNITTARGETDIR)/*$(RSTEXT)) $(wildcard $(COMPILER_UNITTARGETDIR)/*.lfm) $(wildcard $(COMPILER_UNITTARGETDIR)/*.res) $(wildcard $(COMPILER_UNITTARGETDIR)/*.compiled) $(wildcard *$(OEXT)) $(wildcard *$(PPUEXT)) $(wildcard *$(RSTEXT))
 738endif
 739ifeq ($(FULL_TARGET),x86_64-freebsd)
 740override CLEAN_FILES+=$(wildcard $(COMPILER_UNITTARGETDIR)/*$(OEXT)) $(wildcard $(COMPILER_UNITTARGETDIR)/*$(PPUEXT)) $(wildcard $(COMPILER_UNITTARGETDIR)/*$(RSTEXT)) $(wildcard $(COMPILER_UNITTARGETDIR)/*.lfm) $(wildcard $(COMPILER_UNITTARGETDIR)/*.res) $(wildcard $(COMPILER_UNITTARGETDIR)/*.compiled) $(wildcard *$(OEXT)) $(wildcard *$(PPUEXT)) $(wildcard *$(RSTEXT))
 741endif
 742ifeq ($(FULL_TARGET),x86_64-netbsd)
 743override CLEAN_FILES+=$(wildcard $(COMPILER_UNITTARGETDIR)/*$(OEXT)) $(wildcard $(COMPILER_UNITTARGETDIR)/*$(PPUEXT)) $(wildcard $(COMPILER_UNITTARGETDIR)/*$(RSTEXT)) $(wildcard $(COMPILER_UNITTARGETDIR)/*.lfm) $(wildcard $(COMPILER_UNITTARGETDIR)/*.res) $(wildcard $(COMPILER_UNITTARGETDIR)/*.compiled) $(wildcard *$(OEXT)) $(wildcard *$(PPUEXT)) $(wildcard *$(RSTEXT))
 744endif
 745ifeq ($(FULL_TARGET),x86_64-solaris)
 746override CLEAN_FILES+=$(wildcard $(COMPILER_UNITTARGETDIR)/*$(OEXT)) $(wildcard $(COMPILER_UNITTARGETDIR)/*$(PPUEXT)) $(wildcard $(COMPILER_UNITTARGETDIR)/*$(RSTEXT)) $(wildcard $(COMPILER_UNITTARGETDIR)/*.lfm) $(wildcard $(COMPILER_UNITTARGETDIR)/*.res) $(wildcard $(COMPILER_UNITTARGETDIR)/*.compiled) $(wildcard *$(OEXT)) $(wildcard *$(PPUEXT)) $(wildcard *$(RSTEXT))
 747endif
 748ifeq ($(FULL_TARGET),x86_64-openbsd)
 749override CLEAN_FILES+=$(wildcard $(COMPILER_UNITTARGETDIR)/*$(OEXT)) $(wildcard $(COMPILER_UNITTARGETDIR)/*$(PPUEXT)) $(wildcard $(COMPILER_UNITTARGETDIR)/*$(RSTEXT)) $(wildcard $(COMPILER_UNITTARGETDIR)/*.lfm) $(wildcard $(COMPILER_UNITTARGETDIR)/*.res) $(wildcard $(COMPILER_UNITTARGETDIR)/*.compiled) $(wildcard *$(OEXT)) $(wildcard *$(PPUEXT)) $(wildcard *$(RSTEXT))
 750endif
 751ifeq ($(FULL_TARGET),x86_64-darwin)
 752override CLEAN_FILES+=$(wildcard $(COMPILER_UNITTARGETDIR)/*$(OEXT)) $(wildcard $(COMPILER_UNITTARGETDIR)/*$(PPUEXT)) $(wildcard $(COMPILER_UNITTARGETDIR)/*$(RSTEXT)) $(wildcard $(COMPILER_UNITTARGETDIR)/*.lfm) $(wildcard $(COMPILER_UNITTARGETDIR)/*.res) $(wildcard $(COMPILER_UNITTARGETDIR)/*.compiled) $(wildcard *$(OEXT)) $(wildcard *$(PPUEXT)) $(wildcard *$(RSTEXT))
 753endif
 754ifeq ($(FULL_TARGET),x86_64-win64)
 755override CLEAN_FILES+=$(wildcard $(COMPILER_UNITTARGETDIR)/*$(OEXT)) $(wildcard $(COMPILER_UNITTARGETDIR)/*$(PPUEXT)) $(wildcard $(COMPILER_UNITTARGETDIR)/*$(RSTEXT)) $(wildcard $(COMPILER_UNITTARGETDIR)/*.lfm) $(wildcard $(COMPILER_UNITTARGETDIR)/*.res) $(wildcard $(COMPILER_UNITTARGETDIR)/*.compiled) $(wildcard *$(OEXT)) $(wildcard *$(PPUEXT)) $(wildcard *$(RSTEXT))
 756endif
 757ifeq ($(FULL_TARGET),x86_64-embedded)
 758override CLEAN_FILES+=$(wildcard $(COMPILER_UNITTARGETDIR)/*$(OEXT)) $(wildcard $(COMPILER_UNITTARGETDIR)/*$(PPUEXT)) $(wildcard $(COMPILER_UNITTARGETDIR)/*$(RSTEXT)) $(wildcard $(COMPILER_UNITTARGETDIR)/*.lfm) $(wildcard $(COMPILER_UNITTARGETDIR)/*.res) $(wildcard $(COMPILER_UNITTARGETDIR)/*.compiled) $(wildcard *$(OEXT)) $(wildcard *$(PPUEXT)) $(wildcard *$(RSTEXT))
 759endif
 760ifeq ($(FULL_TARGET),x86_64-iphonesim)
 761override CLEAN_FILES+=$(wildcard $(COMPILER_UNITTARGETDIR)/*$(OEXT)) $(wildcard $(COMPILER_UNITTARGETDIR)/*$(PPUEXT)) $(wildcard $(COMPILER_UNITTARGETDIR)/*$(RSTEXT)) $(wildcard $(COMPILER_UNITTARGETDIR)/*.lfm) $(wildcard $(COMPILER_UNITTARGETDIR)/*.res) $(wildcard $(COMPILER_UNITTARGETDIR)/*.compiled) $(wildcard *$(OEXT)) $(wildcard *$(PPUEXT)) $(wildcard *$(RSTEXT))
 762endif
 763ifeq ($(FULL_TARGET),x86_64-aros)
 764override CLEAN_FILES+=$(wildcard $(COMPILER_UNITTARGETDIR)/*$(OEXT)) $(wildcard $(COMPILER_UNITTARGETDIR)/*$(PPUEXT)) $(wildcard $(COMPILER_UNITTARGETDIR)/*$(RSTEXT)) $(wildcard $(COMPILER_UNITTARGETDIR)/*.lfm) $(wildcard $(COMPILER_UNITTARGETDIR)/*.res) $(wildcard $(COMPILER_UNITTARGETDIR)/*.compiled) $(wildcard *$(OEXT)) $(wildcard *$(PPUEXT)) $(wildcard *$(RSTEXT))
 765endif
 766ifeq ($(FULL_TARGET),x86_64-dragonfly)
 767override CLEAN_FILES+=$(wildcard $(COMPILER_UNITTARGETDIR)/*$(OEXT)) $(wildcard $(COMPILER_UNITTARGETDIR)/*$(PPUEXT)) $(wildcard $(COMPILER_UNITTARGETDIR)/*$(RSTEXT)) $(wildcard $(COMPILER_UNITTARGETDIR)/*.lfm) $(wildcard $(COMPILER_UNITTARGETDIR)/*.res) $(wildcard $(COMPILER_UNITTARGETDIR)/*.compiled) $(wildcard *$(OEXT)) $(wildcard *$(PPUEXT)) $(wildcard *$(RSTEXT))
 768endif
 769ifeq ($(FULL_TARGET),arm-linux)
 770override CLEAN_FILES+=$(wildcard $(COMPILER_UNITTARGETDIR)/*$(OEXT)) $(wildcard $(COMPILER_UNITTARGETDIR)/*$(PPUEXT)) $(wildcard $(COMPILER_UNITTARGETDIR)/*$(RSTEXT)) $(wildcard $(COMPILER_UNITTARGETDIR)/*.lfm) $(wildcard $(COMPILER_UNITTARGETDIR)/*.res) $(wildcard $(COMPILER_UNITTARGETDIR)/*.compiled) $(wildcard *$(OEXT)) $(wildcard *$(PPUEXT)) $(wildcard *$(RSTEXT))
 771endif
 772ifeq ($(FULL_TARGET),arm-palmos)
 773override CLEAN_FILES+=$(wildcard $(COMPILER_UNITTARGETDIR)/*$(OEXT)) $(wildcard $(COMPILER_UNITTARGETDIR)/*$(PPUEXT)) $(wildcard $(COMPILER_UNITTARGETDIR)/*$(RSTEXT)) $(wildcard $(COMPILER_UNITTARGETDIR)/*.lfm) $(wildcard $(COMPILER_UNITTARGETDIR)/*.res) $(wildcard $(COMPILER_UNITTARGETDIR)/*.compiled) $(wildcard *$(OEXT)) $(wildcard *$(PPUEXT)) $(wildcard *$(RSTEXT))
 774endif
 775ifeq ($(FULL_TARGET),arm-darwin)
 776override CLEAN_FILES+=$(wildcard $(COMPILER_UNITTARGETDIR)/*$(OEXT)) $(wildcard $(COMPILER_UNITTARGETDIR)/*$(PPUEXT)) $(wildcard $(COMPILER_UNITTARGETDIR)/*$(RSTEXT)) $(wildcard $(COMPILER_UNITTARGETDIR)/*.lfm) $(wildcard $(COMPILER_UNITTARGETDIR)/*.res) $(wildcard $(COMPILER_UNITTARGETDIR)/*.compiled) $(wildcard *$(OEXT)) $(wildcard *$(PPUEXT)) $(wildcard *$(RSTEXT))
 777endif
 778ifeq ($(FULL_TARGET),arm-wince)
 779override CLEAN_FILES+=$(wildcard $(COMPILER_UNITTARGETDIR)/*$(OEXT)) $(wildcard $(COMPILER_UNITTARGETDIR)/*$(PPUEXT)) $(wildcard $(COMPILER_UNITTARGETDIR)/*$(RSTEXT)) $(wildcard $(COMPILER_UNITTARGETDIR)/*.lfm) $(wildcard $(COMPILER_UNITTARGETDIR)/*.res) $(wildcard $(COMPILER_UNITTARGETDIR)/*.compiled) $(wildcard *$(OEXT)) $(wildcard *$(PPUEXT)) $(wildcard *$(RSTEXT))
 780endif
 781ifeq ($(FULL_TARGET),arm-gba)
 782override CLEAN_FILES+=$(wildcard $(COMPILER_UNITTARGETDIR)/*$(OEXT)) $(wildcard $(COMPILER_UNITTARGETDIR)/*$(PPUEXT)) $(wildcard $(COMPILER_UNITTARGETDIR)/*$(RSTEXT)) $(wildcard $(COMPILER_UNITTARGETDIR)/*.lfm) $(wildcard $(COMPILER_UNITTARGETDIR)/*.res) $(wildcard $(COMPILER_UNITTARGETDIR)/*.compiled) $(wildcard *$(OEXT)) $(wildcard *$(PPUEXT)) $(wildcard *$(RSTEXT))
 783endif
 784ifeq ($(FULL_TARGET),arm-nds)
 785override CLEAN_FILES+=$(wildcard $(COMPILER_UNITTARGETDIR)/*$(OEXT)) $(wildcard $(COMPILER_UNITTARGETDIR)/*$(PPUEXT)) $(wildcard $(COMPILER_UNITTARGETDIR)/*$(RSTEXT)) $(wildcard $(COMPILER_UNITTARGETDIR)/*.lfm) $(wildcard $(COMPILER_UNITTARGETDIR)/*.res) $(wildcard $(COMPILER_UNITTARGETDIR)/*.compiled) $(wildcard *$(OEXT)) $(wildcard *$(PPUEXT)) $(wildcard *$(RSTEXT))
 786endif
 787ifeq ($(FULL_TARGET),arm-embedded)
 788override CLEAN_FILES+=$(wildcard $(COMPILER_UNITTARGETDIR)/*$(OEXT)) $(wildcard $(COMPILER_UNITTARGETDIR)/*$(PPUEXT)) $(wildcard $(COMPILER_UNITTARGETDIR)/*$(RSTEXT)) $(wildcard $(COMPILER_UNITTARGETDIR)/*.lfm) $(wildcard $(COMPILER_UNITTARGETDIR)/*.res) $(wildcard $(COMPILER_UNITTARGETDIR)/*.compiled) $(wildcard *$(OEXT)) $(wildcard *$(PPUEXT)) $(wildcard *$(RSTEXT))
 789endif
 790ifeq ($(FULL_TARGET),arm-symbian)
 791override CLEAN_FILES+=$(wildcard $(COMPILER_UNITTARGETDIR)/*$(OEXT)) $(wildcard $(COMPILER_UNITTARGETDIR)/*$(PPUEXT)) $(wildcard $(COMPILER_UNITTARGETDIR)/*$(RSTEXT)) $(wildcard $(COMPILER_UNITTARGETDIR)/*.lfm) $(wildcard $(COMPILER_UNITTARGETDIR)/*.res) $(wildcard $(COMPILER_UNITTARGETDIR)/*.compiled) $(wildcard *$(OEXT)) $(wildcard *$(PPUEXT)) $(wildcard *$(RSTEXT))
 792endif
 793ifeq ($(FULL_TARGET),arm-android)
 794override CLEAN_FILES+=$(wildcard $(COMPILER_UNITTARGETDIR)/*$(OEXT)) $(wildcard $(COMPILER_UNITTARGETDIR)/*$(PPUEXT)) $(wildcard $(COMPILER_UNITTARGETDIR)/*$(RSTEXT)) $(wildcard $(COMPILER_UNITTARGETDIR)/*.lfm) $(wildcard $(COMPILER_UNITTARGETDIR)/*.res) $(wildcard $(COMPILER_UNITTARGETDIR)/*.compiled) $(wildcard *$(OEXT)) $(wildcard *$(PPUEXT)) $(wildcard *$(RSTEXT))
 795endif
 796ifeq ($(FULL_TARGET),powerpc64-linux)
 797override CLEAN_FILES+=$(wildcard $(COMPILER_UNITTARGETDIR)/*$(OEXT)) $(wildcard $(COMPILER_UNITTARGETDIR)/*$(PPUEXT)) $(wildcard $(COMPILER_UNITTARGETDIR)/*$(RSTEXT)) $(wildcard $(COMPILER_UNITTARGETDIR)/*.lfm) $(wildcard $(COMPILER_UNITTARGETDIR)/*.res) $(wildcard $(COMPILER_UNITTARGETDIR)/*.compiled) $(wildcard *$(OEXT)) $(wildcard *$(PPUEXT)) $(wildcard *$(RSTEXT))
 798endif
 799ifeq ($(FULL_TARGET),powerpc64-darwin)
 800override CLEAN_FILES+=$(wildcard $(COMPILER_UNITTARGETDIR)/*$(OEXT)) $(wildcard $(COMPILER_UNITTARGETDIR)/*$(PPUEXT)) $(wildcard $(COMPILER_UNITTARGETDIR)/*$(RSTEXT)) $(wildcard $(COMPILER_UNITTARGETDIR)/*.lfm) $(wildcard $(COMPILER_UNITTARGETDIR)/*.res) $(wildcard $(COMPILER_UNITTARGETDIR)/*.compiled) $(wildcard *$(OEXT)) $(wildcard *$(PPUEXT)) $(wildcard *$(RSTEXT))
 801endif
 802ifeq ($(FULL_TARGET),powerpc64-embedded)
 803override CLEAN_FILES+=$(wildcard $(COMPILER_UNITTARGETDIR)/*$(OEXT)) $(wildcard $(COMPILER_UNITTARGETDIR)/*$(PPUEXT)) $(wildcard $(COMPILER_UNITTARGETDIR)/*$(RSTEXT)) $(wildcard $(COMPILER_UNITTARGETDIR)/*.lfm) $(wildcard $(COMPILER_UNITTARGETDIR)/*.res) $(wildcard $(COMPILER_UNITTARGETDIR)/*.compiled) $(wildcard *$(OEXT)) $(wildcard *$(PPUEXT)) $(wildcard *$(RSTEXT))
 804endif
 805ifeq ($(FULL_TARGET),powerpc64-aix)
 806override CLEAN_FILES+=$(wildcard $(COMPILER_UNITTARGETDIR)/*$(OEXT)) $(wildcard $(COMPILER_UNITTARGETDIR)/*$(PPUEXT)) $(wildcard $(COMPILER_UNITTARGETDIR)/*$(RSTEXT)) $(wildcard $(COMPILER_UNITTARGETDIR)/*.lfm) $(wildcard $(COMPILER_UNITTARGETDIR)/*.res) $(wildcard $(COMPILER_UNITTARGETDIR)/*.compiled) $(wildcard *$(OEXT)) $(wildcard *$(PPUEXT)) $(wildcard *$(RSTEXT))
 807endif
 808ifeq ($(FULL_TARGET),avr-embedded)
 809override CLEAN_FILES+=$(wildcard $(COMPILER_UNITTARGETDIR)/*$(OEXT)) $(wildcard $(COMPILER_UNITTARGETDIR)/*$(PPUEXT)) $(wildcard $(COMPILER_UNITTARGETDIR)/*$(RSTEXT)) $(wildcard $(COMPILER_UNITTARGETDIR)/*.lfm) $(wildcard $(COMPILER_UNITTARGETDIR)/*.res) $(wildcard $(COMPILER_UNITTARGETDIR)/*.compiled) $(wildcard *$(OEXT)) $(wildcard *$(PPUEXT)) $(wildcard *$(RSTEXT))
 810endif
 811ifeq ($(FULL_TARGET),armeb-linux)
 812override CLEAN_FILES+=$(wildcard $(COMPILER_UNITTARGETDIR)/*$(OEXT)) $(wildcard $(COMPILER_UNITTARGETDIR)/*$(PPUEXT)) $(wildcard $(COMPILER_UNITTARGETDIR)/*$(RSTEXT)) $(wildcard $(COMPILER_UNITTARGETDIR)/*.lfm) $(wildcard $(COMPILER_UNITTARGETDIR)/*.res) $(wildcard $(COMPILER_UNITTARGETDIR)/*.compiled) $(wildcard *$(OEXT)) $(wildcard *$(PPUEXT)) $(wildcard *$(RSTEXT))
 813endif
 814ifeq ($(FULL_TARGET),armeb-embedded)
 815override CLEAN_FILES+=$(wildcard $(COMPILER_UNITTARGETDIR)/*$(OEXT)) $(wildcard $(COMPILER_UNITTARGETDIR)/*$(PPUEXT)) $(wildcard $(COMPILER_UNITTARGETDIR)/*$(RSTEXT)) $(wildcard $(COMPILER_UNITTARGETDIR)/*.lfm) $(wildcard $(COMPILER_UNITTARGETDIR)/*.res) $(wildcard $(COMPILER_UNITTARGETDIR)/*.compiled) $(wildcard *$(OEXT)) $(wildcard *$(PPUEXT)) $(wildcard *$(RSTEXT))
 816endif
 817ifeq ($(FULL_TARGET),mips-linux)
 818override CLEAN_FILES+=$(wildcard $(COMPILER_UNITTARGETDIR)/*$(OEXT)) $(wildcard $(COMPILER_UNITTARGETDIR)/*$(PPUEXT)) $(wildcard $(COMPILER_UNITTARGETDIR)/*$(RSTEXT)) $(wildcard $(COMPILER_UNITTARGETDIR)/*.lfm) $(wildcard $(COMPILER_UNITTARGETDIR)/*.res) $(wildcard $(COMPILER_UNITTARGETDIR)/*.compiled) $(wildcard *$(OEXT)) $(wildcard *$(PPUEXT)) $(wildcard *$(RSTEXT))
 819endif
 820ifeq ($(FULL_TARGET),mipsel-linux)
 821override CLEAN_FILES+=$(wildcard $(COMPILER_UNITTARGETDIR)/*$(OEXT)) $(wildcard $(COMPILER_UNITTARGETDIR)/*$(PPUEXT)) $(wildcard $(COMPILER_UNITTARGETDIR)/*$(RSTEXT)) $(wildcard $(COMPILER_UNITTARGETDIR)/*.lfm) $(wildcard $(COMPILER_UNITTARGETDIR)/*.res) $(wildcard $(COMPILER_UNITTARGETDIR)/*.compiled) $(wildcard *$(OEXT)) $(wildcard *$(PPUEXT)) $(wildcard *$(RSTEXT))
 822endif
 823ifeq ($(FULL_TARGET),mipsel-embedded)
 824override CLEAN_FILES+=$(wildcard $(COMPILER_UNITTARGETDIR)/*$(OEXT)) $(wildcard $(COMPILER_UNITTARGETDIR)/*$(PPUEXT)) $(wildcard $(COMPILER_UNITTARGETDIR)/*$(RSTEXT)) $(wildcard $(COMPILER_UNITTARGETDIR)/*.lfm) $(wildcard $(COMPILER_UNITTARGETDIR)/*.res) $(wildcard $(COMPILER_UNITTARGETDIR)/*.compiled) $(wildcard *$(OEXT)) $(wildcard *$(PPUEXT)) $(wildcard *$(RSTEXT))
 825endif
 826ifeq ($(FULL_TARGET),mipsel-android)
 827override CLEAN_FILES+=$(wildcard $(COMPILER_UNITTARGETDIR)/*$(OEXT)) $(wildcard $(COMPILER_UNITTARGETDIR)/*$(PPUEXT)) $(wildcard $(COMPILER_UNITTARGETDIR)/*$(RSTEXT)) $(wildcard $(COMPILER_UNITTARGETDIR)/*.lfm) $(wildcard $(COMPILER_UNITTARGETDIR)/*.res) $(wildcard $(COMPILER_UNITTARGETDIR)/*.compiled) $(wildcard *$(OEXT)) $(wildcard *$(PPUEXT)) $(wildcard *$(RSTEXT))
 828endif
 829ifeq ($(FULL_TARGET),jvm-java)
 830override CLEAN_FILES+=$(wildcard $(COMPILER_UNITTARGETDIR)/*$(OEXT)) $(wildcard $(COMPILER_UNITTARGETDIR)/*$(PPUEXT)) $(wildcard $(COMPILER_UNITTARGETDIR)/*$(RSTEXT)) $(wildcard $(COMPILER_UNITTARGETDIR)/*.lfm) $(wildcard $(COMPILER_UNITTARGETDIR)/*.res) $(wildcard $(COMPILER_UNITTARGETDIR)/*.compiled) $(wildcard *$(OEXT)) $(wildcard *$(PPUEXT)) $(wildcard *$(RSTEXT))
 831endif
 832ifeq ($(FULL_TARGET),jvm-android)
 833override CLEAN_FILES+=$(wildcard $(COMPILER_UNITTARGETDIR)/*$(OEXT)) $(wildcard $(COMPILER_UNITTARGETDIR)/*$(PPUEXT)) $(wildcard $(COMPILER_UNITTARGETDIR)/*$(RSTEXT)) $(wildcard $(COMPILER_UNITTARGETDIR)/*.lfm) $(wildcard $(COMPILER_UNITTARGETDIR)/*.res) $(wildcard $(COMPILER_UNITTARGETDIR)/*.compiled) $(wildcard *$(OEXT)) $(wildcard *$(PPUEXT)) $(wildcard *$(RSTEXT))
 834endif
 835ifeq ($(FULL_TARGET),i8086-msdos)
 836override CLEAN_FILES+=$(wildcard $(COMPILER_UNITTARGETDIR)/*$(OEXT)) $(wildcard $(COMPILER_UNITTARGETDIR)/*$(PPUEXT)) $(wildcard $(COMPILER_UNITTARGETDIR)/*$(RSTEXT)) $(wildcard $(COMPILER_UNITTARGETDIR)/*.lfm) $(wildcard $(COMPILER_UNITTARGETDIR)/*.res) $(wildcard $(COMPILER_UNITTARGETDIR)/*.compiled) $(wildcard *$(OEXT)) $(wildcard *$(PPUEXT)) $(wildcard *$(RSTEXT))
 837endif
 838ifeq ($(FULL_TARGET),i8086-win16)
 839override CLEAN_FILES+=$(wildcard $(COMPILER_UNITTARGETDIR)/*$(OEXT)) $(wildcard $(COMPILER_UNITTARGETDIR)/*$(PPUEXT)) $(wildcard $(COMPILER_UNITTARGETDIR)/*$(RSTEXT)) $(wildcard $(COMPILER_UNITTARGETDIR)/*.lfm) $(wildcard $(COMPILER_UNITTARGETDIR)/*.res) $(wildcard $(COMPILER_UNITTARGETDIR)/*.compiled) $(wildcard *$(OEXT)) $(wildcard *$(PPUEXT)) $(wildcard *$(RSTEXT))
 840endif
 841ifeq ($(FULL_TARGET),aarch64-linux)
 842override CLEAN_FILES+=$(wildcard $(COMPILER_UNITTARGETDIR)/*$(OEXT)) $(wildcard $(COMPILER_UNITTARGETDIR)/*$(PPUEXT)) $(wildcard $(COMPILER_UNITTARGETDIR)/*$(RSTEXT)) $(wildcard $(COMPILER_UNITTARGETDIR)/*.lfm) $(wildcard $(COMPILER_UNITTARGETDIR)/*.res) $(wildcard $(COMPILER_UNITTARGETDIR)/*.compiled) $(wildcard *$(OEXT)) $(wildcard *$(PPUEXT)) $(wildcard *$(RSTEXT))
 843endif
 844ifeq ($(FULL_TARGET),aarch64-darwin)
 845override CLEAN_FILES+=$(wildcard $(COMPILER_UNITTARGETDIR)/*$(OEXT)) $(wildcard $(COMPILER_UNITTARGETDIR)/*$(PPUEXT)) $(wildcard $(COMPILER_UNITTARGETDIR)/*$(RSTEXT)) $(wildcard $(COMPILER_UNITTARGETDIR)/*.lfm) $(wildcard $(COMPILER_UNITTARGETDIR)/*.res) $(wildcard $(COMPILER_UNITTARGETDIR)/*.compiled) $(wildcard *$(OEXT)) $(wildcard *$(PPUEXT)) $(wildcard *$(RSTEXT))
 846endif
 847ifeq ($(FULL_TARGET),i386-linux)
 848override COMPILER_OPTIONS+=-MObjFPC -Scgi -O1 -g -gl -l -vewnhibq -dLCL -dLCL$(LCL_PLATFORM) $(DBG_OPTIONS)
 849endif
 850ifeq ($(FULL_TARGET),i386-go32v2)
 851override COMPILER_OPTIONS+=-MObjFPC -Scgi -O1 -g -gl -l -vewnhibq -dLCL -dLCL$(LCL_PLATFORM) $(DBG_OPTIONS)
 852endif
 853ifeq ($(FULL_TARGET),i386-win32)
 854override COMPILER_OPTIONS+=-MObjFPC -Scgi -O1 -g -gl -l -vewnhibq -dLCL -dLCL$(LCL_PLATFORM) $(DBG_OPTIONS)
 855endif
 856ifeq ($(FULL_TARGET),i386-os2)
 857override COMPILER_OPTIONS+=-MObjFPC -Scgi -O1 -g -gl -l -vewnhibq -dLCL -dLCL$(LCL_PLATFORM) $(DBG_OPTIONS)
 858endif
 859ifeq ($(FULL_TARGET),i386-freebsd)
 860override COMPILER_OPTIONS+=-MObjFPC -Scgi -O1 -g -gl -l -vewnhibq -dLCL -dLCL$(LCL_PLATFORM) $(DBG_OPTIONS)
 861endif
 862ifeq ($(FULL_TARGET),i386-beos)
 863override COMPILER_OPTIONS+=-MObjFPC -Scgi -O1 -g -gl -l -vewnhibq -dLCL -dLCL$(LCL_PLATFORM) $(DBG_OPTIONS)
 864endif
 865ifeq ($(FULL_TARGET),i386-haiku)
 866override COMPILER_OPTIONS+=-MObjFPC -Scgi -O1 -g -gl -l -vewnhibq -dLCL -dLCL$(LCL_PLATFORM) $(DBG_OPTIONS)
 867endif
 868ifeq ($(FULL_TARGET),i386-netbsd)
 869override COMPILER_OPTIONS+=-MObjFPC -Scgi -O1 -g -gl -l -vewnhibq -dLCL -dLCL$(LCL_PLATFORM) $(DBG_OPTIONS)
 870endif
 871ifeq ($(FULL_TARGET),i386-solaris)
 872override COMPILER_OPTIONS+=-MObjFPC -Scgi -O1 -g -gl -l -vewnhibq -dLCL -dLCL$(LCL_PLATFORM) $(DBG_OPTIONS)
 873endif
 874ifeq ($(FULL_TARGET),i386-qnx)
 875override COMPILER_OPTIONS+=-MObjFPC -Scgi -O1 -g -gl -l -vewnhibq -dLCL -dLCL$(LCL_PLATFORM) $(DBG_OPTIONS)
 876endif
 877ifeq ($(FULL_TARGET),i386-netware)
 878override COMPILER_OPTIONS+=-MObjFPC -Scgi -O1 -g -gl -l -vewnhibq -dLCL -dLCL$(LCL_PLATFORM) $(DBG_OPTIONS)
 879endif
 880ifeq ($(FULL_TARGET),i386-openbsd)
 881override COMPILER_OPTIONS+=-MObjFPC -Scgi -O1 -g -gl -l -vewnhibq -dLCL -dLCL$(LCL_PLATFORM) $(DBG_OPTIONS)
 882endif
 883ifeq ($(FULL_TARGET),i386-wdosx)
 884override COMPILER_OPTIONS+=-MObjFPC -Scgi -O1 -g -gl -l -vewnhibq -dLCL -dLCL$(LCL_PLATFORM) $(DBG_OPTIONS)
 885endif
 886ifeq ($(FULL_TARGET),i386-darwin)
 887override COMPILER_OPTIONS+=-MObjFPC -Scgi -O1 -g -gl -l -vewnhibq -dLCL -dLCL$(LCL_PLATFORM) $(DBG_OPTIONS)
 888endif
 889ifeq ($(FULL_TARGET),i386-emx)
 890override COMPILER_OPTIONS+=-MObjFPC -Scgi -O1 -g -gl -l -vewnhibq -dLCL -dLCL$(LCL_PLATFORM) $(DBG_OPTIONS)
 891endif
 892ifeq ($(FULL_TARGET),i386-watcom)
 893override COMPILER_OPTIONS+=-MObjFPC -Scgi -O1 -g -gl -l -vewnhibq -dLCL -dLCL$(LCL_PLATFORM) $(DBG_OPTIONS)
 894endif
 895ifeq ($(FULL_TARGET),i386-netwlibc)
 896override COMPILER_OPTIONS+=-MObjFPC -Scgi -O1 -g -gl -l -vewnhibq -dLCL -dLCL$(LCL_PLATFORM) $(DBG_OPTIONS)
 897endif
 898ifeq ($(FULL_TARGET),i386-wince)
 899override COMPILER_OPTIONS+=-MObjFPC -Scgi -O1 -g -gl -l -vewnhibq -dLCL -dLCL$(LCL_PLATFORM) $(DBG_OPTIONS)
 900endif
 901ifeq ($(FULL_TARGET),i386-embedded)
 902override COMPILER_OPTIONS+=-MObjFPC -Scgi -O1 -g -gl -l -vewnhibq -dLCL -dLCL$(LCL_PLATFORM) $(DBG_OPTIONS)
 903endif
 904ifeq ($(FULL_TARGET),i386-symbian)
 905override COMPILER_OPTIONS+=-MObjFPC -Scgi -O1 -g -gl -l -vewnhibq -dLCL -dLCL$(LCL_PLATFORM) $(DBG_OPTIONS)
 906endif
 907ifeq ($(FULL_TARGET),i386-nativent)
 908override COMPILER_OPTIONS+=-MObjFPC -Scgi -O1 -g -gl -l -vewnhibq -dLCL -dLCL$(LCL_PLATFORM) $(DBG_OPTIONS)
 909endif
 910ifeq ($(FULL_TARGET),i386-iphonesim)
 911override COMPILER_OPTIONS+=-MObjFPC -Scgi -O1 -g -gl -l -vewnhibq -dLCL -dLCL$(LCL_PLATFORM) $(DBG_OPTIONS)
 912endif
 913ifeq ($(FULL_TARGET),i386-android)
 914override COMPILER_OPTIONS+=-MObjFPC -Scgi -O1 -g -gl -l -vewnhibq -dLCL -dLCL$(LCL_PLATFORM) $(DBG_OPTIONS)
 915endif
 916ifeq ($(FULL_TARGET),i386-aros)
 917override COMPILER_OPTIONS+=-MObjFPC -Scgi -O1 -g -gl -l -vewnhibq -dLCL -dLCL$(LCL_PLATFORM) $(DBG_OPTIONS)
 918endif
 919ifeq ($(FULL_TARGET),m68k-linux)
 920override COMPILER_OPTIONS+=-MObjFPC -Scgi -O1 -g -gl -l -vewnhibq -dLCL -dLCL$(LCL_PLATFORM) $(DBG_OPTIONS)
 921endif
 922ifeq ($(FULL_TARGET),m68k-freebsd)
 923override COMPILER_OPTIONS+=-MObjFPC -Scgi -O1 -g -gl -l -vewnhibq -dLCL -dLCL$(LCL_PLATFORM) $(DBG_OPTIONS)
 924endif
 925ifeq ($(FULL_TARGET),m68k-netbsd)
 926override COMPILER_OPTIONS+=-MObjFPC -Scgi -O1 -g -gl -l -vewnhibq -dLCL -dLCL$(LCL_PLATFORM) $(DBG_OPTIONS)
 927endif
 928ifeq ($(FULL_TARGET),m68k-amiga)
 929override COMPILER_OPTIONS+=-MObjFPC -Scgi -O1 -g -gl -l -vewnhibq -dLCL -dLCL$(LCL_PLATFORM) $(DBG_OPTIONS)
 930endif
 931ifeq ($(FULL_TARGET),m68k-atari)
 932override COMPILER_OPTIONS+=-MObjFPC -Scgi -O1 -g -gl -l -vewnhibq -dLCL -dLCL$(LCL_PLATFORM) $(DBG_OPTIONS)
 933endif
 934ifeq ($(FULL_TARGET),m68k-openbsd)
 935override COMPILER_OPTIONS+=-MObjFPC -Scgi -O1 -g -gl -l -vewnhibq -dLCL -dLCL$(LCL_PLATFORM) $(DBG_OPTIONS)
 936endif
 937ifeq ($(FULL_TARGET),m68k-palmos)
 938override COMPILER_OPTIONS+=-MObjFPC -Scgi -O1 -g -gl -l -vewnhibq -dLCL -dLCL$(LCL_PLATFORM) $(DBG_OPTIONS)
 939endif
 940ifeq ($(FULL_TARGET),m68k-embedded)
 941override COMPILER_OPTIONS+=-MObjFPC -Scgi -O1 -g -gl -l -vewnhibq -dLCL -dLCL$(LCL_PLATFORM) $(DBG_OPTIONS)
 942endif
 943ifeq ($(FULL_TARGET),powerpc-linux)
 944override COMPILER_OPTIONS+=-MObjFPC -Scgi -O1 -g -gl -l -vewnhibq -dLCL -dLCL$(LCL_PLATFORM) $(DBG_OPTIONS)
 945endif
 946ifeq ($(FULL_TARGET),powerpc-netbsd)
 947override COMPILER_OPTIONS+=-MObjFPC -Scgi -O1 -g -gl -l -vewnhibq -dLCL -dLCL$(LCL_PLATFORM) $(DBG_OPTIONS)
 948endif
 949ifeq ($(FULL_TARGET),powerpc-amiga)
 950override COMPILER_OPTIONS+=-MObjFPC -Scgi -O1 -g -gl -l -vewnhibq -dLCL -dLCL$(LCL_PLATFORM) $(DBG_OPTIONS)
 951endif
 952ifeq ($(FULL_TARGET),powerpc-macos)
 953override COMPILER_OPTIONS+=-MObjFPC -Scgi -O1 -g -gl -l -vewnhibq -dLCL -dLCL$(LCL_PLATFORM) $(DBG_OPTIONS)
 954endif
 955ifeq ($(FULL_TARGET),powerpc-darwin)
 956override COMPILER_OPTIONS+=-MObjFPC -Scgi -O1 -g -gl -l -vewnhibq -dLCL -dLCL$(LCL_PLATFORM) $(DBG_OPTIONS)
 957endif
 958ifeq ($(FULL_TARGET),powerpc-morphos)
 959override COMPILER_OPTIONS+=-MObjFPC -Scgi -O1 -g -gl -l -vewnhibq -dLCL -dLCL$(LCL_PLATFORM) $(DBG_OPTIONS)
 960endif
 961ifeq ($(FULL_TARGET),powerpc-embedded)
 962override COMPILER_OPTIONS+=-MObjFPC -Scgi -O1 -g -gl -l -vewnhibq -dLCL -dLCL$(LCL_PLATFORM) $(DBG_OPTIONS)
 963endif
 964ifeq ($(FULL_TARGET),powerpc-wii)
 965override COMPILER_OPTIONS+=-MObjFPC -Scgi -O1 -g -gl -l -vewnhibq -dLCL -dLCL$(LCL_PLATFORM) $(DBG_OPTIONS)
 966endif
 967ifeq ($(FULL_TARGET),powerpc-aix)
 968override COMPILER_OPTIONS+=-MObjFPC -Scgi -O1 -g -gl -l -vewnhibq -dLCL -dLCL$(LCL_PLATFORM) $(DBG_OPTIONS)
 969endif
 970ifeq ($(FULL_TARGET),sparc-linux)
 971override COMPILER_OPTIONS+=-MObjFPC -Scgi -O1 -g -gl -l -vewnhibq -dLCL -dLCL$(LCL_PLATFORM) $(DBG_OPTIONS)
 972endif
 973ifeq ($(FULL_TARGET),sparc-netbsd)
 974override COMPILER_OPTIONS+=-MObjFPC -Scgi -O1 -g -gl -l -vewnhibq -dLCL -dLCL$(LCL_PLATFORM) $(DBG_OPTIONS)
 975endif
 976ifeq ($(FULL_TARGET),sparc-solaris)
 977override COMPILER_OPTIONS+=-MObjFPC -Scgi -O1 -g -gl -l -vewnhibq -dLCL -dLCL$(LCL_PLATFORM) $(DBG_OPTIONS)
 978endif
 979ifeq ($(FULL_TARGET),sparc-embedded)
 980override COMPILER_OPTIONS+=-MObjFPC -Scgi -O1 -g -gl -l -vewnhibq -dLCL -dLCL$(LCL_PLATFORM) $(DBG_OPTIONS)
 981endif
 982ifeq ($(FULL_TARGET),x86_64-linux)
 983override COMPILER_OPTIONS+=-MObjFPC -Scgi -O1 -g -gl -l -vewnhibq -dLCL -dLCL$(LCL_PLATFORM) $(DBG_OPTIONS)
 984endif
 985ifeq ($(FULL_TARGET),x86_64-freebsd)
 986override COMPILER_OPTIONS+=-MObjFPC -Scgi -O1 -g -gl -l -vewnhibq -dLCL -dLCL$(LCL_PLATFORM) $(DBG_OPTIONS)
 987endif
 988ifeq ($(FULL_TARGET),x86_64-netbsd)
 989override COMPILER_OPTIONS+=-MObjFPC -Scgi -O1 -g -gl -l -vewnhibq -dLCL -dLCL$(LCL_PLATFORM) $(DBG_OPTIONS)
 990endif
 991ifeq ($(FULL_TARGET),x86_64-solaris)
 992override COMPILER_OPTIONS+=-MObjFPC -Scgi -O1 -g -gl -l -vewnhibq -dLCL -dLCL$(LCL_PLATFORM) $(DBG_OPTIONS)
 993endif
 994ifeq ($(FULL_TARGET),x86_64-openbsd)
 995override COMPILER_OPTIONS+=-MObjFPC -Scgi -O1 -g -gl -l -vewnhibq -dLCL -dLCL$(LCL_PLATFORM) $(DBG_OPTIONS)
 996endif
 997ifeq ($(FULL_TARGET),x86_64-darwin)
 998override COMPILER_OPTIONS+=-MObjFPC -Scgi -O1 -g -gl -l -vewnhibq -dLCL -dLCL$(LCL_PLATFORM) $(DBG_OPTIONS)
 999endif
1000ifeq ($(FULL_TARGET),x86_64-win64)
1001override COMPILER_OPTIONS+=-MObjFPC -Scgi -O1 -g -gl -l -vewnhibq -dLCL -dLCL$(LCL_PLATFORM) $(DBG_OPTIONS)
1002endif
1003ifeq ($(FULL_TARGET),x86_64-embedded)
1004override COMPILER_OPTIONS+=-MObjFPC -Scgi -O1 -g -gl -l -vewnhibq -dLCL -dLCL$(LCL_PLATFORM) $(DBG_OPTIONS)
1005endif
1006ifeq ($(FULL_TARGET),x86_64-iphonesim)
1007override COMPILER_OPTIONS+=-MObjFPC -Scgi -O1 -g -gl -l -vewnhibq -dLCL -dLCL$(LCL_PLATFORM) $(DBG_OPTIONS)
1008endif
1009ifeq ($(FULL_TARGET),x86_64-aros)
1010override COMPILER_OPTIONS+=-MObjFPC -Scgi -O1 -g -gl -l -vewnhibq -dLCL -dLCL$(LCL_PLATFORM) $(DBG_OPTIONS)
1011endif
1012ifeq ($(FULL_TARGET),x86_64-dragonfly)
1013override COMPILER_OPTIONS+=-MObjFPC -Scgi -O1 -g -gl -l -vewnhibq -dLCL -dLCL$(LCL_PLATFORM) $(DBG_OPTIONS)
1014endif
1015ifeq ($(FULL_TARGET),arm-linux)
1016override COMPILER_OPTIONS+=-MObjFPC -Scgi -O1 -g -gl -l -vewnhibq -dLCL -dLCL$(LCL_PLATFORM) $(DBG_OPTIONS)
1017endif
1018ifeq ($(FULL_TARGET),arm-palmos)
1019override COMPILER_OPTIONS+=-MObjFPC -Scgi -O1 -g -gl -l -vewnhibq -dLCL -dLCL$(LCL_PLATFORM) $(DBG_OPTIONS)
1020endif
1021ifeq ($(FULL_TARGET),arm-darwin)
1022override COMPILER_OPTIONS+=-MObjFPC -Scgi -O1 -g -gl -l -vewnhibq -dLCL -dLCL$(LCL_PLATFORM) $(DBG_OPTIONS)
1023endif
1024ifeq ($(FULL_TARGET),arm-wince)
1025override COMPILER_OPTIONS+=-MObjFPC -Scgi -O1 -g -gl -l -vewnhibq -dLCL -dLCL$(LCL_PLATFORM) $(DBG_OPTIONS)
1026endif
1027ifeq ($(FULL_TARGET),arm-gba)
1028override COMPILER_OPTIONS+=-MObjFPC -Scgi -O1 -g -gl -l -vewnhibq -dLCL -dLCL$(LCL_PLATFORM) $(DBG_OPTIONS)
1029endif
1030ifeq ($(FULL_TARGET),arm-nds)
1031override COMPILER_OPTIONS+=-MObjFPC -Scgi -O1 -g -gl -l -vewnhibq -dLCL -dLCL$(LCL_PLATFORM) $(DBG_OPTIONS)
1032endif
1033ifeq ($(FULL_TARGET),arm-embedded)
1034override COMPILER_OPTIONS+=-MObjFPC -Scgi -O1 -g -gl -l -vewnhibq -dLCL -dLCL$(LCL_PLATFORM) $(DBG_OPTIONS)
1035endif
1036ifeq ($(FULL_TARGET),arm-symbian)
1037override COMPILER_OPTIONS+=-MObjFPC -Scgi -O1 -g -gl -l -vewnhibq -dLCL -dLCL$(LCL_PLATFORM) $(DBG_OPTIONS)
1038endif
1039ifeq ($(FULL_TARGET),arm-android)
1040override COMPILER_OPTIONS+=-MObjFPC -Scgi -O1 -g -gl -l -vewnhibq -dLCL -dLCL$(LCL_PLATFORM) $(DBG_OPTIONS)
1041endif
1042ifeq ($(FULL_TARGET),powerpc64-linux)
1043override COMPILER_OPTIONS+=-MObjFPC -Scgi -O1 -g -gl -l -vewnhibq -dLCL -dLCL$(LCL_PLATFORM) $(DBG_OPTIONS)
1044endif
1045ifeq ($(FULL_TARGET),powerpc64-darwin)
1046override COMPILER_OPTIONS+=-MObjFPC -Scgi -O1 -g -gl -l -vewnhibq -dLCL -dLCL$(LCL_PLATFORM) $(DBG_OPTIONS)
1047endif
1048ifeq ($(FULL_TARGET),powerpc64-embedded)
1049override COMPILER_OPTIONS+=-MObjFPC -Scgi -O1 -g -gl -l -vewnhibq -dLCL -dLCL$(LCL_PLATFORM) $(DBG_OPTIONS)
1050endif
1051ifeq ($(FULL_TARGET),powerpc64-aix)
1052override COMPILER_OPTIONS+=-MObjFPC -Scgi -O1 -g -gl -l -vewnhibq -dLCL -dLCL$(LCL_PLATFORM) $(DBG_OPTIONS)
1053endif
1054ifeq ($(FULL_TARGET),avr-embedded)
1055override COMPILER_OPTIONS+=-MObjFPC -Scgi -O1 -g -gl -l -vewnhibq -dLCL -dLCL$(LCL_PLATFORM) $(DBG_OPTIONS)
1056endif
1057ifeq ($(FULL_TARGET),armeb-linux)
1058override COMPILER_OPTIONS+=-MObjFPC -Scgi -O1 -g -gl -l -vewnhibq -dLCL -dLCL$(LCL_PLATFORM) $(DBG_OPTIONS)
1059endif
1060ifeq ($(FULL_TARGET),armeb-embedded)
1061override COMPILER_OPTIONS+=-MObjFPC -Scgi -O1 -g -gl -l -vewnhibq -dLCL -dLCL$(LCL_PLATFORM) $(DBG_OPTIONS)
1062endif
1063ifeq ($(FULL_TARGET),mips-linux)
1064override COMPILER_OPTIONS+=-MObjFPC -Scgi -O1 -g -gl -l -vewnhibq -dLCL -dLCL$(LCL_PLATFORM) $(DBG_OPTIONS)
1065endif
1066ifeq ($(FULL_TARGET),mipsel-linux)
1067override COMPILER_OPTIONS+=-MObjFPC -Scgi -O1 -g -gl -l -vewnhibq -dLCL -dLCL$(LCL_PLATFORM) $(DBG_OPTIONS)
1068endif
1069ifeq ($(FULL_TARGET),mipsel-embedded)
1070override COMPILER_OPTIONS+=-MObjFPC -Scgi -O1 -g -gl -l -vewnhibq -dLCL -dLCL$(LCL_PLATFORM) $(DBG_OPTIONS)
1071endif
1072ifeq ($(FULL_TARGET),mipsel-android)
1073override COMPILER_OPTIONS+=-MObjFPC -Scgi -O1 -g -gl -l -vewnhibq -dLCL -dLCL$(LCL_PLATFORM) $(DBG_OPTIONS)
1074endif
1075ifeq ($(FULL_TARGET),jvm-java)
1076override COMPILER_OPTIONS+=-MObjFPC -Scgi -O1 -g -gl -l -vewnhibq -dLCL -dLCL$(LCL_PLATFORM) $(DBG_OPTIONS)
1077endif
1078ifeq ($(FULL_TARGET),jvm-android)
1079override COMPILER_OPTIONS+=-MObjFPC -Scgi -O1 -g -gl -l -vewnhibq -dLCL -dLCL$(LCL_PLATFORM) $(DBG_OPTIONS)
1080endif
1081ifeq ($(FULL_TARGET),i8086-msdos)
1082override COMPILER_OPTIONS+=-MObjFPC -Scgi -O1 -g -gl -l -vewnhibq -dLCL -dLCL$(LCL_PLATFORM) $(DBG_OPTIONS)
1083endif
1084ifeq ($(FULL_TARGET),i8086-win16)
1085override COMPILER_OPTIONS+=-MObjFPC -Scgi -O1 -g -gl -l -vewnhibq -dLCL -dLCL$(LCL_PLATFORM) $(DBG_OPTIONS)
1086endif
1087ifeq ($(FULL_TARGET),aarch64-linux)
1088override COMPILER_OPTIONS+=-MObjFPC -Scgi -O1 -g -gl -l -vewnhibq -dLCL -dLCL$(LCL_PLATFORM) $(DBG_OPTIONS)
1089endif
1090ifeq ($(FULL_TARGET),aarch64-darwin)
1091override COMPILER_OPTIONS+=-MObjFPC -Scgi -O1 -g -gl -l -vewnhibq -dLCL -dLCL$(LCL_PLATFORM) $(DBG_OPTIONS)
1092endif
1093ifeq ($(FULL_TARGET),i386-linux)
1094override COMPILER_UNITDIR+=../../packager/units/$(CPU_TARGET)-$(OS_TARGET) ../lazutils/lib/$(CPU_TARGET)-$(OS_TARGET) ../../lcl/units/$(CPU_TARGET)-$(OS_TARGET) ../../lcl/units/$(CPU_TARGET)-$(OS_TARGET)/$(LCL_PLATFORM) .
1095endif
1096ifeq ($(FULL_TARGET),i386-go32v2)
1097override COMPILER_UNITDIR+=../../packager/units/$(CPU_TARGET)-$(OS_TARGET) ../lazutils/lib/$(CPU_TARGET)-$(OS_TARGET) ../../lcl/units/$(CPU_TARGET)-$(OS_TARGET) ../../lcl/units/$(CPU_TARGET)-$(OS_TARGET)/$(LCL_PLATFORM) .
1098endif
1099ifeq ($(FULL_TARGET),i386-win32)
1100override COMPILER_UNITDIR+=../../packager/units/$(CPU_TARGET)-$(OS_TARGET) ../lazutils/lib/$(CPU_TARGET)-$(OS_TARGET) ../../lcl/units/$(CPU_TARGET)-$(OS_TARGET) ../../lcl/units/$(CPU_TARGET)-$(OS_TARGET)/$(LCL_PLATFORM) .
1101endif
1102ifeq ($(FULL_TARGET),i386-os2)
1103override COMPILER_UNITDIR+=../../packager/units/$(CPU_TARGET)-$(OS_TARGET) ../lazutils/lib/$(CPU_TARGET)-$(OS_TARGET) ../../lcl/units/$(CPU_TARGET)-$(OS_TARGET) ../../lcl/units/$(CPU_TARGET)-$(OS_TARGET)/$(LCL_PLATFORM) .
1104endif
1105ifeq ($(FULL_TARGET),i386-freebsd)
1106override COMPILER_UNITDIR+=../../packager/units/$(CPU_TARGET)-$(OS_TARGET) ../lazutils/lib/$(CPU_TARGET)-$(OS_TARGET) ../../lcl/units/$(CPU_TARGET)-$(OS_TARGET) ../../lcl/units/$(CPU_TARGET)-$(OS_TARGET)/$(LCL_PLATFORM) .
1107endif
1108ifeq ($(FULL_TARGET),i386-beos)
1109override COMPILER_UNITDIR+=../../packager/units/$(CPU_TARGET)-$(OS_TARGET) ../lazutils/lib/$(CPU_TARGET)-$(OS_TARGET) ../../lcl/units/$(CPU_TARGET)-$(OS_TARGET) ../../lcl/units/$(CPU_TARGET)-$(OS_TARGET)/$(LCL_PLATFORM) .
1110endif
1111ifeq ($(FULL_TARGET),i386-haiku)
1112override COMPILER_UNITDIR+=../../packager/units/$(CPU_TARGET)-$(OS_TARGET) ../lazutils/lib/$(CPU_TARGET)-$(OS_TARGET) ../../lcl/units/$(CPU_TARGET)-$(OS_TARGET) ../../lcl/units/$(CPU_TARGET)-$(OS_TARGET)/$(LCL_PLATFORM) .
1113endif
1114ifeq ($(FULL_TARGET),i386-netbsd)
1115override COMPILER_UNITDIR+=../../packager/units/$(CPU_TARGET)-$(OS_TARGET) ../lazutils/lib/$(CPU_TARGET)-$(OS_TARGET) ../../lcl/units/$(CPU_TARGET)-$(OS_TARGET) ../../lcl/units/$(CPU_TARGET)-$(OS_TARGET)/$(LCL_PLATFORM) .
1116endif
1117ifeq ($(FULL_TARGET),i386-solaris)
1118override COMPILER_UNITDIR+=../../packager/units/$(CPU_TARGET)-$(OS_TARGET) ../lazutils/lib/$(CPU_TARGET)-$(OS_TARGET) ../../lcl/units/$(CPU_TARGET)-$(OS_TARGET) ../../lcl/units/$(CPU_TARGET)-$(OS_TARGET)/$(LCL_PLATFORM) .
1119endif
1120ifeq ($(FULL_TARGET),i386-qnx)
1121override COMPILER_UNITDIR+=../../packager/units/$(CPU_TARGET)-$(OS_TARGET) ../lazutils/lib/$(CPU_TARGET)-$(OS_TARGET) ../../lcl/units/$(CPU_TARGET)-$(OS_TARGET) ../../lcl/units/$(CPU_TARGET)-$(OS_TARGET)/$(LCL_PLATFORM) .
1122endif
1123ifeq ($(FULL_TARGET),i386-netware)
1124override COMPILER_UNITDIR+=../../packager/units/$(CPU_TARGET)-$(OS_TARGET) ../lazutils/lib/$(CPU_TARGET)-$(OS_TARGET) ../../lcl/units/$(CPU_TARGET)-$(OS_TARGET) ../../lcl/units/$(CPU_TARGET)-$(OS_TARGET)/$(LCL_PLATFORM) .
1125endif
1126ifeq ($(FULL_TARGET),i386-openbsd)
1127override COMPILER_UNITDIR+=../../packager/units/$(CPU_TARGET)-$(OS_TARGET) ../lazutils/lib/$(CPU_TARGET)-$(OS_TARGET) ../../lcl/units/$(CPU_TARGET)-$(OS_TARGET) ../../lcl/units/$(CPU_TARGET)-$(OS_TARGET)/$(LCL_PLATFORM) .
1128endif
1129ifeq ($(FULL_TARGET),i386-wdosx)
1130override COMPILER_UNITDIR+=../../packager/units/$(CPU_TARGET)-$(OS_TARGET) ../lazutils/lib/$(CPU_TARGET)-$(OS_TARGET) ../../lcl/units/$(CPU_TARGET)-$(OS_TARGET) ../../lcl/units/$(CPU_TARGET)-$(OS_TARGET)/$(LCL_PLATFORM) .
1131endif
1132ifeq ($(FULL_TARGET),i386-darwin)
1133override COMPILER_UNITDIR+=../../packager/units/$(CPU_TARGET)-$(OS_TARGET) ../lazutils/lib/$(CPU_TARGET)-$(OS_TARGET) ../../lcl/units/$(CPU_TARGET)-$(OS_TARGET) ../../lcl/units/$(CPU_TARGET)-$(OS_TARGET)/$(LCL_PLATFORM) .
1134endif
1135ifeq ($(FULL_TARGET),i386-emx)
1136override COMPILER_UNITDIR+=../../packager/units/$(CPU_TARGET)-$(OS_TARGET) ../lazutils/lib/$(CPU_TARGET)-$(OS_TARGET) ../../lcl/units/$(CPU_TARGET)-$(OS_TARGET) ../../lcl/units/$(CPU_TARGET)-$(OS_TARGET)/$(LCL_PLATFORM) .
1137endif
1138ifeq ($(FULL_TARGET),i386-watcom)
1139override COMPILER_UNITDIR+=../../packager/units/$(CPU_TARGET)-$(OS_TARGET) ../lazutils/lib/$(CPU_TARGET)-$(OS_TARGET) ../../lcl/units/$(CPU_TARGET)-$(OS_TARGET) ../../lcl/units/$(CPU_TARGET)-$(OS_TARGET)/$(LCL_PLATFORM) .
1140endif
1141ifeq ($(FULL_TARGET),i386-netwlibc)
1142override COMPILER_UNITDIR+=../../packager/units/$(CPU_TARGET)-$(OS_TARGET) ../lazutils/lib/$(CPU_TARGET)-$(OS_TARGET) ../../lcl/units/$(CPU_TARGET)-$(OS_TARGET) ../../lcl/units/$(CPU_TARGET)-$(OS_TARGET)/$(LCL_PLATFORM) .
1143endif
1144ifeq ($(FULL_TARGET),i386-wince)
1145override COMPILER_UNITDIR+=../../packager/units/$(CPU_TARGET)-$(OS_TARGET) ../lazutils/lib/$(CPU_TARGET)-$(OS_TARGET) ../../lcl/units/$(CPU_TARGET)-$(OS_TARGET) ../../lcl/units/$(CPU_TARGET)-$(OS_TARGET)/$(LCL_PLATFORM) .
1146endif
1147ifeq ($(FULL_TARGET),i386-embedded)
1148override COMPILER_UNITDIR+=../../packager/units/$(CPU_TARGET)-$(OS_TARGET) ../lazutils/lib/$(CPU_TARGET)-$(OS_TARGET) ../../lcl/units/$(CPU_TARGET)-$(OS_TARGET) ../../lcl/units/$(CPU_TARGET)-$(OS_TARGET)/$(LCL_PLATFORM) .
1149endif
1150ifeq ($(FULL_TARGET),i386-symbian)
1151override COMPILER_UNITDIR+=../../packager/units/$(CPU_TARGET)-$(OS_TARGET) ../lazutils/lib/$(CPU_TARGET)-$(OS_TARGET) ../../lcl/units/$(CPU_TARGET)-$(OS_TARGET) ../../lcl/units/$(CPU_TARGET)-$(OS_TARGET)/$(LCL_PLATFORM) .
1152endif
1153ifeq ($(FULL_TARGET),i386-nativent)
1154override COMPILER_UNITDIR+=../../packager/units/$(CPU_TARGET)-$(OS_TARGET) ../lazutils/lib/$(CPU_TARGET)-$(OS_TARGET) ../../lcl/units/$(CPU_TARGET)-$(OS_TARGET) ../../lcl/units/$(CPU_TARGET)-$(OS_TARGET)/$(LCL_PLATFORM) .
1155endif
1156ifeq ($(FULL_TARGET),i386-iphonesim)
1157override COMPILER_UNITDIR+=../../packager/units/$(CPU_TARGET)-$(OS_TARGET) ../lazutils/lib/$(CPU_TARGET)-$(OS_TARGET) ../../lcl/units/$(CPU_TARGET)-$(OS_TARGET) ../../lcl/units/$(CPU_TARGET)-$(OS_TARGET)/$(LCL_PLATFORM) .
1158endif
1159ifeq ($(FULL_TARGET),i386-android)
1160override COMPILER_UNITDIR+=../../packager/units/$(CPU_TARGET)-$(OS_TARGET) ../lazutils/lib/$(CPU_TARGET)-$(OS_TARGET) ../../lcl/units/$(CPU_TARGET)-$(OS_TARGET) ../../lcl/units/$(CPU_TARGET)-$(OS_TARGET)/$(LCL_PLATFORM) .
1161endif
1162ifeq ($(FULL_TARGET),i386-aros)
1163override COMPILER_UNITDIR+=../../packager/units/$(CPU_TARGET)-$(OS_TARGET) ../lazutils/lib/$(CPU_TARGET)-$(OS_TARGET) ../../lcl/units/$(CPU_TARGET)-$(OS_TARGET) ../../lcl/units/$(CPU_TARGET)-$(OS_TARGET)/$(LCL_PLATFORM) .
1164endif
1165ifeq ($(FULL_TARGET),m68k-linux)
1166override COMPILER_UNITDIR+=../../packager/units/$(CPU_TARGET)-$(OS_TARGET) ../lazutils/lib/$(CPU_TARGET)-$(OS_TARGET) ../../lcl/units/$(CPU_TARGET)-$(OS_TARGET) ../../lcl/units/$(CPU_TARGET)-$(OS_TARGET)/$(LCL_PLATFORM) .
1167endif
1168ifeq ($(FULL_TARGET),m68k-freebsd)
1169override COMPILER_UNITDIR+=../../packager/units/$(CPU_TARGET)-$(OS_TARGET) ../lazutils/lib/$(CPU_TARGET)-$(OS_TARGET) ../../lcl/units/$(CPU_TARGET)-$(OS_TARGET) ../../lcl/units/$(CPU_TARGET)-$(OS_TARGET)/$(LCL_PLATFORM) .
1170endif
1171ifeq ($(FULL_TARGET),m68k-netbsd)
1172override COMPILER_UNITDIR+=../../packager/units/$(CPU_TARGET)-$(OS_TARGET) ../lazutils/lib/$(CPU_TARGET)-$(OS_TARGET) ../../lcl/units/$(CPU_TARGET)-$(OS_TARGET) ../../lcl/units/$(CPU_TARGET)-$(OS_TARGET)/$(LCL_PLATFORM) .
1173endif
1174ifeq ($(FULL_TARGET),m68k-amiga)
1175override COMPILER_UNITDIR+=../../packager/units/$(CPU_TARGET)-$(OS_TARGET) ../lazutils/lib/$(CPU_TARGET)-$(OS_TARGET) ../../lcl/units/$(CPU_TARGET)-$(OS_TARGET) ../../lcl/units/$(CPU_TARGET)-$(OS_TARGET)/$(LCL_PLATFORM) .
1176endif
1177ifeq ($(FULL_TARGET),m68k-atari)
1178override COMPILER_UNITDIR+=../../packager/units/$(CPU_TARGET)-$(OS_TARGET) ../lazutils/lib/$(CPU_TARGET)-$(OS_TARGET) ../../lcl/units/$(CPU_TARGET)-$(OS_TARGET) ../../lcl/units/$(CPU_TARGET)-$(OS_TARGET)/$(LCL_PLATFORM) .
1179endif
1180ifeq ($(FULL_TARGET),m68k-openbsd)
1181override COMPILER_UNITDIR+=../../packager/units/$(CPU_TARGET)-$(OS_TARGET) ../lazutils/lib/$(CPU_TARGET)-$(OS_TARGET) ../../lcl/units/$(CPU_TARGET)-$(OS_TARGET) ../../lcl/units/$(CPU_TARGET)-$(OS_TARGET)/$(LCL_PLATFORM) .
1182endif
1183ifeq ($(FULL_TARGET),m68k-palmos)
1184override COMPILER_UNITDIR+=../../packager/units/$(CPU_TARGET)-$(OS_TARGET) ../lazutils/lib/$(CPU_TARGET)-$(OS_TARGET) ../../lcl/units/$(CPU_TARGET)-$(OS_TARGET) ../../lcl/units/$(CPU_TARGET)-$(OS_TARGET)/$(LCL_PLATFORM) .
1185endif
1186ifeq ($(FULL_TARGET),m68k-embedded)
1187override COMPILER_UNITDIR+=../../packager/units/$(CPU_TARGET)-$(OS_TARGET) ../lazutils/lib/$(CPU_TARGET)-$(OS_TARGET) ../../lcl/units/$(CPU_TARGET)-$(OS_TARGET) ../../lcl/units/$(CPU_TARGET)-$(OS_TARGET)/$(LCL_PLATFORM) .
1188endif
1189ifeq ($(FULL_TARGET),powerpc-linux)
1190override COMPILER_UNITDIR+=../../packager/units/$(CPU_TARGET)-$(OS_TARGET) ../lazutils/lib/$(CPU_TARGET)-$(OS_TARGET) ../../lcl/units/$(CPU_TARGET)-$(OS_TARGET) ../../lcl/units/$(CPU_TARGET)-$(OS_TARGET)/$(LCL_PLATFORM) .
1191endif
1192ifeq ($(FULL_TARGET),powerpc-netbsd)
1193override COMPILER_UNITDIR+=../../packager/units/$(CPU_TARGET)-$(OS_TARGET) ../lazutils/lib/$(CPU_TARGET)-$(OS_TARGET) ../../lcl/units/$(CPU_TARGET)-$(OS_TARGET) ../../lcl/units/$(CPU_TARGET)-$(OS_TARGET)/$(LCL_PLATFORM) .
1194endif
1195ifeq ($(FULL_TARGET),powerpc-amiga)
1196override COMPILER_UNITDIR+=../../packager/units/$(CPU_TARGET)-$(OS_TARGET) ../lazutils/lib/$(CPU_TARGET)-$(OS_TARGET) ../../lcl/units/$(CPU_TARGET)-$(OS_TARGET) ../../lcl/units/$(CPU_TARGET)-$(OS_TARGET)/$(LCL_PLATFORM) .
1197endif
1198ifeq ($(FULL_TARGET),powerpc-macos)
1199override COMPILER_UNITDIR+=../../packager/units/$(CPU_TARGET)-$(OS_TARGET) ../lazutils/lib/$(CPU_TARGET)-$(OS_TARGET) ../../lcl/units/$(CPU_TARGET)-$(OS_TARGET) ../../lcl/units/$(CPU_TARGET)-$(OS_TARGET)/$(LCL_PLATFORM) .
1200endif
1201ifeq ($(FULL_TARGET),powerpc-darwin)
1202override COMPILER_UNITDIR+=../../packager/units/$(CPU_TARGET)-$(OS_TARGET) ../lazutils/lib/$(CPU_TARGET)-$(OS_TARGET) ../../lcl/units/$(CPU_TARGET)-$(OS_TARGET) ../../lcl/units/$(CPU_TARGET)-$(OS_TARGET)/$(LCL_PLATFORM) .
1203endif
1204ifeq ($(FULL_TARGET),powerpc-morphos)
1205override COMPILER_UNITDIR+=../../packager/units/$(CPU_TARGET)-$(OS_TARGET) ../lazutils/lib/$(CPU_TARGET)-$(OS_TARGET) ../../lcl/units/$(CPU_TARGET)-$(OS_TARGET) ../../lcl/units/$(CPU_TARGET)-$(OS_TARGET)/$(LCL_PLATFORM) .
1206endif
1207ifeq ($(FULL_TARGET),powerpc-embedded)
1208override COMPILER_UNITDIR+=../../packager/units/$(CPU_TARGET)-$(OS_TARGET) ../lazutils/lib/$(CPU_TARGET)-$(OS_TARGET) ../../lcl/units/$(CPU_TARGET)-$(OS_TARGET) ../../lcl/units/$(CPU_TARGET)-$(OS_TARGET)/$(LCL_PLATFORM) .
1209endif
1210ifeq ($(FULL_TARGET),powerpc-wii)
1211override COMPILER_UNITDIR+=../../packager/units/$(CPU_TARGET)-$(OS_TARGET) ../lazutils/lib/$(CPU_TARGET)-$(OS_TARGET) ../../lcl/units/$(CPU_TARGET)-$(OS_TARGET) ../../lcl/units/$(CPU_TARGET)-$(OS_TARGET)/$(LCL_PLATFORM) .
1212endif
1213ifeq ($(FULL_TARGET),powerpc-aix)
1214override COMPILER_UNITDIR+=../../packager/units/$(CPU_TARGET)-$(OS_TARGET) ../lazutils/lib/$(CPU_TARGET)-$(OS_TARGET) ../../lcl/units/$(CPU_TARGET)-$(OS_TARGET) ../../lcl/units/$(CPU_TARGET)-$(OS_TARGET)/$(LCL_PLATFORM) .
1215endif
1216ifeq ($(FULL_TARGET),sparc-linux)
1217override COMPILER_UNITDIR+=../../packager/units/$(CPU_TARGET)-$(OS_TARGET) ../lazutils/lib/$(CPU_TARGET)-$(OS_TARGET) ../../lcl/units/$(CPU_TARGET)-$(OS_TARGET) ../../lcl/units/$(CPU_TARGET)-$(OS_TARGET)/$(LCL_PLATFORM) .
1218endif
1219ifeq ($(FULL_TARGET),sparc-netbsd)
1220override COMPILER_UNITDIR+=../../packager/units/$(CPU_TARGET)-$(OS_TARGET) ../lazutils/lib/$(CPU_TARGET)-$(OS_TARGET) ../../lcl/units/$(CPU_TARGET)-$(OS_TARGET) ../../lcl/units/$(CPU_TARGET)-$(OS_TARGET)/$(LCL_PLATFORM) .
1221endif
1222ifeq ($(FULL_TARGET),sparc-solaris)
1223override COMPILER_UNITDIR+=../../packager/units/$(CPU_TARGET)-$(OS_TARGET) ../lazutils/lib/$(CPU_TARGET)-$(OS_TARGET) ../../lcl/units/$(CPU_TARGET)-$(OS_TARGET) ../../lcl/units/$(CPU_TARGET)-$(OS_TARGET)/$(LCL_PLATFORM) .
1224endif
1225ifeq ($(FULL_TARGET),sparc-embedded)
1226override COMPILER_UNITDIR+=../../packager/units/$(CPU_TARGET)-$(OS_TARGET) ../lazutils/lib/$(CPU_TARGET)-$(OS_TARGET) ../../lcl/units/$(CPU_TARGET)-$(OS_TARGET) ../../lcl/units/$(CPU_TARGET)-$(OS_TARGET)/$(LCL_PLATFORM) .
1227endif
1228ifeq ($(FULL_TARGET),x86_64-linux)
1229override COMPILER_UNITDIR+=../../packager/units/$(CPU_TARGET)-$(OS_TARGET) ../lazutils/lib/$(CPU_TARGET)-$(OS_TARGET) ../../lcl/units/$(CPU_TARGET)-$(OS_TARGET) ../../lcl/units/$(CPU_TARGET)-$(OS_TARGET)/$(LCL_PLATFORM) .
1230endif
1231ifeq ($(FULL_TARGET),x86_64-freebsd)
1232override COMPILER_UNITDIR+=../../packager/units/$(CPU_TARGET)-$(OS_TARGET) ../lazutils/lib/$(CPU_TARGET)-$(OS_TARGET) ../../lcl/units/$(CPU_TARGET)-$(OS_TARGET) ../../lcl/units/$(CPU_TARGET)-$(OS_TARGET)/$(LCL_PLATFORM) .
1233endif
1234ifeq ($(FULL_TARGET),x86_64-netbsd)
1235override COMPILER_UNITDIR+=../../packager/units/$(CPU_TARGET)-$(OS_TARGET) ../lazutils/lib/$(CPU_TARGET)-$(OS_TARGET) ../../lcl/units/$(CPU_TARGET)-$(OS_TARGET) ../../lcl/units/$(CPU_TARGET)-$(OS_TARGET)/$(LCL_PLATFORM) .
1236endif
1237ifeq ($(FULL_TARGET),x86_64-solaris)
1238override COMPILER_UNITDIR+=../../packager/units/$(CPU_TARGET)-$(OS_TARGET) ../lazutils/lib/$(CPU_TARGET)-$(OS_TARGET) ../../lcl/units/$(CPU_TARGET)-$(OS_TARGET) ../../lcl/units/$(CPU_TARGET)-$(OS_TARGET)/$(LCL_PLATFORM) .
1239endif
1240ifeq ($(FULL_TARGET),x86_64-openbsd)
1241override COMPILER_UNITDIR+=../../packager/units/$(CPU_TARGET)-$(OS_TARGET) ../lazutils/lib/$(CPU_TARGET)-$(OS_TARGET) ../../lcl/units/$(CPU_TARGET)-$(OS_TARGET) ../../lcl/units/$(CPU_TARGET)-$(OS_TARGET)/$(LCL_PLATFORM) .
1242endif
1243ifeq ($(FULL_TARGET),x86_64-darwin)
1244override COMPILER_UNITDIR+=../../packager/units/$(CPU_TARGET)-$(OS_TARGET) ../lazutils/lib/$(CPU_TARGET)-$(OS_TARGET) ../../lcl/units/$(CPU_TARGET)-$(OS_TARGET) ../../lcl/units/$(CPU_TARGET)-$(OS_TARGET)/$(LCL_PLATFORM) .
1245endif
1246ifeq ($(FULL_TARGET),x86_64-win64)
1247override COMPILER_UNITDIR+=../../packager/units/$(CPU_TARGET)-$(OS_TARGET) ../lazutils/lib/$(CPU_TARGET)-$(OS_TARGET) ../../lcl/units/$(CPU_TARGET)-$(OS_TARGET) ../../lcl/units/$(CPU_TARGET)-$(OS_TARGET)/$(LCL_PLATFORM) .
1248endif
1249ifeq ($(FULL_TARGET),x86_64-embedded)
1250override COMPILER_UNITDIR+=../../packager/units/$(CPU_TARGET)-$(OS_TARGET) ../lazutils/lib/$(CPU_TARGET)-$(OS_TARGET) ../../lcl/units/$(CPU_TARGET)-$(OS_TARGET) ../../lcl/units/$(CPU_TARGET)-$(OS_TARGET)/$(LCL_PLATFORM) .
1251endif
1252ifeq ($(FULL_TARGET),x86_64-iphonesim)
1253override COMPILER_UNITDIR+=../../packager/units/$(CPU_TARGET)-$(OS_TARGET) ../lazutils/lib/$(CPU_TARGET)-$(OS_TARGET) ../../lcl/units/$(CPU_TARGET)-$(OS_TARGET) ../../lcl/units/$(CPU_TARGET)-$(OS_TARGET)/$(LCL_PLATFORM) .
1254endif
1255ifeq ($(FULL_TARGET),x86_64-aros)
1256override COMPILER_UNITDIR+=../../packager/units/$(CPU_TARGET)-$(OS_TARGET) ../lazutils/lib/$(CPU_TARGET)-$(OS_TARGET) ../../lcl/units/$(CPU_TARGET)-$(OS_TARGET) ../../lcl/units/$(CPU_TARGET)-$(OS_TARGET)/$(LCL_PLATFORM) .
1257endif
1258ifeq ($(FULL_TARGET),x86_64-dragonfly)
1259override COMPILER_UNITDIR+=../../packager/units/$(CPU_TARGET)-$(OS_TARGET) ../lazutils/lib/$(CPU_TARGET)-$(OS_TARGET) ../../lcl/units/$(CPU_TARGET)-$(OS_TARGET) ../../lcl/units/$(CPU_TARGET)-$(OS_TARGET)/$(LCL_PLATFORM) .
1260endif
1261ifeq ($(FULL_TARGET),arm-linux)
1262override COMPILER_UNITDIR+=../../packager/units/$(CPU_TARGET)-$(OS_TARGET) ../lazutils/lib/$(CPU_TARGET)-$(OS_TARGET) ../../lcl/units/$(CPU_TARGET)-$(OS_TARGET) ../../lcl/units/$(CPU_TARGET)-$(OS_TARGET)/$(LCL_PLATFORM) .
1263endif
1264ifeq ($(FULL_TARGET),arm-palmos)
1265override COMPILER_UNITDIR+=../../packager/units/$(CPU_TARGET)-$(OS_TARGET) ../lazutils/lib/$(CPU_TARGET)-$(OS_TARGET) ../../lcl/units/$(CPU_TARGET)-$(OS_TARGET) ../../lcl/units/$(CPU_TARGET)-$(OS_TARGET)/$(LCL_PLATFORM) .
1266endif
1267ifeq ($(FULL_TARGET),arm-darwin)
1268override COMPILER_UNITDIR+=../../packager/units/$(CPU_TARGET)-$(OS_TARGET) ../lazutils/lib/$(CPU_TARGET)-$(OS_TARGET) ../../lcl/units/$(CPU_TARGET)-$(OS_TARGET) ../../lcl/units/$(CPU_TARGET)-$(OS_TARGET)/$(LCL_PLATFORM) .
1269endif
1270ifeq ($(FULL_TARGET),arm-wince)
1271override COMPILER_UNITDIR+=../../packager/units/$(CPU_TARGET)-$(OS_TARGET) ../lazutils/lib/$(CPU_TARGET)-$(OS_TARGET) ../../lcl/units/$(CPU_TARGET)-$(OS_TARGET) ../../lcl/units/$(CPU_TARGET)-$(OS_TARGET)/$(LCL_PLATFORM) .
1272endif
1273ifeq ($(FULL_TARGET),arm-gba)
1274override COMPILER_UNITDIR+=../../packager/units/$(CPU_TARGET)-$(OS_TARGET) ../lazutils/lib/$(CPU_TARGET)-$(OS_TARGET) ../../lcl/units/$(CPU_TARGET)-$(OS_TARGET) ../../lcl/units/$(CPU_TARGET)-$(OS_TARGET)/$(LCL_PLATFORM) .
1275endif
1276ifeq ($(FULL_TARGET),arm-nds)
1277override COMPILER_UNITDIR+=../../packager/units/$(CPU_TARGET)-$(OS_TARGET) ../lazutils/lib/$(CPU_TARGET)-$(OS_TARGET) ../../lcl/units/$(CPU_TARGET)-$(OS_TARGET) ../../lcl/units/$(CPU_TARGET)-$(OS_TARGET)/$(LCL_PLATFORM) .
1278endif
1279ifeq ($(FULL_TARGET),arm-embedded)
1280override COMPILER_UNITDIR+=../../packager/units/$(CPU_TARGET)-$(OS_TARGET) ../lazutils/lib/$(CPU_TARGET)-$(OS_TARGET) ../../lcl/units/$(CPU_TARGET)-$(OS_TARGET) ../../lcl/units/$(CPU_TARGET)-$(OS_TARGET)/$(LCL_PLATFORM) .
1281endif
1282ifeq ($(FULL_TARGET),arm-symbian)
1283override COMPILER_UNITDIR+=../../packager/units/$(CPU_TARGET)-$(OS_TARGET) ../lazutils/lib/$(CPU_TARGET)-$(OS_TARGET) ../../lcl/units/$(CPU_TARGET)-$(OS_TARGET) ../../lcl/units/$(CPU_TARGET)-$(OS_TARGET)/$(LCL_PLATFORM) .
1284endif
1285ifeq ($(FULL_TARGET),arm-android)
1286override COMPILER_UNITDIR+=../../packager/units/$(CPU_TARGET)-$(OS_TARGET) ../lazutils/lib/$(CPU_TARGET)-$(OS_TARGET) ../../lcl/units/$(CPU_TARGET)-$(OS_TARGET) ../../lcl/units/$(CPU_TARGET)-$(OS_TARGET)/$(LCL_PLATFORM) .
1287endif
1288ifeq ($(FULL_TARGET),powerpc64-linux)
1289override COMPILER_UNITDIR+=../../packager/units/$(CPU_TARGET)-$(OS_TARGET) ../lazutils/lib/$(CPU_TARGET)-$(OS_TARGET) ../../lcl/units/$(CPU_TARGET)-$(OS_TARGET) ../../lcl/units/$(CPU_TARGET)-$(OS_TARGET)/$(LCL_PLATFORM) .
1290endif
1291ifeq ($(FULL_TARGET),powerpc64-darwin)
1292override COMPILER_UNITDIR+=../../packager/units/$(CPU_TARGET)-$(OS_TARGET) ../lazutils/lib/$(CPU_TARGET)-$(OS_TARGET) ../../lcl/units/$(CPU_TARGET)-$(OS_TARGET) ../../lcl/units/$(CPU_TARGET)-$(OS_TARGET)/$(LCL_PLATFORM) .
1293endif
1294ifeq ($(FULL_TARGET),powerpc64-embedded)
1295override COMPILER_UNITDIR+=../../packager/units/$(CPU_TARGET)-$(OS_TARGET) ../lazutils/lib/$(CPU_TARGET)-$(OS_TARGET) ../../lcl/units/$(CPU_TARGET)-$(OS_TARGET) ../../lcl/units/$(CPU_TARGET)-$(OS_TARGET)/$(LCL_PLATFORM) .
1296endif
1297ifeq ($(FULL_TARGET),powerpc64-aix)
1298override COMPILER_UNITDIR+=../../packager/units/$(CPU_TARGET)-$(OS_TARGET) ../lazutils/lib/$(CPU_TARGET)-$(OS_TARGET) ../../lcl/units/$(CPU_TARGET)-$(OS_TARGET) ../../lcl/units/$(CPU_TARGET)-$(OS_TARGET)/$(LCL_PLATFORM) .
1299endif
1300ifeq ($(FULL_TARGET),avr-embedded)
1301override COMPILER_UNITDIR+=../../packager/units/$(CPU_TARGET)-$(OS_TARGET) ../lazutils/lib/$(CPU_TARGET)-$(OS_TARGET) ../../lcl/units/$(CPU_TARGET)-$(OS_TARGET) ../../lcl/units/$(CPU_TARGET)-$(OS_TARGET)/$(LCL_PLATFORM) .
1302endif
1303ifeq ($(FULL_TARGET),armeb-linux)
1304override COMPILER_UNITDIR+=../../packager/units/$(CPU_TARGET)-$(OS_TARGET) ../lazutils/lib/$(CPU_TARGET)-$(OS_TARGET) ../../lcl/units/$(CPU_TARGET)-$(OS_TARGET) ../../lcl/units/$(CPU_TARGET)-$(OS_TARGET)/$(LCL_PLATFORM) .
1305endif
1306ifeq ($(FULL_TARGET),armeb-embedded)
1307override COMPILER_UNITDIR+=../../packager/units/$(CPU_TARGET)-$(OS_TARGET) ../lazutils/lib/$(CPU_TARGET)-$(OS_TARGET) ../../lcl/units/$(CPU_TARGET)-$(OS_TARGET) ../../lcl/units/$(CPU_TARGET)-$(OS_TARGET)/$(LCL_PLATFORM) .
1308endif
1309ifeq ($(FULL_TARGET),mips-linux)
1310override COMPILER_UNITDIR+=../../packager/units/$(CPU_TARGET)-$(OS_TARGET) ../lazutils/lib/$(CPU_TARGET)-$(OS_TARGET) ../../lcl/units/$(CPU_TARGET)-$(OS_TARGET) ../../lcl/units/$(CPU_TARGET)-$(OS_TARGET)/$(LCL_PLATFORM) .
1311endif
1312ifeq ($(FULL_TARGET),mipsel-linux)
1313override COMPILER_UNITDIR+=../../packager/units/$(CPU_TARGET)-$(OS_TARGET) ../lazutils/lib/$(CPU_TARGET)-$(OS_TARGET) ../../lcl/units/$(CPU_TARGET)-$(OS_TARGET) ../../lcl/units/$(CPU_TARGET)-$(OS_TARGET)/$(LCL_PLATFORM) .
1314endif
1315ifeq ($(FULL_TARGET),mipsel-embedded)
1316override COMPILER_UNITDIR+=../../packager/units/$(CPU_TARGET)-$(OS_TARGET) ../lazutils/lib/$(CPU_TARGET)-$(OS_TARGET) ../../lcl/units/$(CPU_TARGET)-$(OS_TARGET) ../../lcl/units/$(CPU_TARGET)-$(OS_TARGET)/$(LCL_PLATFORM) .
1317endif
1318ifeq ($(FULL_TARGET),mipsel-android)
1319override COMPILER_UNITDIR+=../../packager/units/$(CPU_TARGET)-$(OS_TARGET) ../lazutils/lib/$(CPU_TARGET)-$(OS_TARGET) ../../lcl/units/$(CPU_TARGET)-$(OS_TARGET) ../../lcl/units/$(CPU_TARGET)-$(OS_TARGET)/$(LCL_PLATFORM) .
1320endif
1321ifeq ($(FULL_TARGET),jvm-java)
1322override COMPILER_UNITDIR+=../../packager/units/$(CPU_TARGET)-$(OS_TARGET) ../lazutils/lib/$(CPU_TARGET)-$(OS_TARGET) ../../lcl/units/$(CPU_TARGET)-$(OS_TARGET) ../../lcl/units/$(CPU_TARGET)-$(OS_TARGET)/$(LCL_PLATFORM) .
1323endif
1324ifeq ($(FULL_TARGET),jvm-android)
1325override COMPILER_UNITDIR+=../../packager/units/$(CPU_TARGET)-$(OS_TARGET) ../lazutils/lib/$(CPU_TARGET)-$(OS_TARGET) ../../lcl/units/$(CPU_TARGET)-$(OS_TARGET) ../../lcl/units/$(CPU_TARGET)-$(OS_TARGET)/$(LCL_PLATFORM) .
1326endif
1327ifeq ($(FULL_TARGET),i8086-msdos)
1328override COMPILER_UNITDIR+=../../packager/units/$(CPU_TARGET)-$(OS_TARGET) ../lazutils/lib/$(CPU_TARGET)-$(OS_TARGET) ../../lcl/units/$(CPU_TARGET)-$(OS_TARGET) ../../lcl/units/$(CPU_TARGET)-$(OS_TARGET)/$(LCL_PLATFORM) .
1329endif
1330ifeq ($(FULL_TARGET),i8086-win16)
1331override COMPILER_UNITDIR+=../../packager/units/$(CPU_TARGET)-$(OS_TARGET) ../lazutils/lib/$(CPU_TARGET)-$(OS_TARGET) ../../lcl/units/$(CPU_TARGET)-$(OS_TARGET) ../../lcl/units/$(CPU_TARGET)-$(OS_TARGET)/$(LCL_PLATFORM) .
1332endif
1333ifeq ($(FULL_TARGET),aarch64-linux)
1334override COMPILER_UNITDIR+=../../packager/units/$(CPU_TARGET)-$(OS_TARGET) ../lazutils/lib/$(CPU_TARGET)-$(OS_TARGET) ../../lcl/units/$(CPU_TARGET)-$(OS_TARGET) ../../lcl/units/$(CPU_TARGET)-$(OS_TARGET)/$(LCL_PLATFORM) .
1335endif
1336ifeq ($(FULL_TARGET),aarch64-darwin)
1337override COMPILER_UNITDIR+=../../packager/units/$(CPU_TARGET)-$(OS_TARGET) ../lazutils/lib/$(CPU_TARGET)-$(OS_TARGET) ../../lcl/units/$(CPU_TARGET)-$(OS_TARGET) ../../lcl/units/$(CPU_TARGET)-$(OS_TARGET)/$(LCL_PLATFORM) .
1338endif
1339ifeq ($(FULL_TARGET),i386-linux)
1340override COMPILER_UNITTARGETDIR+=lib/$(CPU_TARGET)-$(OS_TARGET)/$(LCL_PLATFORM)
1341endif
1342ifeq ($(FULL_TARGET),i386-go32v2)
1343override COMPILER_UNITTARGETDIR+=lib/$(CPU_TARGET)-$(OS_TARGET)/$(LCL_PLATFORM)
1344endif
1345ifeq ($(FULL_TARGET),i386-win32)
1346override COMPILER_UNITTARGETDIR+=lib/$(CPU_TARGET)-$(OS_TARGET)/$(LCL_PLATFORM)
1347endif
1348ifeq ($(FULL_TARGET),i386-os2)
1349override COMPILER_UNITTARGETDIR+=lib/$(CPU_TARGET)-$(OS_TARGET)/$(LCL_PLATFORM)
1350endif
1351ifeq ($(FULL_TARGET),i386-freebsd)
1352override COMPILER_UNITTARGETDIR+=lib/$(CPU_TARGET)-$(OS_TARGET)/$(LCL_PLATFORM)
1353endif
1354ifeq ($(FULL_TARGET),i386-beos)
1355override COMPILER_UNITTARGETDIR+=lib/$(CPU_TARGET)-$(OS_TARGET)/$(LCL_PLATFORM)
1356endif
1357ifeq ($(FULL_TARGET),i386-haiku)
1358override COMPILER_UNITTARGETDIR+=lib/$(CPU_TARGET)-$(OS_TARGET)/$(LCL_PLATFORM)
1359endif
1360ifeq ($(FULL_TARGET),i386-netbsd)
1361override COMPILER_UNITTARGETDIR+=lib/$(CPU_TARGET)-$(OS_TARGET)/$(LCL_PLATFORM)
1362endif
1363ifeq ($(FULL_TARGET),i386-solaris)
1364override COMPILER_UNITTARGETDIR+=lib/$(CPU_TARGET)-$(OS_TARGET)/$(LCL_PLATFORM)
1365endif
1366ifeq ($(FULL_TARGET),i386-qnx)
1367override COMPILER_UNITTARGETDIR+=lib/$(CPU_TARGET)-$(OS_TARGET)/$(LCL_PLATFORM)
1368endif
1369ifeq ($(FULL_TARGET),i386-netware)
1370override COMPILER_UNITTARGETDIR+=lib/$(CPU_TARGET)-$(OS_TARGET)/$(LCL_PLATFORM)
1371endif
1372ifeq ($(FULL_TARGET),i386-openbsd)
1373override COMPILER_UNITTARGETDIR+=lib/$(CPU_TARGET)-$(OS_TARGET)/$(LCL_PLATFORM)
1374endif
1375ifeq ($(FULL_TARGET),i386-wdosx)
1376override COMPILER_UNITTARGETDIR+=lib/$(CPU_TARGET)-$(OS_TARGET)/$(LCL_PLATFORM)
1377endif
1378ifeq ($(FULL_TARGET),i386-darwin)
1379override COMPILER_UNITTARGETDIR+=lib/$(CPU_TARGET)-$(OS_TARGET)/$(LCL_PLATFORM)
1380endif
1381ifeq ($(FULL_TARGET),i386-emx)
1382override COMPILER_UNITTARGETDIR+=lib/$(CPU_TARGET)-$(OS_TARGET)/$(LCL_PLATFORM)
1383endif
1384ifeq ($(FULL_TARGET),i386-watcom)
1385override COMPILER_UNITTARGETDIR+=lib/$(CPU_TARGET)-$(OS_TARGET)/$(LCL_PLATFORM)
1386endif
1387ifeq ($(FULL_TARGET),i386-netwlibc)
1388override COMPILER_UNITTARGETDIR+=lib/$(CPU_TARGET)-$(OS_TARGET)/$(LCL_PLATFORM)
1389endif
1390ifeq ($(FULL_TARGET),i386-wince)
1391override COMPILER_UNITTARGETDIR+=lib/$(CPU_TARGET)-$(OS_TARGET)/$(LCL_PLATFORM)
1392endif
1393ifeq ($(FULL_TARGET),i386-embedded)
1394override COMPILER_UNITTARGETDIR+=lib/$(CPU_TARGET)-$(OS_TARGET)/$(LCL_PLATFORM)
1395endif
1396ifeq ($(FULL_TARGET),i386-symbian)
1397override COMPILER_UNITTARGETDIR+=lib/$(CPU_TARGET)-$(OS_TARGET)/$(LCL_PLATFORM)
1398endif
1399ifeq ($(FULL_TARGET),i386-nativent)
1400override COMPILER_UNITTARGETDIR+=lib/$(CPU_TARGET)-$(OS_TARGET)/$(LCL_PLATFORM)
1401endif
1402ifeq ($(FULL_TARGET),i386-iphonesim)
1403override COMPILER_UNITTARGETDIR+=lib/$(CPU_TARGET)-$(OS_TARGET)/$(LCL_PLATFORM)
1404endif
1405ifeq ($(FULL_TARGET),i386-android)
1406override COMPILER_UNITTARGETDIR+=lib/$(CPU_TARGET)-$(OS_TARGET)/$(LCL_PLATFORM)
1407endif
1408ifeq ($(FULL_TARGET),i386-aros)
1409override COMPILER_UNITTARGETDIR+=lib/$(CPU_TARGET)-$(OS_TARGET)/$(LCL_PLATFORM)
1410endif
1411ifeq ($(FULL_TARGET),m68k-linux)
1412override COMPILER_UNITTARGETDIR+=lib/$(CPU_TARGET)-$(OS_TARGET)/$(LCL_PLATFORM)
1413endif
1414ifeq ($(FULL_TARGET),m68k-freebsd)
1415override COMPILER_UNITTARGETDIR+=lib/$(CPU_TARGET)-$(OS_TARGET)/$(LCL_PLATFORM)
1416endif
1417ifeq ($(FULL_TARGET),m68k-netbsd)
1418override COMPILER_UNITTARGETDIR+=lib/$(CPU_TARGET)-$(OS_TARGET)/$(LCL_PLATFORM)
1419endif
1420ifeq ($(FULL_TARGET),m68k-amiga)
1421override COMPILER_UNITTARGETDIR+=lib/$(CPU_TARGET)-$(OS_TARGET)/$(LCL_PLATFORM)
1422endif
1423ifeq ($(FULL_TARGET),m68k-atari)
1424override COMPILER_UNITTARGETDIR+=lib/$(CPU_TARGET)-$(OS_TARGET)/$(LCL_PLATFORM)
1425endif
1426ifeq ($(FULL_TARGET),m68k-openbsd)
1427override COMPILER_UNITTARGETDIR+=lib/$(CPU_TARGET)-$(OS_TARGET)/$(LCL_PLATFORM)
1428endif
1429ifeq ($(FULL_TARGET),m68k-palmos)
1430override COMPILER_UNITTARGETDIR+=lib/$(CPU_TARGET)-$(OS_TARGET)/$(LCL_PLATFORM)
1431endif
1432ifeq ($(FULL_TARGET),m68k-embedded)
1433override COMPILER_UNITTARGETDIR+=lib/$(CPU_TARGET)-$(OS_TARGET)/$(LCL_PLATFORM)
1434endif
1435ifeq ($(FULL_TARGET),powerpc-linux)
1436override COMPILER_UNITTARGETDIR+=lib/$(CPU_TARGET)-$(OS_TARGET)/$(LCL_PLATFORM)
1437endif
1438ifeq ($(FULL_TARGET),powerpc-netbsd)
1439override COMPILER_UNITTARGETDIR+=lib/$(CPU_TARGET)-$(OS_TARGET)/$(LCL_PLATFORM)
1440endif
1441ifeq ($(FULL_TARGET),powerpc-amiga)
1442override COMPILER_UNITTARGETDIR+=lib/$(CPU_TARGET)-$(OS_TARGET)/$(LCL_PLATFORM)
1443endif
1444ifeq ($(FULL_TARGET),powerpc-macos)
1445override COMPILER_UNITTARGETDIR+=lib/$(CPU_TARGET)-$(OS_TARGET)/$(LCL_PLATFORM)
1446endif
1447ifeq ($(FULL_TARGET),powerpc-darwin)
1448override COMPILER_UNITTARGETDIR+=lib/$(CPU_TARGET)-$(OS_TARGET)/$(LCL_PLATFORM)
1449endif
1450ifeq ($(FULL_TARGET),powerpc-morphos)
1451override COMPILER_UNITTARGETDIR+=lib/$(CPU_TARGET)-$(OS_TARGET)/$(LCL_PLATFORM)
1452endif
1453ifeq ($(FULL_TARGET),powerpc-embedded)
1454override COMPILER_UNITTARGETDIR+=lib/$(CPU_TARGET)-$(OS_TARGET)/$(LCL_PLATFORM)
1455endif
1456ifeq ($(FULL_TARGET),powerpc-wii)
1457override COMPILER_UNITTARGETDIR+=lib/$(CPU_TARGET)-$(OS_TARGET)/$(LCL_PLATFORM)
1458endif
1459ifeq ($(FULL_TARGET),powerpc-aix)
1460override COMPILER_UNITTARGETDIR+=lib/$(CPU_TARGET)-$(OS_TARGET)/$(LCL_PLATFORM)
1461endif
1462ifeq ($(FULL_TARGET),sparc-linux)
1463override COMPILER_UNITTARGETDIR+=lib/$(CPU_TARGET)-$(OS_TARGET)/$(LCL_PLATFORM)
1464endif
1465ifeq ($(FULL_TARGET),sparc-netbsd)
1466override COMPILER_UNITTARGETDIR+=lib/$(CPU_TARGET)-$(OS_TARGET)/$(LCL_PLATFORM)
1467endif
1468ifeq ($(FULL_TARGET),sparc-solaris)
1469override COMPILER_UNITTARGETDIR+=lib/$(CPU_TARGET)-$(OS_TARGET)/$(LCL_PLATFORM)
1470endif
1471ifeq ($(FULL_TARGET),sparc-embedded)
1472override COMPILER_UNITTARGETDIR+=lib/$(CPU_TARGET)-$(OS_TARGET)/$(LCL_PLATFORM)
1473endif
1474ifeq ($(FULL_TARGET),x86_64-linux)
1475override COMPILER_UNITTARGETDIR+=lib/$(CPU_TARGET)-$(OS_TARGET)/$(LCL_PLATFORM)
1476endif
1477ifeq ($(FULL_TARGET),x86_64-freebsd)
1478override COMPILER_UNITTARGETDIR+=lib/$(CPU_TARGET)-$(OS_TARGET)/$(LCL_PLATFORM)
1479endif
1480ifeq ($(FULL_TARGET),x86_64-netbsd)
1481override COMPILER_UNITTARGETDIR+=lib/$(CPU_TARGET)-$(OS_TARGET)/$(LCL_PLATFORM)
1482endif
1483ifeq ($(FULL_TARGET),x86_64-solaris)
1484override COMPILER_UNITTARGETDIR+=lib/$(CPU_TARGET)-$(OS_TARGET)/$(LCL_PLATFORM)
1485endif
1486ifeq ($(FULL_TARGET),x86_64-openbsd)
1487override COMPILER_UNITTARGETDIR+=lib/$(CPU_TARGET)-$(OS_TARGET)/$(LCL_PLATFORM)
1488endif
1489ifeq ($(FULL_TARGET),x86_64-darwin)
1490override COMPILER_UNITTARGETDIR+=lib/$(CPU_TARGET)-$(OS_TARGET)/$(LCL_PLATFORM)
1491endif
1492ifeq ($(FULL_TARGET),x86_64-win64)
1493override COMPILER_UNITTARGETDIR+=lib/$(CPU_TARGET)-$(OS_TARGET)/$(LCL_PLATFORM)
1494endif
1495ifeq ($(FULL_TARGET),x86_64-embedded)
1496override COMPILER_UNITTARGETDIR+=lib/$(CPU_TARGET)-$(OS_TARGET)/$(LCL_PLATFORM)
1497endif
1498ifeq ($(FULL_TARGET),x86_64-iphonesim)
1499override COMPILER_UNITTARGETDIR+=lib/$(CPU_TARGET)-$(OS_TARGET)/$(LCL_PLATFORM)
1500endif
1501ifeq ($(FULL_TARGET),x86_64-aros)
1502override COMPILER_UNITTARGETDIR+=lib/$(CPU_TARGET)-$(OS_TARGET)/$(LCL_PLATFORM)
1503endif
1504ifeq ($(FULL_TARGET),x86_64-dragonfly)
1505override COMPILER_UNITTARGETDIR+=lib/$(CPU_TARGET)-$(OS_TARGET)/$(LCL_PLATFORM)
1506endif
1507ifeq ($(FULL_TARGET),arm-linux)
1508override COMPILER_UNITTARGETDIR+=lib/$(CPU_TARGET)-$(OS_TARGET)/$(LCL_PLATFORM)
1509endif
1510ifeq ($(FULL_TARGET),arm-palmos)
1511override COMPILER_UNITTARGETDIR+=lib/$(CPU_TARGET)-$(OS_TARGET)/$(LCL_PLATFORM)
1512endif
1513ifeq ($(FULL_TARGET),arm-darwin)
1514override COMPILER_UNITTARGETDIR+=lib/$(CPU_TARGET)-$(OS_TARGET)/$(LCL_PLATFORM)
1515endif
1516ifeq ($(FULL_TARGET),arm-wince)
1517override COMPILER_UNITTARGETDIR+=lib/$(CPU_TARGET)-$(OS_TARGET)/$(LCL_PLATFORM)
1518endif
1519ifeq ($(FULL_TARGET),arm-gba)
1520override COMPILER_UNITTARGETDIR+=lib/$(CPU_TARGET)-$(OS_TARGET)/$(LCL_PLATFORM)
1521endif
1522ifeq ($(FULL_TARGET),arm-nds)
1523override COMPILER_UNITTARGETDIR+=lib/$(CPU_TARGET)-$(OS_TARGET)/$(LCL_PLATFORM)
1524endif
1525ifeq ($(FULL_TARGET),arm-embedded)
1526override COMPILER_UNITTARGETDIR+=lib/$(CPU_TARGET)-$(OS_TARGET)/$(LCL_PLATFORM)
1527endif
1528ifeq ($(FULL_TARGET),arm-symbian)
1529override COMPILER_UNITTARGETDIR+=lib/$(CPU_TARGET)-$(OS_TARGET)/$(LCL_PLATFORM)
1530endif
1531ifeq ($(FULL_TARGET),arm-android)
1532override COMPILER_UNITTARGETDIR+=lib/$(CPU_TARGET)-$(OS_TARGET)/$(LCL_PLATFORM)
1533endif
1534ifeq ($(FULL_TARGET),powerpc64-linux)
1535override COMPILER_UNITTARGETDIR+=lib/$(CPU_TARGET)-$(OS_TARGET)/$(LCL_PLATFORM)
1536endif
1537ifeq ($(FULL_TARGET),powerpc64-darwin)
1538override COMPILER_UNITTARGETDIR+=lib/$(CPU_TARGET)-$(OS_TARGET)/$(LCL_PLATFORM)
1539endif
1540ifeq ($(FULL_TARGET),powerpc64-embedded)
1541override COMPILER_UNITTARGETDIR+=lib/$(CPU_TARGET)-$(OS_TARGET)/$(LCL_PLATFORM)
1542endif
1543ifeq ($(FULL_TARGET),powerpc64-aix)
1544override COMPILER_UNITTARGETDIR+=lib/$(CPU_TARGET)-$(OS_TARGET)/$(LCL_PLATFORM)
1545endif
1546ifeq ($(FULL_TARGET),avr-embedded)
1547override COMPILER_UNITTARGETDIR+=lib/$(CPU_TARGET)-$(OS_TARGET)/$(LCL_PLATFORM)
1548endif
1549ifeq ($(FULL_TARGET),armeb-linux)
1550override COMPILER_UNITTARGETDIR+=lib/$(CPU_TARGET)-$(OS_TARGET)/$(LCL_PLATFORM)
1551endif
1552ifeq ($(FULL_TARGET),armeb-embedded)
1553override COMPILER_UNITTARGETDIR+=lib/$(CPU_TARGET)-$(OS_TARGET)/$(LCL_PLATFORM)
1554endif
1555ifeq ($(FULL_TARGET),mips-linux)
1556override COMPILER_UNITTARGETDIR+=lib/$(CPU_TARGET)-$(OS_TARGET)/$(LCL_PLATFORM)
1557endif
1558ifeq ($(FULL_TARGET),mipsel-linux)
1559override COMPILER_UNITTARGETDIR+=lib/$(CPU_TARGET)-$(OS_TARGET)/$(LCL_PLATFORM)
1560endif
1561ifeq ($(FULL_TARGET),mipsel-embedded)
1562override COMPILER_UNITTARGETDIR+=lib/$(CPU_TARGET)-$(OS_TARGET)/$(LCL_PLATFORM)
1563endif
1564ifeq ($(FULL_TARGET),mipsel-android)
1565override COMPILER_UNITTARGETDIR+=lib/$(CPU_TARGET)-$(OS_TARGET)/$(LCL_PLATFORM)
1566endif
1567ifeq ($(FULL_TARGET),jvm-java)
1568override COMPILER_UNITTARGETDIR+=lib/$(CPU_TARGET)-$(OS_TARGET)/$(LCL_PLATFORM)
1569endif
1570ifeq ($(FULL_TARGET),jvm-android)
1571override COMPILER_UNITTARGETDIR+=lib/$(CPU_TARGET)-$(OS_TARGET)/$(LCL_PLATFORM)
1572endif
1573ifeq ($(FULL_TARGET),i8086-msdos)
1574override COMPILER_UNITTARGETDIR+=lib/$(CPU_TARGET)-$(OS_TARGET)/$(LCL_PLATFORM)
1575endif
1576ifeq ($(FULL_TARGET),i8086-win16)
1577override COMPILER_UNITTARGETDIR+=lib/$(CPU_TARGET)-$(OS_TARGET)/$(LCL_PLATFORM)
1578endif
1579ifeq ($(FULL_TARGET),aarch64-linux)
1580override COMPILER_UNITTARGETDIR+=lib/$(CPU_TARGET)-$(OS_TARGET)/$(LCL_PLATFORM)
1581endif
1582ifeq ($(FULL_TARGET),aarch64-darwin)
1583override COMPILER_UNITTARGETDIR+=lib/$(CPU_TARGET)-$(OS_TARGET)/$(LCL_PLATFORM)
1584endif
1585ifdef REQUIRE_UNITSDIR
1586override UNITSDIR+=$(REQUIRE_UNITSDIR)
1587endif
1588ifdef REQUIRE_PACKAGESDIR
1589override PACKAGESDIR+=$(REQUIRE_PACKAGESDIR)
1590endif
1591ifdef ZIPINSTALL
1592ifneq ($(findstring $(OS_TARGET),$(UNIXs)),)
1593UNIXHier=1
1594endif
1595else
1596ifneq ($(findstring $(OS_SOURCE),$(UNIXs)),)
1597UNIXHier=1
1598endif
1599endif
1600ifndef INSTALL_PREFIX
1601ifdef PREFIX
1602INSTALL_PREFIX=$(PREFIX)
1603endif
1604endif
1605ifndef INSTALL_PREFIX
1606ifdef UNIXHier
1607INSTALL_PREFIX=/usr/local
1608else
1609ifdef INSTALL_FPCPACKAGE
1610INSTALL_BASEDIR:=/pp
1611else
1612INSTALL_BASEDIR:=/$(PACKAGE_NAME)
1613endif
1614endif
1615endif
1616export INSTALL_PREFIX
1617ifdef INSTALL_FPCSUBDIR
1618export INSTALL_FPCSUBDIR
1619endif
1620ifndef DIST_DESTDIR
1621DIST_DESTDIR:=$(BASEDIR)
1622endif
1623export DIST_DESTDIR
1624ifndef COMPILER_UNITTARGETDIR
1625ifdef PACKAGEDIR_MAIN
1626COMPILER_UNITTARGETDIR=$(PACKAGEDIR_MAIN)/units/$(TARGETSUFFIX)
1627else
1628COMPILER_UNITTARGETDIR=units/$(TARGETSUFFIX)
1629endif
1630endif
1631ifndef COMPILER_TARGETDIR
1632COMPILER_TARGETDIR=.
1633endif
1634ifndef INSTALL_BASEDIR
1635ifdef UNIXHier
1636ifdef INSTALL_FPCPACKAGE
1637INSTALL_BASEDIR:=$(INSTALL_PREFIX)/lib/fpc/$(FPC_VERSION)
1638else
1639INSTALL_BASEDIR:=$(INSTALL_PREFIX)/lib/$(PACKAGE_NAME)
1640endif
1641else
1642INSTALL_BASEDIR:=$(INSTALL_PREFIX)
1643endif
1644endif
1645ifndef INSTALL_BINDIR
1646ifdef UNIXHier
1647INSTALL_BINDIR:=$(INSTALL_PREFIX)/bin
1648else
1649INSTALL_BINDIR:=$(INSTALL_BASEDIR)/bin
1650ifdef INSTALL_FPCPACKAGE
1651ifdef CROSSCOMPILE
1652ifdef CROSSINSTALL
1653INSTALL_BINDIR:=$(INSTALL_BINDIR)/$(SOURCESUFFIX)
1654else
1655INSTALL_BINDIR:=$(INSTALL_BINDIR)/$(TARGETSUFFIX)
1656endif
1657else
1658INSTALL_BINDIR:=$(INSTALL_BINDIR)/$(TARGETSUFFIX)
1659endif
1660endif
1661endif
1662endif
1663ifndef INSTALL_UNITDIR
1664INSTALL_UNITDIR:=$(INSTALL_BASEDIR)/units/$(TARGETSUFFIX)
1665ifdef INSTALL_FPCPACKAGE
1666ifdef PACKAGE_NAME
1667INSTALL_UNITDIR:=$(INSTALL_UNITDIR)/$(PACKAGE_NAME)
1668endif
1669endif
1670endif
1671ifndef INSTALL_LIBDIR
1672ifdef UNIXHier
1673INSTALL_LIBDIR:=$(INSTALL_PREFIX)/lib
1674else
1675INSTALL_LIBDIR:=$(INSTALL_UNITDIR)
1676endif
1677endif
1678ifndef INSTALL_SOURCEDIR
1679ifdef UNIXHier
1680ifdef BSDhier
1681SRCPREFIXDIR=share/src
1682else
1683ifdef linuxHier
1684SRCPREFIXDIR=share/src
1685else
1686SRCPREFIXDIR=src
1687endif
1688endif
1689ifdef INSTALL_FPCPACKAGE
1690ifdef INSTALL_FPCSUBDIR
1691INSTALL_SOURCEDIR:=$(INSTALL_PREFIX)/$(SRCPREFIXDIR)/fpc-$(FPC_VERSION)/$(INSTALL_FPCSUBDIR)/$(PACKAGE_NAME)
1692else
1693INSTALL_SOURCEDIR:=$(INSTALL_PREFIX)/$(SRCPREFIXDIR)/fpc-$(FPC_VERSION)/$(PACKAGE_NAME)
1694endif
1695else
1696INSTALL_SOURCEDIR:=$(INSTALL_PREFIX)/$(SRCPREFIXDIR)/$(PACKAGE_NAME)-$(PACKAGE_VERSION)
1697endif
1698else
1699ifdef INSTALL_FPCPACKAGE
1700ifdef INSTALL_FPCSUBDIR
1701INSTALL_SOURCEDIR:=$(INSTALL_BASEDIR)/source/$(INSTALL_FPCSUBDIR)/$(PACKAGE_NAME)
1702else
1703INSTALL_SOURCEDIR:=$(INSTALL_BASEDIR)/source/$(PACKAGE_NAME)
1704endif
1705else
1706INSTALL_SOURCEDIR:=$(INSTALL_BASEDIR)/source
1707endif
1708endif
1709endif
1710ifndef INSTALL_DOCDIR
1711ifdef UNIXHier
1712ifdef BSDhier
1713DOCPREFIXDIR=share/doc
1714else
1715ifdef linuxHier
1716DOCPREFIXDIR=share/doc
1717else
1718DOCPREFIXDIR=doc
1719endif
1720endif
1721ifdef INSTALL_FPCPACKAGE
1722INSTALL_DOCDIR:=$(INSTALL_PREFIX)/$(DOCPREFIXDIR)/fpc-$(FPC_VERSION)/$(PACKAGE_NAME)
1723else
1724INSTALL_DOCDIR:=$(INSTALL_PREFIX)/$(DOCPREFIXDIR)/$(PACKAGE_NAME)-$(PACKAGE_VERSION)
1725endif
1726else
1727ifdef INSTALL_FPCPACKAGE
1728INSTALL_DOCDIR:=$(INSTALL_BASEDIR)/doc/$(PACKAGE_NAME)
1729else
1730INSTALL_DOCDIR:=$(INSTALL_BASEDIR)/doc
1731endif
1732endif
1733endif
1734ifndef INSTALL_EXAMPLEDIR
1735ifdef UNIXHier
1736ifdef INSTALL_FPCPACKAGE
1737ifdef BSDhier
1738INSTALL_EXAMPLEDIR:=$(INSTALL_PREFIX)/share/examples/fpc-$(FPC_VERSION)/$(PACKAGE_NAME)
1739else
1740ifdef linuxHier
1741INSTALL_EXAMPLEDIR:=$(INSTALL_DOCDIR)/examples
1742else
1743INSTALL_EXAMPLEDIR:=$(INSTALL_PREFIX)/doc/fpc-$(FPC_VERSION)/examples/$(PACKAGE_NAME)
1744endif
1745endif
1746else
1747ifdef BSDhier
1748INSTALL_EXAMPLEDIR:=$(INSTALL_PREFIX)/share/examples/$(PACKAGE_NAME)-$(PACKAGE_VERSION)
1749else
1750ifdef linuxHier
1751INSTALL_EXAMPLEDIR:=$(INSTALL_DOCDIR)/examples/$(PACKAGE_NAME)-$(PACKAGE_VERSION)
1752else
1753INSTALL_EXAMPLEDIR:=$(INSTALL_PREFIX)/doc/$(PACKAGE_NAME)-$(PACKAGE_VERSION)
1754endif
1755endif
1756endif
1757else
1758ifdef INSTALL_FPCPACKAGE
1759INSTALL_EXAMPLEDIR:=$(INSTALL_BASEDIR)/examples/$(PACKAGE_NAME)
1760else
1761INSTALL_EXAMPLEDIR:=$(INSTALL_BASEDIR)/examples
1762endif
1763endif
1764endif
1765ifndef INSTALL_DATADIR
1766INSTALL_DATADIR=$(INSTALL_BASEDIR)
1767endif
1768ifndef INSTALL_SHAREDDIR
1769INSTALL_SHAREDDIR=$(INSTALL_PREFIX)/lib
1770endif
1771ifdef CROSSCOMPILE
1772ifndef CROSSBINDIR
1773CROSSBINDIR:=$(wildcard $(CROSSTARGETDIR)/bin/$(SOURCESUFFIX))
1774ifeq ($(CROSSBINDIR),)
1775CROSSBINDIR:=$(wildcard $(INSTALL_BASEDIR)/cross/$(TARGETSUFFIX)/bin/$(FULL_SOURCE))
1776endif
1777endif
1778else
1779CROSSBINDIR=
1780endif
1781BATCHEXT=.bat
1782LOADEREXT=.as
1783EXEEXT=.exe
1784PPLEXT=.ppl
1785PPUEXT=.ppu
1786OEXT=.o
1787ASMEXT=.s
1788SMARTEXT=.sl
1789STATICLIBEXT=.a
1790SHAREDLIBEXT=.so
1791SHAREDLIBPREFIX=libfp
1792STATICLIBPREFIX=libp
1793IMPORTLIBPREFIX=libimp
1794RSTEXT=.rst
1795EXEDBGEXT=.dbg
1796ifeq ($(OS_TARGET),go32v1)
1797STATICLIBPREFIX=
1798SHORTSUFFIX=v1
1799endif
1800ifeq ($(OS_TARGET),go32v2)
1801STATICLIBPREFIX=
1802SHORTSUFFIX=dos
1803IMPORTLIBPREFIX=
1804endif
1805ifeq ($(OS_TARGET),watcom)
1806STATICLIBPREFIX=
1807OEXT=.obj
1808ASMEXT=.asm
1809SHAREDLIBEXT=.dll
1810SHORTSUFFIX=wat
1811IMPORTLIBPREFIX=
1812endif
1813ifneq ($(CPU_TARGET),jvm)
1814ifeq ($(OS_TARGET),android)
1815BATCHEXT=.sh
1816EXEEXT=
1817HASSHAREDLIB=1
1818SHORTSUFFIX=lnx
1819endif
1820endif
1821ifeq ($(OS_TARGET),linux)
1822BATCHEXT=.sh
1823EXEEXT=
1824HASSHAREDLIB=1
1825SHORTSUFFIX=lnx
1826endif
1827ifeq ($(OS_TARGET),dragonfly)
1828BATCHEXT=.sh
1829EXEEXT=
1830HASSHAREDLIB=1
1831SHORTSUFFIX=df
1832endif
1833ifeq ($(OS_TARGET),freebsd)
1834BATCHEXT=.sh
1835EXEEXT=
1836HASSHAREDLIB=1
1837SHORTSUFFIX=fbs
1838endif
1839ifeq ($(OS_TARGET),netbsd)
1840BATCHEXT=.sh
1841EXEEXT=
1842HASSHAREDLIB=1
1843SHORTSUFFIX=nbs
1844endif
1845ifeq ($(OS_TARGET),openbsd)
1846BATCHEXT=.sh
1847EXEEXT=
1848HASSHAREDLIB=1
1849SHORTSUFFIX=obs
1850endif
1851ifeq ($(OS_TARGET),win32)
1852SHAREDLIBEXT=.dll
1853SHORTSUFFIX=w32
1854endif
1855ifeq ($(OS_TARGET),os2)
1856BATCHEXT=.cmd
1857AOUTEXT=.out
1858STATICLIBPREFIX=
1859SHAREDLIBEXT=.dll
1860SHORTSUFFIX=os2
1861ECHO=echo
1862IMPORTLIBPREFIX=
1863endif
1864ifeq ($(OS_TARGET),emx)
1865BATCHEXT=.cmd
1866AOUTEXT=.out
1867STATICLIBPREFIX=
1868SHAREDLIBEXT=.dll
1869SHORTSUFFIX=emx
1870ECHO=echo
1871IMPORTLIBPREFIX=
1872endif
1873ifeq ($(OS_TARGET),amiga)
1874EXEEXT=
1875SHAREDLIBEXT=.library
1876SHORTSUFFIX=amg
1877endif
1878ifeq ($(OS_TARGET),aros)
1879EXEEXT=
1880SHAREDLIBEXT=.library
1881SHORTSUFFIX=aros
1882endif
1883ifeq ($(OS_TARGET),morphos)
1884EXEEXT=
1885SHAREDLIBEXT=.library
1886SHORTSUFFIX=mos
1887endif
1888ifeq ($(OS_TARGET),atari)
1889EXEEXT=.ttp
1890SHORTSUFFIX=ata
1891endif
1892ifeq ($(OS_TARGET),beos)
1893BATCHEXT=.sh
1894EXEEXT=
1895SHORTSUFFIX=be
1896endif
1897ifeq ($(OS_TARGET),haiku)
1898BATCHEXT=.sh
1899EXEEXT=
1900SHORTSUFFIX=hai
1901endif
1902ifeq ($(OS_TARGET),solaris)
1903BATCHEXT=.sh
1904EXEEXT=
1905SHORTSUFFIX=sun
1906endif
1907ifeq ($(OS_TARGET),qnx)
1908BATCHEXT=.sh
1909EXEEXT=
1910SHORTSUFFIX=qnx
1911endif
1912ifeq ($(OS_TARGET),netware)
1913EXEEXT=.nlm
1914STATICLIBPREFIX=
1915SHORTSUFFIX=nw
1916IMPORTLIBPREFIX=imp
1917endif
1918ifeq ($(OS_TARGET),netwlibc)
1919EXEEXT=.nlm
1920STATICLIBPREFIX=
1921SHORTSUFFIX=nwl
1922IMPORTLIBPREFIX=imp
1923endif
1924ifeq ($(OS_TARGET),macos)
1925BATCHEXT=
1926EXEEXT=
1927DEBUGSYMEXT=.xcoff
1928SHORTSUFFIX=mac
1929IMPORTLIBPREFIX=imp
1930endif
1931ifneq ($(findstring $(OS_TARGET),darwin iphonesim),)
1932BATCHEXT=.sh
1933EXEEXT=
1934HASSHAREDLIB=1
1935SHORTSUFFIX=dwn
1936EXEDBGEXT=.dSYM
1937endif
1938ifeq ($(OS_TARGET),gba)
1939EXEEXT=.gba
1940SHAREDLIBEXT=.so
1941SHORTSUFFIX=gba
1942endif
1943ifeq ($(OS_TARGET),symbian)
1944SHAREDLIBEXT=.dll
1945SHORTSUFFIX=symbian
1946endif
1947ifeq ($(OS_TARGET),NativeNT)
1948SHAREDLIBEXT=.dll
1949SHORTSUFFIX=nativent
1950endif
1951ifeq ($(OS_TARGET),wii)
1952EXEEXT=.dol
1953SHAREDLIBEXT=.so
1954SHORTSUFFIX=wii
1955endif
1956ifeq ($(OS_TARGET),aix)
1957BATCHEXT=.sh
1958EXEEXT=
1959SHORTSUFFIX=aix
1960endif
1961ifeq ($(OS_TARGET),java)
1962OEXT=.class
1963ASMEXT=.j
1964SHAREDLIBEXT=.jar
1965SHORTSUFFIX=java
1966endif
1967ifeq ($(CPU_TARGET),jvm)
1968ifeq ($(OS_TARGET),android)
1969OEXT=.class
1970ASMEXT=.j
1971SHAREDLIBEXT=.jar
1972SHORTSUFFIX=android
1973endif
1974endif
1975ifeq ($(OS_TARGET),msdos)
1976STATICLIBPREFIX=
1977STATICLIBEXT=.a
1978SHORTSUFFIX=d16
1979endif
1980ifeq ($(OS_TARGET),embedded)
1981EXEEXT=.bin
1982SHORTSUFFIX=emb
1983endif
1984ifeq ($(OS_TARGET),win16)
1985STATICLIBPREFIX=
1986STATICLIBEXT=.a
1987SHAREDLIBEXT=.dll
1988SHORTSUFFIX=w16
1989endif
1990ifneq ($(findstring $(OS_SOURCE),$(LIMIT83fs)),)
1991FPCMADE=fpcmade.$(SHORTSUFFIX)
1992ZIPSUFFIX=$(SHORTSUFFIX)
1993ZIPCROSSPREFIX=
1994ZIPSOURCESUFFIX=src
1995ZIPEXAMPLESUFFIX=exm
1996else
1997FPCMADE=fpcmade.$(TARGETSUFFIX)
1998ZIPSOURCESUFFIX=.source
1999ZIPEXAMPLESUFFIX=.examples
2000ifdef CROSSCOMPILE
2001ZIPSUFFIX=.$(SOURCESUFFIX)
2002ZIPCROSSPREFIX=$(TARGETSUFFIX)-
2003else
2004ZIPSUFFIX=.$(TARGETSUFFIX)
2005ZIPCROSSPREFIX=
2006endif
2007endif
2008ifndef ECHO
2009ECHO:=$(strip $(wildcard $(addsuffix /gecho$(SRCEXEEXT),$(SEARCHPATH))))
2010ifeq ($(ECHO),)
2011ECHO:=$(strip $(wildcard $(addsuffix /echo$(SRCEXEEXT),$(SEARCHPATH))))
2012ifeq ($(ECHO),)
2013ECHO= __missing_command_ECHO
2014else
2015ECHO:=$(firstword $(ECHO))
2016endif
2017else
2018ECHO:=$(firstword $(ECHO))
2019endif
2020endif
2021export ECHO
2022ifndef DATE
2023DATE:=$(strip $(wildcard $(addsuffix /gdate$(SRCEXEEXT),$(SEARCHPATH))))
2024ifeq ($(DATE),)
2025DATE:=$(strip $(wildcard $(addsuffix /date$(SRCEXEEXT),$(SEARCHPATH))))
2026ifeq ($(DATE),)
2027DATE= __missing_command_DATE
2028else
2029DATE:=$(firstword $(DATE))
2030endif
2031else
2032DATE:=$(firstword $(DATE))
2033endif
2034endif
2035export DATE
2036ifndef GINSTALL
2037GINSTALL:=$(strip $(wildcard $(addsuffix /ginstall$(SRCEXEEXT),$(SEARCHPATH))))
2038ifeq ($(GINSTALL),)
2039GINSTALL:=$(strip $(wildcard $(addsuffix /install$(SRCEXEEXT),$(SEARCHPATH))))
2040ifeq ($(GINSTALL),)
2041GINSTALL= __missing_command_GINSTALL
2042else
2043GINSTALL:=$(firstword $(GINSTALL))
2044endif
2045else
2046GINSTALL:=$(firstword $(GINSTALL))
2047endif
2048endif
2049export GINSTALL
2050ifndef CPPROG
2051CPPROG:=$(strip $(wildcard $(addsuffix /cp$(SRCEXEEXT),$(SEARCHPATH))))
2052ifeq ($(CPPROG),)
2053CPPROG= __missing_command_CPPROG
2054else
2055CPPROG:=$(firstword $(CPPROG))
2056endif
2057endif
2058export CPPROG
2059ifndef RMPROG
2060RMPROG:=$(strip $(wildcard $(addsuffix /rm$(SRCEXEEXT),$(SEARCHPATH))))
2061ifeq ($(RMPROG),)
2062RMPROG= __missing_command_RMPROG
2063else
2064RMPROG:=$(firstword $(RMPROG))
2065endif
2066endif
2067export RMPROG
2068ifndef MVPROG
2069MVPROG:=$(strip $(wildcard $(addsuffix /mv$(SRCEXEEXT),$(SEARCHPATH))))
2070ifeq ($(MVPROG),)
2071MVPROG= __missing_command_MVPROG
2072else
2073MVPROG:=$(firstword $(MVPROG))
2074endif
2075endif
2076export MVPROG
2077ifndef MKDIRPROG
2078MKDIRPROG:=$(strip $(wildcard $(addsuffix /gmkdir$(SRCEXEEXT),$(SEARCHPATH))))
2079ifeq ($(MKDIRPROG),)
2080MKDIRPROG:=$(strip $(wildcard $(addsuffix /mkdir$(SRCEXEEXT),$(SEARCHPATH))))
2081ifeq ($(MKDIRPROG),)
2082MKDIRPROG= __missing_command_MKDIRPROG
2083else
2084MKDIRPROG:=$(firstword $(MKDIRPROG))
2085endif
2086else
2087MKDIRPROG:=$(firstword $(MKDIRPROG))
2088endif
2089endif
2090export MKDIRPROG
2091ifndef ECHOREDIR
2092ifndef inUnix
2093ECHOREDIR=echo
2094else
2095ECHOREDIR=$(ECHO)
2096endif
2097endif
2098ifndef COPY
2099COPY:=$(CPPROG) -fp
2100endif
2101ifndef COPYTREE
2102COPYTREE:=$(CPPROG) -Rfp
2103endif
2104ifndef MKDIRTREE
2105MKDIRTREE:=$(MKDIRPROG) -p
2106endif
2107ifndef MOVE
2108MOVE:=$(MVPROG) -f
2109endif
2110ifndef DEL
2111DEL:=$(RMPROG) -f
2112endif
2113ifndef DELTREE
2114DELTREE:=$(RMPROG) -rf
2115endif
2116ifndef INSTALL
2117ifdef inUnix
2118INSTALL:=$(GINSTALL) -c -m 644
2119else
2120INSTALL:=$(COPY)
2121endif
2122endif
2123ifndef INSTALLEXE
2124ifdef inUnix
2125INSTALLEXE:=$(GINSTALL) -c -m 755
2126else
2127INSTALLEXE:=$(COPY)
2128endif
2129endif
2130ifndef MKDIR
2131MKDIR:=$(GINSTALL) -m 755 -d
2132endif
2133export ECHOREDIR COPY COPYTREE MOVE DEL DELTREE INSTALL INSTALLEXE MKDIR
2134ifndef PPUMOVE
2135PPUMOVE:=$(strip $(wildcard $(addsuffix /ppumove$(SRCEXEEXT),$(SEARCHPATH))))
2136ifeq ($(PPUMOVE),)
2137PPUMOVE= __missing_command_PPUMOVE
2138else
2139PPUMOVE:=$(firstword $(PPUMOVE))
2140endif
2141endif
2142export PPUMOVE
2143ifndef FPCMAKE
2144FPCMAKE:=$(strip $(wildcard $(addsuffix /fpcmake$(SRCEXEEXT),$(SEARCHPATH))))
2145ifeq ($(FPCMAKE),)
2146FPCMAKE= __missing_command_FPCMAKE
2147else
2148FPCMAKE:=$(firstword $(FPCMAKE))
2149endif
2150endif
2151export FPCMAKE
2152ifndef ZIPPROG
2153ZIPPROG:=$(strip $(wildcard $(addsuffix /zip$(SRCEXEEXT),$(SEARCHPATH))))
2154ifeq ($(ZIPPROG),)
2155ZIPPROG= __missing_command_ZIPPROG
2156else
2157ZIPPROG:=$(firstword $(ZIPPROG))
2158endif
2159endif
2160export ZIPPROG
2161ifndef TARPROG
2162TARPROG:=$(strip $(wildcard $(addsuffix /gtar$(SRCEXEEXT),$(SEARCHPATH))))
2163ifeq ($(TARPROG),)
2164TARPROG:=$(strip $(wildcard $(addsuffix /tar$(SRCEXEEXT),$(SEARCHPATH))))
2165ifeq ($(TARPROG),)
2166TARPROG= __missing_command_TARPROG
2167else
2168TARPROG:=$(firstword $(TARPROG))
2169endif
2170else
2171TARPROG:=$(firstword $(TARPROG))
2172endif
2173endif
2174export TARPROG
2175ASNAME=$(BINUTILSPREFIX)as
2176LDNAME=$(BINUTILSPREFIX)ld
2177ARNAME=$(BINUTILSPREFIX)ar
2178RCNAME=$(BINUTILSPREFIX)rc
2179NASMNAME=$(BINUTILSPREFIX)nasm
2180ifndef ASPROG
2181ifdef CROSSBINDIR
2182ASPROG=$(CROSSBINDIR)/$(ASNAME)$(SRCEXEEXT)
2183else
2184ASPROG=$(ASNAME)
2185endif
2186endif
2187ifndef LDPROG
2188ifdef CROSSBINDIR
2189LDPROG=$(CROSSBINDIR)/$(LDNAME)$(SRCEXEEXT)
2190else
2191LDPROG=$(LDNAME)
2192endif
2193endif
2194ifndef RCPROG
2195ifdef CROSSBINDIR
2196RCPROG=$(CROSSBINDIR)/$(RCNAME)$(SRCEXEEXT)
2197else
2198RCPROG=$(RCNAME)
2199endif
2200endif
2201ifndef ARPROG
2202ifdef CROSSBINDIR
2203ARPROG=$(CROSSBINDIR)/$(ARNAME)$(SRCEXEEXT)
2204else
2205ARPROG=$(ARNAME)
2206endif
2207endif
2208ifndef NASMPROG
2209ifdef CROSSBINDIR
2210NASMPROG=$(CROSSBINDIR)/$(NASMNAME)$(SRCEXEEXT)
2211else
2212NASMPROG=$(NASMNAME)
2213endif
2214endif
2215AS=$(ASPROG)
2216LD=$(LDPROG)
2217RC=$(RCPROG)
2218AR=$(ARPROG)
2219NASM=$(NASMPROG)
2220ifdef inUnix
2221PPAS=./ppas$(SRCBATCHEXT)
2222else
2223PPAS=ppas$(SRCBATCHEXT)
2224endif
2225ifdef inUnix
2226LDCONFIG=ldconfig
2227else
2228LDCONFIG=
2229endif
2230ifdef DATE
2231DATESTR:=$(shell $(DATE) +%Y%m%d)
2232else
2233DATESTR=
2234endif
2235ZIPOPT=-9
2236ZIPEXT=.zip
2237ifeq ($(USETAR),bz2)
2238TAROPT=vj
2239TAREXT=.tar.bz2
2240else
2241TAROPT=vz
2242TAREXT=.tar.gz
2243endif
2244override REQUIRE_PACKAGES=rtl 
2245ifeq ($(FULL_TARGET),i386-linux)
2246REQUIRE_PACKAGES_RTL=1
2247endif
2248ifeq ($(FULL_TARGET),i386-go32v2)
2249REQUIRE_PACKAGES_RTL=1
2250endif
2251ifeq ($(FULL_TARGET),i386-win32)
2252REQUIRE_PACKAGES_RTL=1
2253endif
2254ifeq ($(FULL_TARGET),i386-os2)
2255REQUIRE_PACKAGES_RTL=1
2256endif
2257ifeq ($(FULL_TARGET),i386-freebsd)
2258REQUIRE_PACKAGES_RTL=1
2259endif
2260ifeq ($(FULL_TARGET),i386-beos)
2261REQUIRE_PACKAGES_RTL=1
2262endif
2263ifeq ($(FULL_TARGET),i386-haiku)
2264REQUIRE_PACKAGES_RTL=1
2265endif
2266ifeq ($(FULL_TARGET),i386-netbsd)
2267REQUIRE_PACKAGES_RTL=1
2268endif
2269ifeq ($(FULL_TARGET),i386-solaris)
2270REQUIRE_PACKAGES_RTL=1
2271endif
2272ifeq ($(FULL_TARGET),i386-qnx)
2273REQUIRE_PACKAGES_RTL=1
2274endif
2275ifeq ($(FULL_TARGET),i386-netware)
2276REQUIRE_PACKAGES_RTL=1
2277endif
2278ifeq ($(FULL_TARGET),i386-openbsd)
2279REQUIRE_PACKAGES_RTL=1
2280endif
2281ifeq ($(FULL_TARGET),i386-wdosx)
2282REQUIRE_PACKAGES_RTL=1
2283endif
2284ifeq ($(FULL_TARGET),i386-darwin)
2285REQUIRE_PACKAGES_RTL=1
2286endif
2287ifeq ($(FULL_TARGET),i386-emx)
2288REQUIRE_PACKAGES_RTL=1
2289endif
2290ifeq ($(FULL_TARGET),i386-watcom)
2291REQUIRE_PACKAGES_RTL=1
2292endif
2293ifeq ($(FULL_TARGET),i386-netwlibc)
2294REQUIRE_PACKAGES_RTL=1
2295endif
2296ifeq ($(FULL_TARGET),i386-wince)
2297REQUIRE_PACKAGES_RTL=1
2298endif
2299ifeq ($(FULL_TARGET),i386-embedded)
2300REQUIRE_PACKAGES_RTL=1
2301endif
2302ifeq ($(FULL_TARGET),i386-symbian)
2303REQUIRE_PACKAGES_RTL=1
2304endif
2305ifeq ($(FULL_TARGET),i386-nativent)
2306REQUIRE_PACKAGES_RTL=1
2307endif
2308ifeq ($(FULL_TARGET),i386-iphonesim)
2309REQUIRE_PACKAGES_RTL=1
2310endif
2311ifeq ($(FULL_TARGET),i386-android)
2312REQUIRE_PACKAGES_RTL=1
2313endif
2314ifeq ($(FULL_TARGET),i386-aros)
2315REQUIRE_PACKAGES_RTL=1
2316endif
2317ifeq ($(FULL_TARGET),m68k-linux)
2318REQUIRE_PACKAGES_RTL=1
2319endif
2320ifeq ($(FULL_TARGET),m68k-freebsd)
2321REQUIRE_PACKAGES_RTL=1
2322endif
2323ifeq ($(FULL_TARGET),m68k-netbsd)
2324REQUIRE_PACKAGES_RTL=1
2325endif
2326ifeq ($(FULL_TARGET),m68k-amiga)
2327REQUIRE_PACKAGES_RTL=1
2328endif
2329ifeq ($(FULL_TARGET),m68k-atari)
2330REQUIRE_PACKAGES_RTL=1
2331endif
2332ifeq ($(FULL_TARGET),m68k-openbsd)
2333REQUIRE_PACKAGES_RTL=1
2334endif
2335ifeq ($(FULL_TARGET),m68k-palmos)
2336REQUIRE_PACKAGES_RTL=1
2337endif
2338ifeq ($(FULL_TARGET),m68k-embedded)
2339REQUIRE_PACKAGES_RTL=1
2340endif
2341ifeq ($(FULL_TARGET),powerpc-linux)
2342REQUIRE_PACKAGES_RTL=1
2343endif
2344ifeq ($(FULL_TARGET),powerpc-netbsd)
2345REQUIRE_PACKAGES_RTL=1
2346endif
2347ifeq ($(FULL_TARGET),powerpc-amiga)
2348REQUIRE_PACKAGES_RTL=1
2349endif
2350ifeq ($(FULL_TARGET),powerpc-macos)
2351REQUIRE_PACKAGES_RTL=1
2352endif
2353ifeq ($(FULL_TARGET),powerpc-darwin)
2354REQUIRE_PACKAGES_RTL=1
2355endif
2356ifeq ($(FULL_TARGET),powerpc-morphos)
2357REQUIRE_PACKAGES_RTL=1
2358endif
2359ifeq ($(FULL_TARGET),powerpc-embedded)
2360REQUIRE_PACKAGES_RTL=1
2361endif
2362ifeq ($(FULL_TARGET),powerpc-wii)
2363REQUIRE_PACKAGES_RTL=1
2364endif
2365ifeq ($(FULL_TARGET),powerpc-aix)
2366REQUIRE_PACKAGES_RTL=1
2367endif
2368ifeq ($(FULL_TARGET),sparc-linux)
2369REQUIRE_PACKAGES_RTL=1
2370endif
2371ifeq ($(FULL_TARGET),sparc-netbsd)
2372REQUIRE_PACKAGES_RTL=1
2373endif
2374ifeq ($(FULL_TARGET),sparc-solaris)
2375REQUIRE_PACKAGES_RTL=1
2376endif
2377ifeq ($(FULL_TARGET),sparc-embedded)
2378REQUIRE_PACKAGES_RTL=1
2379endif
2380ifeq ($(FULL_TARGET),x86_64-linux)
2381REQUIRE_PACKAGES_RTL=1
2382endif
2383ifeq ($(FULL_TARGET),x86_64-freebsd)
2384REQUIRE_PACKAGES_RTL=1
2385endif
2386ifeq ($(FULL_TARGET),x86_64-netbsd)
2387REQUIRE_PACKAGES_RTL=1
2388endif
2389ifeq ($(FULL_TARGET),x86_64-solaris)
2390REQUIRE_PACKAGES_RTL=1
2391endif
2392ifeq ($(FULL_TARGET),x86_64-openbsd)
2393REQUIRE_PACKAGES_RTL=1
2394endif
2395ifeq ($(FULL_TARGET),x86_64-darwin)
2396REQUIRE_PACKAGES_RTL=1
2397endif
2398ifeq ($(FULL_TARGET),x86_64-win64)
2399REQUIRE_PACKAGES_RTL=1
2400endif
2401ifeq ($(FULL_TARGET),x86_64-embedded)
2402REQUIRE_PACKAGES_RTL=1
2403endif
2404ifeq ($(FULL_TARGET),x86_64-iphonesim)
2405REQUIRE_PACKAGES_RTL=1
2406endif
2407ifeq ($(FULL_TARGET),x86_64-aros)
2408REQUIRE_PACKAGES_RTL=1
2409endif
2410ifeq ($(FULL_TARGET),x86_64-dragonfly)
2411REQUIRE_PACKAGES_RTL=1
2412endif
2413ifeq ($(FULL_TARGET),arm-linux)
2414REQUIRE_PACKAGES_RTL=1
2415endif
2416ifeq ($(FULL_TARGET),arm-palmos)
2417REQUIRE_PACKAGES_RTL=1
2418endif
2419ifeq ($(FULL_TARGET),arm-darwin)
2420REQUIRE_PACKAGES_RTL=1
2421endif
2422ifeq ($(FULL_TARGET),arm-wince)
2423REQUIRE_PACKAGES_RTL=1
2424endif
2425ifeq ($(FULL_TARGET),arm-gba)
2426REQUIRE_PACKAGES_RTL=1
2427endif
2428ifeq ($(FULL_TARGET),arm-nds)
2429REQUIRE_PACKAGES_RTL=1
2430endif
2431ifeq ($(FULL_TARGET),arm-embedded)
2432REQUIRE_PACKAGES_RTL=1
2433endif
2434ifeq ($(FULL_TARGET),arm-symbian)
2435REQUIRE_PACKAGES_RTL=1
2436endif
2437ifeq ($(FULL_TARGET),arm-android)
2438REQUIRE_PACKAGES_RTL=1
2439endif
2440ifeq ($(FULL_TARGET),powerpc64-linux)
2441REQUIRE_PACKAGES_RTL=1
2442endif
2443ifeq ($(FULL_TARGET),powerpc64-darwin)
2444REQUIRE_PACKAGES_RTL=1
2445endif
2446ifeq ($(FULL_TARGET),powerpc64-embedded)
2447REQUIRE_PACKAGES_RTL=1
2448endif
2449ifeq ($(FULL_TARGET),powerpc64-aix)
2450REQUIRE_PACKAGES_RTL=1
2451endif
2452ifeq ($(FULL_TARGET),avr-embedded)
2453REQUIRE_PACKAGES_RTL=1
2454endif
2455ifeq ($(FULL_TARGET),armeb-linux)
2456REQUIRE_PACKAGES_RTL=1
2457endif
2458ifeq ($(FULL_TARGET),armeb-embedded)
2459REQUIRE_PACKAGES_RTL=1
2460endif
2461ifeq ($(FULL_TARGET),mips-linux)
2462REQUIRE_PACKAGES_RTL=1
2463endif
2464ifeq ($(FULL_TARGET),mipsel-linux)
2465REQUIRE_PACKAGES_RTL=1
2466endif
2467ifeq ($(FULL_TARGET),mipsel-embedded)
2468REQUIRE_PACKAGES_RTL=1
2469endif
2470ifeq ($(FULL_TARGET),mipsel-android)
2471REQUIRE_PACKAGES_RTL=1
2472endif
2473ifeq ($(FULL_TARGET),jvm-java)
2474REQUIRE_PACKAGES_RTL=1
2475endif
2476ifeq ($(FULL_TARGET),jvm-android)
2477REQUIRE_PACKAGES_RTL=1
2478endif
2479ifeq ($(FULL_TARGET),i8086-msdos)
2480REQUIRE_PACKAGES_RTL=1
2481endif
2482ifeq ($(FULL_TARGET),i8086-win16)
2483REQUIRE_PACKAGES_RTL=1
2484endif
2485ifeq ($(FULL_TARGET),aarch64-linux)
2486REQUIRE_PACKAGES_RTL=1
2487endif
2488ifeq ($(FULL_TARGET),aarch64-darwin)
2489REQUIRE_PACKAGES_RTL=1
2490endif
2491ifdef REQUIRE_PACKAGES_RTL
2492PACKAGEDIR_RTL:=$(firstword $(subst /Makefile.fpc,,$(strip $(wildcard $(addsuffix /rtl/Makefile.fpc,$(PACKAGESDIR))))))
2493ifneq ($(PACKAGEDIR_RTL),)
2494ifneq ($(wildcard $(PACKAGEDIR_RTL)/units/$(TARGETSUFFIX)),)
2495UNITDIR_RTL=$(PACKAGEDIR_RTL)/units/$(TARGETSUFFIX)
2496else
2497UNITDIR_RTL=$(PACKAGEDIR_RTL)
2498endif
2499ifneq ($(wildcard $(PACKAGEDIR_RTL)/units/$(SOURCESUFFIX)),)
2500UNITDIR_FPMAKE_RTL=$(PACKAGEDIR_RTL)/units/$(SOURCESUFFIX)
2501else
2502ifneq ($(wildcard $(PACKAGEDIR_RTL)/units_bs/$(SOURCESUFFIX)),)
2503UNITDIR_FPMAKE_RTL=$(PACKAGEDIR_RTL)/units_bs/$(SOURCESUFFIX)
2504else
2505UNITDIR_FPMAKE_RTL=$(PACKAGEDIR_RTL)
2506endif
2507endif
2508ifdef CHECKDEPEND
2509$(PACKAGEDIR_RTL)/$(OS_TARGET)/$(FPCMADE):
2510	$(MAKE) -C $(PACKAGEDIR_RTL)/$(OS_TARGET) $(FPCMADE)
2511override ALLDEPENDENCIES+=$(PACKAGEDIR_RTL)/$(OS_TARGET)/$(FPCMADE)
2512endif
2513else
2514PACKAGEDIR_RTL=
2515UNITDIR_RTL:=$(subst /Package.fpc,,$(strip $(wildcard $(addsuffix /rtl/Package.fpc,$(UNITSDIR)))))
2516ifneq ($(UNITDIR_RTL),)
2517UNITDIR_RTL:=$(firstword $(UNITDIR_RTL))
2518else
2519UNITDIR_RTL=
2520endif
2521endif
2522ifdef UNITDIR_RTL
2523override COMPILER_UNITDIR+=$(UNITDIR_RTL)
2524endif
2525ifdef UNITDIR_FPMAKE_RTL
2526override COMPILER_FPMAKE_UNITDIR+=$(UNITDIR_FPMAKE_RTL)
2527endif
2528endif
2529ifndef NOCPUDEF
2530override FPCOPTDEF=$(ARCH)
2531endif
2532ifneq ($(OS_TARGET),$(OS_SOURCE))
2533override FPCOPT+=-T$(OS_TARGET)
2534endif
2535ifneq ($(CPU_TARGET),$(CPU_SOURCE))
2536override FPCOPT+=-P$(ARCH)
2537endif
2538ifeq ($(OS_SOURCE),openbsd)
2539override FPCOPT+=-FD$(NEW_BINUTILS_PATH)
2540override FPCMAKEOPT+=-FD$(NEW_BINUTILS_PATH)
2541override FPMAKE_BUILD_OPT+=-FD$(NEW_BINUTILS_PATH)
2542endif
2543ifndef CROSSBOOTSTRAP
2544ifneq ($(BINUTILSPREFIX),)
2545override FPCOPT+=-XP$(BINUTILSPREFIX)
2546endif
2547ifneq ($(BINUTILSPREFIX),)
2548override FPCOPT+=-Xr$(RLINKPATH)
2549endif
2550endif
2551ifndef CROSSCOMPILE
2552ifneq ($(BINUTILSPREFIX),)
2553override FPCMAKEOPT+=-XP$(BINUTILSPREFIX)
2554override FPMAKE_BUILD_OPT+=-XP$(BINUTILSPREFIX)
2555endif
2556endif
2557ifdef UNITDIR
2558override FPCOPT+=$(addprefix -Fu,$(UNITDIR))
2559endif
2560ifdef LIBDIR
2561override FPCOPT+=$(addprefix -Fl,$(LIBDIR))
2562endif
2563ifdef OBJDIR
2564override FPCOPT+=$(addprefix -Fo,$(OBJDIR))
2565endif
2566ifdef INCDIR
2567override FPCOPT+=$(addprefix -Fi,$(INCDIR))
2568endif
2569ifdef LINKSMART
2570override FPCOPT+=-XX
2571endif
2572ifdef CREATESMART
2573override FPCOPT+=-CX
2574endif
2575ifdef DEBUG
2576override FPCOPT+=-gl
2577override FPCOPTDEF+=DEBUG
2578endif
2579ifdef RELEASE
2580ifneq ($(findstring 2.0.,$(FPC_VERSION)),)
2581ifeq ($(CPU_TARGET),i386)
2582FPCCPUOPT:=-OG2p3
2583endif
2584ifeq ($(CPU_TARGET),powerpc)
2585FPCCPUOPT:=-O1r
2586endif
2587else
2588FPCCPUOPT:=-O2
2589endif
2590override FPCOPT+=-Ur -Xs $(FPCCPUOPT) -n
2591override FPCOPTDEF+=RELEASE
2592endif
2593ifdef STRIP
2594override FPCOPT+=-Xs
2595endif
2596ifdef OPTIMIZE
2597override FPCOPT+=-O2
2598endif
2599ifdef VERBOSE
2600override FPCOPT+=-vwni
2601endif
2602ifdef COMPILER_OPTIONS
2603override FPCOPT+=$(COMPILER_OPTIONS)
2604endif
2605ifdef COMPILER_UNITDIR
2606override FPCOPT+=$(addprefix -Fu,$(COMPILER_UNITDIR))
2607endif
2608ifdef COMPILER_LIBRARYDIR
2609override FPCOPT+=$(addprefix -Fl,$(COMPILER_LIBRARYDIR))
2610endif
2611ifdef COMPILER_OBJECTDIR
2612override FPCOPT+=$(addprefix -Fo,$(COMPILER_OBJECTDIR))
2613endif
2614ifdef COMPILER_INCLUDEDIR
2615override FPCOPT+=$(addprefix -Fi,$(COMPILER_INCLUDEDIR))
2616endif
2617ifdef CROSSBINDIR
2618override FPCOPT+=-FD$(CROSSBINDIR)
2619endif
2620ifdef COMPILER_TARGETDIR
2621override FPCOPT+=-FE$(COMPILER_TARGETDIR)
2622ifeq ($(COMPILER_TARGETDIR),.)
2623override TARGETDIRPREFIX=
2624else
2625override TARGETDIRPREFIX=$(COMPILER_TARGETDIR)/
2626endif
2627endif
2628ifdef COMPILER_UNITTARGETDIR
2629override FPCOPT+=-FU$(COMPILER_UNITTARGETDIR)
2630ifeq ($(COMPILER_UNITTARGETDIR),.)
2631override UNITTARGETDIRPREFIX=
2632else
2633override UNITTARGETDIRPREFIX=$(COMPILER_UNITTARGETDIR)/
2634endif
2635else
2636ifdef COMPILER_TARGETDIR
2637override COMPILER_UNITTARGETDIR=$(COMPILER_TARGETDIR)
2638override UNITTARGETDIRPREFIX=$(TARGETDIRPREFIX)
2639endif
2640endif
2641ifdef CREATESHARED
2642override FPCOPT+=-Cg
2643endif
2644ifneq ($(findstring $(OS_TARGET),dragonfly freebsd openbsd netbsd linux solaris),)
2645ifneq ($(findstring $(CPU_TARGET),x86_64 mips mipsel),)
2646override FPCOPT+=-Cg
2647endif
2648endif
2649ifdef LINKSHARED
2650endif
2651ifdef OPT
2652override FPCOPT+=$(OPT)
2653endif
2654ifdef FPMAKEBUILDOPT
2655override FPMAKE_BUILD_OPT+=$(FPMAKEBUILDOPT)
2656endif
2657ifdef FPCOPTDEF
2658override FPCOPT+=$(addprefix -d,$(FPCOPTDEF))
2659endif
2660ifdef CFGFILE
2661override FPCOPT+=@$(CFGFILE)
2662endif
2663ifdef USEENV
2664override FPCEXTCMD:=$(FPCOPT)
2665override FPCOPT:=!FPCEXTCMD
2666export FPCEXTCMD
2667endif
2668override AFULL_TARGET=$(CPU_TARGET)-$(OS_TARGET)
2669override AFULL_SOURCE=$(CPU_SOURCE)-$(OS_SOURCE)
2670ifneq ($(AFULL_TARGET),$(AFULL_SOURCE))
2671override ACROSSCOMPILE=1
2672endif
2673ifdef ACROSSCOMPILE
2674override FPCOPT+=$(CROSSOPT)
2675endif
2676override COMPILER:=$(strip $(FPC) $(FPCOPT))
2677ifneq (,$(findstring -sh ,$(COMPILER)))
2678UseEXECPPAS=1
2679endif
2680ifneq (,$(findstring -s ,$(COMPILER)))
2681ifeq ($(FULL_SOURCE),$(FULL_TARGET))
2682UseEXECPPAS=1
2683endif
2684endif
2685ifneq ($(UseEXECPPAS),1)
2686EXECPPAS=
2687else
2688ifdef RUNBATCH
2689EXECPPAS:=@$(RUNBATCH) $(PPAS)
2690else
2691EXECPPAS:=@$(PPAS)
2692endif
2693endif
2694.PHONY: fpc_units
2695ifneq ($(TARGET_UNITS)$(TARGET_IMPLICITUNITS),)
2696override ALLTARGET+=fpc_units
2697override UNITPPUFILES=$(addsuffix $(PPUEXT),$(TARGET_UNITS))
2698override IMPLICITUNITPPUFILES=$(addsuffix $(PPUEXT),$(TARGET_IMPLICITUNITS))
2699override INSTALLPPUFILES+=$(UNITPPUFILES) $(IMPLICITUNITPPUFILES)
2700override CLEANPPUFILES+=$(UNITPPUFILES) $(IMPLICITUNITPPUFILES)
2701endif
2702fpc_units: $(COMPILER_UNITTARGETDIR) $(UNITPPUFILES)
2703ifdef TARGET_RSTS
2704override RSTFILES=$(addsuffix $(RSTEXT),$(TARGET_RSTS))
2705override CLEANRSTFILES+=$(RSTFILES)
2706endif
2707.PHONY: fpc_all fpc_smart fpc_debug fpc_release fpc_shared
2708$(FPCMADE): $(ALLDEPENDENCIES) $(ALLTARGET)
2709	@$(ECHOREDIR) Compiled > $(FPCMADE)
2710fpc_all: $(FPCMADE)
2711fpc_smart:
2712	$(MAKE) all LINKSMART=1 CREATESMART=1
2713fpc_debug:
2714	$(MAKE) all DEBUG=1
2715fpc_release:
2716	$(MAKE) all RELEASE=1
2717.SUFFIXES: $(EXEEXT) $(PPUEXT) $(OEXT) .pas .lpr .dpr .pp .rc .res
2718$(COMPILER_UNITTARGETDIR):
2719	$(MKDIRTREE) $(COMPILER_UNITTARGETDIR)
2720$(COMPILER_TARGETDIR):
2721	$(MKDIRTREE) $(COMPILER_TARGETDIR)
2722%$(PPUEXT): %.pp
2723	$(COMPILER) $<
2724	$(EXECPPAS)
2725%$(PPUEXT): %.pas
2726	$(COMPILER) $<
2727	$(EXECPPAS)
2728%$(EXEEXT): %.pp
2729	$(COMPILER) $<
2730	$(EXECPPAS)
2731%$(EXEEXT): %.pas
2732	$(COMPILER) $<
2733	$(EXECPPAS)
2734%$(EXEEXT): %.lpr
2735	$(COMPILER) $<
2736	$(EXECPPAS)
2737%$(EXEEXT): %.dpr
2738	$(COMPILER) $<
2739	$(EXECPPAS)
2740%.res: %.rc
2741	windres -i $< -o $@
2742vpath %.pp $(COMPILER_SOURCEDIR) $(COMPILER_INCLUDEDIR)
2743vpath %.pas $(COMPILER_SOURCEDIR) $(COMPILER_INCLUDEDIR)
2744vpath %.lpr $(COMPILER_SOURCEDIR) $(COMPILER_INCLUDEDIR)
2745vpath %.dpr $(COMPILER_SOURCEDIR) $(COMPILER_INCLUDEDIR)
2746vpath %.inc $(COMPILER_INCLUDEDIR)
2747vpath %$(OEXT) $(COMPILER_UNITTARGETDIR)
2748vpath %$(PPUEXT) $(COMPILER_UNITTARGETDIR)
2749.PHONY: fpc_shared
2750override INSTALLTARGET+=fpc_shared_install
2751ifndef SHARED_LIBVERSION
2752SHARED_LIBVERSION=$(FPC_VERSION)
2753endif
2754ifndef SHARED_LIBNAME
2755SHARED_LIBNAME=$(PACKAGE_NAME)
2756endif
2757ifndef SHARED_FULLNAME
2758SHARED_FULLNAME=$(SHAREDLIBPREFIX)$(SHARED_LIBNAME)-$(SHARED_LIBVERSION)$(SHAREDLIBEXT)
2759endif
2760ifndef SHARED_LIBUNITS
2761SHARED_LIBUNITS:=$(TARGET_UNITS) $(TARGET_IMPLICITUNITS)
2762override SHARED_LIBUNITS:=$(filter-out $(INSTALL_BUILDUNIT),$(SHARED_LIBUNITS))
2763endif
2764fpc_shared:
2765ifdef HASSHAREDLIB
2766	$(MAKE) all CREATESHARED=1 LINKSHARED=1 CREATESMART=1
2767ifneq ($(SHARED_BUILD),n)
2768	$(PPUMOVE) -q $(SHARED_LIBUNITS) -i$(COMPILER_UNITTARGETDIR) -o$(SHARED_FULLNAME) -d$(COMPILER_UNITTARGETDIR)
2769endif
2770else
2771	@$(ECHO) Shared Libraries not supported
2772endif
2773fpc_shared_install:
2774ifneq ($(SHARED_BUILD),n)
2775ifneq ($(SHARED_LIBUNITS),)
2776ifneq ($(wildcard $(COMPILER_UNITTARGETDIR)/$(SHARED_FULLNAME)),)
2777	$(INSTALL) $(COMPILER_UNITTARGETDIR)/$(SHARED_FULLNAME) $(INSTALL_SHAREDDIR)
2778endif
2779endif
2780endif
2781.PHONY: fpc_install fpc_sourceinstall fpc_exampleinstall
2782ifdef INSTALL_UNITS
2783override INSTALLPPUFILES+=$(addsuffix $(PPUEXT),$(INSTALL_UNITS))
2784endif
2785ifdef INSTALL_BUILDUNIT
2786override INSTALLPPUFILES:=$(filter-out $(INSTALL_BUILDUNIT)$(PPUEXT),$(INSTALLPPUFILES))
2787endif
2788ifdef INSTALLPPUFILES
2789override INSTALLPPULINKFILES:=$(subst $(PPUEXT),$(OEXT),$(INSTALLPPUFILES)) $(addprefix $(STATICLIBPREFIX),$(subst $(PPUEXT),$(STATICLIBEXT),$(INSTALLPPUFILES))) $(addprefix $(IMPORTLIBPREFIX),$(subst $(PPUEXT),$(STATICLIBEXT),$(INSTALLPPUFILES)))
2790ifneq ($(UNITTARGETDIRPREFIX),)
2791override INSTALLPPUFILES:=$(addprefix $(UNITTARGETDIRPREFIX),$(notdir $(INSTALLPPUFILES)))
2792override INSTALLPPULINKFILES:=$(wildcard $(addprefix $(UNITTARGETDIRPREFIX),$(notdir $(INSTALLPPULINKFILES))))
2793endif
2794override INSTALL_CREATEPACKAGEFPC=1
2795endif
2796ifdef INSTALLEXEFILES
2797ifneq ($(TARGETDIRPREFIX),)
2798override INSTALLEXEFILES:=$(addprefix $(TARGETDIRPREFIX),$(notdir $(INSTALLEXEFILES)))
2799endif
2800endif
2801fpc_install: all $(INSTALLTARGET)
2802ifdef INSTALLEXEFILES
2803	$(MKDIR) $(INSTALL_BINDIR)
2804	$(INSTALLEXE) $(INSTALLEXEFILES) $(INSTALL_BINDIR)
2805endif
2806ifdef INSTALL_CREATEPACKAGEFPC
2807ifdef FPCMAKE
2808ifdef PACKAGE_VERSION
2809ifneq ($(wildcard Makefile.fpc),)
2810	$(FPCMAKE) -p -T$(CPU_TARGET)-$(OS_TARGET) Makefile.fpc
2811	$(MKDIR) $(INSTALL_UNITDIR)
2812	$(INSTALL) Package.fpc $(INSTALL_UNITDIR)
2813endif
2814endif
2815endif
2816endif
2817ifdef INSTALLPPUFILES
2818	$(MKDIR) $(INSTALL_UNITDIR)
2819	$(INSTALL) $(INSTALLPPUFILES) $(INSTALL_UNITDIR)
2820ifneq ($(INSTALLPPULINKFILES),)
2821	$(INSTALL) $(INSTALLPPULINKFILES) $(INSTALL_UNITDIR)
2822endif
2823ifneq ($(wildcard $(LIB_FULLNAME)),)
2824	$(MKDIR) $(INSTALL_LIBDIR)
2825	$(INSTALL) $(LIB_FULLNAME) $(INSTALL_LIBDIR)
2826ifdef inUnix
2827	ln -sf $(LIB_FULLNAME) $(INSTALL_LIBDIR)/$(LIB_NAME)
2828endif
2829endif
2830endif
2831ifdef INSTALL_FILES
2832	$(MKDIR) $(INSTALL_DATADIR)
2833	$(INSTALL) $(INSTALL_FILES) $(INSTALL_DATADIR)
2834endif
2835fpc_sourceinstall: distclean
2836	$(MKDIR) $(INSTALL_SOURCEDIR)
2837	$(COPYTREE) $(BASEDIR)/* $(INSTALL_SOURCEDIR)
2838fpc_exampleinstall: $(EXAMPLEINSTALLTARGET) $(addsuffix _distclean,$(TARGET_EXAMPLEDIRS))
2839ifdef HASEXAMPLES
2840	$(MKDIR) $(INSTALL_EXAMPLEDIR)
2841endif
2842ifdef EXAMPLESOURCEFILES
2843	$(COPY) $(EXAMPLESOURCEFILES) $(INSTALL_EXAMPLEDIR)
2844endif
2845ifdef TARGET_EXAMPLEDIRS
2846	$(COPYTREE) $(addsuffix /*,$(TARGET_EXAMPLEDIRS)) $(INSTALL_EXAMPLEDIR)
2847endif
2848.PHONY: fpc_distinstall
2849fpc_distinstall: install exampleinstall
2850.PHONY: fpc_zipinstall fpc_zipsourceinstall fpc_zipexampleinstall
2851ifndef PACKDIR
2852ifndef inUnix
2853PACKDIR=$(BASEDIR)/../fpc-pack
2854else
2855PACKDIR=/tmp/fpc-pack
2856endif
2857endif
2858ifndef ZIPNAME
2859ifdef DIST_ZIPNAME
2860ZIPNAME=$(DIST_ZIPNAME)
2861else
2862ZIPNAME=$(PACKAGE_NAME)
2863endif
2864endif
2865ifndef FULLZIPNAME
2866FULLZIPNAME=$(ZIPCROSSPREFIX)$(ZIPPREFIX)$(ZIPNAME)$(ZIPSUFFIX)
2867endif
2868ifndef ZIPTARGET
2869ifdef DIST_ZIPTARGET
2870ZIPTARGET=DIST_ZIPTARGET
2871else
2872ZIPTARGET=install
2873endif
2874endif
2875ifndef USEZIP
2876ifdef inUnix
2877USETAR=1
2878endif
2879endif
2880ifndef inUnix
2881USEZIPWRAPPER=1
2882endif
2883ifdef USEZIPWRAPPER
2884ZIPPATHSEP=$(PATHSEP)
2885ZIPWRAPPER=$(subst /,$(PATHSEP),$(DIST_DESTDIR)/fpczip$(SRCBATCHEXT))
2886else
2887ZIPPATHSEP=/
2888endif
2889ZIPCMD_CDPACK:=cd $(subst /,$(ZIPPATHSEP),$(PACKDIR))
2890ZIPCMD_CDBASE:=cd $(subst /,$(ZIPPATHSEP),$(BASEDIR))
2891ifdef USETAR
2892ZIPDESTFILE:=$(DIST_DESTDIR)/$(FULLZIPNAME)$(TAREXT)
2893ZIPCMD_ZIP:=$(TARPROG) c$(TAROPT)f $(ZIPDESTFILE) *
2894else
2895ZIPDESTFILE:=$(DIST_DESTDIR)/$(FULLZIPNAME)$(ZIPEXT)
2896ZIPCMD_ZIP:=$(subst /,$(ZIPPATHSEP),$(ZIPPROG)) -Dr $(ZIPOPT) $(ZIPDESTFILE) *
2897endif
2898fpc_zipinstall:
2899	$(MAKE) $(ZIPTARGET) INSTALL_PREFIX=$(PACKDIR) ZIPINSTALL=1
2900	$(MKDIR) $(DIST_DESTDIR)
2901	$(DEL) $(ZIPDESTFILE)
2902ifdef USEZIPWRAPPER
2903ifneq ($(ECHOREDIR),echo)
2904	$(ECHOREDIR) -e "$(subst \,\\,$(ZIPCMD_CDPACK))" > $(ZIPWRAPPER)
2905	$(ECHOREDIR) -e "$(subst \,\\,$(ZIPCMD_ZIP))" >> $(ZIPWRAPPER)
2906	$(ECHOREDIR) -e "$(su