PageRenderTime 141ms CodeModel.GetById 57ms app.highlight 76ms RepoModel.GetById 0ms app.codeStats 0ms

/packages/libndsfpc/examples/graphics/3D/nehe/lesson03/Makefile

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

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