PageRenderTime 128ms CodeModel.GetById 40ms app.highlight 77ms RepoModel.GetById 0ms app.codeStats 0ms

/packages/libgbafpc/examples/graphics/ansi_console/Makefile

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

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

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

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