PageRenderTime 168ms CodeModel.GetById 41ms app.highlight 91ms RepoModel.GetById 1ms app.codeStats 1ms

/packages/libndsfpc/examples/graphics/Backgrounds/all_in_one/Makefile

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

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