1# 2# Don't edit, this file is generated by FPCMake Version 2.0.0 3# 4default: all 5MAKEFILETARGETS=i386-linux i386-go32v2 i386-win32 i386-os2 i386-freebsd i386-beos i386-haiku i386-netbsd i386-solaris i386-netware i386-openbsd i386-wdosx i386-darwin i386-emx i386-watcom i386-netwlibc i386-wince i386-embedded i386-symbian i386-nativent i386-iphonesim i386-android i386-aros m68k-linux m68k-netbsd m68k-amiga m68k-atari m68k-palmos m68k-macosclassic m68k-embedded powerpc-linux powerpc-netbsd powerpc-amiga powerpc-macosclassic 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-haiku x86_64-netbsd x86_64-solaris x86_64-openbsd x86_64-darwin x86_64-win64 x86_64-embedded x86_64-iphonesim x86_64-android x86_64-aros x86_64-dragonfly arm-linux arm-netbsd arm-palmos arm-wince arm-gba arm-nds arm-embedded arm-symbian arm-android arm-aros arm-ios powerpc64-linux powerpc64-darwin powerpc64-embedded powerpc64-aix avr-embedded armeb-linux armeb-embedded mips-linux mipsel-linux mipsel-embedded mipsel-android jvm-java jvm-android i8086-embedded i8086-msdos i8086-win16 aarch64-linux aarch64-darwin aarch64-android aarch64-ios wasm-wasm sparc64-linux 6BSDs = freebsd netbsd openbsd darwin dragonfly 7UNIXs = linux $(BSDs) solaris qnx haiku aix 8LIMIT83fs = go32v2 os2 emx watcom msdos win16 atari 9OSNeedsComspecToRunBatch = go32v2 watcom 10FORCE: 11.PHONY: FORCE 12override PATH:=$(patsubst %/,%,$(subst \,/,$(PATH))) 13ifneq ($(findstring darwin,$(OSTYPE)),) 14inUnix=1 #darwin 15SEARCHPATH:=$(filter-out .,$(subst :, ,$(PATH))) 16else 17ifeq ($(findstring ;,$(PATH)),) 18inUnix=1 19SEARCHPATH:=$(filter-out .,$(subst :, ,$(PATH))) 20else 21SEARCHPATH:=$(subst ;, ,$(PATH)) 22endif 23endif 24SEARCHPATH+=$(patsubst %/,%,$(subst \,/,$(dir $(MAKE)))) 25PWD:=$(strip $(wildcard $(addsuffix /pwd.exe,$(SEARCHPATH)))) 26ifeq ($(PWD),) 27PWD:=$(strip $(wildcard $(addsuffix /pwd,$(SEARCHPATH)))) 28ifeq ($(PWD),) 29$(error You need the GNU utils package to use this Makefile) 30else 31PWD:=$(firstword $(PWD)) 32SRCEXEEXT= 33endif 34else 35PWD:=$(firstword $(PWD)) 36SRCEXEEXT=.exe 37endif 38ifndef inUnix 39ifeq ($(OS),Windows_NT) 40inWinNT=1 41else 42ifdef OS2_SHELL 43inOS2=1 44endif 45endif 46else 47ifneq ($(findstring cygdrive,$(PATH)),) 48inCygWin=1 49endif 50endif 51ifdef inUnix 52SRCBATCHEXT=.sh 53else 54ifdef inOS2 55SRCBATCHEXT=.cmd 56else 57SRCBATCHEXT=.bat 58endif 59endif 60ifdef COMSPEC 61ifneq ($(findstring $(OS_SOURCE),$(OSNeedsComspecToRunBatch)),) 62ifndef RUNBATCH 63RUNBATCH=$(COMSPEC) /C 64endif 65endif 66endif 67ifdef inUnix 68PATHSEP=/ 69else 70PATHSEP:=$(subst /,\,/) 71ifdef inCygWin 72PATHSEP=/ 73endif 74endif 75ifdef PWD 76BASEDIR:=$(subst \,/,$(shell $(PWD))) 77ifdef inCygWin 78ifneq ($(findstring /cygdrive/,$(BASEDIR)),) 79BASENODIR:=$(patsubst /cygdrive%,%,$(BASEDIR)) 80BASEDRIVE:=$(firstword $(subst /, ,$(BASENODIR))) 81BASEDIR:=$(subst /cygdrive/$(BASEDRIVE)/,$(BASEDRIVE):/,$(BASEDIR)) 82endif 83endif 84else 85BASEDIR=. 86endif 87ifdef inOS2 88ifndef ECHO 89ECHO:=$(strip $(wildcard $(addsuffix /gecho$(SRCEXEEXT),$(SEARCHPATH)))) 90ifeq ($(ECHO),) 91ECHO:=$(strip $(wildcard $(addsuffix /echo$(SRCEXEEXT),$(SEARCHPATH)))) 92ifeq ($(ECHO),) 93ECHO=echo 94else 95ECHO:=$(firstword $(ECHO)) 96endif 97else 98ECHO:=$(firstword $(ECHO)) 99endif 100endif 101export ECHO 102endif 103override DEFAULT_FPCDIR=../.. 104ifndef FPC 105ifdef PP 106FPC=$(PP) 107endif 108endif 109ifndef FPC 110FPCPROG:=$(strip $(wildcard $(addsuffix /fpc$(SRCEXEEXT),$(SEARCHPATH)))) 111ifneq ($(FPCPROG),) 112FPCPROG:=$(firstword $(FPCPROG)) 113ifneq ($(CPU_TARGET),) 114FPC:=$(shell $(FPCPROG) -P$(CPU_TARGET) -PB) 115else 116FPC:=$(shell $(FPCPROG) -PB) 117endif 118ifneq ($(findstring Error,$(FPC)),) 119override FPC=$(firstword $(strip $(wildcard $(addsuffix /ppc386$(SRCEXEEXT),$(SEARCHPATH))))) 120else 121ifeq ($(strip $(wildcard $(FPC))),) 122FPC:=$(firstword $(FPCPROG)) 123endif 124endif 125else 126override FPC=$(firstword $(strip $(wildcard $(addsuffix /ppc386$(SRCEXEEXT),$(SEARCHPATH))))) 127endif 128endif 129override FPC:=$(subst $(SRCEXEEXT),,$(FPC)) 130override FPC:=$(subst \,/,$(FPC))$(SRCEXEEXT) 131FOUNDFPC:=$(strip $(wildcard $(FPC))) 132ifeq ($(FOUNDFPC),) 133FOUNDFPC=$(strip $(wildcard $(addsuffix /$(FPC),$(SEARCHPATH)))) 134ifeq ($(FOUNDFPC),) 135$(error Compiler $(FPC) not found) 136endif 137endif 138ifndef FPC_COMPILERINFO 139FPC_COMPILERINFO:=$(shell $(FPC) -iVSPTPSOTO) 140endif 141ifndef FPC_VERSION 142FPC_VERSION:=$(word 1,$(FPC_COMPILERINFO)) 143endif 144export FPC FPC_VERSION FPC_COMPILERINFO 145unexport CHECKDEPEND ALLDEPENDENCIES 146ifndef CPU_TARGET 147ifdef CPU_TARGET_DEFAULT 148CPU_TARGET=$(CPU_TARGET_DEFAULT) 149endif 150endif 151ifndef OS_TARGET 152ifdef OS_TARGET_DEFAULT 153OS_TARGET=$(OS_TARGET_DEFAULT) 154endif 155endif 156ifndef CPU_SOURCE 157CPU_SOURCE:=$(word 2,$(FPC_COMPILERINFO)) 158endif 159ifndef CPU_TARGET 160CPU_TARGET:=$(word 3,$(FPC_COMPILERINFO)) 161endif 162ifndef OS_SOURCE 163OS_SOURCE:=$(word 4,$(FPC_COMPILERINFO)) 164endif 165ifndef OS_TARGET 166OS_TARGET:=$(word 5,$(FPC_COMPILERINFO)) 167endif 168FULL_TARGET=$(CPU_TARGET)-$(OS_TARGET) 169FULL_SOURCE=$(CPU_SOURCE)-$(OS_SOURCE) 170ifeq ($(CPU_TARGET),armeb) 171ARCH=arm 172override FPCOPT+=-Cb 173else 174ifeq ($(CPU_TARGET),armel) 175ARCH=arm 176override FPCOPT+=-CaEABI 177else 178ARCH=$(CPU_TARGET) 179endif 180endif 181ifeq ($(FULL_TARGET),arm-embedded) 182ifeq ($(SUBARCH),) 183$(error When compiling for arm-embedded, a sub-architecture (e.g. SUBARCH=armv4t or SUBARCH=armv7m) must be defined) 184endif 185override FPCOPT+=-Cp$(SUBARCH) 186endif 187ifeq ($(FULL_TARGET),avr-embedded) 188ifeq ($(SUBARCH),) 189$(error When compiling for avr-embedded, a sub-architecture (e.g. SUBARCH=avr25 or SUBARCH=avr35) must be defined) 190endif 191override FPCOPT+=-Cp$(SUBARCH) 192endif 193ifeq ($(FULL_TARGET),mipsel-embedded) 194ifeq ($(SUBARCH),) 195$(error When compiling for mipsel-embedded, a sub-architecture (e.g. SUBARCH=pic32mx) must be defined) 196endif 197override FPCOPT+=-Cp$(SUBARCH) 198endif 199ifneq ($(findstring $(OS_SOURCE),$(LIMIT83fs)),) 200TARGETSUFFIX=$(OS_TARGET) 201SOURCESUFFIX=$(OS_SOURCE) 202else 203ifneq ($(findstring $(OS_TARGET),$(LIMIT83fs)),) 204TARGETSUFFIX=$(OS_TARGET) 205else 206TARGETSUFFIX=$(FULL_TARGET) 207endif 208SOURCESUFFIX=$(FULL_SOURCE) 209endif 210ifneq ($(FULL_TARGET),$(FULL_SOURCE)) 211CROSSCOMPILE=1 212endif 213ifeq ($(findstring makefile,$(MAKECMDGOALS)),) 214ifeq ($(findstring $(FULL_TARGET),$(MAKEFILETARGETS)),) 215$(error The Makefile doesn't support target $(FULL_TARGET), please run fpcmake first) 216endif 217endif 218ifneq ($(findstring $(OS_TARGET),$(BSDs)),) 219BSDhier=1 220endif 221ifeq ($(OS_TARGET),linux) 222linuxHier=1 223endif 224ifndef CROSSCOMPILE 225BUILDFULLNATIVE=1 226export BUILDFULLNATIVE 227endif 228ifdef BUILDFULLNATIVE 229BUILDNATIVE=1 230export BUILDNATIVE 231endif 232export OS_TARGET OS_SOURCE ARCH CPU_TARGET CPU_SOURCE FULL_TARGET FULL_SOURCE TARGETSUFFIX SOURCESUFFIX CROSSCOMPILE 233ifdef FPCDIR 234override FPCDIR:=$(subst \,/,$(FPCDIR)) 235ifeq ($(wildcard $(addprefix $(FPCDIR)/,rtl)),) 236override FPCDIR=wrong 237endif 238else 239override FPCDIR=wrong 240endif 241ifdef DEFAULT_FPCDIR 242ifeq ($(FPCDIR),wrong) 243override FPCDIR:=$(subst \,/,$(DEFAULT_FPCDIR)) 244ifeq ($(wildcard $(addprefix $(FPCDIR)/,rtl)),) 245override FPCDIR=wrong 246endif 247endif 248endif 249ifeq ($(FPCDIR),wrong) 250ifdef inUnix 251override FPCDIR=/usr/local/lib/fpc/$(FPC_VERSION) 252ifeq ($(wildcard $(FPCDIR)/units),) 253override FPCDIR=/usr/lib/fpc/$(FPC_VERSION) 254endif 255else 256override FPCDIR:=$(subst /$(FPC),,$(firstword $(strip $(wildcard $(addsuffix /$(FPC),$(SEARCHPATH)))))) 257override FPCDIR:=$(FPCDIR)/.. 258ifeq ($(wildcard $(addprefix $(FPCDIR)/,rtl)),) 259override FPCDIR:=$(FPCDIR)/.. 260ifeq ($(wildcard $(addprefix $(FPCDIR)/,rtl)),) 261override FPCDIR:=$(BASEDIR) 262ifeq ($(wildcard $(addprefix $(FPCDIR)/,rtl)),) 263override FPCDIR=c:/pp 264endif 265endif 266endif 267endif 268endif 269ifndef CROSSBINDIR 270CROSSBINDIR:=$(wildcard $(FPCDIR)/bin/$(TARGETSUFFIX)) 271endif 272ifneq ($(findstring $(OS_TARGET),darwin iphonesim ios),) 273ifneq ($(findstring $(OS_SOURCE),darwin ios),) 274DARWIN2DARWIN=1 275endif 276endif 277ifndef BINUTILSPREFIX 278ifndef CROSSBINDIR 279ifdef CROSSCOMPILE 280ifneq ($(OS_TARGET),msdos) 281ifndef DARWIN2DARWIN 282ifneq ($(CPU_TARGET),jvm) 283BINUTILSPREFIX=$(CPU_TARGET)-$(OS_TARGET)- 284ifeq ($(OS_TARGET),android) 285ifeq ($(CPU_TARGET),arm) 286BINUTILSPREFIX=arm-linux-androideabi- 287else 288ifeq ($(CPU_TARGET),i386) 289BINUTILSPREFIX=i686-linux-android- 290else 291BINUTILSPREFIX=$(CPU_TARGET)-linux-android- 292endif 293endif 294endif 295endif 296endif 297else 298BINUTILSPREFIX=$(OS_TARGET)- 299endif 300endif 301endif 302endif 303UNITSDIR:=$(wildcard $(FPCDIR)/units/$(TARGETSUFFIX)) 304ifeq ($(UNITSDIR),) 305UNITSDIR:=$(wildcard $(FPCDIR)/units/$(OS_TARGET)) 306endif 307PACKAGESDIR:=$(wildcard $(FPCDIR) $(FPCDIR)/packages) 308ifndef FPCFPMAKE 309ifdef CROSSCOMPILE 310ifeq ($(strip $(wildcard $(addsuffix /compiler/ppc$(SRCEXEEXT),$(FPCDIR)))),) 311FPCPROG:=$(strip $(wildcard $(addsuffix /fpc$(SRCEXEEXT),$(SEARCHPATH)))) 312ifneq ($(FPCPROG),) 313FPCPROG:=$(firstword $(FPCPROG)) 314FPCFPMAKE:=$(shell $(FPCPROG) -PB) 315ifeq ($(strip $(wildcard $(FPCFPMAKE))),) 316FPCFPMAKE:=$(firstword $(FPCPROG)) 317endif 318else 319override FPCFPMAKE=$(firstword $(strip $(wildcard $(addsuffix /ppc386$(SRCEXEEXT),$(SEARCHPATH))))) 320endif 321else 322FPCFPMAKE=$(strip $(wildcard $(addsuffix /compiler/ppc$(SRCEXEEXT),$(FPCDIR)))) 323FPMAKE_SKIP_CONFIG=-n 324export FPCFPMAKE 325export FPMAKE_SKIP_CONFIG 326endif 327else 328FPMAKE_SKIP_CONFIG=-n 329FPCFPMAKE=$(FPC) 330endif 331endif 332override PACKAGE_NAME=pasjpeg 333override PACKAGE_VERSION=3.2.2 334FPMAKE_BIN_CLEAN=$(wildcard ./fpmake$(SRCEXEEXT)) 335ifdef OS_TARGET 336FPC_TARGETOPT+=--os=$(OS_TARGET) 337endif 338ifdef CPU_TARGET 339FPC_TARGETOPT+=--cpu=$(CPU_TARGET) 340endif 341LOCALFPMAKE=./fpmake$(SRCEXEEXT) 342override INSTALL_FPCPACKAGE=y 343ifdef REQUIRE_UNITSDIR 344override UNITSDIR+=$(REQUIRE_UNITSDIR) 345endif 346ifdef REQUIRE_PACKAGESDIR 347override PACKAGESDIR+=$(REQUIRE_PACKAGESDIR) 348endif 349ifdef ZIPINSTALL 350ifneq ($(findstring $(OS_TARGET),$(UNIXs)),) 351UNIXHier=1 352endif 353else 354ifneq ($(findstring $(OS_SOURCE),$(UNIXs)),) 355UNIXHier=1 356endif 357endif 358ifndef INSTALL_PREFIX 359ifdef PREFIX 360INSTALL_PREFIX=$(PREFIX) 361endif 362endif 363ifndef INSTALL_PREFIX 364ifdef UNIXHier 365INSTALL_PREFIX=/usr/local 366else 367ifdef INSTALL_FPCPACKAGE 368INSTALL_BASEDIR:=/pp 369else 370INSTALL_BASEDIR:=/$(PACKAGE_NAME) 371endif 372endif 373endif 374export INSTALL_PREFIX 375ifdef INSTALL_FPCSUBDIR 376export INSTALL_FPCSUBDIR 377endif 378ifndef DIST_DESTDIR 379DIST_DESTDIR:=$(BASEDIR) 380endif 381export DIST_DESTDIR 382ifndef COMPILER_UNITTARGETDIR 383ifdef PACKAGEDIR_MAIN 384COMPILER_UNITTARGETDIR=$(PACKAGEDIR_MAIN)/units/$(TARGETSUFFIX) 385else 386COMPILER_UNITTARGETDIR=units/$(TARGETSUFFIX) 387endif 388endif 389ifndef COMPILER_TARGETDIR 390COMPILER_TARGETDIR=. 391endif 392ifndef INSTALL_BASEDIR 393ifdef UNIXHier 394ifdef INSTALL_FPCPACKAGE 395INSTALL_BASEDIR:=$(INSTALL_PREFIX)/lib/fpc/$(FPC_VERSION) 396else 397INSTALL_BASEDIR:=$(INSTALL_PREFIX)/lib/$(PACKAGE_NAME) 398endif 399else 400INSTALL_BASEDIR:=$(INSTALL_PREFIX) 401endif 402endif 403ifndef INSTALL_BINDIR 404ifdef UNIXHier 405INSTALL_BINDIR:=$(INSTALL_PREFIX)/bin 406else 407INSTALL_BINDIR:=$(INSTALL_BASEDIR)/bin 408ifdef INSTALL_FPCPACKAGE 409ifdef CROSSCOMPILE 410ifdef CROSSINSTALL 411INSTALL_BINDIR:=$(INSTALL_BINDIR)/$(SOURCESUFFIX) 412else 413INSTALL_BINDIR:=$(INSTALL_BINDIR)/$(TARGETSUFFIX) 414endif 415else 416INSTALL_BINDIR:=$(INSTALL_BINDIR)/$(TARGETSUFFIX) 417endif 418endif 419endif 420endif 421ifndef INSTALL_UNITDIR 422INSTALL_UNITDIR:=$(INSTALL_BASEDIR)/units/$(TARGETSUFFIX) 423ifdef INSTALL_FPCPACKAGE 424ifdef PACKAGE_NAME 425INSTALL_UNITDIR:=$(INSTALL_UNITDIR)/$(PACKAGE_NAME) 426endif 427endif 428endif 429ifndef INSTALL_LIBDIR 430ifdef UNIXHier 431INSTALL_LIBDIR:=$(INSTALL_PREFIX)/lib 432else 433INSTALL_LIBDIR:=$(INSTALL_UNITDIR) 434endif 435endif 436ifndef INSTALL_SOURCEDIR 437ifdef UNIXHier 438ifdef BSDhier 439SRCPREFIXDIR=share/src 440else 441ifdef linuxHier 442SRCPREFIXDIR=share/src 443else 444SRCPREFIXDIR=src 445endif 446endif 447ifdef INSTALL_FPCPACKAGE 448ifdef INSTALL_FPCSUBDIR 449INSTALL_SOURCEDIR:=$(INSTALL_PREFIX)/$(SRCPREFIXDIR)/fpc-$(FPC_VERSION)/$(INSTALL_FPCSUBDIR)/$(PACKAGE_NAME) 450else 451INSTALL_SOURCEDIR:=$(INSTALL_PREFIX)/$(SRCPREFIXDIR)/fpc-$(FPC_VERSION)/$(PACKAGE_NAME) 452endif 453else 454INSTALL_SOURCEDIR:=$(INSTALL_PREFIX)/$(SRCPREFIXDIR)/$(PACKAGE_NAME)-$(PACKAGE_VERSION) 455endif 456else 457ifdef INSTALL_FPCPACKAGE 458ifdef INSTALL_FPCSUBDIR 459INSTALL_SOURCEDIR:=$(INSTALL_BASEDIR)/source/$(INSTALL_FPCSUBDIR)/$(PACKAGE_NAME) 460else 461INSTALL_SOURCEDIR:=$(INSTALL_BASEDIR)/source/$(PACKAGE_NAME) 462endif 463else 464INSTALL_SOURCEDIR:=$(INSTALL_BASEDIR)/source 465endif 466endif 467endif 468ifndef INSTALL_DOCDIR 469ifdef UNIXHier 470ifdef BSDhier 471DOCPREFIXDIR=share/doc 472else 473ifdef linuxHier 474DOCPREFIXDIR=share/doc 475else 476DOCPREFIXDIR=doc 477endif 478endif 479ifdef INSTALL_FPCPACKAGE 480INSTALL_DOCDIR:=$(INSTALL_PREFIX)/$(DOCPREFIXDIR)/fpc-$(FPC_VERSION)/$(PACKAGE_NAME) 481else 482INSTALL_DOCDIR:=$(INSTALL_PREFIX)/$(DOCPREFIXDIR)/$(PACKAGE_NAME)-$(PACKAGE_VERSION) 483endif 484else 485ifdef INSTALL_FPCPACKAGE 486INSTALL_DOCDIR:=$(INSTALL_BASEDIR)/doc/$(PACKAGE_NAME) 487else 488INSTALL_DOCDIR:=$(INSTALL_BASEDIR)/doc 489endif 490endif 491endif 492ifndef INSTALL_EXAMPLEDIR 493ifdef UNIXHier 494ifdef INSTALL_FPCPACKAGE 495ifdef BSDhier 496INSTALL_EXAMPLEDIR:=$(INSTALL_PREFIX)/share/examples/fpc-$(FPC_VERSION)/$(PACKAGE_NAME) 497else 498ifdef linuxHier 499INSTALL_EXAMPLEDIR:=$(INSTALL_DOCDIR)/examples 500else 501INSTALL_EXAMPLEDIR:=$(INSTALL_PREFIX)/doc/fpc-$(FPC_VERSION)/examples/$(PACKAGE_NAME) 502endif 503endif 504else 505ifdef BSDhier 506INSTALL_EXAMPLEDIR:=$(INSTALL_PREFIX)/share/examples/$(PACKAGE_NAME)-$(PACKAGE_VERSION) 507else 508ifdef linuxHier 509INSTALL_EXAMPLEDIR:=$(INSTALL_DOCDIR)/examples/$(PACKAGE_NAME)-$(PACKAGE_VERSION) 510else 511INSTALL_EXAMPLEDIR:=$(INSTALL_PREFIX)/doc/$(PACKAGE_NAME)-$(PACKAGE_VERSION) 512endif 513endif 514endif 515else 516ifdef INSTALL_FPCPACKAGE 517INSTALL_EXAMPLEDIR:=$(INSTALL_BASEDIR)/examples/$(PACKAGE_NAME) 518else 519INSTALL_EXAMPLEDIR:=$(INSTALL_BASEDIR)/examples 520endif 521endif 522endif 523ifndef INSTALL_DATADIR 524INSTALL_DATADIR=$(INSTALL_BASEDIR) 525endif 526ifndef INSTALL_SHAREDDIR 527INSTALL_SHAREDDIR=$(INSTALL_PREFIX)/lib 528endif 529ifdef CROSSCOMPILE 530ifndef CROSSBINDIR 531CROSSBINDIR:=$(wildcard $(CROSSTARGETDIR)/bin/$(SOURCESUFFIX)) 532ifeq ($(CROSSBINDIR),) 533CROSSBINDIR:=$(wildcard $(INSTALL_BASEDIR)/cross/$(TARGETSUFFIX)/bin/$(FULL_SOURCE)) 534endif 535endif 536else 537CROSSBINDIR= 538endif 539BATCHEXT=.bat 540LOADEREXT=.as 541EXEEXT=.exe 542PPLEXT=.ppl 543PPUEXT=.ppu 544OEXT=.o 545ASMEXT=.s 546SMARTEXT=.sl 547STATICLIBEXT=.a 548SHAREDLIBEXT=.so 549SHAREDLIBPREFIX=libfp 550STATICLIBPREFIX=libp 551IMPORTLIBPREFIX=libimp 552RSTEXT=.rst 553EXEDBGEXT=.dbg 554ifeq ($(OS_TARGET),go32v1) 555STATICLIBPREFIX= 556SHORTSUFFIX=v1 557endif 558ifeq ($(OS_TARGET),go32v2) 559STATICLIBPREFIX= 560SHORTSUFFIX=dos 561IMPORTLIBPREFIX= 562endif 563ifeq ($(OS_TARGET),watcom) 564STATICLIBPREFIX= 565OEXT=.obj 566ASMEXT=.asm 567SHAREDLIBEXT=.dll 568SHORTSUFFIX=wat 569IMPORTLIBPREFIX= 570endif 571ifneq ($(CPU_TARGET),jvm) 572ifeq ($(OS_TARGET),android) 573BATCHEXT=.sh 574EXEEXT= 575HASSHAREDLIB=1 576SHORTSUFFIX=lnx 577endif 578endif 579ifeq ($(OS_TARGET),linux) 580BATCHEXT=.sh 581EXEEXT= 582HASSHAREDLIB=1 583SHORTSUFFIX=lnx 584endif 585ifeq ($(OS_TARGET),dragonfly) 586BATCHEXT=.sh 587EXEEXT= 588HASSHAREDLIB=1 589SHORTSUFFIX=df 590endif 591ifeq ($(OS_TARGET),freebsd) 592BATCHEXT=.sh 593EXEEXT= 594HASSHAREDLIB=1 595SHORTSUFFIX=fbs 596endif 597ifeq ($(OS_TARGET),netbsd) 598BATCHEXT=.sh 599EXEEXT= 600HASSHAREDLIB=1 601SHORTSUFFIX=nbs 602endif 603ifeq ($(OS_TARGET),openbsd) 604BATCHEXT=.sh 605EXEEXT= 606HASSHAREDLIB=1 607SHORTSUFFIX=obs 608endif 609ifeq ($(OS_TARGET),win32) 610SHAREDLIBEXT=.dll 611SHORTSUFFIX=w32 612endif 613ifeq ($(OS_TARGET),os2) 614BATCHEXT=.cmd 615AOUTEXT=.out 616STATICLIBPREFIX= 617SHAREDLIBEXT=.dll 618SHORTSUFFIX=os2 619ECHO=echo 620IMPORTLIBPREFIX= 621endif 622ifeq ($(OS_TARGET),emx) 623BATCHEXT=.cmd 624AOUTEXT=.out 625STATICLIBPREFIX= 626SHAREDLIBEXT=.dll 627SHORTSUFFIX=emx 628ECHO=echo 629IMPORTLIBPREFIX= 630endif 631ifeq ($(OS_TARGET),amiga) 632EXEEXT= 633SHAREDLIBEXT=.library 634SHORTSUFFIX=amg 635endif 636ifeq ($(OS_TARGET),aros) 637EXEEXT= 638SHAREDLIBEXT=.library 639SHORTSUFFIX=aros 640endif 641ifeq ($(OS_TARGET),morphos) 642EXEEXT= 643SHAREDLIBEXT=.library 644SHORTSUFFIX=mos 645endif 646ifeq ($(OS_TARGET),atari) 647EXEEXT=.ttp 648SHORTSUFFIX=ata 649endif 650ifeq ($(OS_TARGET),beos) 651BATCHEXT=.sh 652EXEEXT= 653SHORTSUFFIX=be 654endif 655ifeq ($(OS_TARGET),haiku) 656BATCHEXT=.sh 657EXEEXT= 658SHORTSUFFIX=hai 659endif 660ifeq ($(OS_TARGET),solaris) 661BATCHEXT=.sh 662EXEEXT= 663SHORTSUFFIX=sun 664endif 665ifeq ($(OS_TARGET),qnx) 666BATCHEXT=.sh 667EXEEXT= 668SHORTSUFFIX=qnx 669endif 670ifeq ($(OS_TARGET),netware) 671EXEEXT=.nlm 672STATICLIBPREFIX= 673SHORTSUFFIX=nw 674IMPORTLIBPREFIX=imp 675endif 676ifeq ($(OS_TARGET),netwlibc) 677EXEEXT=.nlm 678STATICLIBPREFIX= 679SHORTSUFFIX=nwl 680IMPORTLIBPREFIX=imp 681endif 682ifeq ($(OS_TARGET),macosclassic) 683BATCHEXT= 684EXEEXT= 685DEBUGSYMEXT=.xcoff 686SHORTSUFFIX=mac 687IMPORTLIBPREFIX=imp 688endif 689ifneq ($(findstring $(OS_TARGET),darwin iphonesim ios),) 690BATCHEXT=.sh 691EXEEXT= 692HASSHAREDLIB=1 693SHORTSUFFIX=dwn 694EXEDBGEXT=.dSYM 695endif 696ifeq ($(OS_TARGET),gba) 697EXEEXT=.gba 698SHAREDLIBEXT=.so 699SHORTSUFFIX=gba 700endif 701ifeq ($(OS_TARGET),symbian) 702SHAREDLIBEXT=.dll 703SHORTSUFFIX=symbian 704endif 705ifeq ($(OS_TARGET),NativeNT) 706SHAREDLIBEXT=.dll 707SHORTSUFFIX=nativent 708endif 709ifeq ($(OS_TARGET),wii) 710EXEEXT=.dol 711SHAREDLIBEXT=.so 712SHORTSUFFIX=wii 713endif 714ifeq ($(OS_TARGET),aix) 715BATCHEXT=.sh 716EXEEXT= 717SHAREDLIBEXT=.a 718SHORTSUFFIX=aix 719endif 720ifeq ($(OS_TARGET),java) 721OEXT=.class 722ASMEXT=.j 723SHAREDLIBEXT=.jar 724SHORTSUFFIX=java 725endif 726ifeq ($(CPU_TARGET),jvm) 727ifeq ($(OS_TARGET),android) 728OEXT=.class 729ASMEXT=.j 730SHAREDLIBEXT=.jar 731SHORTSUFFIX=android 732endif 733endif 734ifeq ($(OS_TARGET),msdos) 735STATICLIBPREFIX= 736STATICLIBEXT=.a 737SHORTSUFFIX=d16 738endif 739ifeq ($(OS_TARGET),embedded) 740ifeq ($(CPU_TARGET),i8086) 741STATICLIBPREFIX= 742STATICLIBEXT=.a 743else 744EXEEXT=.bin 745endif 746SHORTSUFFIX=emb 747endif 748ifeq ($(OS_TARGET),win16) 749STATICLIBPREFIX= 750STATICLIBEXT=.a 751SHAREDLIBEXT=.dll 752SHORTSUFFIX=w16 753endif 754ifneq ($(findstring $(OS_SOURCE),$(LIMIT83fs)),) 755FPCMADE=fpcmade.$(SHORTSUFFIX) 756ZIPSUFFIX=$(SHORTSUFFIX) 757ZIPCROSSPREFIX= 758ZIPSOURCESUFFIX=src 759ZIPEXAMPLESUFFIX=exm 760else 761FPCMADE=fpcmade.$(TARGETSUFFIX) 762ZIPSOURCESUFFIX=.source 763ZIPEXAMPLESUFFIX=.examples 764ifdef CROSSCOMPILE 765ZIPSUFFIX=.$(SOURCESUFFIX) 766ZIPCROSSPREFIX=$(TARGETSUFFIX)- 767else 768ZIPSUFFIX=.$(TARGETSUFFIX) 769ZIPCROSSPREFIX= 770endif 771endif 772ifndef ECHO 773ECHO:=$(strip $(wildcard $(addsuffix /gecho$(SRCEXEEXT),$(SEARCHPATH)))) 774ifeq ($(ECHO),) 775ECHO:=$(strip $(wildcard $(addsuffix /echo$(SRCEXEEXT),$(SEARCHPATH)))) 776ifeq ($(ECHO),) 777ECHO= __missing_command_ECHO 778else 779ECHO:=$(firstword $(ECHO)) 780endif 781else 782ECHO:=$(firstword $(ECHO)) 783endif 784endif 785export ECHO 786ifndef DATE 787DATE:=$(strip $(wildcard $(addsuffix /gdate$(SRCEXEEXT),$(SEARCHPATH)))) 788ifeq ($(DATE),) 789DATE:=$(strip $(wildcard $(addsuffix /date$(SRCEXEEXT),$(SEARCHPATH)))) 790ifeq ($(DATE),) 791DATE= __missing_command_DATE 792else 793DATE:=$(firstword $(DATE)) 794endif 795else 796DATE:=$(firstword $(DATE)) 797endif 798endif 799export DATE 800ifndef GINSTALL 801GINSTALL:=$(strip $(wildcard $(addsuffix /ginstall$(SRCEXEEXT),$(SEARCHPATH)))) 802ifeq ($(GINSTALL),) 803GINSTALL:=$(strip $(wildcard $(addsuffix /install$(SRCEXEEXT),$(SEARCHPATH)))) 804ifeq ($(GINSTALL),) 805GINSTALL= __missing_command_GINSTALL 806else 807GINSTALL:=$(firstword $(GINSTALL)) 808endif 809else 810GINSTALL:=$(firstword $(GINSTALL)) 811endif 812endif 813export GINSTALL 814ifndef CPPROG 815CPPROG:=$(strip $(wildcard $(addsuffix /cp$(SRCEXEEXT),$(SEARCHPATH)))) 816ifeq ($(CPPROG),) 817CPPROG= __missing_command_CPPROG 818else 819CPPROG:=$(firstword $(CPPROG)) 820endif 821endif 822export CPPROG 823ifndef RMPROG 824RMPROG:=$(strip $(wildcard $(addsuffix /rm$(SRCEXEEXT),$(SEARCHPATH)))) 825ifeq ($(RMPROG),) 826RMPROG= __missing_command_RMPROG 827else 828RMPROG:=$(firstword $(RMPROG)) 829endif 830endif 831export RMPROG 832ifndef MVPROG 833MVPROG:=$(strip $(wildcard $(addsuffix /mv$(SRCEXEEXT),$(SEARCHPATH)))) 834ifeq ($(MVPROG),) 835MVPROG= __missing_command_MVPROG 836else 837MVPROG:=$(firstword $(MVPROG)) 838endif 839endif 840export MVPROG 841ifndef MKDIRPROG 842MKDIRPROG:=$(strip $(wildcard $(addsuffix /gmkdir$(SRCEXEEXT),$(SEARCHPATH)))) 843ifeq ($(MKDIRPROG),) 844MKDIRPROG:=$(strip $(wildcard $(addsuffix /mkdir$(SRCEXEEXT),$(SEARCHPATH)))) 845ifeq ($(MKDIRPROG),) 846MKDIRPROG= __missing_command_MKDIRPROG 847else 848MKDIRPROG:=$(firstword $(MKDIRPROG)) 849endif 850else 851MKDIRPROG:=$(firstword $(MKDIRPROG)) 852endif 853endif 854export MKDIRPROG 855ifndef ECHOREDIR 856ifndef inUnix 857ECHOREDIR=echo 858else 859ECHOREDIR=$(ECHO) 860endif 861endif 862ifndef COPY 863COPY:=$(CPPROG) -fp 864endif 865ifndef COPYTREE 866COPYTREE:=$(CPPROG) -Rfp 867endif 868ifndef MKDIRTREE 869MKDIRTREE:=$(MKDIRPROG) -p 870endif 871ifndef MOVE 872MOVE:=$(MVPROG) -f 873endif 874ifndef DEL 875DEL:=$(RMPROG) -f 876endif 877ifndef DELTREE 878DELTREE:=$(RMPROG) -rf 879endif 880ifndef INSTALL 881ifdef inUnix 882INSTALL:=$(GINSTALL) -c -m 644 883else 884INSTALL:=$(COPY) 885endif 886endif 887ifndef INSTALLEXE 888ifdef inUnix 889INSTALLEXE:=$(GINSTALL) -c -m 755 890else 891INSTALLEXE:=$(COPY) 892endif 893endif 894ifndef MKDIR 895MKDIR:=$(GINSTALL) -m 755 -d 896endif 897export ECHOREDIR COPY COPYTREE MOVE DEL DELTREE INSTALL INSTALLEXE MKDIR 898ifndef PPUMOVE 899PPUMOVE:=$(strip $(wildcard $(addsuffix /ppumove$(SRCEXEEXT),$(SEARCHPATH)))) 900ifeq ($(PPUMOVE),) 901PPUMOVE= __missing_command_PPUMOVE 902else 903PPUMOVE:=$(firstword $(PPUMOVE)) 904endif 905endif 906export PPUMOVE 907ifndef FPCMAKE 908FPCMAKE:=$(strip $(wildcard $(addsuffix /fpcmake$(SRCEXEEXT),$(SEARCHPATH)))) 909ifeq ($(FPCMAKE),) 910FPCMAKE= __missing_command_FPCMAKE 911else 912FPCMAKE:=$(firstword $(FPCMAKE)) 913endif 914endif 915export FPCMAKE 916ifndef ZIPPROG 917ZIPPROG:=$(strip $(wildcard $(addsuffix /zip$(SRCEXEEXT),$(SEARCHPATH)))) 918ifeq ($(ZIPPROG),) 919ZIPPROG= __missing_command_ZIPPROG 920else 921ZIPPROG:=$(firstword $(ZIPPROG)) 922endif 923endif 924export ZIPPROG 925ifndef TARPROG 926TARPROG:=$(strip $(wildcard $(addsuffix /gtar$(SRCEXEEXT),$(SEARCHPATH)))) 927ifeq ($(TARPROG),) 928TARPROG:=$(strip $(wildcard $(addsuffix /tar$(SRCEXEEXT),$(SEARCHPATH)))) 929ifeq ($(TARPROG),) 930TARPROG= __missing_command_TARPROG 931else 932TARPROG:=$(firstword $(TARPROG)) 933endif 934else 935TARPROG:=$(firstword $(TARPROG)) 936endif 937endif 938export TARPROG 939ASNAME=$(BINUTILSPREFIX)as 940LDNAME=$(BINUTILSPREFIX)ld 941ARNAME=$(BINUTILSPREFIX)ar 942RCNAME=$(BINUTILSPREFIX)rc 943NASMNAME=$(BINUTILSPREFIX)nasm 944ifndef ASPROG 945ifdef CROSSBINDIR 946ASPROG=$(CROSSBINDIR)/$(ASNAME)$(SRCEXEEXT) 947else 948ASPROG=$(ASNAME) 949endif 950endif 951ifndef LDPROG 952ifdef CROSSBINDIR 953LDPROG=$(CROSSBINDIR)/$(LDNAME)$(SRCEXEEXT) 954else 955LDPROG=$(LDNAME) 956endif 957endif 958ifndef RCPROG 959ifdef CROSSBINDIR 960RCPROG=$(CROSSBINDIR)/$(RCNAME)$(SRCEXEEXT) 961else 962RCPROG=$(RCNAME) 963endif 964endif 965ifndef ARPROG 966ifdef CROSSBINDIR 967ARPROG=$(CROSSBINDIR)/$(ARNAME)$(SRCEXEEXT) 968else 969ARPROG=$(ARNAME) 970endif 971endif 972ifndef NASMPROG 973ifdef CROSSBINDIR 974NASMPROG=$(CROSSBINDIR)/$(NASMNAME)$(SRCEXEEXT) 975else 976NASMPROG=$(NASMNAME) 977endif 978endif 979AS=$(ASPROG) 980LD=$(LDPROG) 981RC=$(RCPROG) 982AR=$(ARPROG) 983NASM=$(NASMPROG) 984ifdef inUnix 985PPAS=./ppas$(SRCBATCHEXT) 986else 987PPAS=ppas$(SRCBATCHEXT) 988endif 989ifdef inUnix 990LDCONFIG=ldconfig 991else 992LDCONFIG= 993endif 994ifdef DATE 995DATESTR:=$(shell $(DATE) +%Y%m%d) 996else 997DATESTR= 998endif 999ZIPOPT=-9 1000ZIPEXT=.zip 1001ifeq ($(USETAR),bz2) 1002TAROPT=vj 1003TAREXT=.tar.bz2 1004else 1005TAROPT=vz 1006TAREXT=.tar.gz 1007endif 1008override REQUIRE_PACKAGES=rtl fpmkunit 1009ifeq ($(FULL_TARGET),i386-linux) 1010REQUIRE_PACKAGES_RTL=1 1011REQUIRE_PACKAGES_PASZLIB=1 1012REQUIRE_PACKAGES_FCL-PROCESS=1 1013REQUIRE_PACKAGES_HASH=1 1014REQUIRE_PACKAGES_LIBTAR=1 1015REQUIRE_PACKAGES_FPMKUNIT=1 1016endif 1017ifeq ($(FULL_TARGET),i386-go32v2) 1018REQUIRE_PACKAGES_RTL=1 1019REQUIRE_PACKAGES_PASZLIB=1 1020REQUIRE_PACKAGES_FCL-PROCESS=1 1021REQUIRE_PACKAGES_HASH=1 1022REQUIRE_PACKAGES_LIBTAR=1 1023REQUIRE_PACKAGES_FPMKUNIT=1 1024endif 1025ifeq ($(FULL_TARGET),i386-win32) 1026REQUIRE_PACKAGES_RTL=1 1027REQUIRE_PACKAGES_PASZLIB=1 1028REQUIRE_PACKAGES_FCL-PROCESS=1 1029REQUIRE_PACKAGES_HASH=1 1030REQUIRE_PACKAGES_LIBTAR=1 1031REQUIRE_PACKAGES_FPMKUNIT=1 1032endif 1033ifeq ($(FULL_TARGET),i386-os2) 1034REQUIRE_PACKAGES_RTL=1 1035REQUIRE_PACKAGES_PASZLIB=1 1036REQUIRE_PACKAGES_FCL-PROCESS=1 1037REQUIRE_PACKAGES_HASH=1 1038REQUIRE_PACKAGES_LIBTAR=1 1039REQUIRE_PACKAGES_FPMKUNIT=1 1040endif 1041ifeq ($(FULL_TARGET),i386-freebsd) 1042REQUIRE_PACKAGES_RTL=1 1043REQUIRE_PACKAGES_PASZLIB=1 1044REQUIRE_PACKAGES_FCL-PROCESS=1 1045REQUIRE_PACKAGES_HASH=1 1046REQUIRE_PACKAGES_LIBTAR=1 1047REQUIRE_PACKAGES_FPMKUNIT=1 1048endif 1049ifeq ($(FULL_TARGET),i386-beos) 1050REQUIRE_PACKAGES_RTL=1 1051REQUIRE_PACKAGES_PASZLIB=1 1052REQUIRE_PACKAGES_FCL-PROCESS=1 1053REQUIRE_PACKAGES_HASH=1 1054REQUIRE_PACKAGES_LIBTAR=1 1055REQUIRE_PACKAGES_FPMKUNIT=1 1056endif 1057ifeq ($(FULL_TARGET),i386-haiku) 1058REQUIRE_PACKAGES_RTL=1 1059REQUIRE_PACKAGES_PASZLIB=1 1060REQUIRE_PACKAGES_FCL-PROCESS=1 1061REQUIRE_PACKAGES_HASH=1 1062REQUIRE_PACKAGES_LIBTAR=1 1063REQUIRE_PACKAGES_FPMKUNIT=1 1064endif 1065ifeq ($(FULL_TARGET),i386-netbsd) 1066REQUIRE_PACKAGES_RTL=1 1067REQUIRE_PACKAGES_PASZLIB=1 1068REQUIRE_PACKAGES_FCL-PROCESS=1 1069REQUIRE_PACKAGES_HASH=1 1070REQUIRE_PACKAGES_LIBTAR=1 1071REQUIRE_PACKAGES_FPMKUNIT=1 1072endif 1073ifeq ($(FULL_TARGET),i386-solaris) 1074REQUIRE_PACKAGES_RTL=1 1075REQUIRE_PACKAGES_PASZLIB=1 1076REQUIRE_PACKAGES_FCL-PROCESS=1 1077REQUIRE_PACKAGES_HASH=1 1078REQUIRE_PACKAGES_LIBTAR=1 1079REQUIRE_PACKAGES_FPMKUNIT=1 1080endif 1081ifeq ($(FULL_TARGET),i386-netware) 1082REQUIRE_PACKAGES_RTL=1 1083REQUIRE_PACKAGES_PASZLIB=1 1084REQUIRE_PACKAGES_FCL-PROCESS=1 1085REQUIRE_PACKAGES_HASH=1 1086REQUIRE_PACKAGES_LIBTAR=1 1087REQUIRE_PACKAGES_FPMKUNIT=1 1088endif 1089ifeq ($(FULL_TARGET),i386-openbsd) 1090REQUIRE_PACKAGES_RTL=1 1091REQUIRE_PACKAGES_PASZLIB=1 1092REQUIRE_PACKAGES_FCL-PROCESS=1 1093REQUIRE_PACKAGES_HASH=1 1094REQUIRE_PACKAGES_LIBTAR=1 1095REQUIRE_PACKAGES_FPMKUNIT=1 1096endif 1097ifeq ($(FULL_TARGET),i386-wdosx) 1098REQUIRE_PACKAGES_RTL=1 1099REQUIRE_PACKAGES_PASZLIB=1 1100REQUIRE_PACKAGES_FCL-PROCESS=1 1101REQUIRE_PACKAGES_HASH=1 1102REQUIRE_PACKAGES_LIBTAR=1 1103REQUIRE_PACKAGES_FPMKUNIT=1 1104endif 1105ifeq ($(FULL_TARGET),i386-darwin) 1106REQUIRE_PACKAGES_RTL=1 1107REQUIRE_PACKAGES_PASZLIB=1 1108REQUIRE_PACKAGES_FCL-PROCESS=1 1109REQUIRE_PACKAGES_HASH=1 1110REQUIRE_PACKAGES_LIBTAR=1 1111REQUIRE_PACKAGES_FPMKUNIT=1 1112endif 1113ifeq ($(FULL_TARGET),i386-emx) 1114REQUIRE_PACKAGES_RTL=1 1115REQUIRE_PACKAGES_PASZLIB=1 1116REQUIRE_PACKAGES_FCL-PROCESS=1 1117REQUIRE_PACKAGES_HASH=1 1118REQUIRE_PACKAGES_LIBTAR=1 1119REQUIRE_PACKAGES_FPMKUNIT=1 1120endif 1121ifeq ($(FULL_TARGET),i386-watcom) 1122REQUIRE_PACKAGES_RTL=1 1123REQUIRE_PACKAGES_PASZLIB=1 1124REQUIRE_PACKAGES_FCL-PROCESS=1 1125REQUIRE_PACKAGES_HASH=1 1126REQUIRE_PACKAGES_LIBTAR=1 1127REQUIRE_PACKAGES_FPMKUNIT=1 1128endif 1129ifeq ($(FULL_TARGET),i386-netwlibc) 1130REQUIRE_PACKAGES_RTL=1 1131REQUIRE_PACKAGES_PASZLIB=1 1132REQUIRE_PACKAGES_FCL-PROCESS=1 1133REQUIRE_PACKAGES_HASH=1 1134REQUIRE_PACKAGES_LIBTAR=1 1135REQUIRE_PACKAGES_FPMKUNIT=1 1136endif 1137ifeq ($(FULL_TARGET),i386-wince) 1138REQUIRE_PACKAGES_RTL=1 1139REQUIRE_PACKAGES_PASZLIB=1 1140REQUIRE_PACKAGES_FCL-PROCESS=1 1141REQUIRE_PACKAGES_HASH=1 1142REQUIRE_PACKAGES_LIBTAR=1 1143REQUIRE_PACKAGES_FPMKUNIT=1 1144endif 1145ifeq ($(FULL_TARGET),i386-embedded) 1146REQUIRE_PACKAGES_RTL=1 1147REQUIRE_PACKAGES_PASZLIB=1 1148REQUIRE_PACKAGES_FCL-PROCESS=1 1149REQUIRE_PACKAGES_HASH=1 1150REQUIRE_PACKAGES_LIBTAR=1 1151REQUIRE_PACKAGES_FPMKUNIT=1 1152endif 1153ifeq ($(FULL_TARGET),i386-symbian) 1154REQUIRE_PACKAGES_RTL=1 1155REQUIRE_PACKAGES_PASZLIB=1 1156REQUIRE_PACKAGES_FCL-PROCESS=1 1157REQUIRE_PACKAGES_HASH=1 1158REQUIRE_PACKAGES_LIBTAR=1 1159REQUIRE_PACKAGES_FPMKUNIT=1 1160endif 1161ifeq ($(FULL_TARGET),i386-nativent) 1162REQUIRE_PACKAGES_RTL=1 1163REQUIRE_PACKAGES_PASZLIB=1 1164REQUIRE_PACKAGES_FCL-PROCESS=1 1165REQUIRE_PACKAGES_HASH=1 1166REQUIRE_PACKAGES_LIBTAR=1 1167REQUIRE_PACKAGES_FPMKUNIT=1 1168endif 1169ifeq ($(FULL_TARGET),i386-iphonesim) 1170REQUIRE_PACKAGES_RTL=1 1171REQUIRE_PACKAGES_PASZLIB=1 1172REQUIRE_PACKAGES_FCL-PROCESS=1 1173REQUIRE_PACKAGES_HASH=1 1174REQUIRE_PACKAGES_LIBTAR=1 1175REQUIRE_PACKAGES_FPMKUNIT=1 1176endif 1177ifeq ($(FULL_TARGET),i386-android) 1178REQUIRE_PACKAGES_RTL=1 1179REQUIRE_PACKAGES_PASZLIB=1 1180REQUIRE_PACKAGES_FCL-PROCESS=1 1181REQUIRE_PACKAGES_HASH=1 1182REQUIRE_PACKAGES_LIBTAR=1 1183REQUIRE_PACKAGES_FPMKUNIT=1 1184endif 1185ifeq ($(FULL_TARGET),i386-aros) 1186REQUIRE_PACKAGES_RTL=1 1187REQUIRE_PACKAGES_PASZLIB=1 1188REQUIRE_PACKAGES_FCL-PROCESS=1 1189REQUIRE_PACKAGES_HASH=1 1190REQUIRE_PACKAGES_LIBTAR=1 1191REQUIRE_PACKAGES_FPMKUNIT=1 1192endif 1193ifeq ($(FULL_TARGET),m68k-linux) 1194REQUIRE_PACKAGES_RTL=1 1195REQUIRE_PACKAGES_PASZLIB=1 1196REQUIRE_PACKAGES_FCL-PROCESS=1 1197REQUIRE_PACKAGES_HASH=1 1198REQUIRE_PACKAGES_LIBTAR=1 1199REQUIRE_PACKAGES_FPMKUNIT=1 1200endif 1201ifeq ($(FULL_TARGET),m68k-netbsd) 1202REQUIRE_PACKAGES_RTL=1 1203REQUIRE_PACKAGES_PASZLIB=1 1204REQUIRE_PACKAGES_FCL-PROCESS=1 1205REQUIRE_PACKAGES_HASH=1 1206REQUIRE_PACKAGES_LIBTAR=1 1207REQUIRE_PACKAGES_FPMKUNIT=1 1208endif 1209ifeq ($(FULL_TARGET),m68k-amiga) 1210REQUIRE_PACKAGES_RTL=1 1211REQUIRE_PACKAGES_PASZLIB=1 1212REQUIRE_PACKAGES_FCL-PROCESS=1 1213REQUIRE_PACKAGES_HASH=1 1214REQUIRE_PACKAGES_LIBTAR=1 1215REQUIRE_PACKAGES_FPMKUNIT=1 1216endif 1217ifeq ($(FULL_TARGET),m68k-atari) 1218REQUIRE_PACKAGES_RTL=1 1219REQUIRE_PACKAGES_PASZLIB=1 1220REQUIRE_PACKAGES_FCL-PROCESS=1 1221REQUIRE_PACKAGES_HASH=1 1222REQUIRE_PACKAGES_LIBTAR=1 1223REQUIRE_PACKAGES_FPMKUNIT=1 1224endif 1225ifeq ($(FULL_TARGET),m68k-palmos) 1226REQUIRE_PACKAGES_RTL=1 1227REQUIRE_PACKAGES_PASZLIB=1 1228REQUIRE_PACKAGES_FCL-PROCESS=1 1229REQUIRE_PACKAGES_HASH=1 1230REQUIRE_PACKAGES_LIBTAR=1 1231REQUIRE_PACKAGES_FPMKUNIT=1 1232endif 1233ifeq ($(FULL_TARGET),m68k-macosclassic) 1234REQUIRE_PACKAGES_RTL=1 1235REQUIRE_PACKAGES_PASZLIB=1 1236REQUIRE_PACKAGES_FCL-PROCESS=1 1237REQUIRE_PACKAGES_HASH=1 1238REQUIRE_PACKAGES_LIBTAR=1 1239REQUIRE_PACKAGES_FPMKUNIT=1 1240endif 1241ifeq ($(FULL_TARGET),m68k-embedded) 1242REQUIRE_PACKAGES_RTL=1 1243REQUIRE_PACKAGES_PASZLIB=1 1244REQUIRE_PACKAGES_FCL-PROCESS=1 1245REQUIRE_PACKAGES_HASH=1 1246REQUIRE_PACKAGES_LIBTAR=1 1247REQUIRE_PACKAGES_FPMKUNIT=1 1248endif 1249ifeq ($(FULL_TARGET),powerpc-linux) 1250REQUIRE_PACKAGES_RTL=1 1251REQUIRE_PACKAGES_PASZLIB=1 1252REQUIRE_PACKAGES_FCL-PROCESS=1 1253REQUIRE_PACKAGES_HASH=1 1254REQUIRE_PACKAGES_LIBTAR=1 1255REQUIRE_PACKAGES_FPMKUNIT=1 1256endif 1257ifeq ($(FULL_TARGET),powerpc-netbsd) 1258REQUIRE_PACKAGES_RTL=1 1259REQUIRE_PACKAGES_PASZLIB=1 1260REQUIRE_PACKAGES_FCL-PROCESS=1 1261REQUIRE_PACKAGES_HASH=1 1262REQUIRE_PACKAGES_LIBTAR=1 1263REQUIRE_PACKAGES_FPMKUNIT=1 1264endif 1265ifeq ($(FULL_TARGET),powerpc-amiga) 1266REQUIRE_PACKAGES_RTL=1 1267REQUIRE_PACKAGES_PASZLIB=1 1268REQUIRE_PACKAGES_FCL-PROCESS=1 1269REQUIRE_PACKAGES_HASH=1 1270REQUIRE_PACKAGES_LIBTAR=1 1271REQUIRE_PACKAGES_FPMKUNIT=1 1272endif 1273ifeq ($(FULL_TARGET),powerpc-macosclassic) 1274REQUIRE_PACKAGES_RTL=1 1275REQUIRE_PACKAGES_PASZLIB=1 1276REQUIRE_PACKAGES_FCL-PROCESS=1 1277REQUIRE_PACKAGES_HASH=1 1278REQUIRE_PACKAGES_LIBTAR=1 1279REQUIRE_PACKAGES_FPMKUNIT=1 1280endif 1281ifeq ($(FULL_TARGET),powerpc-darwin) 1282REQUIRE_PACKAGES_RTL=1 1283REQUIRE_PACKAGES_PASZLIB=1 1284REQUIRE_PACKAGES_FCL-PROCESS=1 1285REQUIRE_PACKAGES_HASH=1 1286REQUIRE_PACKAGES_LIBTAR=1 1287REQUIRE_PACKAGES_FPMKUNIT=1 1288endif 1289ifeq ($(FULL_TARGET),powerpc-morphos) 1290REQUIRE_PACKAGES_RTL=1 1291REQUIRE_PACKAGES_PASZLIB=1 1292REQUIRE_PACKAGES_FCL-PROCESS=1 1293REQUIRE_PACKAGES_HASH=1 1294REQUIRE_PACKAGES_LIBTAR=1 1295REQUIRE_PACKAGES_FPMKUNIT=1 1296endif 1297ifeq ($(FULL_TARGET),powerpc-embedded) 1298REQUIRE_PACKAGES_RTL=1 1299REQUIRE_PACKAGES_PASZLIB=1 1300REQUIRE_PACKAGES_FCL-PROCESS=1 1301REQUIRE_PACKAGES_HASH=1 1302REQUIRE_PACKAGES_LIBTAR=1 1303REQUIRE_PACKAGES_FPMKUNIT=1 1304endif 1305ifeq ($(FULL_TARGET),powerpc-wii) 1306REQUIRE_PACKAGES_RTL=1 1307REQUIRE_PACKAGES_PASZLIB=1 1308REQUIRE_PACKAGES_FCL-PROCESS=1 1309REQUIRE_PACKAGES_HASH=1 1310REQUIRE_PACKAGES_LIBTAR=1 1311REQUIRE_PACKAGES_FPMKUNIT=1 1312endif 1313ifeq ($(FULL_TARGET),powerpc-aix) 1314REQUIRE_PACKAGES_RTL=1 1315REQUIRE_PACKAGES_PASZLIB=1 1316REQUIRE_PACKAGES_FCL-PROCESS=1 1317REQUIRE_PACKAGES_HASH=1 1318REQUIRE_PACKAGES_LIBTAR=1 1319REQUIRE_PACKAGES_FPMKUNIT=1 1320endif 1321ifeq ($(FULL_TARGET),sparc-linux) 1322REQUIRE_PACKAGES_RTL=1 1323REQUIRE_PACKAGES_PASZLIB=1 1324REQUIRE_PACKAGES_FCL-PROCESS=1 1325REQUIRE_PACKAGES_HASH=1 1326REQUIRE_PACKAGES_LIBTAR=1 1327REQUIRE_PACKAGES_FPMKUNIT=1 1328endif 1329ifeq ($(FULL_TARGET),sparc-netbsd) 1330REQUIRE_PACKAGES_RTL=1 1331REQUIRE_PACKAGES_PASZLIB=1 1332REQUIRE_PACKAGES_FCL-PROCESS=1 1333REQUIRE_PACKAGES_HASH=1 1334REQUIRE_PACKAGES_LIBTAR=1 1335REQUIRE_PACKAGES_FPMKUNIT=1 1336endif 1337ifeq ($(FULL_TARGET),sparc-solaris) 1338REQUIRE_PACKAGES_RTL=1 1339REQUIRE_PACKAGES_PASZLIB=1 1340REQUIRE_PACKAGES_FCL-PROCESS=1 1341REQUIRE_PACKAGES_HASH=1 1342REQUIRE_PACKAGES_LIBTAR=1 1343REQUIRE_PACKAGES_FPMKUNIT=1 1344endif 1345ifeq ($(FULL_TARGET),sparc-embedded) 1346REQUIRE_PACKAGES_RTL=1 1347REQUIRE_PACKAGES_PASZLIB=1 1348REQUIRE_PACKAGES_FCL-PROCESS=1 1349REQUIRE_PACKAGES_HASH=1 1350REQUIRE_PACKAGES_LIBTAR=1 1351REQUIRE_PACKAGES_FPMKUNIT=1 1352endif 1353ifeq ($(FULL_TARGET),x86_64-linux) 1354REQUIRE_PACKAGES_RTL=1 1355REQUIRE_PACKAGES_PASZLIB=1 1356REQUIRE_PACKAGES_FCL-PROCESS=1 1357REQUIRE_PACKAGES_HASH=1 1358REQUIRE_PACKAGES_LIBTAR=1 1359REQUIRE_PACKAGES_FPMKUNIT=1 1360endif 1361ifeq ($(FULL_TARGET),x86_64-freebsd) 1362REQUIRE_PACKAGES_RTL=1 1363REQUIRE_PACKAGES_PASZLIB=1 1364REQUIRE_PACKAGES_FCL-PROCESS=1 1365REQUIRE_PACKAGES_HASH=1 1366REQUIRE_PACKAGES_LIBTAR=1 1367REQUIRE_PACKAGES_FPMKUNIT=1 1368endif 1369ifeq ($(FULL_TARGET),x86_64-haiku) 1370REQUIRE_PACKAGES_RTL=1 1371REQUIRE_PACKAGES_PASZLIB=1 1372REQUIRE_PACKAGES_FCL-PROCESS=1 1373REQUIRE_PACKAGES_HASH=1 1374REQUIRE_PACKAGES_LIBTAR=1 1375REQUIRE_PACKAGES_FPMKUNIT=1 1376endif 1377ifeq ($(FULL_TARGET),x86_64-netbsd) 1378REQUIRE_PACKAGES_RTL=1 1379REQUIRE_PACKAGES_PASZLIB=1 1380REQUIRE_PACKAGES_FCL-PROCESS=1 1381REQUIRE_PACKAGES_HASH=1 1382REQUIRE_PACKAGES_LIBTAR=1 1383REQUIRE_PACKAGES_FPMKUNIT=1 1384endif 1385ifeq ($(FULL_TARGET),x86_64-solaris) 1386REQUIRE_PACKAGES_RTL=1 1387REQUIRE_PACKAGES_PASZLIB=1 1388REQUIRE_PACKAGES_FCL-PROCESS=1 1389REQUIRE_PACKAGES_HASH=1 1390REQUIRE_PACKAGES_LIBTAR=1 1391REQUIRE_PACKAGES_FPMKUNIT=1 1392endif 1393ifeq ($(FULL_TARGET),x86_64-openbsd) 1394REQUIRE_PACKAGES_RTL=1 1395REQUIRE_PACKAGES_PASZLIB=1 1396REQUIRE_PACKAGES_FCL-PROCESS=1 1397REQUIRE_PACKAGES_HASH=1 1398REQUIRE_PACKAGES_LIBTAR=1 1399REQUIRE_PACKAGES_FPMKUNIT=1 1400endif 1401ifeq ($(FULL_TARGET),x86_64-darwin) 1402REQUIRE_PACKAGES_RTL=1 1403REQUIRE_PACKAGES_PASZLIB=1 1404REQUIRE_PACKAGES_FCL-PROCESS=1 1405REQUIRE_PACKAGES_HASH=1 1406REQUIRE_PACKAGES_LIBTAR=1 1407REQUIRE_PACKAGES_FPMKUNIT=1 1408endif 1409ifeq ($(FULL_TARGET),x86_64-win64) 1410REQUIRE_PACKAGES_RTL=1 1411REQUIRE_PACKAGES_PASZLIB=1 1412REQUIRE_PACKAGES_FCL-PROCESS=1 1413REQUIRE_PACKAGES_HASH=1 1414REQUIRE_PACKAGES_LIBTAR=1 1415REQUIRE_PACKAGES_FPMKUNIT=1 1416endif 1417ifeq ($(FULL_TARGET),x86_64-embedded) 1418REQUIRE_PACKAGES_RTL=1 1419REQUIRE_PACKAGES_PASZLIB=1 1420REQUIRE_PACKAGES_FCL-PROCESS=1 1421REQUIRE_PACKAGES_HASH=1 1422REQUIRE_PACKAGES_LIBTAR=1 1423REQUIRE_PACKAGES_FPMKUNIT=1 1424endif 1425ifeq ($(FULL_TARGET),x86_64-iphonesim) 1426REQUIRE_PACKAGES_RTL=1 1427REQUIRE_PACKAGES_PASZLIB=1 1428REQUIRE_PACKAGES_FCL-PROCESS=1 1429REQUIRE_PACKAGES_HASH=1 1430REQUIRE_PACKAGES_LIBTAR=1 1431REQUIRE_PACKAGES_FPMKUNIT=1 1432endif 1433ifeq ($(FULL_TARGET),x86_64-android) 1434REQUIRE_PACKAGES_RTL=1 1435REQUIRE_PACKAGES_PASZLIB=1 1436REQUIRE_PACKAGES_FCL-PROCESS=1 1437REQUIRE_PACKAGES_HASH=1 1438REQUIRE_PACKAGES_LIBTAR=1 1439REQUIRE_PACKAGES_FPMKUNIT=1 1440endif 1441ifeq ($(FULL_TARGET),x86_64-aros) 1442REQUIRE_PACKAGES_RTL=1 1443REQUIRE_PACKAGES_PASZLIB=1 1444REQUIRE_PACKAGES_FCL-PROCESS=1 1445REQUIRE_PACKAGES_HASH=1 1446REQUIRE_PACKAGES_LIBTAR=1 1447REQUIRE_PACKAGES_FPMKUNIT=1 1448endif 1449ifeq ($(FULL_TARGET),x86_64-dragonfly) 1450REQUIRE_PACKAGES_RTL=1 1451REQUIRE_PACKAGES_PASZLIB=1 1452REQUIRE_PACKAGES_FCL-PROCESS=1 1453REQUIRE_PACKAGES_HASH=1 1454REQUIRE_PACKAGES_LIBTAR=1 1455REQUIRE_PACKAGES_FPMKUNIT=1 1456endif 1457ifeq ($(FULL_TARGET),arm-linux) 1458REQUIRE_PACKAGES_RTL=1 1459REQUIRE_PACKAGES_PASZLIB=1 1460REQUIRE_PACKAGES_FCL-PROCESS=1 1461REQUIRE_PACKAGES_HASH=1 1462REQUIRE_PACKAGES_LIBTAR=1 1463REQUIRE_PACKAGES_FPMKUNIT=1 1464endif 1465ifeq ($(FULL_TARGET),arm-netbsd) 1466REQUIRE_PACKAGES_RTL=1 1467REQUIRE_PACKAGES_PASZLIB=1 1468REQUIRE_PACKAGES_FCL-PROCESS=1 1469REQUIRE_PACKAGES_HASH=1 1470REQUIRE_PACKAGES_LIBTAR=1 1471REQUIRE_PACKAGES_FPMKUNIT=1 1472endif 1473ifeq ($(FULL_TARGET),arm-palmos) 1474REQUIRE_PACKAGES_RTL=1 1475REQUIRE_PACKAGES_PASZLIB=1 1476REQUIRE_PACKAGES_FCL-PROCESS=1 1477REQUIRE_PACKAGES_HASH=1 1478REQUIRE_PACKAGES_LIBTAR=1 1479REQUIRE_PACKAGES_FPMKUNIT=1 1480endif 1481ifeq ($(FULL_TARGET),arm-wince) 1482REQUIRE_PACKAGES_RTL=1 1483REQUIRE_PACKAGES_PASZLIB=1 1484REQUIRE_PACKAGES_FCL-PROCESS=1 1485REQUIRE_PACKAGES_HASH=1 1486REQUIRE_PACKAGES_LIBTAR=1 1487REQUIRE_PACKAGES_FPMKUNIT=1 1488endif 1489ifeq ($(FULL_TARGET),arm-gba) 1490REQUIRE_PACKAGES_RTL=1 1491REQUIRE_PACKAGES_PASZLIB=1 1492REQUIRE_PACKAGES_FCL-PROCESS=1 1493REQUIRE_PACKAGES_HASH=1 1494REQUIRE_PACKAGES_LIBTAR=1 1495REQUIRE_PACKAGES_FPMKUNIT=1 1496endif 1497ifeq ($(FULL_TARGET),arm-nds) 1498REQUIRE_PACKAGES_RTL=1 1499REQUIRE_PACKAGES_PASZLIB=1 1500REQUIRE_PACKAGES_FCL-PROCESS=1 1501REQUIRE_PACKAGES_HASH=1 1502REQUIRE_PACKAGES_LIBTAR=1 1503REQUIRE_PACKAGES_FPMKUNIT=1 1504endif 1505ifeq ($(FULL_TARGET),arm-embedded) 1506REQUIRE_PACKAGES_RTL=1 1507REQUIRE_PACKAGES_PASZLIB=1 1508REQUIRE_PACKAGES_FCL-PROCESS=1 1509REQUIRE_PACKAGES_HASH=1 1510REQUIRE_PACKAGES_LIBTAR=1 1511REQUIRE_PACKAGES_FPMKUNIT=1 1512endif 1513ifeq ($(FULL_TARGET),arm-symbian) 1514REQUIRE_PACKAGES_RTL=1 1515REQUIRE_PACKAGES_PASZLIB=1 1516REQUIRE_PACKAGES_FCL-PROCESS=1 1517REQUIRE_PACKAGES_HASH=1 1518REQUIRE_PACKAGES_LIBTAR=1 1519REQUIRE_PACKAGES_FPMKUNIT=1 1520endif 1521ifeq ($(FULL_TARGET),arm-android) 1522REQUIRE_PACKAGES_RTL=1 1523REQUIRE_PACKAGES_PASZLIB=1 1524REQUIRE_PACKAGES_FCL-PROCESS=1 1525REQUIRE_PACKAGES_HASH=1 1526REQUIRE_PACKAGES_LIBTAR=1 1527REQUIRE_PACKAGES_FPMKUNIT=1 1528endif 1529ifeq ($(FULL_TARGET),arm-aros) 1530REQUIRE_PACKAGES_RTL=1 1531REQUIRE_PACKAGES_PASZLIB=1 1532REQUIRE_PACKAGES_FCL-PROCESS=1 1533REQUIRE_PACKAGES_HASH=1 1534REQUIRE_PACKAGES_LIBTAR=1 1535REQUIRE_PACKAGES_FPMKUNIT=1 1536endif 1537ifeq ($(FULL_TARGET),arm-ios) 1538REQUIRE_PACKAGES_RTL=1 1539REQUIRE_PACKAGES_PASZLIB=1 1540REQUIRE_PACKAGES_FCL-PROCESS=1 1541REQUIRE_PACKAGES_HASH=1 1542REQUIRE_PACKAGES_LIBTAR=1 1543REQUIRE_PACKAGES_FPMKUNIT=1 1544endif 1545ifeq ($(FULL_TARGET),powerpc64-linux) 1546REQUIRE_PACKAGES_RTL=1 1547REQUIRE_PACKAGES_PASZLIB=1 1548REQUIRE_PACKAGES_FCL-PROCESS=1 1549REQUIRE_PACKAGES_HASH=1 1550REQUIRE_PACKAGES_LIBTAR=1 1551REQUIRE_PACKAGES_FPMKUNIT=1 1552endif 1553ifeq ($(FULL_TARGET),powerpc64-darwin) 1554REQUIRE_PACKAGES_RTL=1 1555REQUIRE_PACKAGES_PASZLIB=1 1556REQUIRE_PACKAGES_FCL-PROCESS=1 1557REQUIRE_PACKAGES_HASH=1 1558REQUIRE_PACKAGES_LIBTAR=1 1559REQUIRE_PACKAGES_FPMKUNIT=1 1560endif 1561ifeq ($(FULL_TARGET),powerpc64-embedded) 1562REQUIRE_PACKAGES_RTL=1 1563REQUIRE_PACKAGES_PASZLIB=1 1564REQUIRE_PACKAGES_FCL-PROCESS=1 1565REQUIRE_PACKAGES_HASH=1 1566REQUIRE_PACKAGES_LIBTAR=1 1567REQUIRE_PACKAGES_FPMKUNIT=1 1568endif 1569ifeq ($(FULL_TARGET),powerpc64-aix) 1570REQUIRE_PACKAGES_RTL=1 1571REQUIRE_PACKAGES_PASZLIB=1 1572REQUIRE_PACKAGES_FCL-PROCESS=1 1573REQUIRE_PACKAGES_HASH=1 1574REQUIRE_PACKAGES_LIBTAR=1 1575REQUIRE_PACKAGES_FPMKUNIT=1 1576endif 1577ifeq ($(FULL_TARGET),avr-embedded) 1578REQUIRE_PACKAGES_RTL=1 1579REQUIRE_PACKAGES_PASZLIB=1 1580REQUIRE_PACKAGES_FCL-PROCESS=1 1581REQUIRE_PACKAGES_HASH=1 1582REQUIRE_PACKAGES_LIBTAR=1 1583REQUIRE_PACKAGES_FPMKUNIT=1 1584endif 1585ifeq ($(FULL_TARGET),armeb-linux) 1586REQUIRE_PACKAGES_RTL=1 1587REQUIRE_PACKAGES_PASZLIB=1 1588REQUIRE_PACKAGES_FCL-PROCESS=1 1589REQUIRE_PACKAGES_HASH=1 1590REQUIRE_PACKAGES_LIBTAR=1 1591REQUIRE_PACKAGES_FPMKUNIT=1 1592endif 1593ifeq ($(FULL_TARGET),armeb-embedded) 1594REQUIRE_PACKAGES_RTL=1 1595REQUIRE_PACKAGES_PASZLIB=1 1596REQUIRE_PACKAGES_FCL-PROCESS=1 1597REQUIRE_PACKAGES_HASH=1 1598REQUIRE_PACKAGES_LIBTAR=1 1599REQUIRE_PACKAGES_FPMKUNIT=1 1600endif 1601ifeq ($(FULL_TARGET),mips-linux) 1602REQUIRE_PACKAGES_RTL=1 1603REQUIRE_PACKAGES_PASZLIB=1 1604REQUIRE_PACKAGES_FCL-PROCESS=1 1605REQUIRE_PACKAGES_HASH=1 1606REQUIRE_PACKAGES_LIBTAR=1 1607REQUIRE_PACKAGES_FPMKUNIT=1 1608endif 1609ifeq ($(FULL_TARGET),mipsel-linux) 1610REQUIRE_PACKAGES_RTL=1 1611REQUIRE_PACKAGES_PASZLIB=1 1612REQUIRE_PACKAGES_FCL-PROCESS=1 1613REQUIRE_PACKAGES_HASH=1 1614REQUIRE_PACKAGES_LIBTAR=1 1615REQUIRE_PACKAGES_FPMKUNIT=1 1616endif 1617ifeq ($(FULL_TARGET),mipsel-embedded) 1618REQUIRE_PACKAGES_RTL=1 1619REQUIRE_PACKAGES_PASZLIB=1 1620REQUIRE_PACKAGES_FCL-PROCESS=1 1621REQUIRE_PACKAGES_HASH=1 1622REQUIRE_PACKAGES_LIBTAR=1 1623REQUIRE_PACKAGES_FPMKUNIT=1 1624endif 1625ifeq ($(FULL_TARGET),mipsel-android) 1626REQUIRE_PACKAGES_RTL=1 1627REQUIRE_PACKAGES_PASZLIB=1 1628REQUIRE_PACKAGES_FCL-PROCESS=1 1629REQUIRE_PACKAGES_HASH=1 1630REQUIRE_PACKAGES_LIBTAR=1 1631REQUIRE_PACKAGES_FPMKUNIT=1 1632endif 1633ifeq ($(FULL_TARGET),jvm-java) 1634REQUIRE_PACKAGES_RTL=1 1635REQUIRE_PACKAGES_PASZLIB=1 1636REQUIRE_PACKAGES_FCL-PROCESS=1 1637REQUIRE_PACKAGES_HASH=1 1638REQUIRE_PACKAGES_LIBTAR=1 1639REQUIRE_PACKAGES_FPMKUNIT=1 1640endif 1641ifeq ($(FULL_TARGET),jvm-android) 1642REQUIRE_PACKAGES_RTL=1 1643REQUIRE_PACKAGES_PASZLIB=1 1644REQUIRE_PACKAGES_FCL-PROCESS=1 1645REQUIRE_PACKAGES_HASH=1 1646REQUIRE_PACKAGES_LIBTAR=1 1647REQUIRE_PACKAGES_FPMKUNIT=1 1648endif 1649ifeq ($(FULL_TARGET),i8086-embedded) 1650REQUIRE_PACKAGES_RTL=1 1651REQUIRE_PACKAGES_PASZLIB=1 1652REQUIRE_PACKAGES_FCL-PROCESS=1 1653REQUIRE_PACKAGES_HASH=1 1654REQUIRE_PACKAGES_LIBTAR=1 1655REQUIRE_PACKAGES_FPMKUNIT=1 1656endif 1657ifeq ($(FULL_TARGET),i8086-msdos) 1658REQUIRE_PACKAGES_RTL=1 1659REQUIRE_PACKAGES_PASZLIB=1 1660REQUIRE_PACKAGES_FCL-PROCESS=1 1661REQUIRE_PACKAGES_HASH=1 1662REQUIRE_PACKAGES_LIBTAR=1 1663REQUIRE_PACKAGES_FPMKUNIT=1 1664endif 1665ifeq ($(FULL_TARGET),i8086-win16) 1666REQUIRE_PACKAGES_RTL=1 1667REQUIRE_PACKAGES_PASZLIB=1 1668REQUIRE_PACKAGES_FCL-PROCESS=1 1669REQUIRE_PACKAGES_HASH=1 1670REQUIRE_PACKAGES_LIBTAR=1 1671REQUIRE_PACKAGES_FPMKUNIT=1 1672endif 1673ifeq ($(FULL_TARGET),aarch64-linux) 1674REQUIRE_PACKAGES_RTL=1 1675REQUIRE_PACKAGES_PASZLIB=1 1676REQUIRE_PACKAGES_FCL-PROCESS=1 1677REQUIRE_PACKAGES_HASH=1 1678REQUIRE_PACKAGES_LIBTAR=1 1679REQUIRE_PACKAGES_FPMKUNIT=1 1680endif 1681ifeq ($(FULL_TARGET),aarch64-darwin) 1682REQUIRE_PACKAGES_RTL=1 1683REQUIRE_PACKAGES_PASZLIB=1 1684REQUIRE_PACKAGES_FCL-PROCESS=1 1685REQUIRE_PACKAGES_HASH=1 1686REQUIRE_PACKAGES_LIBTAR=1 1687REQUIRE_PACKAGES_FPMKUNIT=1 1688endif 1689ifeq ($(FULL_TARGET),aarch64-android) 1690REQUIRE_PACKAGES_RTL=1 1691REQUIRE_PACKAGES_PASZLIB=1 1692REQUIRE_PACKAGES_FCL-PROCESS=1 1693REQUIRE_PACKAGES_HASH=1 1694REQUIRE_PACKAGES_LIBTAR=1 1695REQUIRE_PACKAGES_FPMKUNIT=1 1696endif 1697ifeq ($(FULL_TARGET),aarch64-ios) 1698REQUIRE_PACKAGES_RTL=1 1699REQUIRE_PACKAGES_PASZLIB=1 1700REQUIRE_PACKAGES_FCL-PROCESS=1 1701REQUIRE_PACKAGES_HASH=1 1702REQUIRE_PACKAGES_LIBTAR=1 1703REQUIRE_PACKAGES_FPMKUNIT=1 1704endif 1705ifeq ($(FULL_TARGET),wasm-wasm) 1706REQUIRE_PACKAGES_RTL=1 1707REQUIRE_PACKAGES_PASZLIB=1 1708REQUIRE_PACKAGES_FCL-PROCESS=1 1709REQUIRE_PACKAGES_HASH=1 1710REQUIRE_PACKAGES_LIBTAR=1 1711REQUIRE_PACKAGES_FPMKUNIT=1 1712endif 1713ifeq ($(FULL_TARGET),sparc64-linux) 1714REQUIRE_PACKAGES_RTL=1 1715REQUIRE_PACKAGES_PASZLIB=1 1716REQUIRE_PACKAGES_FCL-PROCESS=1 1717REQUIRE_PACKAGES_HASH=1 1718REQUIRE_PACKAGES_LIBTAR=1 1719REQUIRE_PACKAGES_FPMKUNIT=1 1720endif 1721ifdef REQUIRE_PACKAGES_RTL 1722PACKAGEDIR_RTL:=$(firstword $(subst /Makefile.fpc,,$(strip $(wildcard $(addsuffix /rtl/Makefile.fpc,$(PACKAGESDIR)))))) 1723ifneq ($(PACKAGEDIR_RTL),) 1724ifneq ($(wildcard $(PACKAGEDIR_RTL)/units/$(TARGETSUFFIX)),) 1725UNITDIR_RTL=$(PACKAGEDIR_RTL)/units/$(TARGETSUFFIX) 1726else 1727UNITDIR_RTL=$(PACKAGEDIR_RTL) 1728endif 1729ifneq ($(wildcard $(PACKAGEDIR_RTL)/units/$(SOURCESUFFIX)),) 1730UNITDIR_FPMAKE_RTL=$(PACKAGEDIR_RTL)/units/$(SOURCESUFFIX) 1731else 1732ifneq ($(wildcard $(PACKAGEDIR_RTL)/units_bs/$(SOURCESUFFIX)),) 1733UNITDIR_FPMAKE_RTL=$(PACKAGEDIR_RTL)/units_bs/$(SOURCESUFFIX) 1734else 1735UNITDIR_FPMAKE_RTL=$(PACKAGEDIR_RTL) 1736endif 1737endif 1738ifdef CHECKDEPEND 1739$(PACKAGEDIR_RTL)/$(OS_TARGET)/$(FPCMADE): 1740 $(MAKE) -C $(PACKAGEDIR_RTL)/$(OS_TARGET) $(FPCMADE) 1741override ALLDEPENDENCIES+=$(PACKAGEDIR_RTL)/$(OS_TARGET)/$(FPCMADE) 1742endif 1743else 1744PACKAGEDIR_RTL= 1745UNITDIR_RTL:=$(subst /Package.fpc,,$(strip $(wildcard $(addsuffix /rtl/Package.fpc,$(UNITSDIR))))) 1746ifneq ($(UNITDIR_RTL),) 1747UNITDIR_RTL:=$(firstword $(UNITDIR_RTL)) 1748else 1749UNITDIR_RTL= 1750endif 1751endif 1752ifdef UNITDIR_RTL 1753override COMPILER_UNITDIR+=$(UNITDIR_RTL) 1754endif 1755ifdef UNITDIR_FPMAKE_RTL 1756override COMPILER_FPMAKE_UNITDIR+=$(UNITDIR_FPMAKE_RTL) 1757endif 1758endif 1759ifdef REQUIRE_PACKAGES_PASZLIB 1760PACKAGEDIR_PASZLIB:=$(firstword $(subst /Makefile.fpc,,$(strip $(wildcard $(addsuffix /paszlib/Makefile.fpc,$(PACKAGESDIR)))))) 1761ifneq ($(PACKAGEDIR_PASZLIB),) 1762ifneq ($(wildcard $(PACKAGEDIR_PASZLIB)/units/$(TARGETSUFFIX)),) 1763UNITDIR_PASZLIB=$(PACKAGEDIR_PASZLIB)/units/$(TARGETSUFFIX) 1764else 1765UNITDIR_PASZLIB=$(PACKAGEDIR_PASZLIB) 1766endif 1767ifneq ($(wildcard $(PACKAGEDIR_PASZLIB)/units/$(SOURCESUFFIX)),) 1768UNITDIR_FPMAKE_PASZLIB=$(PACKAGEDIR_PASZLIB)/units/$(SOURCESUFFIX) 1769else 1770ifneq ($(wildcard $(PACKAGEDIR_PASZLIB)/units_bs/$(SOURCESUFFIX)),) 1771UNITDIR_FPMAKE_PASZLIB=$(PACKAGEDIR_PASZLIB)/units_bs/$(SOURCESUFFIX) 1772else 1773UNITDIR_FPMAKE_PASZLIB=$(PACKAGEDIR_PASZLIB) 1774endif 1775endif 1776ifdef CHECKDEPEND 1777$(PACKAGEDIR_PASZLIB)/$(FPCMADE): 1778 $(MAKE) -C $(PACKAGEDIR_PASZLIB) $(FPCMADE) 1779override ALLDEPENDENCIES+=$(PACKAGEDIR_PASZLIB)/$(FPCMADE) 1780endif 1781else 1782PACKAGEDIR_PASZLIB= 1783UNITDIR_PASZLIB:=$(subst /Package.fpc,,$(strip $(wildcard $(addsuffix /paszlib/Package.fpc,$(UNITSDIR))))) 1784ifneq ($(UNITDIR_PASZLIB),) 1785UNITDIR_PASZLIB:=$(firstword $(UNITDIR_PASZLIB)) 1786else 1787UNITDIR_PASZLIB= 1788endif 1789endif 1790ifdef UNITDIR_PASZLIB 1791override COMPILER_UNITDIR+=$(UNITDIR_PASZLIB) 1792endif 1793ifdef UNITDIR_FPMAKE_PASZLIB 1794override COMPILER_FPMAKE_UNITDIR+=$(UNITDIR_FPMAKE_PASZLIB) 1795endif 1796endif 1797ifdef REQUIRE_PACKAGES_FCL-PROCESS 1798PACKAGEDIR_FCL-PROCESS:=$(firstword $(subst /Makefile.fpc,,$(strip $(wildcard $(addsuffix /fcl-process/Makefile.fpc,$(PACKAGESDIR)))))) 1799ifneq ($(PACKAGEDIR_FCL-PROCESS),) 1800ifneq ($(wildcard $(PACKAGEDIR_FCL-PROCESS)/units/$(TARGETSUFFIX)),) 1801UNITDIR_FCL-PROCESS=$(PACKAGEDIR_FCL-PROCESS)/units/$(TARGETSUFFIX) 1802else 1803UNITDIR_FCL-PROCESS=$(PACKAGEDIR_FCL-PROCESS) 1804endif 1805ifneq ($(wildcard $(PACKAGEDIR_FCL-PROCESS)/units/$(SOURCESUFFIX)),) 1806UNITDIR_FPMAKE_FCL-PROCESS=$(PACKAGEDIR_FCL-PROCESS)/units/$(SOURCESUFFIX) 1807else 1808ifneq ($(wildcard $(PACKAGEDIR_FCL-PROCESS)/units_bs/$(SOURCESUFFIX)),) 1809UNITDIR_FPMAKE_FCL-PROCESS=$(PACKAGEDIR_FCL-PROCESS)/units_bs/$(SOURCESUFFIX) 1810else 1811UNITDIR_FPMAKE_FCL-PROCESS=$(PACKAGEDIR_FCL-PROCESS) 1812endif 1813endif 1814ifdef CHECKDEPEND 1815$(PACKAGEDIR_FCL-PROCESS)/$(FPCMADE): 1816 $(MAKE) -C $(PACKAGEDIR_FCL-PROCESS) $(FPCMADE) 1817override ALLDEPENDENCIES+=$(PACKAGEDIR_FCL-PROCESS)/$(FPCMADE) 1818endif 1819else 1820PACKAGEDIR_FCL-PROCESS= 1821UNITDIR_FCL-PROCESS:=$(subst /Package.fpc,,$(strip $(wildcard $(addsuffix /fcl-process/Package.fpc,$(UNITSDIR))))) 1822ifneq ($(UNITDIR_FCL-PROCESS),) 1823UNITDIR_FCL-PROCESS:=$(firstword $(UNITDIR_FCL-PROCESS)) 1824else 1825UNITDIR_FCL-PROCESS= 1826endif 1827endif 1828ifdef UNITDIR_FCL-PROCESS 1829override COMPILER_UNITDIR+=$(UNITDIR_FCL-PROCESS) 1830endif 1831ifdef UNITDIR_FPMAKE_FCL-PROCESS 1832override COMPILER_FPMAKE_UNITDIR+=$(UNITDIR_FPMAKE_FCL-PROCESS) 1833endif 1834endif 1835ifdef REQUIRE_PACKAGES_HASH 1836PACKAGEDIR_HASH:=$(firstword $(subst /Makefile.fpc,,$(strip $(wildcard $(addsuffix /hash/Makefile.fpc,$(PACKAGESDIR)))))) 1837ifneq ($(PACKAGEDIR_HASH),) 1838ifneq ($(wildcard $(PACKAGEDIR_HASH)/units/$(TARGETSUFFIX)),) 1839UNITDIR_HASH=$(PACKAGEDIR_HASH)/units/$(TARGETSUFFIX) 1840else 1841UNITDIR_HASH=$(PACKAGEDIR_HASH) 1842endif 1843ifneq ($(wildcard $(PACKAGEDIR_HASH)/units/$(SOURCESUFFIX)),) 1844UNITDIR_FPMAKE_HASH=$(PACKAGEDIR_HASH)/units/$(SOURCESUFFIX) 1845else 1846ifneq ($(wildcard $(PACKAGEDIR_HASH)/units_bs/$(SOURCESUFFIX)),) 1847UNITDIR_FPMAKE_HASH=$(PACKAGEDIR_HASH)/units_bs/$(SOURCESUFFIX) 1848else 1849UNITDIR_FPMAKE_HASH=$(PACKAGEDIR_HASH) 1850endif 1851endif 1852ifdef CHECKDEPEND 1853$(PACKAGEDIR_HASH)/$(FPCMADE): 1854 $(MAKE) -C $(PACKAGEDIR_HASH) $(FPCMADE) 1855override ALLDEPENDENCIES+=$(PACKAGEDIR_HASH)/$(FPCMADE) 1856endif 1857else 1858PACKAGEDIR_HASH= 1859UNITDIR_HASH:=$(subst /Package.fpc,,$(strip $(wildcard $(addsuffix /hash/Package.fpc,$(UNITSDIR))))) 1860ifneq ($(UNITDIR_HASH),) 1861UNITDIR_HASH:=$(firstword $(UNITDIR_HASH)) 1862else 1863UNITDIR_HASH= 1864endif 1865endif 1866ifdef UNITDIR_HASH 1867override COMPILER_UNITDIR+=$(UNITDIR_HASH) 1868endif 1869ifdef UNITDIR_FPMAKE_HASH 1870override COMPILER_FPMAKE_UNITDIR+=$(UNITDIR_FPMAKE_HASH) 1871endif 1872endif 1873ifdef REQUIRE_PACKAGES_LIBTAR 1874PACKAGEDIR_LIBTAR:=$(firstword $(subst /Makefile.fpc,,$(strip $(wildcard $(addsuffix /libtar/Makefile.fpc,$(PACKAGESDIR)))))) 1875ifneq ($(PACKAGEDIR_LIBTAR),) 1876ifneq ($(wildcard $(PACKAGEDIR_LIBTAR)/units/$(TARGETSUFFIX)),) 1877UNITDIR_LIBTAR=$(PACKAGEDIR_LIBTAR)/units/$(TARGETSUFFIX) 1878else 1879UNITDIR_LIBTAR=$(PACKAGEDIR_LIBTAR) 1880endif 1881ifneq ($(wildcard $(PACKAGEDIR_LIBTAR)/units/$(SOURCESUFFIX)),) 1882UNITDIR_FPMAKE_LIBTAR=$(PACKAGEDIR_LIBTAR)/units/$(SOURCESUFFIX) 1883else 1884ifneq ($(wildcard $(PACKAGEDIR_LIBTAR)/units_bs/$(SOURCESUFFIX)),) 1885UNITDIR_FPMAKE_LIBTAR=$(PACKAGEDIR_LIBTAR)/units_bs/$(SOURCESUFFIX) 1886else 1887UNITDIR_FPMAKE_LIBTAR=$(PACKAGEDIR_LIBTAR) 1888endif 1889endif 1890ifdef CHECKDEPEND 1891$(PACKAGEDIR_LIBTAR)/$(FPCMADE): 1892 $(MAKE) -C $(PACKAGEDIR_LIBTAR) $(FPCMADE) 1893override ALLDEPENDENCIES+=$(PACKAGEDIR_LIBTAR)/$(FPCMADE) 1894endif 1895else 1896PACKAGEDIR_LIBTAR= 1897UNITDIR_LIBTAR:=$(subst /Package.fpc,,$(strip $(wildcard $(addsuffix /libtar/Package.fpc,$(UNITSDIR))))) 1898ifneq ($(UNITDIR_LIBTAR),) 1899UNITDIR_LIBTAR:=$(firstword $(UNITDIR_LIBTAR)) 1900else 1901UNITDIR_LIBTAR= 1902endif 1903endif 1904ifdef UNITDIR_LIBTAR 1905override COMPILER_UNITDIR+=$(UNITDIR_LIBTAR) 1906endif 1907ifdef UNITDIR_FPMAKE_LIBTAR 1908override COMPILER_FPMAKE_UNITDIR+=$(UNITDIR_FPMAKE_LIBTAR) 1909endif 1910endif 1911ifdef REQUIRE_PACKAGES_FPMKUNIT 1912PACKAGEDIR_FPMKUNIT:=$(firstword $(subst /Makefile.fpc,,$(strip $(wildcard $(addsuffix /fpmkunit/Makefile.fpc,$(PACKAGESDIR)))))) 1913ifneq ($(PACKAGEDIR_FPMKUNIT),) 1914ifneq ($(wildcard $(PACKAGEDIR_FPMKUNIT)/units/$(TARGETSUFFIX)),) 1915UNITDIR_FPMKUNIT=$(PACKAGEDIR_FPMKUNIT)/units/$(TARGETSUFFIX) 1916else 1917UNITDIR_FPMKUNIT=$(PACKAGEDIR_FPMKUNIT) 1918endif 1919ifneq ($(wildcard $(PACKAGEDIR_FPMKUNIT)/units/$(SOURCESUFFIX)),) 1920UNITDIR_FPMAKE_FPMKUNIT=$(PACKAGEDIR_FPMKUNIT)/units/$(SOURCESUFFIX) 1921else 1922ifneq ($(wildcard $(PACKAGEDIR_FPMKUNIT)/units_bs/$(SOURCESUFFIX)),) 1923UNITDIR_FPMAKE_FPMKUNIT=$(PACKAGEDIR_FPMKUNIT)/units_bs/$(SOURCESUFFIX) 1924else 1925UNITDIR_FPMAKE_FPMKUNIT=$(PACKAGEDIR_FPMKUNIT) 1926endif 1927endif 1928ifdef CHECKDEPEND 1929$(PACKAGEDIR_FPMKUNIT)/$(FPCMADE): 1930 $(MAKE) -C $(PACKAGEDIR_FPMKUNIT) $(FPCMADE) 1931override ALLDEPENDENCIES+=$(PACKAGEDIR_FPMKUNIT)/$(FPCMADE) 1932endif 1933else 1934PACKAGEDIR_FPMKUNIT= 1935UNITDIR_FPMKUNIT:=$(subst /Package.fpc,,$(strip $(wildcard $(addsuffix /fpmkunit/Package.fpc,$(UNITSDIR))))) 1936ifneq ($(UNITDIR_FPMKUNIT),) 1937UNITDIR_FPMKUNIT:=$(firstword $(UNITDIR_FPMKUNIT)) 1938else 1939UNITDIR_FPMKUNIT= 1940endif 1941endif 1942ifdef UNITDIR_FPMKUNIT 1943override COMPILER_UNITDIR+=$(UNITDIR_FPMKUNIT) 1944endif 1945ifdef UNITDIR_FPMAKE_FPMKUNIT 1946override COMPILER_FPMAKE_UNITDIR+=$(UNITDIR_FPMAKE_FPMKUNIT) 1947endif 1948endif 1949ifndef NOCPUDEF 1950override FPCOPTDEF=$(ARCH) 1951endif 1952ifneq ($(OS_TARGET),$(OS_SOURCE)) 1953override FPCOPT+=-T$(OS_TARGET) 1954endif 1955ifneq ($(CPU_TARGET),$(CPU_SOURCE)) 1956override FPCOPT+=-P$(ARCH) 1957endif 1958ifeq ($(OS_SOURCE),openbsd) 1959override FPCOPT+=-FD$(NEW_BINUTILS_PATH) 1960override FPCMAKEOPT+=-FD$(NEW_BINUTILS_PATH) 1961override FPMAKE_BUILD_OPT+=-FD$(NEW_BINUTILS_PATH) 1962endif 1963ifndef CROSSBOOTSTRAP 1964ifneq ($(BINUTILSPREFIX),) 1965override FPCOPT+=-XP$(BINUTILSPREFIX) 1966endif 1967ifneq ($(BINUTILSPREFIX),) 1968override FPCOPT+=-Xr$(RLINKPATH) 1969endif 1970endif 1971ifndef CROSSCOMPILE 1972ifneq ($(BINUTILSPREFIX),) 1973override FPCMAKEOPT+=-XP$(BINUTILSPREFIX) 1974override FPMAKE_BUILD_OPT+=-XP$(BINUTILSPREFIX) 1975endif 1976endif 1977ifdef UNITDIR 1978override FPCOPT+=$(addprefix -Fu,$(UNITDIR)) 1979endif 1980ifdef LIBDIR 1981override FPCOPT+=$(addprefix -Fl,$(LIBDIR)) 1982endif 1983ifdef OBJDIR 1984override FPCOPT+=$(addprefix -Fo,$(OBJDIR)) 1985endif 1986ifdef INCDIR 1987override FPCOPT+=$(addprefix -Fi,$(INCDIR)) 1988endif 1989ifdef LINKSMART 1990override FPCOPT+=-XX 1991endif 1992ifdef CREATESMART 1993override FPCOPT+=-CX 1994endif 1995ifdef DEBUG 1996override FPCOPT+=-gl 1997override FPCOPTDEF+=DEBUG 1998endif 1999ifdef RELEASE 2000FPCCPUOPT:=-O2 2001override FPCOPT+=-Ur -Xs $(FPCCPUOPT) -n 2002override FPCOPTDEF+=RELEASE 2003endif 2004ifdef STRIP 2005override FPCOPT+=-Xs 2006endif 2007ifdef OPTIMIZE 2008override FPCOPT+=-O2 2009endif 2010ifdef VERBOSE 2011override FPCOPT+=-vwni 2012endif 2013ifdef COMPILER_OPTIONS 2014override FPCOPT+=$(COMPILER_OPTIONS) 2015endif 2016ifdef COMPILER_UNITDIR 2017override FPCOPT+=$(addprefix -Fu,$(COMPILER_UNITDIR)) 2018endif 2019ifdef COMPILER_LIBRARYDIR 2020override FPCOPT+=$(addprefix -Fl,$(COMPILER_LIBRARYDIR)) 2021endif 2022ifdef COMPILER_OBJECTDIR 2023override FPCOPT+=$(addprefix -Fo,$(COMPILER_OBJECTDIR)) 2024endif 2025ifdef COMPILER_INCLUDEDIR 2026override FPCOPT+=$(addprefix -Fi,$(COMPILER_INCLUDEDIR)) 2027endif 2028ifdef CROSSBINDIR 2029override FPCOPT+=-FD$(CROSSBINDIR) 2030endif 2031ifdef COMPILER_TARGETDIR 2032override FPCOPT+=-FE$(COMPILER_TARGETDIR) 2033ifeq ($(COMPILER_TARGETDIR),.) 2034override TARGETDIRPREFIX= 2035else 2036override TARGETDIRPREFIX=$(COMPILER_TARGETDIR)/ 2037endif 2038endif 2039ifdef COMPILER_UNITTARGETDIR 2040override FPCOPT+=-FU$(COMPILER_UNITTARGETDIR) 2041ifeq ($(COMPILER_UNITTARGETDIR),.) 2042override UNITTARGETDIRPREFIX= 2043else 2044override UNITTARGETDIRPREFIX=$(COMPILER_UNITTARGETDIR)/ 2045endif 2046else 2047ifdef COMPILER_TARGETDIR 2048override COMPILER_UNITTARGETDIR=$(COMPILER_TARGETDIR) 2049override UNITTARGETDIRPREFIX=$(TARGETDIRPREFIX) 2050endif 2051endif 2052ifdef CREATESHARED 2053override FPCOPT+=-Cg 2054endif 2055ifneq ($(findstring $(OS_TARGET),dragonfly freebsd openbsd netbsd linux solaris),) 2056ifneq ($(findstring $(CPU_TARGET),x86_64 mips mipsel),) 2057override FPCOPT+=-Cg 2058endif 2059endif 2060ifdef LINKSHARED 2061endif 2062ifdef OPT 2063override FPCOPT+=$(OPT) 2064endif 2065ifdef FPMAKEBUILDOPT 2066override FPMAKE_BUILD_OPT+=$(FPMAKEBUILDOPT) 2067endif 2068ifdef FPCOPTDEF 2069override FPCOPT+=$(addprefix -d,$(FPCOPTDEF)) 2070endif 2071ifdef CFGFILE 2072override FPCOPT+=@$(CFGFILE) 2073endif 2074ifdef USEENV 2075override FPCEXTCMD:=$(FPCOPT) 2076override FPCOPT:=!FPCEXTCMD 2077export FPCEXTCMD 2078endif 2079override AFULL_TARGET=$(CPU_TARGET)-$(OS_TARGET) 2080override AFULL_SOURCE=$(CPU_SOURCE)-$(OS_SOURCE) 2081ifneq ($(AFULL_TARGET),$(AFULL_SOURCE)) 2082override ACROSSCOMPILE=1 2083endif 2084ifdef ACROSSCOMPILE 2085override FPCOPT+=$(CROSSOPT) 2086endif 2087override COMPILER:=$(strip $(FPC) $(FPCOPT)) 2088ifneq (,$(findstring -sh ,$(COMPILER))) 2089UseEXECPPAS=1 2090endif 2091ifneq (,$(findstring -s ,$(COMPILER))) 2092ifeq ($(FULL_SOURCE),$(FULL_TARGET)) 2093UseEXECPPAS=1 2094endif 2095endif 2096ifneq ($(UseEXECPPAS),1) 2097EXECPPAS= 2098else 2099ifdef RUNBATCH 2100EXECPPAS:=@$(RUNBATCH) $(PPAS) 2101else 2102EXECPPAS:=@$(PPAS) 2103endif 2104endif 2105ifdef TARGET_RSTS 2106override RSTFILES=$(addsuffix $(RSTEXT),$(TARGET_RSTS)) 2107override CLEANRSTFILES+=$(RSTFILES) 2108endif 2109.PHONY: fpc_install fpc_sourceinstall fpc_exampleinstall 2110ifdef INSTALL_UNITS 2111override INSTALLPPUFILES+=$(addsuffix $(PPUEXT),$(INSTALL_UNITS)) 2112endif 2113ifdef INSTALL_BUILDUNIT 2114override INSTALLPPUFILES:=$(filter-out $(INSTALL_BUILDUNIT)$(PPUEXT),$(INSTALLPPUFILES)) 2115endif 2116ifdef INSTALLPPUFILES 2117ifneq ($(IMPORTLIBPREFIX)-$(STATICLIBEXT),$(STATICLIBPREFIX)-$(STATICLIBEXT)) 2118override INSTALLPPULINKFILES:=$(subst $(PPUEXT),$(OEXT),$(INSTALLPPUFILES)) $(addprefix $(STATICLIBPREFIX),$(subst $(PPUEXT),$(STATICLIBEXT),$(INSTALLPPUFILES))) $(addprefix $(IMPORTLIBPREFIX),$(subst $(PPUEXT),$(STATICLIBEXT),$(INSTALLPPUFILES))) 2119else 2120override INSTALLPPULINKFILES:=$(subst $(PPUEXT),$(OEXT),$(INSTALLPPUFILES)) $(addprefix $(STATICLIBPREFIX),$(subst $(PPUEXT),$(STATICLIBEXT),$(INSTALLPPUFILES))) 2121endif 2122ifneq ($(UNITTARGETDIRPREFIX),) 2123override INSTALLPPUFILES:=$(addprefix $(UNITTARGETDIRPREFIX),$(notdir $(INSTALLPPUFILES))) 2124override INSTALLPPULINKFILES:=$(wildcard $(addprefix $(UNITTARGETDIRPREFIX),$(notdir $(INSTALLPPULINKFILES)))) 2125endif 2126override INSTALL_CREATEPACKAGEFPC=1 2127endif 2128ifdef INSTALLEXEFILES 2129ifneq ($(TARGETDIRPREFIX),) 2130override INSTALLEXEFILES:=$(addprefix $(TARGETDIRPREFIX),$(notdir $(INSTALLEXEFILES))) 2131endif 2132endif 2133fpc_install: all $(INSTALLTARGET) 2134ifdef INSTALLEXEFILES 2135 $(MKDIR) $(INSTALL_BINDIR) 2136 $(INSTALLEXE) $(INSTALLEXEFILES) $(INSTALL_BINDIR) 2137endif 2138ifdef INSTALL_CREATEPACKAGEFPC 2139ifdef FPCMAKE 2140ifdef PACKAGE_VERSION 2141ifneq ($(wildcard Makefile.fpc),) 2142 $(FPCMAKE) -p -T$(CPU_TARGET)-$(OS_TARGET) Makefile.fpc 2143 $(MKDIR) $(INSTALL_UNITDIR) 2144 $(INSTALL) Package.fpc $(INSTALL_UNITDIR) 2145endif 2146endif 2147endif 2148endif 2149ifdef INSTALLPPUFILES 2150 $(MKDIR) $(INSTALL_UNITDIR) 2151 $(INSTALL) $(INSTALLPPUFILES) $(INSTALL_UNITDIR) 2152ifneq ($(INSTALLPPULINKFILES),) 2153 $(INSTALL) $(INSTALLPPULINKFILES) $(INSTALL_UNITDIR) 2154endif 2155ifneq ($(wildcard $(LIB_FULLNAME)),) 2156 $(MKDIR) $(INSTALL_LIBDIR) 2157 $(INSTALL) $(LIB_FULLNAME) $(INSTALL_LIBDIR) 2158ifdef inUnix 2159 ln -sf $(LIB_FULLNAME) $(INSTALL_LIBDIR)/$(LIB_NAME) 2160endif 2161endif 2162endif 2163ifdef INSTALL_FILES 2164 $(MKDIR) $(INSTALL_DATADIR) 2165 $(INSTALL) $(INSTALL_FILES) $(INSTALL_DATADIR) 2166endif 2167fpc_sourceinstall: distclean 2168 $(MKDIR) $(INSTALL_SOURCEDIR) 2169 $(COPYTREE) $(BASEDIR)/* $(INSTALL_SOURCEDIR) 2170fpc_exampleinstall: $(EXAMPLEINSTALLTARGET) $(addsuffix _distclean,$(TARGET_EXAMPLEDIRS)) 2171ifdef HASEXAMPLES 2172 $(MKDIR) $(INSTALL_EXAMPLEDIR) 2173endif 2174ifdef EXAMPLESOURCEFILES 2175 $(COPY) $(EXAMPLESOURCEFILES) $(INSTALL_EXAMPLEDIR) 2176endif 2177ifdef TARGET_EXAMPLEDIRS 2178 $(COPYTREE) $(addsuffix /*,$(TARGET_EXAMPLEDIRS)) $(INSTALL_EXAMPLEDIR) 2179endif 2180.PHONY: fpc_distinstall 2181fpc_distinstall: install exampleinstall 2182.PHONY: fpc_zipinstall fpc_zipsourceinstall fpc_zipexampleinstall 2183ifndef PACKDIR 2184ifndef inUnix 2185PACKDIR=$(BASEDIR)/../fpc-pack 2186else 2187PACKDIR=/tmp/fpc-pack 2188endif 2189endif 2190ifndef ZIPNAME 2191ifdef DIST_ZIPNAME 2192ZIPNAME=$(DIST_ZIPNAME) 2193else 2194ZIPNAME=$(PACKAGE_NAME) 2195endif 2196endif 2197ifndef FULLZIPNAME 2198FULLZIPNAME=$(ZIPCROSSPREFIX)$(ZIPPREFIX)$(ZIPNAME)$(ZIPSUFFIX) 2199endif 2200ifndef ZIPTARGET 2201ifdef DIST_ZIPTARGET 2202ZIPTARGET=DIST_ZIPTARGET 2203else 2204ZIPTARGET=install 2205endif 2206endif 2207ifndef USEZIP 2208ifdef inUnix 2209USETAR=1 2210endif 2211endif 2212ifndef inUnix 2213USEZIPWRAPPER=1 2214endif 2215ifdef USEZIPWRAPPER 2216ZIPPATHSEP=$(PATHSEP) 2217ZIPWRAPPER=$(subst /,$(PATHSEP),$(DIST_DESTDIR)/fpczip$(SRCBATCHEXT)) 2218else 2219ZIPPATHSEP=/ 2220endif 2221ZIPCMD_CDPACK:=cd $(subst /,$(ZIPPATHSEP),$(PACKDIR)) 2222ZIPCMD_CDBASE:=cd $(subst /,$(ZIPPATHSEP),$(BASEDIR)) 2223ifdef USETAR 2224ZIPDESTFILE:=$(DIST_DESTDIR)/$(FULLZIPNAME)$(TAREXT) 2225ZIPCMD_ZIP:=$(TARPROG) c$(TAROPT)f $(ZIPDESTFILE) * 2226else 2227ZIPDESTFILE:=$(DIST_DESTDIR)/$(FULLZIPNAME)$(ZIPEXT) 2228ZIPCMD_ZIP:=$(subst /,$(ZIPPATHSEP),$(ZIPPROG)) -Dr $(ZIPOPT) $(ZIPDESTFILE) * 2229endif 2230fpc_zipinstall: 2231 $(MAKE) $(ZIPTARGET) INSTALL_PREFIX=$(PACKDIR) ZIPINSTALL=1 2232 $(MKDIR) $(DIST_DESTDIR) 2233 $(DEL) $(ZIPDESTFILE) 2234ifdef USEZIPWRAPPER 2235ifneq ($(ECHOREDIR),echo) 2236 $(ECHOREDIR) -e "$(subst \,\\,$(ZIPCMD_CDPACK))" > $(ZIPWRAPPER) 2237 $(ECHOREDIR) -e "$(subst \,\\,$(ZIPCMD_ZIP))" >> $(ZIPWRAPPER) 2238 $(ECHOREDIR) -e "$(subst \,\\,$(ZIPCMD_CDBASE))" >> $(ZIPWRAPPER) 2239else 2240 echo $(ZIPCMD_CDPACK) > $(ZIPWRAPPER) 2241 echo $(ZIPCMD_ZIP) >> $(ZIPWRAPPER) 2242 echo $(ZIPCMD_CDBASE) >> $(ZIPWRAPPER) 2243endif 2244ifdef inUnix 2245 /bin/sh $(ZIPWRAPPER) 2246else 2247ifdef RUNBATCH 2248 $(RUNBATCH) $(ZIPWRAPPER) 2249else 2250 $(ZIPWRAPPER) 2251endif 2252endif 2253 $(DEL) $(ZIPWRAPPER) 2254else 2255 $(ZIPCMD_CDPACK) ; $(ZIPCMD_ZIP) ; $(ZIPCMD_CDBASE) 2256endif 2257 $(DELTREE) $(PACKDIR) 2258fpc_zipsourceinstall: 2259 $(MAKE) fpc_zipinstall ZIPTARGET=sourceinstall ZIPSUFFIX=$(ZIPSOURCESUFFIX) 2260fpc_zipexampleinstall: 2261ifdef HASEXAMPLES 2262 $(MAKE) fpc_zipinstall ZIPTARGET=exampleinstall ZIPSUFFIX=$(ZIPEXAMPLESUFFIX) 2263endif 2264fpc_zipdistinstall: 2265 $(MAKE) fpc_zipinstall ZIPTARGET=distinstall 2266.PHONY: fpc_clean fpc_cleanall fpc_distclean 2267ifdef EXEFILES 2268override CLEANEXEFILES:=$(addprefix $(TARGETDIRPREFIX),$(CLEANEXEFILES)) 2269override CLEANEXEDBGFILES:=$(addprefix $(TARGETDIRPREFIX),$(CLEANEXEDBGFILES)) 2270endif 2271ifdef CLEAN_PROGRAMS 2272override CLEANEXEFILES+=$(addprefix $(TARGETDIRPREFIX),$(addsuffix $(EXEEXT), $(CLEAN_PROGRAMS))) 2273override CLEANEXEDBGFILES+=$(addprefix $(TARGETDIRPREFIX),$(addsuffix $(EXEDBGEXT), $(CLEAN_PROGRAMS))) 2274endif 2275ifdef CLEAN_UNITS 2276override CLEANPPUFILES+=$(addsuffix $(PPUEXT),$(CLEAN_UNITS)) 2277endif 2278ifdef CLEANPPUFILES 2279override CLEANPPULINKFILES:=$(subst $(PPUEXT),$(OEXT),$(CLEANPPUFILES)) $(addprefix $(STATICLIBPREFIX),$(subst $(PPUEXT),$(STATICLIBEXT),$(CLEANPPUFILES))) $(addprefix $(IMPORTLIBPREFIX),$(subst $(PPUEXT),$(STATICLIBEXT),$(CLEANPPUFILES))) 2280ifdef DEBUGSYMEXT 2281override CLEANPPULINKFILES+=$(subst $(PPUEXT),$(DEBUGSYMEXT),$(CLEANPPUFILES)) 2282endif 2283override CLEANPPUFILES:=$(addprefix $(UNITTARGETDIRPREFIX),$(CLEANPPUFILES)) 2284override CLEANPPULINKFILES:=$(wildcard $(addprefix $(UNITTARGETDIRPREFIX),$(CLEANPPULINKFILES))) 2285endif 2286fpc_clean: $(CLEANTARGET) 2287ifdef CLEANEXEFILES 2288 -$(DEL) $(CLEANEXEFILES) 2289endif 2290ifdef CLEANEXEDBGFILES 2291 -$(DELTREE) $(CLEANEXEDBGFILES) 2292endif 2293ifdef CLEANPPUFILES 2294 -$(DEL) $(CLEANPPUFILES) 2295endif 2296ifneq ($(CLEANPPULINKFILES),) 2297 -$(DEL) $(CLEANPPULINKFILES) 2298endif 2299ifdef CLEANRSTFILES 2300 -$(DEL) $(addprefix $(UNITTARGETDIRPREFIX),$(CLEANRSTFILES)) 2301endif 2302ifdef CLEAN_FILES 2303 -$(DEL) $(CLEAN_FILES) 2304endif 2305ifdef LIB_NAME 2306 -$(DEL) $(LIB_NAME) $(LIB_FULLNAME) 2307endif 2308 -$(DEL) $(FPCMADE) Package.fpc $(PPAS) script.res link.res $(FPCEXTFILE) $(REDIRFILE) 2309 -$(DEL) *$(ASMEXT) *_ppas$(BATCHEXT) ppas$(BATCHEXT) ppaslink$(BATCHEXT) 2310fpc_cleanall: $(CLEANTARGET) 2311ifdef CLEANEXEFILES 2312 -$(DEL) $(CLEANEXEFILES) 2313endif 2314ifdef COMPILER_UNITTARGETDIR 2315ifdef CLEANPPUFILES 2316 -$(DEL) $(CLEANPPUFILES) 2317endif 2318ifneq ($(CLEANPPULINKFILES),) 2319 -$(DEL) $(CLEANPPULINKFILES) 2320endif 2321ifdef CLEANRSTFILES 2322 -$(DEL) $(addprefix $(UNITTARGETDIRPREFIX),$(CLEANRSTFILES)) 2323endif 2324endif 2325ifdef CLEAN_FILES 2326 -$(DEL) $(CLEAN_FILES) 2327endif 2328 -$(DELTREE) units 2329 -$(DELTREE) bin 2330 -$(DEL) *$(OEXT) *$(PPUEXT) *$(RSTEXT) *$(ASMEXT) *$(STATICLIBEXT) *$(SHAREDLIBEXT) *$(PPLEXT) 2331ifneq ($(PPUEXT),.ppu) 2332 -$(DEL) *.o *.ppu *.a 2333endif 2334 -$(DELTREE) *$(SMARTEXT) 2335 -$(DEL) fpcmade.* Package.fpc $(PPAS) script.res link.res $(FPCEXTFILE) $(REDIRFILE) 2336 -$(DEL) *_ppas$(BATCHEXT) ppas$(BATCHEXT) ppaslink$(BATCHEXT) 2337ifdef AOUTEXT 2338 -$(DEL) *$(AOUTEXT) 2339endif 2340ifdef DEBUGSYMEXT 2341 -$(DEL) *$(DEBUGSYMEXT) 2342endif 2343ifdef LOCALFPMAKEBIN 2344 -$(DEL) $(LOCALFPMAKEBIN) 2345 -$(DEL) $(FPMAKEBINOBJ) 2346endif 2347fpc_distclean: cleanall 2348.PHONY: fpc_baseinfo 2349override INFORULES+=fpc_baseinfo 2350fpc_baseinfo: 2351 @$(ECHO) 2352 @$(ECHO) == Package info == 2353 @$(ECHO) Package Name..... $(PACKAGE_NAME) 2354 @$(ECHO) Package Version.. $(PACKAGE_VERSION) 2355 @$(ECHO) 2356 @$(ECHO) == Configuration info == 2357 @$(ECHO) 2358 @$(ECHO) FPC.......... $(FPC) 2359 @$(ECHO) FPC Version.. $(FPC_VERSION) 2360 @$(ECHO) Source CPU... $(CPU_SOURCE) 2361 @$(ECHO) Target CPU... $(CPU_TARGET) 2362 @$(ECHO) Source OS.... $(OS_SOURCE) 2363 @$(ECHO) Target OS.... $(OS_TARGET) 2364 @$(ECHO) Full Source.. $(FULL_SOURCE) 2365 @$(ECHO) Full Target.. $(FULL_TARGET) 2366 @$(ECHO) SourceSuffix. $(SOURCESUFFIX) 2367 @$(ECHO) TargetSuffix. $(TARGETSUFFIX) 2368 @$(ECHO) FPC fpmake... $(FPCFPMAKE) 2369 @$(ECHO) 2370 @$(ECHO) == Directory info == 2371 @$(ECHO) 2372 @$(ECHO) Required pkgs... $(REQUIRE_PACKAGES) 2373 @$(ECHO) 2374 @$(ECHO) Basedir......... $(BASEDIR) 2375 @$(ECHO) FPCDir.......... $(FPCDIR) 2376 @$(ECHO) CrossBinDir..... $(CROSSBINDIR) 2377 @$(ECHO) UnitsDir........ $(UNITSDIR) 2378 @$(ECHO) PackagesDir..... $(PACKAGESDIR) 2379 @$(ECHO) 2380 @$(ECHO) GCC library..... $(GCCLIBDIR) 2381 @$(ECHO) Other library... $(OTHERLIBDIR) 2382 @$(ECHO) 2383 @$(ECHO) == Tools info == 2384 @$(ECHO) 2385 @$(ECHO) As........ $(AS) 2386 @$(ECHO) Ld........ $(LD) 2387 @$(ECHO) Ar........ $(AR) 2388 @$(ECHO) Rc........ $(RC) 2389 @$(ECHO) 2390 @$(ECHO) Mv........ $(MVPROG) 2391 @$(ECHO) Cp........ $(CPPROG) 2392 @$(ECHO) Rm........ $(RMPROG) 2393 @$(ECHO) GInstall.. $(GINSTALL) 2394 @$(ECHO) Echo...... $(ECHO) 2395 @$(ECHO) Shell..... $(SHELL) 2396 @$(ECHO) Date...... $(DATE) 2397 @$(ECHO) FPCMake... $(FPCMAKE) 2398 @$(ECHO) PPUMove... $(PPUMOVE) 2399 @$(ECHO) Zip....... $(ZIPPROG) 2400 @$(ECHO) 2401 @$(ECHO) == Object info == 2402 @$(ECHO) 2403 @$(ECHO) Target Loaders........ $(TARGET_LOADERS) 2404 @$(ECHO) Target Units.......... $(TARGET_UNITS) 2405 @$(ECHO) Target Implicit Units. $(TARGET_IMPLICITUNITS) 2406 @$(ECHO) Target Programs....... $(TARGET_PROGRAMS) 2407 @$(ECHO) Target Dirs........... $(TARGET_DIRS) 2408 @$(ECHO) Target Examples....... $(TARGET_EXAMPLES) 2409 @$(ECHO) Target ExampleDirs.... $(TARGET_EXAMPLEDIRS) 2410 @$(ECHO) 2411 @$(ECHO) Clean Units......... $(CLEAN_UNITS) 2412 @$(ECHO) Clean Files......... $(CLEAN_FILES) 2413 @$(ECHO) 2414 @$(ECHO) Install Units....... $(INSTALL_UNITS) 2415 @$(ECHO) Install Files....... $(INSTALL_FILES) 2416 @$(ECHO) 2417 @$(ECHO) == Install info == 2418 @$(ECHO) 2419 @$(ECHO) DateStr.............. $(DATESTR) 2420 @$(ECHO) ZipName.............. $(ZIPNAME) 2421 @$(ECHO) ZipPrefix............ $(ZIPPREFIX) 2422 @$(ECHO) ZipCrossPrefix....... $(ZIPCROSSPREFIX) 2423 @$(ECHO) ZipSuffix............ $(ZIPSUFFIX) 2424 @$(ECHO) FullZipName.......... $(FULLZIPNAME) 2425 @$(ECHO) Install FPC Package.. $(INSTALL_FPCPACKAGE) 2426 @$(ECHO) 2427 @$(ECHO) Install base dir..... $(INSTALL_BASEDIR) 2428 @$(ECHO) Install binary dir... $(INSTALL_BINDIR) 2429 @$(ECHO) Install library dir.. $(INSTALL_LIBDIR) 2430 @$(ECHO) Install units dir.... $(INSTALL_UNITDIR) 2431 @$(ECHO) Install source dir... $(INSTALL_SOURCEDIR) 2432 @$(ECHO) Install doc dir...... $(INSTALL_DOCDIR) 2433 @$(ECHO) Install example dir.. $(INSTALL_EXAMPLEDIR) 2434 @$(ECHO) Install data dir..... $(INSTALL_DATADIR) 2435 @$(ECHO) 2436 @$(ECHO) Dist destination dir. $(DIST_DESTDIR) 2437 @$(ECHO) Dist zip name........ $(DIST_ZIPNAME) 2438 @$(ECHO) 2439.PHONY: fpc_info 2440fpc_info: $(INFORULES) 2441.PHONY: fpc_makefile fpc_makefiles fpc_makefile_sub1 fpc_makefile_sub2 \ 2442 fpc_makefile_dirs 2443fpc_makefile: 2444 $(FPCMAKE) -w -T$(OS_TARGET) Makefile.fpc 2445fpc_makefile_sub1: 2446ifdef TARGET_DIRS 2447 $(FPCMAKE) -w -T$(OS_TARGET) $(addsuffix /Makefile.fpc,$(TARGET_DIRS)) 2448endif 2449ifdef TARGET_EXAMPLEDIRS 2450 $(FPCMAKE) -w -T$(OS_TARGET) $(addsuffix /Makefile.fpc,$(TARGET_EXAMPLEDIRS)) 2451endif 2452fpc_makefile_sub2: $(addsuffix _makefile_dirs,$(TARGET_DIRS) $(TARGET_EXAMPLEDIRS)) 2453fpc_makefile_dirs: fpc_makefile_sub1 fpc_makefile_sub2 2454fpc_makefiles: fpc_makefile fpc_makefile_dirs 2455units: 2456examples: 2457shared: 2458sourceinstall: fpc_sourceinstall 2459exampleinstall: fpc_exampleinstall 2460zipexampleinstall: fpc_zipexampleinstall 2461info: fpc_info 2462makefiles: fpc_makefiles 2463.PHONY: units examples shared sourceinstall exampleinstall zipexampleinstall info makefiles 2464ifneq ($(wildcard fpcmake.loc),) 2465include fpcmake.loc 2466endif 2467override FPCOPT:=$(filter-out -FU%,$(FPCOPT)) 2468override FPCOPT:=$(filter-out -FE%,$(FPCOPT)) 2469override FPCOPT:=$(filter-out $(addprefix -Fu,$(COMPILER_UNITDIR)),$(FPCOPT))# Compose general fpmake-parameters 2470ifdef FPMAKEOPT 2471FPMAKE_OPT+=$(FPMAKEOPT) 2472endif 2473FPMAKE_OPT+=--localunitdir=../.. 2474FPMAKE_OPT+=--globalunitdir=/usr/local/lib/fpc/3.2.2 2475FPMAKE_OPT+=$(FPC_TARGETOPT) 2476FPMAKE_OPT+=$(addprefix -o ,$(FPCOPT)) 2477FPMAKE_OPT+=--compiler=$(FPC) 2478FPMAKE_OPT+=-bu 2479.NOTPARALLEL: 2480fpmake$(SRCEXEEXT): fpmake.pp 2481 $(FPCFPMAKE) fpmake.pp $(FPMAKE_SKIP_CONFIG) $(addprefix -Fu,$(COMPILER_FPMAKE_UNITDIR)) $(FPCMAKEOPT) $(OPT) 2482all: fpmake$(SRCEXEEXT) 2483 $(LOCALFPMAKE) compile $(FPMAKE_OPT) 2484smart: fpmake$(SRCEXEEXT) 2485 $(LOCALFPMAKE) compile $(FPMAKE_OPT) -o -XX -o -CX 2486release: fpmake$(SRCEXEEXT) 2487 $(LOCALFPMAKE) compile $(FPMAKE_OPT) -o -dRELEASE 2488debug: fpmake$(SRCEXEEXT) 2489 $(LOCALFPMAKE) compile $(FPMAKE_OPT) -o -dDEBUG 2490ifeq ($(FPMAKE_BIN_CLEAN),) 2491clean: 2492else 2493clean: 2494 $(FPMAKE_BIN_CLEAN) clean $(FPMAKE_OPT) 2495endif 2496ifeq ($(FPMAKE_BIN_CLEAN),) 2497distclean: $(addsuffix _distclean,$(TARGET_DIRS)) fpc_cleanall 2498else 2499distclean: 2500ifdef inUnix 2501 { $(FPMAKE_BIN_CLEAN) distclean $(FPMAKE_OPT); if [ $$? != "0" ]; then { echo Something wrong with fpmake exectable. Remove the executable and call make recursively to recover.; $(DEL) $(FPMAKE_BIN_CLEAN); $(MAKE) fpc_cleanall; }; fi; } 2502else 2503 $(FPMAKE_BIN_CLEAN) distclean $(FPMAKE_OPT) 2504endif 2505 -$(DEL) $(LOCALFPMAKE) 2506endif 2507cleanall: distclean 2508install: fpmake$(SRCEXEEXT) 2509ifdef UNIXHier 2510 $(LOCALFPMAKE) install $(FPMAKE_OPT) --prefix=$(INSTALL_PREFIX) --baseinstalldir=$(INSTALL_LIBDIR)/fpc/$(FPC_VERSION) --unitinstalldir=$(INSTALL_UNITDIR) 2511else 2512 $(LOCALFPMAKE) install $(FPMAKE_OPT) --prefix=$(INSTALL_BASEDIR) --baseinstalldir=$(INSTALL_BASEDIR) --unitinstalldir=$(INSTALL_UNITDIR) 2513endif 2514distinstall: fpmake$(SRCEXEEXT) 2515ifdef UNIXHier 2516 $(LOCALFPMAKE) install $(FPMAKE_OPT) --prefix=$(INSTALL_PREFIX) --baseinstalldir=$(INSTALL_LIBDIR)/fpc/$(FPC_VERSION) --unitinstalldir=$(INSTALL_UNITDIR) -ie -fsp 0 2517else 2518 $(LOCALFPMAKE) install $(FPMAKE_OPT) --prefix=$(INSTALL_BASEDIR) --baseinstalldir=$(INSTALL_BASEDIR) --unitinstalldir=$(INSTALL_UNITDIR) -ie -fsp 0 2519endif 2520zipinstall: fpmake$(SRCEXEEXT) 2521 $(LOCALFPMAKE) zipinstall $(FPMAKE_OPT) --zipprefix=$(DIST_DESTDIR)/$(ZIPPREFIX) 2522zipdistinstall: fpmake$(SRCEXEEXT) 2523 $(LOCALFPMAKE) zipinstall $(FPMAKE_OPT) --zipprefix=$(DIST_DESTDIR)/$(ZIPPREFIX) -ie -fsp 0 2524zipsourceinstall: fpmake$(SRCEXEEXT) 2525ifdef UNIXHier 2526 $(LOCALFPMAKE) archive $(FPMAKE_OPT) --zipprefix=$(DIST_DESTDIR)/$(ZIPPREFIX) --prefix=share/src/fpc-\$$\(PACKAGEVERSION\)/$(INSTALL_FPCSUBDIR)/\$$\(PACKAGEDIRECTORY\) 2527else 2528 $(LOCALFPMAKE) archive $(FPMAKE_OPT) --zipprefix=$(DIST_DESTDIR)/$(ZIPPREFIX) --prefix=source\\$(INSTALL_FPCSUBDIR)\\\$$\(PACKAGEDIRECTORY\) 2529endif 2530