Makefile 129 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880
  1. #
  2. # Don't edit, this file is generated by FPCMake Version 2.0.0
  3. #
  4. default: all
  5. MAKEFILETARGETS=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 m68k-sinclairql 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-freertos arm-ios powerpc64-linux powerpc64-darwin powerpc64-embedded powerpc64-aix avr-embedded armeb-linux armeb-embedded mips-linux mipsel-linux mipsel-embedded mipsel-android mips64el-linux jvm-java jvm-android i8086-embedded i8086-msdos i8086-win16 aarch64-linux aarch64-darwin aarch64-win64 aarch64-android aarch64-ios wasm32-embedded wasm32-wasi sparc64-linux riscv32-linux riscv32-embedded riscv64-linux riscv64-embedded xtensa-linux xtensa-embedded xtensa-freertos z80-embedded z80-zxspectrum z80-msxdos z80-amstradcpc
  6. BSDs = freebsd netbsd openbsd darwin dragonfly
  7. UNIXs = linux $(BSDs) solaris qnx haiku aix
  8. LIMIT83fs = go32v2 os2 emx watcom msdos win16 atari
  9. OSNeedsComspecToRunBatch = go32v2 watcom
  10. FORCE:
  11. .PHONY: FORCE
  12. override PATH:=$(patsubst %/,%,$(subst \,/,$(PATH)))
  13. ifneq ($(findstring darwin,$(OSTYPE)),)
  14. inUnix=1 #darwin
  15. SEARCHPATH:=$(filter-out .,$(subst :, ,$(PATH)))
  16. else
  17. ifeq ($(findstring ;,$(PATH)),)
  18. inUnix=1
  19. SEARCHPATH:=$(filter-out .,$(subst :, ,$(PATH)))
  20. else
  21. SEARCHPATH:=$(subst ;, ,$(PATH))
  22. endif
  23. endif
  24. SEARCHPATH+=$(patsubst %/,%,$(subst \,/,$(dir $(MAKE))))
  25. PWD:=$(strip $(wildcard $(addsuffix /pwd.exe,$(SEARCHPATH))))
  26. ifeq ($(PWD),)
  27. PWD:=$(strip $(wildcard $(addsuffix /pwd,$(SEARCHPATH))))
  28. ifeq ($(PWD),)
  29. $(error You need the GNU utils package to use this Makefile)
  30. else
  31. PWD:=$(firstword $(PWD))
  32. SRCEXEEXT=
  33. endif
  34. else
  35. PWD:=$(firstword $(PWD))
  36. SRCEXEEXT=.exe
  37. endif
  38. ifndef inUnix
  39. ifeq ($(OS),Windows_NT)
  40. inWinNT=1
  41. else
  42. ifdef OS2_SHELL
  43. inOS2=1
  44. endif
  45. endif
  46. else
  47. ifneq ($(findstring cygdrive,$(PATH)),)
  48. inCygWin=1
  49. endif
  50. endif
  51. ifdef inUnix
  52. SRCBATCHEXT=.sh
  53. else
  54. ifdef inOS2
  55. SRCBATCHEXT=.cmd
  56. else
  57. SRCBATCHEXT=.bat
  58. endif
  59. endif
  60. ifdef COMSPEC
  61. ifneq ($(findstring $(OS_SOURCE),$(OSNeedsComspecToRunBatch)),)
  62. ifndef RUNBATCH
  63. RUNBATCH=$(COMSPEC) /C
  64. endif
  65. endif
  66. endif
  67. ifdef inUnix
  68. PATHSEP=/
  69. else
  70. PATHSEP:=$(subst /,\,/)
  71. ifdef inCygWin
  72. PATHSEP=/
  73. endif
  74. endif
  75. ifdef PWD
  76. BASEDIR:=$(subst \,/,$(shell $(PWD)))
  77. ifdef inCygWin
  78. ifneq ($(findstring /cygdrive/,$(BASEDIR)),)
  79. BASENODIR:=$(patsubst /cygdrive%,%,$(BASEDIR))
  80. BASEDRIVE:=$(firstword $(subst /, ,$(BASENODIR)))
  81. BASEDIR:=$(subst /cygdrive/$(BASEDRIVE)/,$(BASEDRIVE):/,$(BASEDIR))
  82. endif
  83. endif
  84. else
  85. BASEDIR=.
  86. endif
  87. ifdef inOS2
  88. ifndef ECHO
  89. ECHO:=$(strip $(wildcard $(addsuffix /gecho$(SRCEXEEXT),$(SEARCHPATH))))
  90. ifeq ($(ECHO),)
  91. ECHO:=$(strip $(wildcard $(addsuffix /echo$(SRCEXEEXT),$(SEARCHPATH))))
  92. ifeq ($(ECHO),)
  93. ECHO=echo
  94. else
  95. ECHO:=$(firstword $(ECHO))
  96. endif
  97. else
  98. ECHO:=$(firstword $(ECHO))
  99. endif
  100. endif
  101. export ECHO
  102. endif
  103. override OS_TARGET_DEFAULT=nds
  104. override CPU_TARGET_DEFAULT=arm
  105. override DEFAULT_FPCDIR=../../../../..
  106. ifndef FPC
  107. ifdef PP
  108. FPC=$(PP)
  109. endif
  110. endif
  111. ifndef FPC
  112. FPCPROG:=$(strip $(wildcard $(addsuffix /fpc$(SRCEXEEXT),$(SEARCHPATH))))
  113. ifneq ($(FPCPROG),)
  114. FPCPROG:=$(firstword $(FPCPROG))
  115. ifneq ($(CPU_TARGET),)
  116. FPC:=$(shell $(FPCPROG) -P$(CPU_TARGET) -PB)
  117. else
  118. FPC:=$(shell $(FPCPROG) -PB)
  119. endif
  120. ifneq ($(findstring Error,$(FPC)),)
  121. override FPC=$(firstword $(strip $(wildcard $(addsuffix /ppc386$(SRCEXEEXT),$(SEARCHPATH)))))
  122. else
  123. ifeq ($(strip $(wildcard $(FPC))),)
  124. FPC:=$(firstword $(FPCPROG))
  125. endif
  126. endif
  127. else
  128. override FPC=$(firstword $(strip $(wildcard $(addsuffix /ppc386$(SRCEXEEXT),$(SEARCHPATH)))))
  129. endif
  130. endif
  131. override FPC:=$(subst $(SRCEXEEXT),,$(FPC))
  132. override FPC:=$(subst \,/,$(FPC))$(SRCEXEEXT)
  133. FOUNDFPC:=$(strip $(wildcard $(FPC)))
  134. ifeq ($(FOUNDFPC),)
  135. FOUNDFPC=$(strip $(wildcard $(addsuffix /$(FPC),$(SEARCHPATH))))
  136. ifeq ($(FOUNDFPC),)
  137. $(error Compiler $(FPC) not found)
  138. endif
  139. endif
  140. ifndef FPC_COMPILERINFO
  141. FPC_COMPILERINFO:=$(shell $(FPC) -iVSPTPSOTO)
  142. endif
  143. ifndef FPC_VERSION
  144. FPC_VERSION:=$(word 1,$(FPC_COMPILERINFO))
  145. endif
  146. export FPC FPC_VERSION FPC_COMPILERINFO
  147. unexport CHECKDEPEND ALLDEPENDENCIES
  148. ifndef CPU_TARGET
  149. ifdef CPU_TARGET_DEFAULT
  150. CPU_TARGET=$(CPU_TARGET_DEFAULT)
  151. endif
  152. endif
  153. ifndef OS_TARGET
  154. ifdef OS_TARGET_DEFAULT
  155. OS_TARGET=$(OS_TARGET_DEFAULT)
  156. endif
  157. endif
  158. ifndef CPU_SOURCE
  159. CPU_SOURCE:=$(word 2,$(FPC_COMPILERINFO))
  160. endif
  161. ifndef CPU_TARGET
  162. CPU_TARGET:=$(word 3,$(FPC_COMPILERINFO))
  163. endif
  164. ifndef OS_SOURCE
  165. OS_SOURCE:=$(word 4,$(FPC_COMPILERINFO))
  166. endif
  167. ifndef OS_TARGET
  168. OS_TARGET:=$(word 5,$(FPC_COMPILERINFO))
  169. endif
  170. FULL_TARGET=$(CPU_TARGET)-$(OS_TARGET)
  171. FULL_SOURCE=$(CPU_SOURCE)-$(OS_SOURCE)
  172. ifeq ($(CPU_TARGET),armeb)
  173. ARCH=arm
  174. override FPCOPT+=-Cb
  175. else
  176. ifeq ($(CPU_TARGET),armel)
  177. ARCH=arm
  178. override FPCOPT+=-CaEABI
  179. else
  180. ARCH=$(CPU_TARGET)
  181. endif
  182. endif
  183. ifeq ($(FULL_TARGET),arm-embedded)
  184. ifeq ($(SUBARCH),)
  185. $(error When compiling for arm-embedded, a sub-architecture (e.g. SUBARCH=armv4t or SUBARCH=armv7m) must be defined)
  186. endif
  187. override FPCOPT+=-Cp$(SUBARCH)
  188. endif
  189. ifeq ($(FULL_TARGET),avr-embedded)
  190. ifeq ($(SUBARCH),)
  191. $(error When compiling for avr-embedded, a sub-architecture (e.g. SUBARCH=avr25 or SUBARCH=avr35) must be defined)
  192. endif
  193. override FPCOPT+=-Cp$(SUBARCH)
  194. endif
  195. ifeq ($(FULL_TARGET),mipsel-embedded)
  196. ifeq ($(SUBARCH),)
  197. $(error When compiling for mipsel-embedded, a sub-architecture (e.g. SUBARCH=pic32mx) must be defined)
  198. endif
  199. override FPCOPT+=-Cp$(SUBARCH)
  200. endif
  201. ifeq ($(FULL_TARGET),xtensa-embedded)
  202. ifeq ($(SUBARCH),)
  203. $(error When compiling for xtensa-embedded, a sub-architecture (e.g. SUBARCH=lx106 or SUBARCH=lx6) must be defined)
  204. endif
  205. override FPCOPT+=-Cp$(SUBARCH)
  206. endif
  207. ifeq ($(FULL_TARGET),xtensa-freertos)
  208. ifeq ($(SUBARCH),)
  209. $(error When compiling for xtensa-freertos, a sub-architecture (e.g. SUBARCH=lx106 or SUBARCH=lx6) must be defined)
  210. endif
  211. override FPCOPT+=-Cp$(SUBARCH)
  212. endif
  213. ifeq ($(FULL_TARGET),arm-freertos)
  214. ifeq ($(SUBARCH),)
  215. $(error When compiling for arm-freertos, a sub-architecture (e.g. SUBARCH=armv6m or SUBARCH=armv7em) must be defined)
  216. endif
  217. override FPCOPT+=-Cp$(SUBARCH)
  218. endif
  219. ifneq ($(findstring $(OS_SOURCE),$(LIMIT83fs)),)
  220. TARGETSUFFIX=$(OS_TARGET)
  221. SOURCESUFFIX=$(OS_SOURCE)
  222. else
  223. ifneq ($(findstring $(OS_TARGET),$(LIMIT83fs)),)
  224. TARGETSUFFIX=$(OS_TARGET)
  225. else
  226. TARGETSUFFIX=$(FULL_TARGET)
  227. endif
  228. SOURCESUFFIX=$(FULL_SOURCE)
  229. endif
  230. ifneq ($(FULL_TARGET),$(FULL_SOURCE))
  231. CROSSCOMPILE=1
  232. endif
  233. ifeq ($(findstring makefile,$(MAKECMDGOALS)),)
  234. ifeq ($(findstring $(FULL_TARGET),$(MAKEFILETARGETS)),)
  235. $(error The Makefile doesn't support target $(FULL_TARGET), please run fpcmake first)
  236. endif
  237. endif
  238. ifneq ($(findstring $(OS_TARGET),$(BSDs)),)
  239. BSDhier=1
  240. endif
  241. ifeq ($(OS_TARGET),linux)
  242. linuxHier=1
  243. endif
  244. ifndef CROSSCOMPILE
  245. BUILDFULLNATIVE=1
  246. export BUILDFULLNATIVE
  247. endif
  248. ifdef BUILDFULLNATIVE
  249. BUILDNATIVE=1
  250. export BUILDNATIVE
  251. endif
  252. export OS_TARGET OS_SOURCE ARCH CPU_TARGET CPU_SOURCE FULL_TARGET FULL_SOURCE TARGETSUFFIX SOURCESUFFIX CROSSCOMPILE
  253. ifdef FPCDIR
  254. override FPCDIR:=$(subst \,/,$(FPCDIR))
  255. ifeq ($(wildcard $(addprefix $(FPCDIR)/,rtl)),)
  256. override FPCDIR=wrong
  257. endif
  258. else
  259. override FPCDIR=wrong
  260. endif
  261. ifdef DEFAULT_FPCDIR
  262. ifeq ($(FPCDIR),wrong)
  263. override FPCDIR:=$(subst \,/,$(DEFAULT_FPCDIR))
  264. ifeq ($(wildcard $(addprefix $(FPCDIR)/,rtl)),)
  265. override FPCDIR=wrong
  266. endif
  267. endif
  268. endif
  269. ifeq ($(FPCDIR),wrong)
  270. ifdef inUnix
  271. override FPCDIR=/usr/local/lib/fpc/$(FPC_VERSION)
  272. ifeq ($(wildcard $(FPCDIR)/units),)
  273. override FPCDIR=/usr/lib/fpc/$(FPC_VERSION)
  274. endif
  275. else
  276. override FPCDIR:=$(subst /$(FPC),,$(firstword $(strip $(wildcard $(addsuffix /$(FPC),$(SEARCHPATH))))))
  277. override FPCDIR:=$(FPCDIR)/..
  278. ifeq ($(wildcard $(addprefix $(FPCDIR)/,rtl)),)
  279. override FPCDIR:=$(FPCDIR)/..
  280. ifeq ($(wildcard $(addprefix $(FPCDIR)/,rtl)),)
  281. override FPCDIR:=$(BASEDIR)
  282. ifeq ($(wildcard $(addprefix $(FPCDIR)/,rtl)),)
  283. override FPCDIR=c:/pp
  284. endif
  285. endif
  286. endif
  287. endif
  288. endif
  289. ifndef CROSSBINDIR
  290. CROSSBINDIR:=$(wildcard $(FPCDIR)/bin/$(TARGETSUFFIX))
  291. endif
  292. ifneq ($(findstring $(OS_TARGET),darwin iphonesim ios),)
  293. ifneq ($(findstring $(OS_SOURCE),darwin ios),)
  294. DARWIN2DARWIN=1
  295. endif
  296. endif
  297. ifndef BINUTILSPREFIX
  298. ifndef CROSSBINDIR
  299. ifdef CROSSCOMPILE
  300. ifneq ($(OS_TARGET),msdos)
  301. ifndef DARWIN2DARWIN
  302. ifneq ($(CPU_TARGET),jvm)
  303. BINUTILSPREFIX=$(CPU_TARGET)-$(OS_TARGET)-
  304. ifeq ($(OS_TARGET),android)
  305. ifeq ($(CPU_TARGET),arm)
  306. BINUTILSPREFIX=arm-linux-androideabi-
  307. else
  308. ifeq ($(CPU_TARGET),i386)
  309. BINUTILSPREFIX=i686-linux-android-
  310. else
  311. BINUTILSPREFIX=$(CPU_TARGET)-linux-android-
  312. endif
  313. endif
  314. endif
  315. endif
  316. endif
  317. else
  318. BINUTILSPREFIX=$(OS_TARGET)-
  319. endif
  320. endif
  321. endif
  322. endif
  323. UNITSDIR:=$(wildcard $(FPCDIR)/units/$(TARGETSUFFIX))
  324. ifeq ($(UNITSDIR),)
  325. UNITSDIR:=$(wildcard $(FPCDIR)/units/$(OS_TARGET))
  326. endif
  327. PACKAGESDIR:=$(wildcard $(FPCDIR) $(FPCDIR)/packages)
  328. ifndef FPCFPMAKE
  329. ifdef CROSSCOMPILE
  330. ifeq ($(strip $(wildcard $(addsuffix /compiler/ppc$(SRCEXEEXT),$(FPCDIR)))),)
  331. FPCPROG:=$(strip $(wildcard $(addsuffix /fpc$(SRCEXEEXT),$(SEARCHPATH))))
  332. ifneq ($(FPCPROG),)
  333. FPCPROG:=$(firstword $(FPCPROG))
  334. FPCFPMAKE:=$(shell $(FPCPROG) -PB)
  335. ifeq ($(strip $(wildcard $(FPCFPMAKE))),)
  336. FPCFPMAKE:=$(firstword $(FPCPROG))
  337. endif
  338. else
  339. override FPCFPMAKE=$(firstword $(strip $(wildcard $(addsuffix /ppc386$(SRCEXEEXT),$(SEARCHPATH)))))
  340. endif
  341. else
  342. FPCFPMAKE=$(strip $(wildcard $(addsuffix /compiler/ppc$(SRCEXEEXT),$(FPCDIR))))
  343. FPMAKE_SKIP_CONFIG=-n
  344. export FPCFPMAKE
  345. export FPMAKE_SKIP_CONFIG
  346. endif
  347. else
  348. FPMAKE_SKIP_CONFIG=-n
  349. FPCFPMAKE=$(FPC)
  350. endif
  351. endif
  352. BIN = bin
  353. BUILD = build
  354. DATA = data
  355. FILESYSTEM = filesystem
  356. GFX = gfx
  357. INC = inc
  358. AUDIO_FILES = $(foreach dir, $(notdir $(wildcard audio/*.*)), $(CURDIR)/audio/$(dir))
  359. GFX_FILES = $(foreach dir, $(GFX), $(notdir $(wildcard $(dir)/*.bmp $(dir)/*.png)))
  360. BIN_FILES = $(foreach dir, $(DATA), $(notdir $(wildcard $(dir)/*)))
  361. GBFS_FILES = $(foreach dir, GBFS, $(notdir $(wildcard $(dir)/*)))
  362. ifeq ($(FULL_TARGET),i386-linux)
  363. override TARGET_PROGRAMS+=primitives
  364. endif
  365. ifeq ($(FULL_TARGET),i386-go32v2)
  366. override TARGET_PROGRAMS+=primitives
  367. endif
  368. ifeq ($(FULL_TARGET),i386-win32)
  369. override TARGET_PROGRAMS+=primitives
  370. endif
  371. ifeq ($(FULL_TARGET),i386-os2)
  372. override TARGET_PROGRAMS+=primitives
  373. endif
  374. ifeq ($(FULL_TARGET),i386-freebsd)
  375. override TARGET_PROGRAMS+=primitives
  376. endif
  377. ifeq ($(FULL_TARGET),i386-beos)
  378. override TARGET_PROGRAMS+=primitives
  379. endif
  380. ifeq ($(FULL_TARGET),i386-haiku)
  381. override TARGET_PROGRAMS+=primitives
  382. endif
  383. ifeq ($(FULL_TARGET),i386-netbsd)
  384. override TARGET_PROGRAMS+=primitives
  385. endif
  386. ifeq ($(FULL_TARGET),i386-solaris)
  387. override TARGET_PROGRAMS+=primitives
  388. endif
  389. ifeq ($(FULL_TARGET),i386-netware)
  390. override TARGET_PROGRAMS+=primitives
  391. endif
  392. ifeq ($(FULL_TARGET),i386-openbsd)
  393. override TARGET_PROGRAMS+=primitives
  394. endif
  395. ifeq ($(FULL_TARGET),i386-wdosx)
  396. override TARGET_PROGRAMS+=primitives
  397. endif
  398. ifeq ($(FULL_TARGET),i386-darwin)
  399. override TARGET_PROGRAMS+=primitives
  400. endif
  401. ifeq ($(FULL_TARGET),i386-emx)
  402. override TARGET_PROGRAMS+=primitives
  403. endif
  404. ifeq ($(FULL_TARGET),i386-watcom)
  405. override TARGET_PROGRAMS+=primitives
  406. endif
  407. ifeq ($(FULL_TARGET),i386-netwlibc)
  408. override TARGET_PROGRAMS+=primitives
  409. endif
  410. ifeq ($(FULL_TARGET),i386-wince)
  411. override TARGET_PROGRAMS+=primitives
  412. endif
  413. ifeq ($(FULL_TARGET),i386-embedded)
  414. override TARGET_PROGRAMS+=primitives
  415. endif
  416. ifeq ($(FULL_TARGET),i386-symbian)
  417. override TARGET_PROGRAMS+=primitives
  418. endif
  419. ifeq ($(FULL_TARGET),i386-nativent)
  420. override TARGET_PROGRAMS+=primitives
  421. endif
  422. ifeq ($(FULL_TARGET),i386-iphonesim)
  423. override TARGET_PROGRAMS+=primitives
  424. endif
  425. ifeq ($(FULL_TARGET),i386-android)
  426. override TARGET_PROGRAMS+=primitives
  427. endif
  428. ifeq ($(FULL_TARGET),i386-aros)
  429. override TARGET_PROGRAMS+=primitives
  430. endif
  431. ifeq ($(FULL_TARGET),m68k-linux)
  432. override TARGET_PROGRAMS+=primitives
  433. endif
  434. ifeq ($(FULL_TARGET),m68k-netbsd)
  435. override TARGET_PROGRAMS+=primitives
  436. endif
  437. ifeq ($(FULL_TARGET),m68k-amiga)
  438. override TARGET_PROGRAMS+=primitives
  439. endif
  440. ifeq ($(FULL_TARGET),m68k-atari)
  441. override TARGET_PROGRAMS+=primitives
  442. endif
  443. ifeq ($(FULL_TARGET),m68k-palmos)
  444. override TARGET_PROGRAMS+=primitives
  445. endif
  446. ifeq ($(FULL_TARGET),m68k-macosclassic)
  447. override TARGET_PROGRAMS+=primitives
  448. endif
  449. ifeq ($(FULL_TARGET),m68k-embedded)
  450. override TARGET_PROGRAMS+=primitives
  451. endif
  452. ifeq ($(FULL_TARGET),m68k-sinclairql)
  453. override TARGET_PROGRAMS+=primitives
  454. endif
  455. ifeq ($(FULL_TARGET),powerpc-linux)
  456. override TARGET_PROGRAMS+=primitives
  457. endif
  458. ifeq ($(FULL_TARGET),powerpc-netbsd)
  459. override TARGET_PROGRAMS+=primitives
  460. endif
  461. ifeq ($(FULL_TARGET),powerpc-amiga)
  462. override TARGET_PROGRAMS+=primitives
  463. endif
  464. ifeq ($(FULL_TARGET),powerpc-macosclassic)
  465. override TARGET_PROGRAMS+=primitives
  466. endif
  467. ifeq ($(FULL_TARGET),powerpc-darwin)
  468. override TARGET_PROGRAMS+=primitives
  469. endif
  470. ifeq ($(FULL_TARGET),powerpc-morphos)
  471. override TARGET_PROGRAMS+=primitives
  472. endif
  473. ifeq ($(FULL_TARGET),powerpc-embedded)
  474. override TARGET_PROGRAMS+=primitives
  475. endif
  476. ifeq ($(FULL_TARGET),powerpc-wii)
  477. override TARGET_PROGRAMS+=primitives
  478. endif
  479. ifeq ($(FULL_TARGET),powerpc-aix)
  480. override TARGET_PROGRAMS+=primitives
  481. endif
  482. ifeq ($(FULL_TARGET),sparc-linux)
  483. override TARGET_PROGRAMS+=primitives
  484. endif
  485. ifeq ($(FULL_TARGET),sparc-netbsd)
  486. override TARGET_PROGRAMS+=primitives
  487. endif
  488. ifeq ($(FULL_TARGET),sparc-solaris)
  489. override TARGET_PROGRAMS+=primitives
  490. endif
  491. ifeq ($(FULL_TARGET),sparc-embedded)
  492. override TARGET_PROGRAMS+=primitives
  493. endif
  494. ifeq ($(FULL_TARGET),x86_64-linux)
  495. override TARGET_PROGRAMS+=primitives
  496. endif
  497. ifeq ($(FULL_TARGET),x86_64-freebsd)
  498. override TARGET_PROGRAMS+=primitives
  499. endif
  500. ifeq ($(FULL_TARGET),x86_64-haiku)
  501. override TARGET_PROGRAMS+=primitives
  502. endif
  503. ifeq ($(FULL_TARGET),x86_64-netbsd)
  504. override TARGET_PROGRAMS+=primitives
  505. endif
  506. ifeq ($(FULL_TARGET),x86_64-solaris)
  507. override TARGET_PROGRAMS+=primitives
  508. endif
  509. ifeq ($(FULL_TARGET),x86_64-openbsd)
  510. override TARGET_PROGRAMS+=primitives
  511. endif
  512. ifeq ($(FULL_TARGET),x86_64-darwin)
  513. override TARGET_PROGRAMS+=primitives
  514. endif
  515. ifeq ($(FULL_TARGET),x86_64-win64)
  516. override TARGET_PROGRAMS+=primitives
  517. endif
  518. ifeq ($(FULL_TARGET),x86_64-embedded)
  519. override TARGET_PROGRAMS+=primitives
  520. endif
  521. ifeq ($(FULL_TARGET),x86_64-iphonesim)
  522. override TARGET_PROGRAMS+=primitives
  523. endif
  524. ifeq ($(FULL_TARGET),x86_64-android)
  525. override TARGET_PROGRAMS+=primitives
  526. endif
  527. ifeq ($(FULL_TARGET),x86_64-aros)
  528. override TARGET_PROGRAMS+=primitives
  529. endif
  530. ifeq ($(FULL_TARGET),x86_64-dragonfly)
  531. override TARGET_PROGRAMS+=primitives
  532. endif
  533. ifeq ($(FULL_TARGET),arm-linux)
  534. override TARGET_PROGRAMS+=primitives
  535. endif
  536. ifeq ($(FULL_TARGET),arm-netbsd)
  537. override TARGET_PROGRAMS+=primitives
  538. endif
  539. ifeq ($(FULL_TARGET),arm-palmos)
  540. override TARGET_PROGRAMS+=primitives
  541. endif
  542. ifeq ($(FULL_TARGET),arm-wince)
  543. override TARGET_PROGRAMS+=primitives
  544. endif
  545. ifeq ($(FULL_TARGET),arm-gba)
  546. override TARGET_PROGRAMS+=primitives
  547. endif
  548. ifeq ($(FULL_TARGET),arm-nds)
  549. override TARGET_PROGRAMS+=primitives
  550. endif
  551. ifeq ($(FULL_TARGET),arm-embedded)
  552. override TARGET_PROGRAMS+=primitives
  553. endif
  554. ifeq ($(FULL_TARGET),arm-symbian)
  555. override TARGET_PROGRAMS+=primitives
  556. endif
  557. ifeq ($(FULL_TARGET),arm-android)
  558. override TARGET_PROGRAMS+=primitives
  559. endif
  560. ifeq ($(FULL_TARGET),arm-aros)
  561. override TARGET_PROGRAMS+=primitives
  562. endif
  563. ifeq ($(FULL_TARGET),arm-freertos)
  564. override TARGET_PROGRAMS+=primitives
  565. endif
  566. ifeq ($(FULL_TARGET),arm-ios)
  567. override TARGET_PROGRAMS+=primitives
  568. endif
  569. ifeq ($(FULL_TARGET),powerpc64-linux)
  570. override TARGET_PROGRAMS+=primitives
  571. endif
  572. ifeq ($(FULL_TARGET),powerpc64-darwin)
  573. override TARGET_PROGRAMS+=primitives
  574. endif
  575. ifeq ($(FULL_TARGET),powerpc64-embedded)
  576. override TARGET_PROGRAMS+=primitives
  577. endif
  578. ifeq ($(FULL_TARGET),powerpc64-aix)
  579. override TARGET_PROGRAMS+=primitives
  580. endif
  581. ifeq ($(FULL_TARGET),avr-embedded)
  582. override TARGET_PROGRAMS+=primitives
  583. endif
  584. ifeq ($(FULL_TARGET),armeb-linux)
  585. override TARGET_PROGRAMS+=primitives
  586. endif
  587. ifeq ($(FULL_TARGET),armeb-embedded)
  588. override TARGET_PROGRAMS+=primitives
  589. endif
  590. ifeq ($(FULL_TARGET),mips-linux)
  591. override TARGET_PROGRAMS+=primitives
  592. endif
  593. ifeq ($(FULL_TARGET),mipsel-linux)
  594. override TARGET_PROGRAMS+=primitives
  595. endif
  596. ifeq ($(FULL_TARGET),mipsel-embedded)
  597. override TARGET_PROGRAMS+=primitives
  598. endif
  599. ifeq ($(FULL_TARGET),mipsel-android)
  600. override TARGET_PROGRAMS+=primitives
  601. endif
  602. ifeq ($(FULL_TARGET),mips64el-linux)
  603. override TARGET_PROGRAMS+=primitives
  604. endif
  605. ifeq ($(FULL_TARGET),jvm-java)
  606. override TARGET_PROGRAMS+=primitives
  607. endif
  608. ifeq ($(FULL_TARGET),jvm-android)
  609. override TARGET_PROGRAMS+=primitives
  610. endif
  611. ifeq ($(FULL_TARGET),i8086-embedded)
  612. override TARGET_PROGRAMS+=primitives
  613. endif
  614. ifeq ($(FULL_TARGET),i8086-msdos)
  615. override TARGET_PROGRAMS+=primitives
  616. endif
  617. ifeq ($(FULL_TARGET),i8086-win16)
  618. override TARGET_PROGRAMS+=primitives
  619. endif
  620. ifeq ($(FULL_TARGET),aarch64-linux)
  621. override TARGET_PROGRAMS+=primitives
  622. endif
  623. ifeq ($(FULL_TARGET),aarch64-darwin)
  624. override TARGET_PROGRAMS+=primitives
  625. endif
  626. ifeq ($(FULL_TARGET),aarch64-win64)
  627. override TARGET_PROGRAMS+=primitives
  628. endif
  629. ifeq ($(FULL_TARGET),aarch64-android)
  630. override TARGET_PROGRAMS+=primitives
  631. endif
  632. ifeq ($(FULL_TARGET),aarch64-ios)
  633. override TARGET_PROGRAMS+=primitives
  634. endif
  635. ifeq ($(FULL_TARGET),wasm32-embedded)
  636. override TARGET_PROGRAMS+=primitives
  637. endif
  638. ifeq ($(FULL_TARGET),wasm32-wasi)
  639. override TARGET_PROGRAMS+=primitives
  640. endif
  641. ifeq ($(FULL_TARGET),sparc64-linux)
  642. override TARGET_PROGRAMS+=primitives
  643. endif
  644. ifeq ($(FULL_TARGET),riscv32-linux)
  645. override TARGET_PROGRAMS+=primitives
  646. endif
  647. ifeq ($(FULL_TARGET),riscv32-embedded)
  648. override TARGET_PROGRAMS+=primitives
  649. endif
  650. ifeq ($(FULL_TARGET),riscv64-linux)
  651. override TARGET_PROGRAMS+=primitives
  652. endif
  653. ifeq ($(FULL_TARGET),riscv64-embedded)
  654. override TARGET_PROGRAMS+=primitives
  655. endif
  656. ifeq ($(FULL_TARGET),xtensa-linux)
  657. override TARGET_PROGRAMS+=primitives
  658. endif
  659. ifeq ($(FULL_TARGET),xtensa-embedded)
  660. override TARGET_PROGRAMS+=primitives
  661. endif
  662. ifeq ($(FULL_TARGET),xtensa-freertos)
  663. override TARGET_PROGRAMS+=primitives
  664. endif
  665. ifeq ($(FULL_TARGET),z80-embedded)
  666. override TARGET_PROGRAMS+=primitives
  667. endif
  668. ifeq ($(FULL_TARGET),z80-zxspectrum)
  669. override TARGET_PROGRAMS+=primitives
  670. endif
  671. ifeq ($(FULL_TARGET),z80-msxdos)
  672. override TARGET_PROGRAMS+=primitives
  673. endif
  674. ifeq ($(FULL_TARGET),z80-amstradcpc)
  675. override TARGET_PROGRAMS+=primitives
  676. endif
  677. ifeq ($(FULL_TARGET),i386-linux)
  678. override CLEAN_UNITS+=*
  679. endif
  680. ifeq ($(FULL_TARGET),i386-go32v2)
  681. override CLEAN_UNITS+=*
  682. endif
  683. ifeq ($(FULL_TARGET),i386-win32)
  684. override CLEAN_UNITS+=*
  685. endif
  686. ifeq ($(FULL_TARGET),i386-os2)
  687. override CLEAN_UNITS+=*
  688. endif
  689. ifeq ($(FULL_TARGET),i386-freebsd)
  690. override CLEAN_UNITS+=*
  691. endif
  692. ifeq ($(FULL_TARGET),i386-beos)
  693. override CLEAN_UNITS+=*
  694. endif
  695. ifeq ($(FULL_TARGET),i386-haiku)
  696. override CLEAN_UNITS+=*
  697. endif
  698. ifeq ($(FULL_TARGET),i386-netbsd)
  699. override CLEAN_UNITS+=*
  700. endif
  701. ifeq ($(FULL_TARGET),i386-solaris)
  702. override CLEAN_UNITS+=*
  703. endif
  704. ifeq ($(FULL_TARGET),i386-netware)
  705. override CLEAN_UNITS+=*
  706. endif
  707. ifeq ($(FULL_TARGET),i386-openbsd)
  708. override CLEAN_UNITS+=*
  709. endif
  710. ifeq ($(FULL_TARGET),i386-wdosx)
  711. override CLEAN_UNITS+=*
  712. endif
  713. ifeq ($(FULL_TARGET),i386-darwin)
  714. override CLEAN_UNITS+=*
  715. endif
  716. ifeq ($(FULL_TARGET),i386-emx)
  717. override CLEAN_UNITS+=*
  718. endif
  719. ifeq ($(FULL_TARGET),i386-watcom)
  720. override CLEAN_UNITS+=*
  721. endif
  722. ifeq ($(FULL_TARGET),i386-netwlibc)
  723. override CLEAN_UNITS+=*
  724. endif
  725. ifeq ($(FULL_TARGET),i386-wince)
  726. override CLEAN_UNITS+=*
  727. endif
  728. ifeq ($(FULL_TARGET),i386-embedded)
  729. override CLEAN_UNITS+=*
  730. endif
  731. ifeq ($(FULL_TARGET),i386-symbian)
  732. override CLEAN_UNITS+=*
  733. endif
  734. ifeq ($(FULL_TARGET),i386-nativent)
  735. override CLEAN_UNITS+=*
  736. endif
  737. ifeq ($(FULL_TARGET),i386-iphonesim)
  738. override CLEAN_UNITS+=*
  739. endif
  740. ifeq ($(FULL_TARGET),i386-android)
  741. override CLEAN_UNITS+=*
  742. endif
  743. ifeq ($(FULL_TARGET),i386-aros)
  744. override CLEAN_UNITS+=*
  745. endif
  746. ifeq ($(FULL_TARGET),m68k-linux)
  747. override CLEAN_UNITS+=*
  748. endif
  749. ifeq ($(FULL_TARGET),m68k-netbsd)
  750. override CLEAN_UNITS+=*
  751. endif
  752. ifeq ($(FULL_TARGET),m68k-amiga)
  753. override CLEAN_UNITS+=*
  754. endif
  755. ifeq ($(FULL_TARGET),m68k-atari)
  756. override CLEAN_UNITS+=*
  757. endif
  758. ifeq ($(FULL_TARGET),m68k-palmos)
  759. override CLEAN_UNITS+=*
  760. endif
  761. ifeq ($(FULL_TARGET),m68k-macosclassic)
  762. override CLEAN_UNITS+=*
  763. endif
  764. ifeq ($(FULL_TARGET),m68k-embedded)
  765. override CLEAN_UNITS+=*
  766. endif
  767. ifeq ($(FULL_TARGET),m68k-sinclairql)
  768. override CLEAN_UNITS+=*
  769. endif
  770. ifeq ($(FULL_TARGET),powerpc-linux)
  771. override CLEAN_UNITS+=*
  772. endif
  773. ifeq ($(FULL_TARGET),powerpc-netbsd)
  774. override CLEAN_UNITS+=*
  775. endif
  776. ifeq ($(FULL_TARGET),powerpc-amiga)
  777. override CLEAN_UNITS+=*
  778. endif
  779. ifeq ($(FULL_TARGET),powerpc-macosclassic)
  780. override CLEAN_UNITS+=*
  781. endif
  782. ifeq ($(FULL_TARGET),powerpc-darwin)
  783. override CLEAN_UNITS+=*
  784. endif
  785. ifeq ($(FULL_TARGET),powerpc-morphos)
  786. override CLEAN_UNITS+=*
  787. endif
  788. ifeq ($(FULL_TARGET),powerpc-embedded)
  789. override CLEAN_UNITS+=*
  790. endif
  791. ifeq ($(FULL_TARGET),powerpc-wii)
  792. override CLEAN_UNITS+=*
  793. endif
  794. ifeq ($(FULL_TARGET),powerpc-aix)
  795. override CLEAN_UNITS+=*
  796. endif
  797. ifeq ($(FULL_TARGET),sparc-linux)
  798. override CLEAN_UNITS+=*
  799. endif
  800. ifeq ($(FULL_TARGET),sparc-netbsd)
  801. override CLEAN_UNITS+=*
  802. endif
  803. ifeq ($(FULL_TARGET),sparc-solaris)
  804. override CLEAN_UNITS+=*
  805. endif
  806. ifeq ($(FULL_TARGET),sparc-embedded)
  807. override CLEAN_UNITS+=*
  808. endif
  809. ifeq ($(FULL_TARGET),x86_64-linux)
  810. override CLEAN_UNITS+=*
  811. endif
  812. ifeq ($(FULL_TARGET),x86_64-freebsd)
  813. override CLEAN_UNITS+=*
  814. endif
  815. ifeq ($(FULL_TARGET),x86_64-haiku)
  816. override CLEAN_UNITS+=*
  817. endif
  818. ifeq ($(FULL_TARGET),x86_64-netbsd)
  819. override CLEAN_UNITS+=*
  820. endif
  821. ifeq ($(FULL_TARGET),x86_64-solaris)
  822. override CLEAN_UNITS+=*
  823. endif
  824. ifeq ($(FULL_TARGET),x86_64-openbsd)
  825. override CLEAN_UNITS+=*
  826. endif
  827. ifeq ($(FULL_TARGET),x86_64-darwin)
  828. override CLEAN_UNITS+=*
  829. endif
  830. ifeq ($(FULL_TARGET),x86_64-win64)
  831. override CLEAN_UNITS+=*
  832. endif
  833. ifeq ($(FULL_TARGET),x86_64-embedded)
  834. override CLEAN_UNITS+=*
  835. endif
  836. ifeq ($(FULL_TARGET),x86_64-iphonesim)
  837. override CLEAN_UNITS+=*
  838. endif
  839. ifeq ($(FULL_TARGET),x86_64-android)
  840. override CLEAN_UNITS+=*
  841. endif
  842. ifeq ($(FULL_TARGET),x86_64-aros)
  843. override CLEAN_UNITS+=*
  844. endif
  845. ifeq ($(FULL_TARGET),x86_64-dragonfly)
  846. override CLEAN_UNITS+=*
  847. endif
  848. ifeq ($(FULL_TARGET),arm-linux)
  849. override CLEAN_UNITS+=*
  850. endif
  851. ifeq ($(FULL_TARGET),arm-netbsd)
  852. override CLEAN_UNITS+=*
  853. endif
  854. ifeq ($(FULL_TARGET),arm-palmos)
  855. override CLEAN_UNITS+=*
  856. endif
  857. ifeq ($(FULL_TARGET),arm-wince)
  858. override CLEAN_UNITS+=*
  859. endif
  860. ifeq ($(FULL_TARGET),arm-gba)
  861. override CLEAN_UNITS+=*
  862. endif
  863. ifeq ($(FULL_TARGET),arm-nds)
  864. override CLEAN_UNITS+=*
  865. endif
  866. ifeq ($(FULL_TARGET),arm-embedded)
  867. override CLEAN_UNITS+=*
  868. endif
  869. ifeq ($(FULL_TARGET),arm-symbian)
  870. override CLEAN_UNITS+=*
  871. endif
  872. ifeq ($(FULL_TARGET),arm-android)
  873. override CLEAN_UNITS+=*
  874. endif
  875. ifeq ($(FULL_TARGET),arm-aros)
  876. override CLEAN_UNITS+=*
  877. endif
  878. ifeq ($(FULL_TARGET),arm-freertos)
  879. override CLEAN_UNITS+=*
  880. endif
  881. ifeq ($(FULL_TARGET),arm-ios)
  882. override CLEAN_UNITS+=*
  883. endif
  884. ifeq ($(FULL_TARGET),powerpc64-linux)
  885. override CLEAN_UNITS+=*
  886. endif
  887. ifeq ($(FULL_TARGET),powerpc64-darwin)
  888. override CLEAN_UNITS+=*
  889. endif
  890. ifeq ($(FULL_TARGET),powerpc64-embedded)
  891. override CLEAN_UNITS+=*
  892. endif
  893. ifeq ($(FULL_TARGET),powerpc64-aix)
  894. override CLEAN_UNITS+=*
  895. endif
  896. ifeq ($(FULL_TARGET),avr-embedded)
  897. override CLEAN_UNITS+=*
  898. endif
  899. ifeq ($(FULL_TARGET),armeb-linux)
  900. override CLEAN_UNITS+=*
  901. endif
  902. ifeq ($(FULL_TARGET),armeb-embedded)
  903. override CLEAN_UNITS+=*
  904. endif
  905. ifeq ($(FULL_TARGET),mips-linux)
  906. override CLEAN_UNITS+=*
  907. endif
  908. ifeq ($(FULL_TARGET),mipsel-linux)
  909. override CLEAN_UNITS+=*
  910. endif
  911. ifeq ($(FULL_TARGET),mipsel-embedded)
  912. override CLEAN_UNITS+=*
  913. endif
  914. ifeq ($(FULL_TARGET),mipsel-android)
  915. override CLEAN_UNITS+=*
  916. endif
  917. ifeq ($(FULL_TARGET),mips64el-linux)
  918. override CLEAN_UNITS+=*
  919. endif
  920. ifeq ($(FULL_TARGET),jvm-java)
  921. override CLEAN_UNITS+=*
  922. endif
  923. ifeq ($(FULL_TARGET),jvm-android)
  924. override CLEAN_UNITS+=*
  925. endif
  926. ifeq ($(FULL_TARGET),i8086-embedded)
  927. override CLEAN_UNITS+=*
  928. endif
  929. ifeq ($(FULL_TARGET),i8086-msdos)
  930. override CLEAN_UNITS+=*
  931. endif
  932. ifeq ($(FULL_TARGET),i8086-win16)
  933. override CLEAN_UNITS+=*
  934. endif
  935. ifeq ($(FULL_TARGET),aarch64-linux)
  936. override CLEAN_UNITS+=*
  937. endif
  938. ifeq ($(FULL_TARGET),aarch64-darwin)
  939. override CLEAN_UNITS+=*
  940. endif
  941. ifeq ($(FULL_TARGET),aarch64-win64)
  942. override CLEAN_UNITS+=*
  943. endif
  944. ifeq ($(FULL_TARGET),aarch64-android)
  945. override CLEAN_UNITS+=*
  946. endif
  947. ifeq ($(FULL_TARGET),aarch64-ios)
  948. override CLEAN_UNITS+=*
  949. endif
  950. ifeq ($(FULL_TARGET),wasm32-embedded)
  951. override CLEAN_UNITS+=*
  952. endif
  953. ifeq ($(FULL_TARGET),wasm32-wasi)
  954. override CLEAN_UNITS+=*
  955. endif
  956. ifeq ($(FULL_TARGET),sparc64-linux)
  957. override CLEAN_UNITS+=*
  958. endif
  959. ifeq ($(FULL_TARGET),riscv32-linux)
  960. override CLEAN_UNITS+=*
  961. endif
  962. ifeq ($(FULL_TARGET),riscv32-embedded)
  963. override CLEAN_UNITS+=*
  964. endif
  965. ifeq ($(FULL_TARGET),riscv64-linux)
  966. override CLEAN_UNITS+=*
  967. endif
  968. ifeq ($(FULL_TARGET),riscv64-embedded)
  969. override CLEAN_UNITS+=*
  970. endif
  971. ifeq ($(FULL_TARGET),xtensa-linux)
  972. override CLEAN_UNITS+=*
  973. endif
  974. ifeq ($(FULL_TARGET),xtensa-embedded)
  975. override CLEAN_UNITS+=*
  976. endif
  977. ifeq ($(FULL_TARGET),xtensa-freertos)
  978. override CLEAN_UNITS+=*
  979. endif
  980. ifeq ($(FULL_TARGET),z80-embedded)
  981. override CLEAN_UNITS+=*
  982. endif
  983. ifeq ($(FULL_TARGET),z80-zxspectrum)
  984. override CLEAN_UNITS+=*
  985. endif
  986. ifeq ($(FULL_TARGET),z80-msxdos)
  987. override CLEAN_UNITS+=*
  988. endif
  989. ifeq ($(FULL_TARGET),z80-amstradcpc)
  990. override CLEAN_UNITS+=*
  991. endif
  992. ifeq ($(FULL_TARGET),i386-linux)
  993. override CLEAN_FILES+=*.elf *.o *.s *.nds *.nef *.h *.bin *.map $(BUILD)/* $(INC)/* $(BIN)/*
  994. endif
  995. ifeq ($(FULL_TARGET),i386-go32v2)
  996. override CLEAN_FILES+=*.elf *.o *.s *.nds *.nef *.h *.bin *.map $(BUILD)/* $(INC)/* $(BIN)/*
  997. endif
  998. ifeq ($(FULL_TARGET),i386-win32)
  999. override CLEAN_FILES+=*.elf *.o *.s *.nds *.nef *.h *.bin *.map $(BUILD)/* $(INC)/* $(BIN)/*
  1000. endif
  1001. ifeq ($(FULL_TARGET),i386-os2)
  1002. override CLEAN_FILES+=*.elf *.o *.s *.nds *.nef *.h *.bin *.map $(BUILD)/* $(INC)/* $(BIN)/*
  1003. endif
  1004. ifeq ($(FULL_TARGET),i386-freebsd)
  1005. override CLEAN_FILES+=*.elf *.o *.s *.nds *.nef *.h *.bin *.map $(BUILD)/* $(INC)/* $(BIN)/*
  1006. endif
  1007. ifeq ($(FULL_TARGET),i386-beos)
  1008. override CLEAN_FILES+=*.elf *.o *.s *.nds *.nef *.h *.bin *.map $(BUILD)/* $(INC)/* $(BIN)/*
  1009. endif
  1010. ifeq ($(FULL_TARGET),i386-haiku)
  1011. override CLEAN_FILES+=*.elf *.o *.s *.nds *.nef *.h *.bin *.map $(BUILD)/* $(INC)/* $(BIN)/*
  1012. endif
  1013. ifeq ($(FULL_TARGET),i386-netbsd)
  1014. override CLEAN_FILES+=*.elf *.o *.s *.nds *.nef *.h *.bin *.map $(BUILD)/* $(INC)/* $(BIN)/*
  1015. endif
  1016. ifeq ($(FULL_TARGET),i386-solaris)
  1017. override CLEAN_FILES+=*.elf *.o *.s *.nds *.nef *.h *.bin *.map $(BUILD)/* $(INC)/* $(BIN)/*
  1018. endif
  1019. ifeq ($(FULL_TARGET),i386-netware)
  1020. override CLEAN_FILES+=*.elf *.o *.s *.nds *.nef *.h *.bin *.map $(BUILD)/* $(INC)/* $(BIN)/*
  1021. endif
  1022. ifeq ($(FULL_TARGET),i386-openbsd)
  1023. override CLEAN_FILES+=*.elf *.o *.s *.nds *.nef *.h *.bin *.map $(BUILD)/* $(INC)/* $(BIN)/*
  1024. endif
  1025. ifeq ($(FULL_TARGET),i386-wdosx)
  1026. override CLEAN_FILES+=*.elf *.o *.s *.nds *.nef *.h *.bin *.map $(BUILD)/* $(INC)/* $(BIN)/*
  1027. endif
  1028. ifeq ($(FULL_TARGET),i386-darwin)
  1029. override CLEAN_FILES+=*.elf *.o *.s *.nds *.nef *.h *.bin *.map $(BUILD)/* $(INC)/* $(BIN)/*
  1030. endif
  1031. ifeq ($(FULL_TARGET),i386-emx)
  1032. override CLEAN_FILES+=*.elf *.o *.s *.nds *.nef *.h *.bin *.map $(BUILD)/* $(INC)/* $(BIN)/*
  1033. endif
  1034. ifeq ($(FULL_TARGET),i386-watcom)
  1035. override CLEAN_FILES+=*.elf *.o *.s *.nds *.nef *.h *.bin *.map $(BUILD)/* $(INC)/* $(BIN)/*
  1036. endif
  1037. ifeq ($(FULL_TARGET),i386-netwlibc)
  1038. override CLEAN_FILES+=*.elf *.o *.s *.nds *.nef *.h *.bin *.map $(BUILD)/* $(INC)/* $(BIN)/*
  1039. endif
  1040. ifeq ($(FULL_TARGET),i386-wince)
  1041. override CLEAN_FILES+=*.elf *.o *.s *.nds *.nef *.h *.bin *.map $(BUILD)/* $(INC)/* $(BIN)/*
  1042. endif
  1043. ifeq ($(FULL_TARGET),i386-embedded)
  1044. override CLEAN_FILES+=*.elf *.o *.s *.nds *.nef *.h *.bin *.map $(BUILD)/* $(INC)/* $(BIN)/*
  1045. endif
  1046. ifeq ($(FULL_TARGET),i386-symbian)
  1047. override CLEAN_FILES+=*.elf *.o *.s *.nds *.nef *.h *.bin *.map $(BUILD)/* $(INC)/* $(BIN)/*
  1048. endif
  1049. ifeq ($(FULL_TARGET),i386-nativent)
  1050. override CLEAN_FILES+=*.elf *.o *.s *.nds *.nef *.h *.bin *.map $(BUILD)/* $(INC)/* $(BIN)/*
  1051. endif
  1052. ifeq ($(FULL_TARGET),i386-iphonesim)
  1053. override CLEAN_FILES+=*.elf *.o *.s *.nds *.nef *.h *.bin *.map $(BUILD)/* $(INC)/* $(BIN)/*
  1054. endif
  1055. ifeq ($(FULL_TARGET),i386-android)
  1056. override CLEAN_FILES+=*.elf *.o *.s *.nds *.nef *.h *.bin *.map $(BUILD)/* $(INC)/* $(BIN)/*
  1057. endif
  1058. ifeq ($(FULL_TARGET),i386-aros)
  1059. override CLEAN_FILES+=*.elf *.o *.s *.nds *.nef *.h *.bin *.map $(BUILD)/* $(INC)/* $(BIN)/*
  1060. endif
  1061. ifeq ($(FULL_TARGET),m68k-linux)
  1062. override CLEAN_FILES+=*.elf *.o *.s *.nds *.nef *.h *.bin *.map $(BUILD)/* $(INC)/* $(BIN)/*
  1063. endif
  1064. ifeq ($(FULL_TARGET),m68k-netbsd)
  1065. override CLEAN_FILES+=*.elf *.o *.s *.nds *.nef *.h *.bin *.map $(BUILD)/* $(INC)/* $(BIN)/*
  1066. endif
  1067. ifeq ($(FULL_TARGET),m68k-amiga)
  1068. override CLEAN_FILES+=*.elf *.o *.s *.nds *.nef *.h *.bin *.map $(BUILD)/* $(INC)/* $(BIN)/*
  1069. endif
  1070. ifeq ($(FULL_TARGET),m68k-atari)
  1071. override CLEAN_FILES+=*.elf *.o *.s *.nds *.nef *.h *.bin *.map $(BUILD)/* $(INC)/* $(BIN)/*
  1072. endif
  1073. ifeq ($(FULL_TARGET),m68k-palmos)
  1074. override CLEAN_FILES+=*.elf *.o *.s *.nds *.nef *.h *.bin *.map $(BUILD)/* $(INC)/* $(BIN)/*
  1075. endif
  1076. ifeq ($(FULL_TARGET),m68k-macosclassic)
  1077. override CLEAN_FILES+=*.elf *.o *.s *.nds *.nef *.h *.bin *.map $(BUILD)/* $(INC)/* $(BIN)/*
  1078. endif
  1079. ifeq ($(FULL_TARGET),m68k-embedded)
  1080. override CLEAN_FILES+=*.elf *.o *.s *.nds *.nef *.h *.bin *.map $(BUILD)/* $(INC)/* $(BIN)/*
  1081. endif
  1082. ifeq ($(FULL_TARGET),m68k-sinclairql)
  1083. override CLEAN_FILES+=*.elf *.o *.s *.nds *.nef *.h *.bin *.map $(BUILD)/* $(INC)/* $(BIN)/*
  1084. endif
  1085. ifeq ($(FULL_TARGET),powerpc-linux)
  1086. override CLEAN_FILES+=*.elf *.o *.s *.nds *.nef *.h *.bin *.map $(BUILD)/* $(INC)/* $(BIN)/*
  1087. endif
  1088. ifeq ($(FULL_TARGET),powerpc-netbsd)
  1089. override CLEAN_FILES+=*.elf *.o *.s *.nds *.nef *.h *.bin *.map $(BUILD)/* $(INC)/* $(BIN)/*
  1090. endif
  1091. ifeq ($(FULL_TARGET),powerpc-amiga)
  1092. override CLEAN_FILES+=*.elf *.o *.s *.nds *.nef *.h *.bin *.map $(BUILD)/* $(INC)/* $(BIN)/*
  1093. endif
  1094. ifeq ($(FULL_TARGET),powerpc-macosclassic)
  1095. override CLEAN_FILES+=*.elf *.o *.s *.nds *.nef *.h *.bin *.map $(BUILD)/* $(INC)/* $(BIN)/*
  1096. endif
  1097. ifeq ($(FULL_TARGET),powerpc-darwin)
  1098. override CLEAN_FILES+=*.elf *.o *.s *.nds *.nef *.h *.bin *.map $(BUILD)/* $(INC)/* $(BIN)/*
  1099. endif
  1100. ifeq ($(FULL_TARGET),powerpc-morphos)
  1101. override CLEAN_FILES+=*.elf *.o *.s *.nds *.nef *.h *.bin *.map $(BUILD)/* $(INC)/* $(BIN)/*
  1102. endif
  1103. ifeq ($(FULL_TARGET),powerpc-embedded)
  1104. override CLEAN_FILES+=*.elf *.o *.s *.nds *.nef *.h *.bin *.map $(BUILD)/* $(INC)/* $(BIN)/*
  1105. endif
  1106. ifeq ($(FULL_TARGET),powerpc-wii)
  1107. override CLEAN_FILES+=*.elf *.o *.s *.nds *.nef *.h *.bin *.map $(BUILD)/* $(INC)/* $(BIN)/*
  1108. endif
  1109. ifeq ($(FULL_TARGET),powerpc-aix)
  1110. override CLEAN_FILES+=*.elf *.o *.s *.nds *.nef *.h *.bin *.map $(BUILD)/* $(INC)/* $(BIN)/*
  1111. endif
  1112. ifeq ($(FULL_TARGET),sparc-linux)
  1113. override CLEAN_FILES+=*.elf *.o *.s *.nds *.nef *.h *.bin *.map $(BUILD)/* $(INC)/* $(BIN)/*
  1114. endif
  1115. ifeq ($(FULL_TARGET),sparc-netbsd)
  1116. override CLEAN_FILES+=*.elf *.o *.s *.nds *.nef *.h *.bin *.map $(BUILD)/* $(INC)/* $(BIN)/*
  1117. endif
  1118. ifeq ($(FULL_TARGET),sparc-solaris)
  1119. override CLEAN_FILES+=*.elf *.o *.s *.nds *.nef *.h *.bin *.map $(BUILD)/* $(INC)/* $(BIN)/*
  1120. endif
  1121. ifeq ($(FULL_TARGET),sparc-embedded)
  1122. override CLEAN_FILES+=*.elf *.o *.s *.nds *.nef *.h *.bin *.map $(BUILD)/* $(INC)/* $(BIN)/*
  1123. endif
  1124. ifeq ($(FULL_TARGET),x86_64-linux)
  1125. override CLEAN_FILES+=*.elf *.o *.s *.nds *.nef *.h *.bin *.map $(BUILD)/* $(INC)/* $(BIN)/*
  1126. endif
  1127. ifeq ($(FULL_TARGET),x86_64-freebsd)
  1128. override CLEAN_FILES+=*.elf *.o *.s *.nds *.nef *.h *.bin *.map $(BUILD)/* $(INC)/* $(BIN)/*
  1129. endif
  1130. ifeq ($(FULL_TARGET),x86_64-haiku)
  1131. override CLEAN_FILES+=*.elf *.o *.s *.nds *.nef *.h *.bin *.map $(BUILD)/* $(INC)/* $(BIN)/*
  1132. endif
  1133. ifeq ($(FULL_TARGET),x86_64-netbsd)
  1134. override CLEAN_FILES+=*.elf *.o *.s *.nds *.nef *.h *.bin *.map $(BUILD)/* $(INC)/* $(BIN)/*
  1135. endif
  1136. ifeq ($(FULL_TARGET),x86_64-solaris)
  1137. override CLEAN_FILES+=*.elf *.o *.s *.nds *.nef *.h *.bin *.map $(BUILD)/* $(INC)/* $(BIN)/*
  1138. endif
  1139. ifeq ($(FULL_TARGET),x86_64-openbsd)
  1140. override CLEAN_FILES+=*.elf *.o *.s *.nds *.nef *.h *.bin *.map $(BUILD)/* $(INC)/* $(BIN)/*
  1141. endif
  1142. ifeq ($(FULL_TARGET),x86_64-darwin)
  1143. override CLEAN_FILES+=*.elf *.o *.s *.nds *.nef *.h *.bin *.map $(BUILD)/* $(INC)/* $(BIN)/*
  1144. endif
  1145. ifeq ($(FULL_TARGET),x86_64-win64)
  1146. override CLEAN_FILES+=*.elf *.o *.s *.nds *.nef *.h *.bin *.map $(BUILD)/* $(INC)/* $(BIN)/*
  1147. endif
  1148. ifeq ($(FULL_TARGET),x86_64-embedded)
  1149. override CLEAN_FILES+=*.elf *.o *.s *.nds *.nef *.h *.bin *.map $(BUILD)/* $(INC)/* $(BIN)/*
  1150. endif
  1151. ifeq ($(FULL_TARGET),x86_64-iphonesim)
  1152. override CLEAN_FILES+=*.elf *.o *.s *.nds *.nef *.h *.bin *.map $(BUILD)/* $(INC)/* $(BIN)/*
  1153. endif
  1154. ifeq ($(FULL_TARGET),x86_64-android)
  1155. override CLEAN_FILES+=*.elf *.o *.s *.nds *.nef *.h *.bin *.map $(BUILD)/* $(INC)/* $(BIN)/*
  1156. endif
  1157. ifeq ($(FULL_TARGET),x86_64-aros)
  1158. override CLEAN_FILES+=*.elf *.o *.s *.nds *.nef *.h *.bin *.map $(BUILD)/* $(INC)/* $(BIN)/*
  1159. endif
  1160. ifeq ($(FULL_TARGET),x86_64-dragonfly)
  1161. override CLEAN_FILES+=*.elf *.o *.s *.nds *.nef *.h *.bin *.map $(BUILD)/* $(INC)/* $(BIN)/*
  1162. endif
  1163. ifeq ($(FULL_TARGET),arm-linux)
  1164. override CLEAN_FILES+=*.elf *.o *.s *.nds *.nef *.h *.bin *.map $(BUILD)/* $(INC)/* $(BIN)/*
  1165. endif
  1166. ifeq ($(FULL_TARGET),arm-netbsd)
  1167. override CLEAN_FILES+=*.elf *.o *.s *.nds *.nef *.h *.bin *.map $(BUILD)/* $(INC)/* $(BIN)/*
  1168. endif
  1169. ifeq ($(FULL_TARGET),arm-palmos)
  1170. override CLEAN_FILES+=*.elf *.o *.s *.nds *.nef *.h *.bin *.map $(BUILD)/* $(INC)/* $(BIN)/*
  1171. endif
  1172. ifeq ($(FULL_TARGET),arm-wince)
  1173. override CLEAN_FILES+=*.elf *.o *.s *.nds *.nef *.h *.bin *.map $(BUILD)/* $(INC)/* $(BIN)/*
  1174. endif
  1175. ifeq ($(FULL_TARGET),arm-gba)
  1176. override CLEAN_FILES+=*.elf *.o *.s *.nds *.nef *.h *.bin *.map $(BUILD)/* $(INC)/* $(BIN)/*
  1177. endif
  1178. ifeq ($(FULL_TARGET),arm-nds)
  1179. override CLEAN_FILES+=*.elf *.o *.s *.nds *.nef *.h *.bin *.map $(BUILD)/* $(INC)/* $(BIN)/*
  1180. endif
  1181. ifeq ($(FULL_TARGET),arm-embedded)
  1182. override CLEAN_FILES+=*.elf *.o *.s *.nds *.nef *.h *.bin *.map $(BUILD)/* $(INC)/* $(BIN)/*
  1183. endif
  1184. ifeq ($(FULL_TARGET),arm-symbian)
  1185. override CLEAN_FILES+=*.elf *.o *.s *.nds *.nef *.h *.bin *.map $(BUILD)/* $(INC)/* $(BIN)/*
  1186. endif
  1187. ifeq ($(FULL_TARGET),arm-android)
  1188. override CLEAN_FILES+=*.elf *.o *.s *.nds *.nef *.h *.bin *.map $(BUILD)/* $(INC)/* $(BIN)/*
  1189. endif
  1190. ifeq ($(FULL_TARGET),arm-aros)
  1191. override CLEAN_FILES+=*.elf *.o *.s *.nds *.nef *.h *.bin *.map $(BUILD)/* $(INC)/* $(BIN)/*
  1192. endif
  1193. ifeq ($(FULL_TARGET),arm-freertos)
  1194. override CLEAN_FILES+=*.elf *.o *.s *.nds *.nef *.h *.bin *.map $(BUILD)/* $(INC)/* $(BIN)/*
  1195. endif
  1196. ifeq ($(FULL_TARGET),arm-ios)
  1197. override CLEAN_FILES+=*.elf *.o *.s *.nds *.nef *.h *.bin *.map $(BUILD)/* $(INC)/* $(BIN)/*
  1198. endif
  1199. ifeq ($(FULL_TARGET),powerpc64-linux)
  1200. override CLEAN_FILES+=*.elf *.o *.s *.nds *.nef *.h *.bin *.map $(BUILD)/* $(INC)/* $(BIN)/*
  1201. endif
  1202. ifeq ($(FULL_TARGET),powerpc64-darwin)
  1203. override CLEAN_FILES+=*.elf *.o *.s *.nds *.nef *.h *.bin *.map $(BUILD)/* $(INC)/* $(BIN)/*
  1204. endif
  1205. ifeq ($(FULL_TARGET),powerpc64-embedded)
  1206. override CLEAN_FILES+=*.elf *.o *.s *.nds *.nef *.h *.bin *.map $(BUILD)/* $(INC)/* $(BIN)/*
  1207. endif
  1208. ifeq ($(FULL_TARGET),powerpc64-aix)
  1209. override CLEAN_FILES+=*.elf *.o *.s *.nds *.nef *.h *.bin *.map $(BUILD)/* $(INC)/* $(BIN)/*
  1210. endif
  1211. ifeq ($(FULL_TARGET),avr-embedded)
  1212. override CLEAN_FILES+=*.elf *.o *.s *.nds *.nef *.h *.bin *.map $(BUILD)/* $(INC)/* $(BIN)/*
  1213. endif
  1214. ifeq ($(FULL_TARGET),armeb-linux)
  1215. override CLEAN_FILES+=*.elf *.o *.s *.nds *.nef *.h *.bin *.map $(BUILD)/* $(INC)/* $(BIN)/*
  1216. endif
  1217. ifeq ($(FULL_TARGET),armeb-embedded)
  1218. override CLEAN_FILES+=*.elf *.o *.s *.nds *.nef *.h *.bin *.map $(BUILD)/* $(INC)/* $(BIN)/*
  1219. endif
  1220. ifeq ($(FULL_TARGET),mips-linux)
  1221. override CLEAN_FILES+=*.elf *.o *.s *.nds *.nef *.h *.bin *.map $(BUILD)/* $(INC)/* $(BIN)/*
  1222. endif
  1223. ifeq ($(FULL_TARGET),mipsel-linux)
  1224. override CLEAN_FILES+=*.elf *.o *.s *.nds *.nef *.h *.bin *.map $(BUILD)/* $(INC)/* $(BIN)/*
  1225. endif
  1226. ifeq ($(FULL_TARGET),mipsel-embedded)
  1227. override CLEAN_FILES+=*.elf *.o *.s *.nds *.nef *.h *.bin *.map $(BUILD)/* $(INC)/* $(BIN)/*
  1228. endif
  1229. ifeq ($(FULL_TARGET),mipsel-android)
  1230. override CLEAN_FILES+=*.elf *.o *.s *.nds *.nef *.h *.bin *.map $(BUILD)/* $(INC)/* $(BIN)/*
  1231. endif
  1232. ifeq ($(FULL_TARGET),mips64el-linux)
  1233. override CLEAN_FILES+=*.elf *.o *.s *.nds *.nef *.h *.bin *.map $(BUILD)/* $(INC)/* $(BIN)/*
  1234. endif
  1235. ifeq ($(FULL_TARGET),jvm-java)
  1236. override CLEAN_FILES+=*.elf *.o *.s *.nds *.nef *.h *.bin *.map $(BUILD)/* $(INC)/* $(BIN)/*
  1237. endif
  1238. ifeq ($(FULL_TARGET),jvm-android)
  1239. override CLEAN_FILES+=*.elf *.o *.s *.nds *.nef *.h *.bin *.map $(BUILD)/* $(INC)/* $(BIN)/*
  1240. endif
  1241. ifeq ($(FULL_TARGET),i8086-embedded)
  1242. override CLEAN_FILES+=*.elf *.o *.s *.nds *.nef *.h *.bin *.map $(BUILD)/* $(INC)/* $(BIN)/*
  1243. endif
  1244. ifeq ($(FULL_TARGET),i8086-msdos)
  1245. override CLEAN_FILES+=*.elf *.o *.s *.nds *.nef *.h *.bin *.map $(BUILD)/* $(INC)/* $(BIN)/*
  1246. endif
  1247. ifeq ($(FULL_TARGET),i8086-win16)
  1248. override CLEAN_FILES+=*.elf *.o *.s *.nds *.nef *.h *.bin *.map $(BUILD)/* $(INC)/* $(BIN)/*
  1249. endif
  1250. ifeq ($(FULL_TARGET),aarch64-linux)
  1251. override CLEAN_FILES+=*.elf *.o *.s *.nds *.nef *.h *.bin *.map $(BUILD)/* $(INC)/* $(BIN)/*
  1252. endif
  1253. ifeq ($(FULL_TARGET),aarch64-darwin)
  1254. override CLEAN_FILES+=*.elf *.o *.s *.nds *.nef *.h *.bin *.map $(BUILD)/* $(INC)/* $(BIN)/*
  1255. endif
  1256. ifeq ($(FULL_TARGET),aarch64-win64)
  1257. override CLEAN_FILES+=*.elf *.o *.s *.nds *.nef *.h *.bin *.map $(BUILD)/* $(INC)/* $(BIN)/*
  1258. endif
  1259. ifeq ($(FULL_TARGET),aarch64-android)
  1260. override CLEAN_FILES+=*.elf *.o *.s *.nds *.nef *.h *.bin *.map $(BUILD)/* $(INC)/* $(BIN)/*
  1261. endif
  1262. ifeq ($(FULL_TARGET),aarch64-ios)
  1263. override CLEAN_FILES+=*.elf *.o *.s *.nds *.nef *.h *.bin *.map $(BUILD)/* $(INC)/* $(BIN)/*
  1264. endif
  1265. ifeq ($(FULL_TARGET),wasm32-embedded)
  1266. override CLEAN_FILES+=*.elf *.o *.s *.nds *.nef *.h *.bin *.map $(BUILD)/* $(INC)/* $(BIN)/*
  1267. endif
  1268. ifeq ($(FULL_TARGET),wasm32-wasi)
  1269. override CLEAN_FILES+=*.elf *.o *.s *.nds *.nef *.h *.bin *.map $(BUILD)/* $(INC)/* $(BIN)/*
  1270. endif
  1271. ifeq ($(FULL_TARGET),sparc64-linux)
  1272. override CLEAN_FILES+=*.elf *.o *.s *.nds *.nef *.h *.bin *.map $(BUILD)/* $(INC)/* $(BIN)/*
  1273. endif
  1274. ifeq ($(FULL_TARGET),riscv32-linux)
  1275. override CLEAN_FILES+=*.elf *.o *.s *.nds *.nef *.h *.bin *.map $(BUILD)/* $(INC)/* $(BIN)/*
  1276. endif
  1277. ifeq ($(FULL_TARGET),riscv32-embedded)
  1278. override CLEAN_FILES+=*.elf *.o *.s *.nds *.nef *.h *.bin *.map $(BUILD)/* $(INC)/* $(BIN)/*
  1279. endif
  1280. ifeq ($(FULL_TARGET),riscv64-linux)
  1281. override CLEAN_FILES+=*.elf *.o *.s *.nds *.nef *.h *.bin *.map $(BUILD)/* $(INC)/* $(BIN)/*
  1282. endif
  1283. ifeq ($(FULL_TARGET),riscv64-embedded)
  1284. override CLEAN_FILES+=*.elf *.o *.s *.nds *.nef *.h *.bin *.map $(BUILD)/* $(INC)/* $(BIN)/*
  1285. endif
  1286. ifeq ($(FULL_TARGET),xtensa-linux)
  1287. override CLEAN_FILES+=*.elf *.o *.s *.nds *.nef *.h *.bin *.map $(BUILD)/* $(INC)/* $(BIN)/*
  1288. endif
  1289. ifeq ($(FULL_TARGET),xtensa-embedded)
  1290. override CLEAN_FILES+=*.elf *.o *.s *.nds *.nef *.h *.bin *.map $(BUILD)/* $(INC)/* $(BIN)/*
  1291. endif
  1292. ifeq ($(FULL_TARGET),xtensa-freertos)
  1293. override CLEAN_FILES+=*.elf *.o *.s *.nds *.nef *.h *.bin *.map $(BUILD)/* $(INC)/* $(BIN)/*
  1294. endif
  1295. ifeq ($(FULL_TARGET),z80-embedded)
  1296. override CLEAN_FILES+=*.elf *.o *.s *.nds *.nef *.h *.bin *.map $(BUILD)/* $(INC)/* $(BIN)/*
  1297. endif
  1298. ifeq ($(FULL_TARGET),z80-zxspectrum)
  1299. override CLEAN_FILES+=*.elf *.o *.s *.nds *.nef *.h *.bin *.map $(BUILD)/* $(INC)/* $(BIN)/*
  1300. endif
  1301. ifeq ($(FULL_TARGET),z80-msxdos)
  1302. override CLEAN_FILES+=*.elf *.o *.s *.nds *.nef *.h *.bin *.map $(BUILD)/* $(INC)/* $(BIN)/*
  1303. endif
  1304. ifeq ($(FULL_TARGET),z80-amstradcpc)
  1305. override CLEAN_FILES+=*.elf *.o *.s *.nds *.nef *.h *.bin *.map $(BUILD)/* $(INC)/* $(BIN)/*
  1306. endif
  1307. override INSTALL_FPCPACKAGE=y
  1308. ifeq ($(FULL_TARGET),i386-linux)
  1309. override COMPILER_OPTIONS+=-Xm
  1310. endif
  1311. ifeq ($(FULL_TARGET),i386-go32v2)
  1312. override COMPILER_OPTIONS+=-Xm
  1313. endif
  1314. ifeq ($(FULL_TARGET),i386-win32)
  1315. override COMPILER_OPTIONS+=-Xm
  1316. endif
  1317. ifeq ($(FULL_TARGET),i386-os2)
  1318. override COMPILER_OPTIONS+=-Xm
  1319. endif
  1320. ifeq ($(FULL_TARGET),i386-freebsd)
  1321. override COMPILER_OPTIONS+=-Xm
  1322. endif
  1323. ifeq ($(FULL_TARGET),i386-beos)
  1324. override COMPILER_OPTIONS+=-Xm
  1325. endif
  1326. ifeq ($(FULL_TARGET),i386-haiku)
  1327. override COMPILER_OPTIONS+=-Xm
  1328. endif
  1329. ifeq ($(FULL_TARGET),i386-netbsd)
  1330. override COMPILER_OPTIONS+=-Xm
  1331. endif
  1332. ifeq ($(FULL_TARGET),i386-solaris)
  1333. override COMPILER_OPTIONS+=-Xm
  1334. endif
  1335. ifeq ($(FULL_TARGET),i386-netware)
  1336. override COMPILER_OPTIONS+=-Xm
  1337. endif
  1338. ifeq ($(FULL_TARGET),i386-openbsd)
  1339. override COMPILER_OPTIONS+=-Xm
  1340. endif
  1341. ifeq ($(FULL_TARGET),i386-wdosx)
  1342. override COMPILER_OPTIONS+=-Xm
  1343. endif
  1344. ifeq ($(FULL_TARGET),i386-darwin)
  1345. override COMPILER_OPTIONS+=-Xm
  1346. endif
  1347. ifeq ($(FULL_TARGET),i386-emx)
  1348. override COMPILER_OPTIONS+=-Xm
  1349. endif
  1350. ifeq ($(FULL_TARGET),i386-watcom)
  1351. override COMPILER_OPTIONS+=-Xm
  1352. endif
  1353. ifeq ($(FULL_TARGET),i386-netwlibc)
  1354. override COMPILER_OPTIONS+=-Xm
  1355. endif
  1356. ifeq ($(FULL_TARGET),i386-wince)
  1357. override COMPILER_OPTIONS+=-Xm
  1358. endif
  1359. ifeq ($(FULL_TARGET),i386-embedded)
  1360. override COMPILER_OPTIONS+=-Xm
  1361. endif
  1362. ifeq ($(FULL_TARGET),i386-symbian)
  1363. override COMPILER_OPTIONS+=-Xm
  1364. endif
  1365. ifeq ($(FULL_TARGET),i386-nativent)
  1366. override COMPILER_OPTIONS+=-Xm
  1367. endif
  1368. ifeq ($(FULL_TARGET),i386-iphonesim)
  1369. override COMPILER_OPTIONS+=-Xm
  1370. endif
  1371. ifeq ($(FULL_TARGET),i386-android)
  1372. override COMPILER_OPTIONS+=-Xm
  1373. endif
  1374. ifeq ($(FULL_TARGET),i386-aros)
  1375. override COMPILER_OPTIONS+=-Xm
  1376. endif
  1377. ifeq ($(FULL_TARGET),m68k-linux)
  1378. override COMPILER_OPTIONS+=-Xm
  1379. endif
  1380. ifeq ($(FULL_TARGET),m68k-netbsd)
  1381. override COMPILER_OPTIONS+=-Xm
  1382. endif
  1383. ifeq ($(FULL_TARGET),m68k-amiga)
  1384. override COMPILER_OPTIONS+=-Xm
  1385. endif
  1386. ifeq ($(FULL_TARGET),m68k-atari)
  1387. override COMPILER_OPTIONS+=-Xm
  1388. endif
  1389. ifeq ($(FULL_TARGET),m68k-palmos)
  1390. override COMPILER_OPTIONS+=-Xm
  1391. endif
  1392. ifeq ($(FULL_TARGET),m68k-macosclassic)
  1393. override COMPILER_OPTIONS+=-Xm
  1394. endif
  1395. ifeq ($(FULL_TARGET),m68k-embedded)
  1396. override COMPILER_OPTIONS+=-Xm
  1397. endif
  1398. ifeq ($(FULL_TARGET),m68k-sinclairql)
  1399. override COMPILER_OPTIONS+=-Xm
  1400. endif
  1401. ifeq ($(FULL_TARGET),powerpc-linux)
  1402. override COMPILER_OPTIONS+=-Xm
  1403. endif
  1404. ifeq ($(FULL_TARGET),powerpc-netbsd)
  1405. override COMPILER_OPTIONS+=-Xm
  1406. endif
  1407. ifeq ($(FULL_TARGET),powerpc-amiga)
  1408. override COMPILER_OPTIONS+=-Xm
  1409. endif
  1410. ifeq ($(FULL_TARGET),powerpc-macosclassic)
  1411. override COMPILER_OPTIONS+=-Xm
  1412. endif
  1413. ifeq ($(FULL_TARGET),powerpc-darwin)
  1414. override COMPILER_OPTIONS+=-Xm
  1415. endif
  1416. ifeq ($(FULL_TARGET),powerpc-morphos)
  1417. override COMPILER_OPTIONS+=-Xm
  1418. endif
  1419. ifeq ($(FULL_TARGET),powerpc-embedded)
  1420. override COMPILER_OPTIONS+=-Xm
  1421. endif
  1422. ifeq ($(FULL_TARGET),powerpc-wii)
  1423. override COMPILER_OPTIONS+=-Xm
  1424. endif
  1425. ifeq ($(FULL_TARGET),powerpc-aix)
  1426. override COMPILER_OPTIONS+=-Xm
  1427. endif
  1428. ifeq ($(FULL_TARGET),sparc-linux)
  1429. override COMPILER_OPTIONS+=-Xm
  1430. endif
  1431. ifeq ($(FULL_TARGET),sparc-netbsd)
  1432. override COMPILER_OPTIONS+=-Xm
  1433. endif
  1434. ifeq ($(FULL_TARGET),sparc-solaris)
  1435. override COMPILER_OPTIONS+=-Xm
  1436. endif
  1437. ifeq ($(FULL_TARGET),sparc-embedded)
  1438. override COMPILER_OPTIONS+=-Xm
  1439. endif
  1440. ifeq ($(FULL_TARGET),x86_64-linux)
  1441. override COMPILER_OPTIONS+=-Xm
  1442. endif
  1443. ifeq ($(FULL_TARGET),x86_64-freebsd)
  1444. override COMPILER_OPTIONS+=-Xm
  1445. endif
  1446. ifeq ($(FULL_TARGET),x86_64-haiku)
  1447. override COMPILER_OPTIONS+=-Xm
  1448. endif
  1449. ifeq ($(FULL_TARGET),x86_64-netbsd)
  1450. override COMPILER_OPTIONS+=-Xm
  1451. endif
  1452. ifeq ($(FULL_TARGET),x86_64-solaris)
  1453. override COMPILER_OPTIONS+=-Xm
  1454. endif
  1455. ifeq ($(FULL_TARGET),x86_64-openbsd)
  1456. override COMPILER_OPTIONS+=-Xm
  1457. endif
  1458. ifeq ($(FULL_TARGET),x86_64-darwin)
  1459. override COMPILER_OPTIONS+=-Xm
  1460. endif
  1461. ifeq ($(FULL_TARGET),x86_64-win64)
  1462. override COMPILER_OPTIONS+=-Xm
  1463. endif
  1464. ifeq ($(FULL_TARGET),x86_64-embedded)
  1465. override COMPILER_OPTIONS+=-Xm
  1466. endif
  1467. ifeq ($(FULL_TARGET),x86_64-iphonesim)
  1468. override COMPILER_OPTIONS+=-Xm
  1469. endif
  1470. ifeq ($(FULL_TARGET),x86_64-android)
  1471. override COMPILER_OPTIONS+=-Xm
  1472. endif
  1473. ifeq ($(FULL_TARGET),x86_64-aros)
  1474. override COMPILER_OPTIONS+=-Xm
  1475. endif
  1476. ifeq ($(FULL_TARGET),x86_64-dragonfly)
  1477. override COMPILER_OPTIONS+=-Xm
  1478. endif
  1479. ifeq ($(FULL_TARGET),arm-linux)
  1480. override COMPILER_OPTIONS+=-Xm
  1481. endif
  1482. ifeq ($(FULL_TARGET),arm-netbsd)
  1483. override COMPILER_OPTIONS+=-Xm
  1484. endif
  1485. ifeq ($(FULL_TARGET),arm-palmos)
  1486. override COMPILER_OPTIONS+=-Xm
  1487. endif
  1488. ifeq ($(FULL_TARGET),arm-wince)
  1489. override COMPILER_OPTIONS+=-Xm
  1490. endif
  1491. ifeq ($(FULL_TARGET),arm-gba)
  1492. override COMPILER_OPTIONS+=-Xm
  1493. endif
  1494. ifeq ($(FULL_TARGET),arm-nds)
  1495. override COMPILER_OPTIONS+=-Xm
  1496. endif
  1497. ifeq ($(FULL_TARGET),arm-embedded)
  1498. override COMPILER_OPTIONS+=-Xm
  1499. endif
  1500. ifeq ($(FULL_TARGET),arm-symbian)
  1501. override COMPILER_OPTIONS+=-Xm
  1502. endif
  1503. ifeq ($(FULL_TARGET),arm-android)
  1504. override COMPILER_OPTIONS+=-Xm
  1505. endif
  1506. ifeq ($(FULL_TARGET),arm-aros)
  1507. override COMPILER_OPTIONS+=-Xm
  1508. endif
  1509. ifeq ($(FULL_TARGET),arm-freertos)
  1510. override COMPILER_OPTIONS+=-Xm
  1511. endif
  1512. ifeq ($(FULL_TARGET),arm-ios)
  1513. override COMPILER_OPTIONS+=-Xm
  1514. endif
  1515. ifeq ($(FULL_TARGET),powerpc64-linux)
  1516. override COMPILER_OPTIONS+=-Xm
  1517. endif
  1518. ifeq ($(FULL_TARGET),powerpc64-darwin)
  1519. override COMPILER_OPTIONS+=-Xm
  1520. endif
  1521. ifeq ($(FULL_TARGET),powerpc64-embedded)
  1522. override COMPILER_OPTIONS+=-Xm
  1523. endif
  1524. ifeq ($(FULL_TARGET),powerpc64-aix)
  1525. override COMPILER_OPTIONS+=-Xm
  1526. endif
  1527. ifeq ($(FULL_TARGET),avr-embedded)
  1528. override COMPILER_OPTIONS+=-Xm
  1529. endif
  1530. ifeq ($(FULL_TARGET),armeb-linux)
  1531. override COMPILER_OPTIONS+=-Xm
  1532. endif
  1533. ifeq ($(FULL_TARGET),armeb-embedded)
  1534. override COMPILER_OPTIONS+=-Xm
  1535. endif
  1536. ifeq ($(FULL_TARGET),mips-linux)
  1537. override COMPILER_OPTIONS+=-Xm
  1538. endif
  1539. ifeq ($(FULL_TARGET),mipsel-linux)
  1540. override COMPILER_OPTIONS+=-Xm
  1541. endif
  1542. ifeq ($(FULL_TARGET),mipsel-embedded)
  1543. override COMPILER_OPTIONS+=-Xm
  1544. endif
  1545. ifeq ($(FULL_TARGET),mipsel-android)
  1546. override COMPILER_OPTIONS+=-Xm
  1547. endif
  1548. ifeq ($(FULL_TARGET),mips64el-linux)
  1549. override COMPILER_OPTIONS+=-Xm
  1550. endif
  1551. ifeq ($(FULL_TARGET),jvm-java)
  1552. override COMPILER_OPTIONS+=-Xm
  1553. endif
  1554. ifeq ($(FULL_TARGET),jvm-android)
  1555. override COMPILER_OPTIONS+=-Xm
  1556. endif
  1557. ifeq ($(FULL_TARGET),i8086-embedded)
  1558. override COMPILER_OPTIONS+=-Xm
  1559. endif
  1560. ifeq ($(FULL_TARGET),i8086-msdos)
  1561. override COMPILER_OPTIONS+=-Xm
  1562. endif
  1563. ifeq ($(FULL_TARGET),i8086-win16)
  1564. override COMPILER_OPTIONS+=-Xm
  1565. endif
  1566. ifeq ($(FULL_TARGET),aarch64-linux)
  1567. override COMPILER_OPTIONS+=-Xm
  1568. endif
  1569. ifeq ($(FULL_TARGET),aarch64-darwin)
  1570. override COMPILER_OPTIONS+=-Xm
  1571. endif
  1572. ifeq ($(FULL_TARGET),aarch64-win64)
  1573. override COMPILER_OPTIONS+=-Xm
  1574. endif
  1575. ifeq ($(FULL_TARGET),aarch64-android)
  1576. override COMPILER_OPTIONS+=-Xm
  1577. endif
  1578. ifeq ($(FULL_TARGET),aarch64-ios)
  1579. override COMPILER_OPTIONS+=-Xm
  1580. endif
  1581. ifeq ($(FULL_TARGET),wasm32-embedded)
  1582. override COMPILER_OPTIONS+=-Xm
  1583. endif
  1584. ifeq ($(FULL_TARGET),wasm32-wasi)
  1585. override COMPILER_OPTIONS+=-Xm
  1586. endif
  1587. ifeq ($(FULL_TARGET),sparc64-linux)
  1588. override COMPILER_OPTIONS+=-Xm
  1589. endif
  1590. ifeq ($(FULL_TARGET),riscv32-linux)
  1591. override COMPILER_OPTIONS+=-Xm
  1592. endif
  1593. ifeq ($(FULL_TARGET),riscv32-embedded)
  1594. override COMPILER_OPTIONS+=-Xm
  1595. endif
  1596. ifeq ($(FULL_TARGET),riscv64-linux)
  1597. override COMPILER_OPTIONS+=-Xm
  1598. endif
  1599. ifeq ($(FULL_TARGET),riscv64-embedded)
  1600. override COMPILER_OPTIONS+=-Xm
  1601. endif
  1602. ifeq ($(FULL_TARGET),xtensa-linux)
  1603. override COMPILER_OPTIONS+=-Xm
  1604. endif
  1605. ifeq ($(FULL_TARGET),xtensa-embedded)
  1606. override COMPILER_OPTIONS+=-Xm
  1607. endif
  1608. ifeq ($(FULL_TARGET),xtensa-freertos)
  1609. override COMPILER_OPTIONS+=-Xm
  1610. endif
  1611. ifeq ($(FULL_TARGET),z80-embedded)
  1612. override COMPILER_OPTIONS+=-Xm
  1613. endif
  1614. ifeq ($(FULL_TARGET),z80-zxspectrum)
  1615. override COMPILER_OPTIONS+=-Xm
  1616. endif
  1617. ifeq ($(FULL_TARGET),z80-msxdos)
  1618. override COMPILER_OPTIONS+=-Xm
  1619. endif
  1620. ifeq ($(FULL_TARGET),z80-amstradcpc)
  1621. override COMPILER_OPTIONS+=-Xm
  1622. endif
  1623. ifeq ($(FULL_TARGET),i386-linux)
  1624. override COMPILER_TARGETDIR+=$(BIN)
  1625. endif
  1626. ifeq ($(FULL_TARGET),i386-go32v2)
  1627. override COMPILER_TARGETDIR+=$(BIN)
  1628. endif
  1629. ifeq ($(FULL_TARGET),i386-win32)
  1630. override COMPILER_TARGETDIR+=$(BIN)
  1631. endif
  1632. ifeq ($(FULL_TARGET),i386-os2)
  1633. override COMPILER_TARGETDIR+=$(BIN)
  1634. endif
  1635. ifeq ($(FULL_TARGET),i386-freebsd)
  1636. override COMPILER_TARGETDIR+=$(BIN)
  1637. endif
  1638. ifeq ($(FULL_TARGET),i386-beos)
  1639. override COMPILER_TARGETDIR+=$(BIN)
  1640. endif
  1641. ifeq ($(FULL_TARGET),i386-haiku)
  1642. override COMPILER_TARGETDIR+=$(BIN)
  1643. endif
  1644. ifeq ($(FULL_TARGET),i386-netbsd)
  1645. override COMPILER_TARGETDIR+=$(BIN)
  1646. endif
  1647. ifeq ($(FULL_TARGET),i386-solaris)
  1648. override COMPILER_TARGETDIR+=$(BIN)
  1649. endif
  1650. ifeq ($(FULL_TARGET),i386-netware)
  1651. override COMPILER_TARGETDIR+=$(BIN)
  1652. endif
  1653. ifeq ($(FULL_TARGET),i386-openbsd)
  1654. override COMPILER_TARGETDIR+=$(BIN)
  1655. endif
  1656. ifeq ($(FULL_TARGET),i386-wdosx)
  1657. override COMPILER_TARGETDIR+=$(BIN)
  1658. endif
  1659. ifeq ($(FULL_TARGET),i386-darwin)
  1660. override COMPILER_TARGETDIR+=$(BIN)
  1661. endif
  1662. ifeq ($(FULL_TARGET),i386-emx)
  1663. override COMPILER_TARGETDIR+=$(BIN)
  1664. endif
  1665. ifeq ($(FULL_TARGET),i386-watcom)
  1666. override COMPILER_TARGETDIR+=$(BIN)
  1667. endif
  1668. ifeq ($(FULL_TARGET),i386-netwlibc)
  1669. override COMPILER_TARGETDIR+=$(BIN)
  1670. endif
  1671. ifeq ($(FULL_TARGET),i386-wince)
  1672. override COMPILER_TARGETDIR+=$(BIN)
  1673. endif
  1674. ifeq ($(FULL_TARGET),i386-embedded)
  1675. override COMPILER_TARGETDIR+=$(BIN)
  1676. endif
  1677. ifeq ($(FULL_TARGET),i386-symbian)
  1678. override COMPILER_TARGETDIR+=$(BIN)
  1679. endif
  1680. ifeq ($(FULL_TARGET),i386-nativent)
  1681. override COMPILER_TARGETDIR+=$(BIN)
  1682. endif
  1683. ifeq ($(FULL_TARGET),i386-iphonesim)
  1684. override COMPILER_TARGETDIR+=$(BIN)
  1685. endif
  1686. ifeq ($(FULL_TARGET),i386-android)
  1687. override COMPILER_TARGETDIR+=$(BIN)
  1688. endif
  1689. ifeq ($(FULL_TARGET),i386-aros)
  1690. override COMPILER_TARGETDIR+=$(BIN)
  1691. endif
  1692. ifeq ($(FULL_TARGET),m68k-linux)
  1693. override COMPILER_TARGETDIR+=$(BIN)
  1694. endif
  1695. ifeq ($(FULL_TARGET),m68k-netbsd)
  1696. override COMPILER_TARGETDIR+=$(BIN)
  1697. endif
  1698. ifeq ($(FULL_TARGET),m68k-amiga)
  1699. override COMPILER_TARGETDIR+=$(BIN)
  1700. endif
  1701. ifeq ($(FULL_TARGET),m68k-atari)
  1702. override COMPILER_TARGETDIR+=$(BIN)
  1703. endif
  1704. ifeq ($(FULL_TARGET),m68k-palmos)
  1705. override COMPILER_TARGETDIR+=$(BIN)
  1706. endif
  1707. ifeq ($(FULL_TARGET),m68k-macosclassic)
  1708. override COMPILER_TARGETDIR+=$(BIN)
  1709. endif
  1710. ifeq ($(FULL_TARGET),m68k-embedded)
  1711. override COMPILER_TARGETDIR+=$(BIN)
  1712. endif
  1713. ifeq ($(FULL_TARGET),m68k-sinclairql)
  1714. override COMPILER_TARGETDIR+=$(BIN)
  1715. endif
  1716. ifeq ($(FULL_TARGET),powerpc-linux)
  1717. override COMPILER_TARGETDIR+=$(BIN)
  1718. endif
  1719. ifeq ($(FULL_TARGET),powerpc-netbsd)
  1720. override COMPILER_TARGETDIR+=$(BIN)
  1721. endif
  1722. ifeq ($(FULL_TARGET),powerpc-amiga)
  1723. override COMPILER_TARGETDIR+=$(BIN)
  1724. endif
  1725. ifeq ($(FULL_TARGET),powerpc-macosclassic)
  1726. override COMPILER_TARGETDIR+=$(BIN)
  1727. endif
  1728. ifeq ($(FULL_TARGET),powerpc-darwin)
  1729. override COMPILER_TARGETDIR+=$(BIN)
  1730. endif
  1731. ifeq ($(FULL_TARGET),powerpc-morphos)
  1732. override COMPILER_TARGETDIR+=$(BIN)
  1733. endif
  1734. ifeq ($(FULL_TARGET),powerpc-embedded)
  1735. override COMPILER_TARGETDIR+=$(BIN)
  1736. endif
  1737. ifeq ($(FULL_TARGET),powerpc-wii)
  1738. override COMPILER_TARGETDIR+=$(BIN)
  1739. endif
  1740. ifeq ($(FULL_TARGET),powerpc-aix)
  1741. override COMPILER_TARGETDIR+=$(BIN)
  1742. endif
  1743. ifeq ($(FULL_TARGET),sparc-linux)
  1744. override COMPILER_TARGETDIR+=$(BIN)
  1745. endif
  1746. ifeq ($(FULL_TARGET),sparc-netbsd)
  1747. override COMPILER_TARGETDIR+=$(BIN)
  1748. endif
  1749. ifeq ($(FULL_TARGET),sparc-solaris)
  1750. override COMPILER_TARGETDIR+=$(BIN)
  1751. endif
  1752. ifeq ($(FULL_TARGET),sparc-embedded)
  1753. override COMPILER_TARGETDIR+=$(BIN)
  1754. endif
  1755. ifeq ($(FULL_TARGET),x86_64-linux)
  1756. override COMPILER_TARGETDIR+=$(BIN)
  1757. endif
  1758. ifeq ($(FULL_TARGET),x86_64-freebsd)
  1759. override COMPILER_TARGETDIR+=$(BIN)
  1760. endif
  1761. ifeq ($(FULL_TARGET),x86_64-haiku)
  1762. override COMPILER_TARGETDIR+=$(BIN)
  1763. endif
  1764. ifeq ($(FULL_TARGET),x86_64-netbsd)
  1765. override COMPILER_TARGETDIR+=$(BIN)
  1766. endif
  1767. ifeq ($(FULL_TARGET),x86_64-solaris)
  1768. override COMPILER_TARGETDIR+=$(BIN)
  1769. endif
  1770. ifeq ($(FULL_TARGET),x86_64-openbsd)
  1771. override COMPILER_TARGETDIR+=$(BIN)
  1772. endif
  1773. ifeq ($(FULL_TARGET),x86_64-darwin)
  1774. override COMPILER_TARGETDIR+=$(BIN)
  1775. endif
  1776. ifeq ($(FULL_TARGET),x86_64-win64)
  1777. override COMPILER_TARGETDIR+=$(BIN)
  1778. endif
  1779. ifeq ($(FULL_TARGET),x86_64-embedded)
  1780. override COMPILER_TARGETDIR+=$(BIN)
  1781. endif
  1782. ifeq ($(FULL_TARGET),x86_64-iphonesim)
  1783. override COMPILER_TARGETDIR+=$(BIN)
  1784. endif
  1785. ifeq ($(FULL_TARGET),x86_64-android)
  1786. override COMPILER_TARGETDIR+=$(BIN)
  1787. endif
  1788. ifeq ($(FULL_TARGET),x86_64-aros)
  1789. override COMPILER_TARGETDIR+=$(BIN)
  1790. endif
  1791. ifeq ($(FULL_TARGET),x86_64-dragonfly)
  1792. override COMPILER_TARGETDIR+=$(BIN)
  1793. endif
  1794. ifeq ($(FULL_TARGET),arm-linux)
  1795. override COMPILER_TARGETDIR+=$(BIN)
  1796. endif
  1797. ifeq ($(FULL_TARGET),arm-netbsd)
  1798. override COMPILER_TARGETDIR+=$(BIN)
  1799. endif
  1800. ifeq ($(FULL_TARGET),arm-palmos)
  1801. override COMPILER_TARGETDIR+=$(BIN)
  1802. endif
  1803. ifeq ($(FULL_TARGET),arm-wince)
  1804. override COMPILER_TARGETDIR+=$(BIN)
  1805. endif
  1806. ifeq ($(FULL_TARGET),arm-gba)
  1807. override COMPILER_TARGETDIR+=$(BIN)
  1808. endif
  1809. ifeq ($(FULL_TARGET),arm-nds)
  1810. override COMPILER_TARGETDIR+=$(BIN)
  1811. endif
  1812. ifeq ($(FULL_TARGET),arm-embedded)
  1813. override COMPILER_TARGETDIR+=$(BIN)
  1814. endif
  1815. ifeq ($(FULL_TARGET),arm-symbian)
  1816. override COMPILER_TARGETDIR+=$(BIN)
  1817. endif
  1818. ifeq ($(FULL_TARGET),arm-android)
  1819. override COMPILER_TARGETDIR+=$(BIN)
  1820. endif
  1821. ifeq ($(FULL_TARGET),arm-aros)
  1822. override COMPILER_TARGETDIR+=$(BIN)
  1823. endif
  1824. ifeq ($(FULL_TARGET),arm-freertos)
  1825. override COMPILER_TARGETDIR+=$(BIN)
  1826. endif
  1827. ifeq ($(FULL_TARGET),arm-ios)
  1828. override COMPILER_TARGETDIR+=$(BIN)
  1829. endif
  1830. ifeq ($(FULL_TARGET),powerpc64-linux)
  1831. override COMPILER_TARGETDIR+=$(BIN)
  1832. endif
  1833. ifeq ($(FULL_TARGET),powerpc64-darwin)
  1834. override COMPILER_TARGETDIR+=$(BIN)
  1835. endif
  1836. ifeq ($(FULL_TARGET),powerpc64-embedded)
  1837. override COMPILER_TARGETDIR+=$(BIN)
  1838. endif
  1839. ifeq ($(FULL_TARGET),powerpc64-aix)
  1840. override COMPILER_TARGETDIR+=$(BIN)
  1841. endif
  1842. ifeq ($(FULL_TARGET),avr-embedded)
  1843. override COMPILER_TARGETDIR+=$(BIN)
  1844. endif
  1845. ifeq ($(FULL_TARGET),armeb-linux)
  1846. override COMPILER_TARGETDIR+=$(BIN)
  1847. endif
  1848. ifeq ($(FULL_TARGET),armeb-embedded)
  1849. override COMPILER_TARGETDIR+=$(BIN)
  1850. endif
  1851. ifeq ($(FULL_TARGET),mips-linux)
  1852. override COMPILER_TARGETDIR+=$(BIN)
  1853. endif
  1854. ifeq ($(FULL_TARGET),mipsel-linux)
  1855. override COMPILER_TARGETDIR+=$(BIN)
  1856. endif
  1857. ifeq ($(FULL_TARGET),mipsel-embedded)
  1858. override COMPILER_TARGETDIR+=$(BIN)
  1859. endif
  1860. ifeq ($(FULL_TARGET),mipsel-android)
  1861. override COMPILER_TARGETDIR+=$(BIN)
  1862. endif
  1863. ifeq ($(FULL_TARGET),mips64el-linux)
  1864. override COMPILER_TARGETDIR+=$(BIN)
  1865. endif
  1866. ifeq ($(FULL_TARGET),jvm-java)
  1867. override COMPILER_TARGETDIR+=$(BIN)
  1868. endif
  1869. ifeq ($(FULL_TARGET),jvm-android)
  1870. override COMPILER_TARGETDIR+=$(BIN)
  1871. endif
  1872. ifeq ($(FULL_TARGET),i8086-embedded)
  1873. override COMPILER_TARGETDIR+=$(BIN)
  1874. endif
  1875. ifeq ($(FULL_TARGET),i8086-msdos)
  1876. override COMPILER_TARGETDIR+=$(BIN)
  1877. endif
  1878. ifeq ($(FULL_TARGET),i8086-win16)
  1879. override COMPILER_TARGETDIR+=$(BIN)
  1880. endif
  1881. ifeq ($(FULL_TARGET),aarch64-linux)
  1882. override COMPILER_TARGETDIR+=$(BIN)
  1883. endif
  1884. ifeq ($(FULL_TARGET),aarch64-darwin)
  1885. override COMPILER_TARGETDIR+=$(BIN)
  1886. endif
  1887. ifeq ($(FULL_TARGET),aarch64-win64)
  1888. override COMPILER_TARGETDIR+=$(BIN)
  1889. endif
  1890. ifeq ($(FULL_TARGET),aarch64-android)
  1891. override COMPILER_TARGETDIR+=$(BIN)
  1892. endif
  1893. ifeq ($(FULL_TARGET),aarch64-ios)
  1894. override COMPILER_TARGETDIR+=$(BIN)
  1895. endif
  1896. ifeq ($(FULL_TARGET),wasm32-embedded)
  1897. override COMPILER_TARGETDIR+=$(BIN)
  1898. endif
  1899. ifeq ($(FULL_TARGET),wasm32-wasi)
  1900. override COMPILER_TARGETDIR+=$(BIN)
  1901. endif
  1902. ifeq ($(FULL_TARGET),sparc64-linux)
  1903. override COMPILER_TARGETDIR+=$(BIN)
  1904. endif
  1905. ifeq ($(FULL_TARGET),riscv32-linux)
  1906. override COMPILER_TARGETDIR+=$(BIN)
  1907. endif
  1908. ifeq ($(FULL_TARGET),riscv32-embedded)
  1909. override COMPILER_TARGETDIR+=$(BIN)
  1910. endif
  1911. ifeq ($(FULL_TARGET),riscv64-linux)
  1912. override COMPILER_TARGETDIR+=$(BIN)
  1913. endif
  1914. ifeq ($(FULL_TARGET),riscv64-embedded)
  1915. override COMPILER_TARGETDIR+=$(BIN)
  1916. endif
  1917. ifeq ($(FULL_TARGET),xtensa-linux)
  1918. override COMPILER_TARGETDIR+=$(BIN)
  1919. endif
  1920. ifeq ($(FULL_TARGET),xtensa-embedded)
  1921. override COMPILER_TARGETDIR+=$(BIN)
  1922. endif
  1923. ifeq ($(FULL_TARGET),xtensa-freertos)
  1924. override COMPILER_TARGETDIR+=$(BIN)
  1925. endif
  1926. ifeq ($(FULL_TARGET),z80-embedded)
  1927. override COMPILER_TARGETDIR+=$(BIN)
  1928. endif
  1929. ifeq ($(FULL_TARGET),z80-zxspectrum)
  1930. override COMPILER_TARGETDIR+=$(BIN)
  1931. endif
  1932. ifeq ($(FULL_TARGET),z80-msxdos)
  1933. override COMPILER_TARGETDIR+=$(BIN)
  1934. endif
  1935. ifeq ($(FULL_TARGET),z80-amstradcpc)
  1936. override COMPILER_TARGETDIR+=$(BIN)
  1937. endif
  1938. ifeq ($(FULL_TARGET),i386-linux)
  1939. override COMPILER_UNITTARGETDIR+=$(BUILD)
  1940. endif
  1941. ifeq ($(FULL_TARGET),i386-go32v2)
  1942. override COMPILER_UNITTARGETDIR+=$(BUILD)
  1943. endif
  1944. ifeq ($(FULL_TARGET),i386-win32)
  1945. override COMPILER_UNITTARGETDIR+=$(BUILD)
  1946. endif
  1947. ifeq ($(FULL_TARGET),i386-os2)
  1948. override COMPILER_UNITTARGETDIR+=$(BUILD)
  1949. endif
  1950. ifeq ($(FULL_TARGET),i386-freebsd)
  1951. override COMPILER_UNITTARGETDIR+=$(BUILD)
  1952. endif
  1953. ifeq ($(FULL_TARGET),i386-beos)
  1954. override COMPILER_UNITTARGETDIR+=$(BUILD)
  1955. endif
  1956. ifeq ($(FULL_TARGET),i386-haiku)
  1957. override COMPILER_UNITTARGETDIR+=$(BUILD)
  1958. endif
  1959. ifeq ($(FULL_TARGET),i386-netbsd)
  1960. override COMPILER_UNITTARGETDIR+=$(BUILD)
  1961. endif
  1962. ifeq ($(FULL_TARGET),i386-solaris)
  1963. override COMPILER_UNITTARGETDIR+=$(BUILD)
  1964. endif
  1965. ifeq ($(FULL_TARGET),i386-netware)
  1966. override COMPILER_UNITTARGETDIR+=$(BUILD)
  1967. endif
  1968. ifeq ($(FULL_TARGET),i386-openbsd)
  1969. override COMPILER_UNITTARGETDIR+=$(BUILD)
  1970. endif
  1971. ifeq ($(FULL_TARGET),i386-wdosx)
  1972. override COMPILER_UNITTARGETDIR+=$(BUILD)
  1973. endif
  1974. ifeq ($(FULL_TARGET),i386-darwin)
  1975. override COMPILER_UNITTARGETDIR+=$(BUILD)
  1976. endif
  1977. ifeq ($(FULL_TARGET),i386-emx)
  1978. override COMPILER_UNITTARGETDIR+=$(BUILD)
  1979. endif
  1980. ifeq ($(FULL_TARGET),i386-watcom)
  1981. override COMPILER_UNITTARGETDIR+=$(BUILD)
  1982. endif
  1983. ifeq ($(FULL_TARGET),i386-netwlibc)
  1984. override COMPILER_UNITTARGETDIR+=$(BUILD)
  1985. endif
  1986. ifeq ($(FULL_TARGET),i386-wince)
  1987. override COMPILER_UNITTARGETDIR+=$(BUILD)
  1988. endif
  1989. ifeq ($(FULL_TARGET),i386-embedded)
  1990. override COMPILER_UNITTARGETDIR+=$(BUILD)
  1991. endif
  1992. ifeq ($(FULL_TARGET),i386-symbian)
  1993. override COMPILER_UNITTARGETDIR+=$(BUILD)
  1994. endif
  1995. ifeq ($(FULL_TARGET),i386-nativent)
  1996. override COMPILER_UNITTARGETDIR+=$(BUILD)
  1997. endif
  1998. ifeq ($(FULL_TARGET),i386-iphonesim)
  1999. override COMPILER_UNITTARGETDIR+=$(BUILD)
  2000. endif
  2001. ifeq ($(FULL_TARGET),i386-android)
  2002. override COMPILER_UNITTARGETDIR+=$(BUILD)
  2003. endif
  2004. ifeq ($(FULL_TARGET),i386-aros)
  2005. override COMPILER_UNITTARGETDIR+=$(BUILD)
  2006. endif
  2007. ifeq ($(FULL_TARGET),m68k-linux)
  2008. override COMPILER_UNITTARGETDIR+=$(BUILD)
  2009. endif
  2010. ifeq ($(FULL_TARGET),m68k-netbsd)
  2011. override COMPILER_UNITTARGETDIR+=$(BUILD)
  2012. endif
  2013. ifeq ($(FULL_TARGET),m68k-amiga)
  2014. override COMPILER_UNITTARGETDIR+=$(BUILD)
  2015. endif
  2016. ifeq ($(FULL_TARGET),m68k-atari)
  2017. override COMPILER_UNITTARGETDIR+=$(BUILD)
  2018. endif
  2019. ifeq ($(FULL_TARGET),m68k-palmos)
  2020. override COMPILER_UNITTARGETDIR+=$(BUILD)
  2021. endif
  2022. ifeq ($(FULL_TARGET),m68k-macosclassic)
  2023. override COMPILER_UNITTARGETDIR+=$(BUILD)
  2024. endif
  2025. ifeq ($(FULL_TARGET),m68k-embedded)
  2026. override COMPILER_UNITTARGETDIR+=$(BUILD)
  2027. endif
  2028. ifeq ($(FULL_TARGET),m68k-sinclairql)
  2029. override COMPILER_UNITTARGETDIR+=$(BUILD)
  2030. endif
  2031. ifeq ($(FULL_TARGET),powerpc-linux)
  2032. override COMPILER_UNITTARGETDIR+=$(BUILD)
  2033. endif
  2034. ifeq ($(FULL_TARGET),powerpc-netbsd)
  2035. override COMPILER_UNITTARGETDIR+=$(BUILD)
  2036. endif
  2037. ifeq ($(FULL_TARGET),powerpc-amiga)
  2038. override COMPILER_UNITTARGETDIR+=$(BUILD)
  2039. endif
  2040. ifeq ($(FULL_TARGET),powerpc-macosclassic)
  2041. override COMPILER_UNITTARGETDIR+=$(BUILD)
  2042. endif
  2043. ifeq ($(FULL_TARGET),powerpc-darwin)
  2044. override COMPILER_UNITTARGETDIR+=$(BUILD)
  2045. endif
  2046. ifeq ($(FULL_TARGET),powerpc-morphos)
  2047. override COMPILER_UNITTARGETDIR+=$(BUILD)
  2048. endif
  2049. ifeq ($(FULL_TARGET),powerpc-embedded)
  2050. override COMPILER_UNITTARGETDIR+=$(BUILD)
  2051. endif
  2052. ifeq ($(FULL_TARGET),powerpc-wii)
  2053. override COMPILER_UNITTARGETDIR+=$(BUILD)
  2054. endif
  2055. ifeq ($(FULL_TARGET),powerpc-aix)
  2056. override COMPILER_UNITTARGETDIR+=$(BUILD)
  2057. endif
  2058. ifeq ($(FULL_TARGET),sparc-linux)
  2059. override COMPILER_UNITTARGETDIR+=$(BUILD)
  2060. endif
  2061. ifeq ($(FULL_TARGET),sparc-netbsd)
  2062. override COMPILER_UNITTARGETDIR+=$(BUILD)
  2063. endif
  2064. ifeq ($(FULL_TARGET),sparc-solaris)
  2065. override COMPILER_UNITTARGETDIR+=$(BUILD)
  2066. endif
  2067. ifeq ($(FULL_TARGET),sparc-embedded)
  2068. override COMPILER_UNITTARGETDIR+=$(BUILD)
  2069. endif
  2070. ifeq ($(FULL_TARGET),x86_64-linux)
  2071. override COMPILER_UNITTARGETDIR+=$(BUILD)
  2072. endif
  2073. ifeq ($(FULL_TARGET),x86_64-freebsd)
  2074. override COMPILER_UNITTARGETDIR+=$(BUILD)
  2075. endif
  2076. ifeq ($(FULL_TARGET),x86_64-haiku)
  2077. override COMPILER_UNITTARGETDIR+=$(BUILD)
  2078. endif
  2079. ifeq ($(FULL_TARGET),x86_64-netbsd)
  2080. override COMPILER_UNITTARGETDIR+=$(BUILD)
  2081. endif
  2082. ifeq ($(FULL_TARGET),x86_64-solaris)
  2083. override COMPILER_UNITTARGETDIR+=$(BUILD)
  2084. endif
  2085. ifeq ($(FULL_TARGET),x86_64-openbsd)
  2086. override COMPILER_UNITTARGETDIR+=$(BUILD)
  2087. endif
  2088. ifeq ($(FULL_TARGET),x86_64-darwin)
  2089. override COMPILER_UNITTARGETDIR+=$(BUILD)
  2090. endif
  2091. ifeq ($(FULL_TARGET),x86_64-win64)
  2092. override COMPILER_UNITTARGETDIR+=$(BUILD)
  2093. endif
  2094. ifeq ($(FULL_TARGET),x86_64-embedded)
  2095. override COMPILER_UNITTARGETDIR+=$(BUILD)
  2096. endif
  2097. ifeq ($(FULL_TARGET),x86_64-iphonesim)
  2098. override COMPILER_UNITTARGETDIR+=$(BUILD)
  2099. endif
  2100. ifeq ($(FULL_TARGET),x86_64-android)
  2101. override COMPILER_UNITTARGETDIR+=$(BUILD)
  2102. endif
  2103. ifeq ($(FULL_TARGET),x86_64-aros)
  2104. override COMPILER_UNITTARGETDIR+=$(BUILD)
  2105. endif
  2106. ifeq ($(FULL_TARGET),x86_64-dragonfly)
  2107. override COMPILER_UNITTARGETDIR+=$(BUILD)
  2108. endif
  2109. ifeq ($(FULL_TARGET),arm-linux)
  2110. override COMPILER_UNITTARGETDIR+=$(BUILD)
  2111. endif
  2112. ifeq ($(FULL_TARGET),arm-netbsd)
  2113. override COMPILER_UNITTARGETDIR+=$(BUILD)
  2114. endif
  2115. ifeq ($(FULL_TARGET),arm-palmos)
  2116. override COMPILER_UNITTARGETDIR+=$(BUILD)
  2117. endif
  2118. ifeq ($(FULL_TARGET),arm-wince)
  2119. override COMPILER_UNITTARGETDIR+=$(BUILD)
  2120. endif
  2121. ifeq ($(FULL_TARGET),arm-gba)
  2122. override COMPILER_UNITTARGETDIR+=$(BUILD)
  2123. endif
  2124. ifeq ($(FULL_TARGET),arm-nds)
  2125. override COMPILER_UNITTARGETDIR+=$(BUILD)
  2126. endif
  2127. ifeq ($(FULL_TARGET),arm-embedded)
  2128. override COMPILER_UNITTARGETDIR+=$(BUILD)
  2129. endif
  2130. ifeq ($(FULL_TARGET),arm-symbian)
  2131. override COMPILER_UNITTARGETDIR+=$(BUILD)
  2132. endif
  2133. ifeq ($(FULL_TARGET),arm-android)
  2134. override COMPILER_UNITTARGETDIR+=$(BUILD)
  2135. endif
  2136. ifeq ($(FULL_TARGET),arm-aros)
  2137. override COMPILER_UNITTARGETDIR+=$(BUILD)
  2138. endif
  2139. ifeq ($(FULL_TARGET),arm-freertos)
  2140. override COMPILER_UNITTARGETDIR+=$(BUILD)
  2141. endif
  2142. ifeq ($(FULL_TARGET),arm-ios)
  2143. override COMPILER_UNITTARGETDIR+=$(BUILD)
  2144. endif
  2145. ifeq ($(FULL_TARGET),powerpc64-linux)
  2146. override COMPILER_UNITTARGETDIR+=$(BUILD)
  2147. endif
  2148. ifeq ($(FULL_TARGET),powerpc64-darwin)
  2149. override COMPILER_UNITTARGETDIR+=$(BUILD)
  2150. endif
  2151. ifeq ($(FULL_TARGET),powerpc64-embedded)
  2152. override COMPILER_UNITTARGETDIR+=$(BUILD)
  2153. endif
  2154. ifeq ($(FULL_TARGET),powerpc64-aix)
  2155. override COMPILER_UNITTARGETDIR+=$(BUILD)
  2156. endif
  2157. ifeq ($(FULL_TARGET),avr-embedded)
  2158. override COMPILER_UNITTARGETDIR+=$(BUILD)
  2159. endif
  2160. ifeq ($(FULL_TARGET),armeb-linux)
  2161. override COMPILER_UNITTARGETDIR+=$(BUILD)
  2162. endif
  2163. ifeq ($(FULL_TARGET),armeb-embedded)
  2164. override COMPILER_UNITTARGETDIR+=$(BUILD)
  2165. endif
  2166. ifeq ($(FULL_TARGET),mips-linux)
  2167. override COMPILER_UNITTARGETDIR+=$(BUILD)
  2168. endif
  2169. ifeq ($(FULL_TARGET),mipsel-linux)
  2170. override COMPILER_UNITTARGETDIR+=$(BUILD)
  2171. endif
  2172. ifeq ($(FULL_TARGET),mipsel-embedded)
  2173. override COMPILER_UNITTARGETDIR+=$(BUILD)
  2174. endif
  2175. ifeq ($(FULL_TARGET),mipsel-android)
  2176. override COMPILER_UNITTARGETDIR+=$(BUILD)
  2177. endif
  2178. ifeq ($(FULL_TARGET),mips64el-linux)
  2179. override COMPILER_UNITTARGETDIR+=$(BUILD)
  2180. endif
  2181. ifeq ($(FULL_TARGET),jvm-java)
  2182. override COMPILER_UNITTARGETDIR+=$(BUILD)
  2183. endif
  2184. ifeq ($(FULL_TARGET),jvm-android)
  2185. override COMPILER_UNITTARGETDIR+=$(BUILD)
  2186. endif
  2187. ifeq ($(FULL_TARGET),i8086-embedded)
  2188. override COMPILER_UNITTARGETDIR+=$(BUILD)
  2189. endif
  2190. ifeq ($(FULL_TARGET),i8086-msdos)
  2191. override COMPILER_UNITTARGETDIR+=$(BUILD)
  2192. endif
  2193. ifeq ($(FULL_TARGET),i8086-win16)
  2194. override COMPILER_UNITTARGETDIR+=$(BUILD)
  2195. endif
  2196. ifeq ($(FULL_TARGET),aarch64-linux)
  2197. override COMPILER_UNITTARGETDIR+=$(BUILD)
  2198. endif
  2199. ifeq ($(FULL_TARGET),aarch64-darwin)
  2200. override COMPILER_UNITTARGETDIR+=$(BUILD)
  2201. endif
  2202. ifeq ($(FULL_TARGET),aarch64-win64)
  2203. override COMPILER_UNITTARGETDIR+=$(BUILD)
  2204. endif
  2205. ifeq ($(FULL_TARGET),aarch64-android)
  2206. override COMPILER_UNITTARGETDIR+=$(BUILD)
  2207. endif
  2208. ifeq ($(FULL_TARGET),aarch64-ios)
  2209. override COMPILER_UNITTARGETDIR+=$(BUILD)
  2210. endif
  2211. ifeq ($(FULL_TARGET),wasm32-embedded)
  2212. override COMPILER_UNITTARGETDIR+=$(BUILD)
  2213. endif
  2214. ifeq ($(FULL_TARGET),wasm32-wasi)
  2215. override COMPILER_UNITTARGETDIR+=$(BUILD)
  2216. endif
  2217. ifeq ($(FULL_TARGET),sparc64-linux)
  2218. override COMPILER_UNITTARGETDIR+=$(BUILD)
  2219. endif
  2220. ifeq ($(FULL_TARGET),riscv32-linux)
  2221. override COMPILER_UNITTARGETDIR+=$(BUILD)
  2222. endif
  2223. ifeq ($(FULL_TARGET),riscv32-embedded)
  2224. override COMPILER_UNITTARGETDIR+=$(BUILD)
  2225. endif
  2226. ifeq ($(FULL_TARGET),riscv64-linux)
  2227. override COMPILER_UNITTARGETDIR+=$(BUILD)
  2228. endif
  2229. ifeq ($(FULL_TARGET),riscv64-embedded)
  2230. override COMPILER_UNITTARGETDIR+=$(BUILD)
  2231. endif
  2232. ifeq ($(FULL_TARGET),xtensa-linux)
  2233. override COMPILER_UNITTARGETDIR+=$(BUILD)
  2234. endif
  2235. ifeq ($(FULL_TARGET),xtensa-embedded)
  2236. override COMPILER_UNITTARGETDIR+=$(BUILD)
  2237. endif
  2238. ifeq ($(FULL_TARGET),xtensa-freertos)
  2239. override COMPILER_UNITTARGETDIR+=$(BUILD)
  2240. endif
  2241. ifeq ($(FULL_TARGET),z80-embedded)
  2242. override COMPILER_UNITTARGETDIR+=$(BUILD)
  2243. endif
  2244. ifeq ($(FULL_TARGET),z80-zxspectrum)
  2245. override COMPILER_UNITTARGETDIR+=$(BUILD)
  2246. endif
  2247. ifeq ($(FULL_TARGET),z80-msxdos)
  2248. override COMPILER_UNITTARGETDIR+=$(BUILD)
  2249. endif
  2250. ifeq ($(FULL_TARGET),z80-amstradcpc)
  2251. override COMPILER_UNITTARGETDIR+=$(BUILD)
  2252. endif
  2253. ifdef REQUIRE_UNITSDIR
  2254. override UNITSDIR+=$(REQUIRE_UNITSDIR)
  2255. endif
  2256. ifdef REQUIRE_PACKAGESDIR
  2257. override PACKAGESDIR+=$(REQUIRE_PACKAGESDIR)
  2258. endif
  2259. ifdef ZIPINSTALL
  2260. ifneq ($(findstring $(OS_TARGET),$(UNIXs)),)
  2261. UNIXHier=1
  2262. endif
  2263. else
  2264. ifneq ($(findstring $(OS_SOURCE),$(UNIXs)),)
  2265. UNIXHier=1
  2266. endif
  2267. endif
  2268. ifndef INSTALL_PREFIX
  2269. ifdef PREFIX
  2270. INSTALL_PREFIX=$(PREFIX)
  2271. endif
  2272. endif
  2273. ifndef INSTALL_PREFIX
  2274. ifdef UNIXHier
  2275. INSTALL_PREFIX=/usr/local
  2276. else
  2277. ifdef INSTALL_FPCPACKAGE
  2278. INSTALL_BASEDIR:=/pp
  2279. else
  2280. INSTALL_BASEDIR:=/$(PACKAGE_NAME)
  2281. endif
  2282. endif
  2283. endif
  2284. export INSTALL_PREFIX
  2285. ifdef INSTALL_FPCSUBDIR
  2286. export INSTALL_FPCSUBDIR
  2287. endif
  2288. ifndef DIST_DESTDIR
  2289. DIST_DESTDIR:=$(BASEDIR)
  2290. endif
  2291. export DIST_DESTDIR
  2292. ifndef COMPILER_UNITTARGETDIR
  2293. ifdef PACKAGEDIR_MAIN
  2294. COMPILER_UNITTARGETDIR=$(PACKAGEDIR_MAIN)/units/$(TARGETSUFFIX)
  2295. else
  2296. COMPILER_UNITTARGETDIR=units/$(TARGETSUFFIX)
  2297. endif
  2298. endif
  2299. ifndef COMPILER_TARGETDIR
  2300. COMPILER_TARGETDIR=.
  2301. endif
  2302. ifndef INSTALL_BASEDIR
  2303. ifdef UNIXHier
  2304. ifdef INSTALL_FPCPACKAGE
  2305. INSTALL_BASEDIR:=$(INSTALL_PREFIX)/lib/fpc/$(FPC_VERSION)
  2306. else
  2307. INSTALL_BASEDIR:=$(INSTALL_PREFIX)/lib/$(PACKAGE_NAME)
  2308. endif
  2309. else
  2310. INSTALL_BASEDIR:=$(INSTALL_PREFIX)
  2311. endif
  2312. endif
  2313. ifndef INSTALL_BINDIR
  2314. ifdef UNIXHier
  2315. INSTALL_BINDIR:=$(INSTALL_PREFIX)/bin
  2316. else
  2317. INSTALL_BINDIR:=$(INSTALL_BASEDIR)/bin
  2318. ifdef INSTALL_FPCPACKAGE
  2319. ifdef CROSSCOMPILE
  2320. ifdef CROSSINSTALL
  2321. INSTALL_BINDIR:=$(INSTALL_BINDIR)/$(SOURCESUFFIX)
  2322. else
  2323. INSTALL_BINDIR:=$(INSTALL_BINDIR)/$(TARGETSUFFIX)
  2324. endif
  2325. else
  2326. INSTALL_BINDIR:=$(INSTALL_BINDIR)/$(TARGETSUFFIX)
  2327. endif
  2328. endif
  2329. endif
  2330. endif
  2331. ifndef INSTALL_UNITDIR
  2332. INSTALL_UNITDIR:=$(INSTALL_BASEDIR)/units/$(TARGETSUFFIX)
  2333. ifdef INSTALL_FPCPACKAGE
  2334. ifdef PACKAGE_NAME
  2335. INSTALL_UNITDIR:=$(INSTALL_UNITDIR)/$(PACKAGE_NAME)
  2336. endif
  2337. endif
  2338. endif
  2339. ifndef INSTALL_LIBDIR
  2340. ifdef UNIXHier
  2341. INSTALL_LIBDIR:=$(INSTALL_PREFIX)/lib
  2342. else
  2343. INSTALL_LIBDIR:=$(INSTALL_UNITDIR)
  2344. endif
  2345. endif
  2346. ifndef INSTALL_SOURCEDIR
  2347. ifdef UNIXHier
  2348. ifdef BSDhier
  2349. SRCPREFIXDIR=share/src
  2350. else
  2351. ifdef linuxHier
  2352. SRCPREFIXDIR=share/src
  2353. else
  2354. SRCPREFIXDIR=src
  2355. endif
  2356. endif
  2357. ifdef INSTALL_FPCPACKAGE
  2358. ifdef INSTALL_FPCSUBDIR
  2359. INSTALL_SOURCEDIR:=$(INSTALL_PREFIX)/$(SRCPREFIXDIR)/fpc-$(FPC_VERSION)/$(INSTALL_FPCSUBDIR)/$(PACKAGE_NAME)
  2360. else
  2361. INSTALL_SOURCEDIR:=$(INSTALL_PREFIX)/$(SRCPREFIXDIR)/fpc-$(FPC_VERSION)/$(PACKAGE_NAME)
  2362. endif
  2363. else
  2364. INSTALL_SOURCEDIR:=$(INSTALL_PREFIX)/$(SRCPREFIXDIR)/$(PACKAGE_NAME)-$(PACKAGE_VERSION)
  2365. endif
  2366. else
  2367. ifdef INSTALL_FPCPACKAGE
  2368. ifdef INSTALL_FPCSUBDIR
  2369. INSTALL_SOURCEDIR:=$(INSTALL_BASEDIR)/source/$(INSTALL_FPCSUBDIR)/$(PACKAGE_NAME)
  2370. else
  2371. INSTALL_SOURCEDIR:=$(INSTALL_BASEDIR)/source/$(PACKAGE_NAME)
  2372. endif
  2373. else
  2374. INSTALL_SOURCEDIR:=$(INSTALL_BASEDIR)/source
  2375. endif
  2376. endif
  2377. endif
  2378. ifndef INSTALL_DOCDIR
  2379. ifdef UNIXHier
  2380. ifdef BSDhier
  2381. DOCPREFIXDIR=share/doc
  2382. else
  2383. ifdef linuxHier
  2384. DOCPREFIXDIR=share/doc
  2385. else
  2386. DOCPREFIXDIR=doc
  2387. endif
  2388. endif
  2389. ifdef INSTALL_FPCPACKAGE
  2390. INSTALL_DOCDIR:=$(INSTALL_PREFIX)/$(DOCPREFIXDIR)/fpc-$(FPC_VERSION)/$(PACKAGE_NAME)
  2391. else
  2392. INSTALL_DOCDIR:=$(INSTALL_PREFIX)/$(DOCPREFIXDIR)/$(PACKAGE_NAME)-$(PACKAGE_VERSION)
  2393. endif
  2394. else
  2395. ifdef INSTALL_FPCPACKAGE
  2396. INSTALL_DOCDIR:=$(INSTALL_BASEDIR)/doc/$(PACKAGE_NAME)
  2397. else
  2398. INSTALL_DOCDIR:=$(INSTALL_BASEDIR)/doc
  2399. endif
  2400. endif
  2401. endif
  2402. ifndef INSTALL_EXAMPLEDIR
  2403. ifdef UNIXHier
  2404. ifdef INSTALL_FPCPACKAGE
  2405. ifdef BSDhier
  2406. INSTALL_EXAMPLEDIR:=$(INSTALL_PREFIX)/share/examples/fpc-$(FPC_VERSION)/$(PACKAGE_NAME)
  2407. else
  2408. ifdef linuxHier
  2409. INSTALL_EXAMPLEDIR:=$(INSTALL_DOCDIR)/examples
  2410. else
  2411. INSTALL_EXAMPLEDIR:=$(INSTALL_PREFIX)/doc/fpc-$(FPC_VERSION)/examples/$(PACKAGE_NAME)
  2412. endif
  2413. endif
  2414. else
  2415. ifdef BSDhier
  2416. INSTALL_EXAMPLEDIR:=$(INSTALL_PREFIX)/share/examples/$(PACKAGE_NAME)-$(PACKAGE_VERSION)
  2417. else
  2418. ifdef linuxHier
  2419. INSTALL_EXAMPLEDIR:=$(INSTALL_DOCDIR)/examples/$(PACKAGE_NAME)-$(PACKAGE_VERSION)
  2420. else
  2421. INSTALL_EXAMPLEDIR:=$(INSTALL_PREFIX)/doc/$(PACKAGE_NAME)-$(PACKAGE_VERSION)
  2422. endif
  2423. endif
  2424. endif
  2425. else
  2426. ifdef INSTALL_FPCPACKAGE
  2427. INSTALL_EXAMPLEDIR:=$(INSTALL_BASEDIR)/examples/$(PACKAGE_NAME)
  2428. else
  2429. INSTALL_EXAMPLEDIR:=$(INSTALL_BASEDIR)/examples
  2430. endif
  2431. endif
  2432. endif
  2433. ifndef INSTALL_DATADIR
  2434. INSTALL_DATADIR=$(INSTALL_BASEDIR)
  2435. endif
  2436. ifndef INSTALL_SHAREDDIR
  2437. INSTALL_SHAREDDIR=$(INSTALL_PREFIX)/lib
  2438. endif
  2439. ifdef CROSSCOMPILE
  2440. ifndef CROSSBINDIR
  2441. CROSSBINDIR:=$(wildcard $(CROSSTARGETDIR)/bin/$(SOURCESUFFIX))
  2442. ifeq ($(CROSSBINDIR),)
  2443. CROSSBINDIR:=$(wildcard $(INSTALL_BASEDIR)/cross/$(TARGETSUFFIX)/bin/$(FULL_SOURCE))
  2444. endif
  2445. endif
  2446. else
  2447. CROSSBINDIR=
  2448. endif
  2449. ifeq ($(OS_SOURCE),linux)
  2450. ifndef GCCLIBDIR
  2451. ifeq ($(CPU_TARGET),i386)
  2452. ifneq ($(findstring x86_64,$(shell uname -a)),)
  2453. ifeq ($(BINUTILSPREFIX),)
  2454. GCCLIBDIR:=$(shell dirname `gcc -m32 -print-libgcc-file-name`)
  2455. else
  2456. CROSSGCCOPT=-m32
  2457. endif
  2458. endif
  2459. endif
  2460. ifeq ($(CPU_TARGET),powerpc)
  2461. ifeq ($(BINUTILSPREFIX),)
  2462. GCCLIBDIR:=$(shell dirname `gcc -m32 -print-libgcc-file-name`)
  2463. else
  2464. CROSSGCCOPT=-m32
  2465. endif
  2466. endif
  2467. ifeq ($(CPU_TARGET),powerpc64)
  2468. ifeq ($(BINUTILSPREFIX),)
  2469. GCCLIBDIR:=$(shell dirname `gcc -m64 -print-libgcc-file-name`)
  2470. else
  2471. CROSSGCCOPT=-m64
  2472. endif
  2473. endif
  2474. ifeq ($(CPU_TARGET),sparc)
  2475. ifneq ($(findstring sparc64,$(shell uname -a)),)
  2476. ifeq ($(BINUTILSPREFIX),)
  2477. GCCLIBDIR:=$(shell dirname `gcc -m32 -print-libgcc-file-name`)
  2478. else
  2479. ifneq ($(findstring $(FPCFPMAKE_CPU_OPT),mips mipsel),)
  2480. CROSSGCCOPT=-mabi=32
  2481. else
  2482. CROSSGCCOPT=-m32
  2483. endif
  2484. endif
  2485. endif
  2486. endif
  2487. endif
  2488. ifdef FPCFPMAKE
  2489. FPCFPMAKE_CPU_TARGET=$(shell $(FPCFPMAKE) -iTP)
  2490. ifeq ($(CPU_TARGET),$(FPCFPMAKE_CPU_TARGET))
  2491. FPCMAKEGCCLIBDIR:=$(GCCLIBDIR)
  2492. else
  2493. ifneq ($(findstring $(FPCFPMAKE_CPU_TARGET),aarch64 powerpc64 riscv64 sparc64 x86_64),)
  2494. FPCMAKE_CROSSGCCOPT=-m64
  2495. else
  2496. ifneq ($(findstring $(FPCFPMAKE_CPU_OPT),mips64 mips64el),)
  2497. FPCMAKE_CROSSGCCOPT=-mabi=64
  2498. else
  2499. ifneq ($(findstring $(FPCFPMAKE_CPU_OPT),mips mipsel),)
  2500. FPCMAKE_CROSSGCCOPT=-mabi=32
  2501. else
  2502. ifneq ($(findstring $(FPCFPMAKE_CPU_OPT),riscv64),)
  2503. FPCMAKE_CROSSGCCOPT=-mabi=lp64
  2504. else
  2505. ifneq ($(findstring $(FPCFPMAKE_CPU_OPT),riscv32),)
  2506. FPCMAKE_CROSSGCCOPT=-mabi=ilp32
  2507. else
  2508. FPCMAKE_CROSSGCCOPT=-m32
  2509. endif
  2510. endif
  2511. endif
  2512. endif
  2513. endif
  2514. FPCMAKEGCCLIBDIR:=$(shell dirname `gcc $(FPCMAKE_CROSSGCCOPT) -print-libgcc-file-name`)
  2515. endif
  2516. endif
  2517. ifndef FPCMAKEGCCLIBDIR
  2518. FPCMAKEGCCLIBDIR:=$(shell dirname `gcc -print-libgcc-file-name`)
  2519. endif
  2520. ifndef GCCLIBDIR
  2521. CROSSGCC=$(strip $(wildcard $(addsuffix /$(BINUTILSPREFIX)gcc$(SRCEXEEXT),$(SEARCHPATH))))
  2522. ifneq ($(CROSSGCC),)
  2523. GCCLIBDIR:=$(shell dirname `$(CROSSGCC) $(CROSSGCCOPT) -print-libgcc-file-name`)
  2524. endif
  2525. endif
  2526. endif
  2527. ifdef inUnix
  2528. ifeq ($(OS_SOURCE),netbsd)
  2529. OTHERLIBDIR:=/usr/pkg/lib
  2530. endif
  2531. export GCCLIBDIR FPCMAKEGCCLIBDIR OTHERLIBDIR
  2532. endif
  2533. BATCHEXT=.bat
  2534. LOADEREXT=.as
  2535. EXEEXT=.exe
  2536. PPLEXT=.ppl
  2537. PPUEXT=.ppu
  2538. OEXT=.o
  2539. LTOEXT=.bc
  2540. ASMEXT=.s
  2541. SMARTEXT=.sl
  2542. STATICLIBEXT=.a
  2543. SHAREDLIBEXT=.so
  2544. SHAREDLIBPREFIX=libfp
  2545. STATICLIBPREFIX=libp
  2546. IMPORTLIBPREFIX=libimp
  2547. RSTEXT=.rst
  2548. EXEDBGEXT=.dbg
  2549. ifeq ($(OS_TARGET),go32v1)
  2550. STATICLIBPREFIX=
  2551. SHORTSUFFIX=v1
  2552. endif
  2553. ifeq ($(OS_TARGET),go32v2)
  2554. STATICLIBPREFIX=
  2555. SHORTSUFFIX=dos
  2556. IMPORTLIBPREFIX=
  2557. endif
  2558. ifeq ($(OS_TARGET),watcom)
  2559. STATICLIBPREFIX=
  2560. OEXT=.obj
  2561. ASMEXT=.asm
  2562. SHAREDLIBEXT=.dll
  2563. SHORTSUFFIX=wat
  2564. IMPORTLIBPREFIX=
  2565. endif
  2566. ifneq ($(CPU_TARGET),jvm)
  2567. ifeq ($(OS_TARGET),android)
  2568. BATCHEXT=.sh
  2569. EXEEXT=
  2570. HASSHAREDLIB=1
  2571. SHORTSUFFIX=lnx
  2572. endif
  2573. endif
  2574. ifeq ($(OS_TARGET),linux)
  2575. BATCHEXT=.sh
  2576. EXEEXT=
  2577. HASSHAREDLIB=1
  2578. SHORTSUFFIX=lnx
  2579. endif
  2580. ifeq ($(OS_TARGET),dragonfly)
  2581. BATCHEXT=.sh
  2582. EXEEXT=
  2583. HASSHAREDLIB=1
  2584. SHORTSUFFIX=df
  2585. endif
  2586. ifeq ($(OS_TARGET),freebsd)
  2587. BATCHEXT=.sh
  2588. EXEEXT=
  2589. HASSHAREDLIB=1
  2590. SHORTSUFFIX=fbs
  2591. endif
  2592. ifeq ($(OS_TARGET),netbsd)
  2593. BATCHEXT=.sh
  2594. EXEEXT=
  2595. HASSHAREDLIB=1
  2596. SHORTSUFFIX=nbs
  2597. endif
  2598. ifeq ($(OS_TARGET),openbsd)
  2599. BATCHEXT=.sh
  2600. EXEEXT=
  2601. HASSHAREDLIB=1
  2602. SHORTSUFFIX=obs
  2603. endif
  2604. ifeq ($(OS_TARGET),win32)
  2605. SHAREDLIBEXT=.dll
  2606. SHORTSUFFIX=w32
  2607. endif
  2608. ifeq ($(OS_TARGET),os2)
  2609. BATCHEXT=.cmd
  2610. AOUTEXT=.out
  2611. STATICLIBPREFIX=
  2612. SHAREDLIBEXT=.dll
  2613. SHORTSUFFIX=os2
  2614. ECHO=echo
  2615. IMPORTLIBPREFIX=
  2616. endif
  2617. ifeq ($(OS_TARGET),emx)
  2618. BATCHEXT=.cmd
  2619. AOUTEXT=.out
  2620. STATICLIBPREFIX=
  2621. SHAREDLIBEXT=.dll
  2622. SHORTSUFFIX=emx
  2623. ECHO=echo
  2624. IMPORTLIBPREFIX=
  2625. endif
  2626. ifeq ($(OS_TARGET),amiga)
  2627. EXEEXT=
  2628. SHAREDLIBEXT=.library
  2629. SHORTSUFFIX=amg
  2630. endif
  2631. ifeq ($(OS_TARGET),aros)
  2632. EXEEXT=
  2633. SHAREDLIBEXT=.library
  2634. SHORTSUFFIX=aros
  2635. endif
  2636. ifeq ($(OS_TARGET),morphos)
  2637. EXEEXT=
  2638. SHAREDLIBEXT=.library
  2639. SHORTSUFFIX=mos
  2640. endif
  2641. ifeq ($(OS_TARGET),atari)
  2642. EXEEXT=.ttp
  2643. SHORTSUFFIX=ata
  2644. endif
  2645. ifeq ($(OS_TARGET),beos)
  2646. BATCHEXT=.sh
  2647. EXEEXT=
  2648. SHORTSUFFIX=be
  2649. endif
  2650. ifeq ($(OS_TARGET),haiku)
  2651. BATCHEXT=.sh
  2652. EXEEXT=
  2653. SHORTSUFFIX=hai
  2654. endif
  2655. ifeq ($(OS_TARGET),solaris)
  2656. BATCHEXT=.sh
  2657. EXEEXT=
  2658. SHORTSUFFIX=sun
  2659. endif
  2660. ifeq ($(OS_TARGET),qnx)
  2661. BATCHEXT=.sh
  2662. EXEEXT=
  2663. SHORTSUFFIX=qnx
  2664. endif
  2665. ifeq ($(OS_TARGET),netware)
  2666. EXEEXT=.nlm
  2667. STATICLIBPREFIX=
  2668. SHORTSUFFIX=nw
  2669. IMPORTLIBPREFIX=imp
  2670. endif
  2671. ifeq ($(OS_TARGET),netwlibc)
  2672. EXEEXT=.nlm
  2673. STATICLIBPREFIX=
  2674. SHORTSUFFIX=nwl
  2675. IMPORTLIBPREFIX=imp
  2676. endif
  2677. ifeq ($(OS_TARGET),macosclassic)
  2678. BATCHEXT=
  2679. EXEEXT=
  2680. DEBUGSYMEXT=.xcoff
  2681. SHORTSUFFIX=mac
  2682. IMPORTLIBPREFIX=imp
  2683. endif
  2684. ifneq ($(findstring $(OS_TARGET),darwin iphonesim ios),)
  2685. BATCHEXT=.sh
  2686. EXEEXT=
  2687. HASSHAREDLIB=1
  2688. SHORTSUFFIX=dwn
  2689. EXEDBGEXT=.dSYM
  2690. endif
  2691. ifeq ($(OS_TARGET),gba)
  2692. EXEEXT=.gba
  2693. SHAREDLIBEXT=.so
  2694. SHORTSUFFIX=gba
  2695. endif
  2696. ifeq ($(OS_TARGET),symbian)
  2697. SHAREDLIBEXT=.dll
  2698. SHORTSUFFIX=symbian
  2699. endif
  2700. ifeq ($(OS_TARGET),NativeNT)
  2701. SHAREDLIBEXT=.dll
  2702. SHORTSUFFIX=nativent
  2703. endif
  2704. ifeq ($(OS_TARGET),wii)
  2705. EXEEXT=.dol
  2706. SHAREDLIBEXT=.so
  2707. SHORTSUFFIX=wii
  2708. endif
  2709. ifeq ($(OS_TARGET),aix)
  2710. BATCHEXT=.sh
  2711. EXEEXT=
  2712. SHAREDLIBEXT=.a
  2713. SHORTSUFFIX=aix
  2714. endif
  2715. ifeq ($(OS_TARGET),java)
  2716. OEXT=.class
  2717. ASMEXT=.j
  2718. SHAREDLIBEXT=.jar
  2719. SHORTSUFFIX=java
  2720. endif
  2721. ifeq ($(CPU_TARGET),jvm)
  2722. ifeq ($(OS_TARGET),android)
  2723. OEXT=.class
  2724. ASMEXT=.j
  2725. SHAREDLIBEXT=.jar
  2726. SHORTSUFFIX=android
  2727. endif
  2728. endif
  2729. ifeq ($(OS_TARGET),msdos)
  2730. STATICLIBPREFIX=
  2731. STATICLIBEXT=.a
  2732. SHORTSUFFIX=d16
  2733. endif
  2734. ifeq ($(OS_TARGET),msxdos)
  2735. STATICLIBPREFIX=
  2736. STATICLIBEXT=.a
  2737. SHORTSUFFIX=msd
  2738. endif
  2739. ifeq ($(OS_TARGET),embedded)
  2740. ifeq ($(CPU_TARGET),i8086)
  2741. STATICLIBPREFIX=
  2742. STATICLIBEXT=.a
  2743. else
  2744. EXEEXT=.bin
  2745. endif
  2746. ifeq ($(CPU_TARGET),z80)
  2747. OEXT=.rel
  2748. endif
  2749. SHORTSUFFIX=emb
  2750. endif
  2751. ifeq ($(OS_TARGET),win16)
  2752. STATICLIBPREFIX=
  2753. STATICLIBEXT=.a
  2754. SHAREDLIBEXT=.dll
  2755. SHORTSUFFIX=w16
  2756. endif
  2757. ifeq ($(OS_TARGET),zxspectrum)
  2758. OEXT=.rel
  2759. endif
  2760. ifneq ($(findstring $(OS_SOURCE),$(LIMIT83fs)),)
  2761. FPCMADE=fpcmade.$(SHORTSUFFIX)
  2762. ZIPSUFFIX=$(SHORTSUFFIX)
  2763. ZIPCROSSPREFIX=
  2764. ZIPSOURCESUFFIX=src
  2765. ZIPEXAMPLESUFFIX=exm
  2766. else
  2767. FPCMADE=fpcmade.$(TARGETSUFFIX)
  2768. ZIPSOURCESUFFIX=.source
  2769. ZIPEXAMPLESUFFIX=.examples
  2770. ifdef CROSSCOMPILE
  2771. ZIPSUFFIX=.$(SOURCESUFFIX)
  2772. ZIPCROSSPREFIX=$(TARGETSUFFIX)-
  2773. else
  2774. ZIPSUFFIX=.$(TARGETSUFFIX)
  2775. ZIPCROSSPREFIX=
  2776. endif
  2777. endif
  2778. ifndef ECHO
  2779. ECHO:=$(strip $(wildcard $(addsuffix /gecho$(SRCEXEEXT),$(SEARCHPATH))))
  2780. ifeq ($(ECHO),)
  2781. ECHO:=$(strip $(wildcard $(addsuffix /echo$(SRCEXEEXT),$(SEARCHPATH))))
  2782. ifeq ($(ECHO),)
  2783. ECHO= __missing_command_ECHO
  2784. else
  2785. ECHO:=$(firstword $(ECHO))
  2786. endif
  2787. else
  2788. ECHO:=$(firstword $(ECHO))
  2789. endif
  2790. endif
  2791. export ECHO
  2792. ifndef DATE
  2793. DATE:=$(strip $(wildcard $(addsuffix /gdate$(SRCEXEEXT),$(SEARCHPATH))))
  2794. ifeq ($(DATE),)
  2795. DATE:=$(strip $(wildcard $(addsuffix /date$(SRCEXEEXT),$(SEARCHPATH))))
  2796. ifeq ($(DATE),)
  2797. DATE= __missing_command_DATE
  2798. else
  2799. DATE:=$(firstword $(DATE))
  2800. endif
  2801. else
  2802. DATE:=$(firstword $(DATE))
  2803. endif
  2804. endif
  2805. export DATE
  2806. ifndef GINSTALL
  2807. GINSTALL:=$(strip $(wildcard $(addsuffix /ginstall$(SRCEXEEXT),$(SEARCHPATH))))
  2808. ifeq ($(GINSTALL),)
  2809. GINSTALL:=$(strip $(wildcard $(addsuffix /install$(SRCEXEEXT),$(SEARCHPATH))))
  2810. ifeq ($(GINSTALL),)
  2811. GINSTALL= __missing_command_GINSTALL
  2812. else
  2813. GINSTALL:=$(firstword $(GINSTALL))
  2814. endif
  2815. else
  2816. GINSTALL:=$(firstword $(GINSTALL))
  2817. endif
  2818. endif
  2819. export GINSTALL
  2820. ifndef CPPROG
  2821. CPPROG:=$(strip $(wildcard $(addsuffix /cp$(SRCEXEEXT),$(SEARCHPATH))))
  2822. ifeq ($(CPPROG),)
  2823. CPPROG= __missing_command_CPPROG
  2824. else
  2825. CPPROG:=$(firstword $(CPPROG))
  2826. endif
  2827. endif
  2828. export CPPROG
  2829. ifndef RMPROG
  2830. RMPROG:=$(strip $(wildcard $(addsuffix /rm$(SRCEXEEXT),$(SEARCHPATH))))
  2831. ifeq ($(RMPROG),)
  2832. RMPROG= __missing_command_RMPROG
  2833. else
  2834. RMPROG:=$(firstword $(RMPROG))
  2835. endif
  2836. endif
  2837. export RMPROG
  2838. ifndef MVPROG
  2839. MVPROG:=$(strip $(wildcard $(addsuffix /mv$(SRCEXEEXT),$(SEARCHPATH))))
  2840. ifeq ($(MVPROG),)
  2841. MVPROG= __missing_command_MVPROG
  2842. else
  2843. MVPROG:=$(firstword $(MVPROG))
  2844. endif
  2845. endif
  2846. export MVPROG
  2847. ifndef MKDIRPROG
  2848. MKDIRPROG:=$(strip $(wildcard $(addsuffix /gmkdir$(SRCEXEEXT),$(SEARCHPATH))))
  2849. ifeq ($(MKDIRPROG),)
  2850. MKDIRPROG:=$(strip $(wildcard $(addsuffix /mkdir$(SRCEXEEXT),$(SEARCHPATH))))
  2851. ifeq ($(MKDIRPROG),)
  2852. MKDIRPROG= __missing_command_MKDIRPROG
  2853. else
  2854. MKDIRPROG:=$(firstword $(MKDIRPROG))
  2855. endif
  2856. else
  2857. MKDIRPROG:=$(firstword $(MKDIRPROG))
  2858. endif
  2859. endif
  2860. export MKDIRPROG
  2861. ifndef ECHOREDIR
  2862. ifndef inUnix
  2863. ECHOREDIR=echo
  2864. else
  2865. ECHOREDIR=$(ECHO)
  2866. endif
  2867. endif
  2868. ifndef COPY
  2869. COPY:=$(CPPROG) -fp
  2870. endif
  2871. ifndef COPYTREE
  2872. COPYTREE:=$(CPPROG) -Rfp
  2873. endif
  2874. ifndef MKDIRTREE
  2875. MKDIRTREE:=$(MKDIRPROG) -p
  2876. endif
  2877. ifndef MOVE
  2878. MOVE:=$(MVPROG) -f
  2879. endif
  2880. ifndef DEL
  2881. DEL:=$(RMPROG) -f
  2882. endif
  2883. ifndef DELTREE
  2884. DELTREE:=$(RMPROG) -rf
  2885. endif
  2886. ifndef INSTALL
  2887. ifdef inUnix
  2888. INSTALL:=$(GINSTALL) -c -m 644
  2889. else
  2890. INSTALL:=$(COPY)
  2891. endif
  2892. endif
  2893. ifndef INSTALLEXE
  2894. ifdef inUnix
  2895. INSTALLEXE:=$(GINSTALL) -c -m 755
  2896. else
  2897. INSTALLEXE:=$(COPY)
  2898. endif
  2899. endif
  2900. ifndef MKDIR
  2901. MKDIR:=$(GINSTALL) -m 755 -d
  2902. endif
  2903. export ECHOREDIR COPY COPYTREE MOVE DEL DELTREE INSTALL INSTALLEXE MKDIR
  2904. ifndef PPUMOVE
  2905. PPUMOVE:=$(strip $(wildcard $(addsuffix /ppumove$(SRCEXEEXT),$(SEARCHPATH))))
  2906. ifeq ($(PPUMOVE),)
  2907. PPUMOVE= __missing_command_PPUMOVE
  2908. else
  2909. PPUMOVE:=$(firstword $(PPUMOVE))
  2910. endif
  2911. endif
  2912. export PPUMOVE
  2913. ifndef FPCMAKE
  2914. FPCMAKE:=$(strip $(wildcard $(addsuffix /fpcmake$(SRCEXEEXT),$(SEARCHPATH))))
  2915. ifeq ($(FPCMAKE),)
  2916. FPCMAKE= __missing_command_FPCMAKE
  2917. else
  2918. FPCMAKE:=$(firstword $(FPCMAKE))
  2919. endif
  2920. endif
  2921. export FPCMAKE
  2922. ifndef ZIPPROG
  2923. ZIPPROG:=$(strip $(wildcard $(addsuffix /zip$(SRCEXEEXT),$(SEARCHPATH))))
  2924. ifeq ($(ZIPPROG),)
  2925. ZIPPROG= __missing_command_ZIPPROG
  2926. else
  2927. ZIPPROG:=$(firstword $(ZIPPROG))
  2928. endif
  2929. endif
  2930. export ZIPPROG
  2931. ifndef TARPROG
  2932. TARPROG:=$(strip $(wildcard $(addsuffix /gtar$(SRCEXEEXT),$(SEARCHPATH))))
  2933. ifeq ($(TARPROG),)
  2934. TARPROG:=$(strip $(wildcard $(addsuffix /tar$(SRCEXEEXT),$(SEARCHPATH))))
  2935. ifeq ($(TARPROG),)
  2936. TARPROG= __missing_command_TARPROG
  2937. else
  2938. TARPROG:=$(firstword $(TARPROG))
  2939. endif
  2940. else
  2941. TARPROG:=$(firstword $(TARPROG))
  2942. endif
  2943. endif
  2944. export TARPROG
  2945. ASNAME=$(BINUTILSPREFIX)as
  2946. LDNAME=$(BINUTILSPREFIX)ld
  2947. ARNAME=$(BINUTILSPREFIX)ar
  2948. RCNAME=$(BINUTILSPREFIX)rc
  2949. NASMNAME=$(BINUTILSPREFIX)nasm
  2950. ifndef ASPROG
  2951. ifdef CROSSBINDIR
  2952. ASPROG=$(CROSSBINDIR)/$(ASNAME)$(SRCEXEEXT)
  2953. else
  2954. ASPROG=$(ASNAME)
  2955. endif
  2956. endif
  2957. ifndef LDPROG
  2958. ifdef CROSSBINDIR
  2959. LDPROG=$(CROSSBINDIR)/$(LDNAME)$(SRCEXEEXT)
  2960. else
  2961. LDPROG=$(LDNAME)
  2962. endif
  2963. endif
  2964. ifndef RCPROG
  2965. ifdef CROSSBINDIR
  2966. RCPROG=$(CROSSBINDIR)/$(RCNAME)$(SRCEXEEXT)
  2967. else
  2968. RCPROG=$(RCNAME)
  2969. endif
  2970. endif
  2971. ifndef ARPROG
  2972. ifdef CROSSBINDIR
  2973. ARPROG=$(CROSSBINDIR)/$(ARNAME)$(SRCEXEEXT)
  2974. else
  2975. ARPROG=$(ARNAME)
  2976. endif
  2977. endif
  2978. ifndef NASMPROG
  2979. ifdef CROSSBINDIR
  2980. NASMPROG=$(CROSSBINDIR)/$(NASMNAME)$(SRCEXEEXT)
  2981. else
  2982. NASMPROG=$(NASMNAME)
  2983. endif
  2984. endif
  2985. AS=$(ASPROG)
  2986. LD=$(LDPROG)
  2987. RC=$(RCPROG)
  2988. AR=$(ARPROG)
  2989. NASM=$(NASMPROG)
  2990. ifdef inUnix
  2991. PPAS=./ppas$(SRCBATCHEXT)
  2992. else
  2993. PPAS=ppas$(SRCBATCHEXT)
  2994. endif
  2995. ifdef inUnix
  2996. LDCONFIG=ldconfig
  2997. else
  2998. LDCONFIG=
  2999. endif
  3000. ifdef DATE
  3001. DATESTR:=$(shell $(DATE) +%Y%m%d)
  3002. else
  3003. DATESTR=
  3004. endif
  3005. ZIPOPT=-9
  3006. ZIPEXT=.zip
  3007. ifeq ($(USETAR),bz2)
  3008. TAROPT=vj
  3009. TAREXT=.tar.bz2
  3010. else
  3011. TAROPT=vz
  3012. TAREXT=.tar.gz
  3013. endif
  3014. override REQUIRE_PACKAGES=libndsfpc
  3015. ifeq ($(FULL_TARGET),i386-linux)
  3016. REQUIRE_PACKAGES_RTL=1
  3017. REQUIRE_PACKAGES_PASZLIB=1
  3018. REQUIRE_PACKAGES_FCL-PROCESS=1
  3019. REQUIRE_PACKAGES_HASH=1
  3020. REQUIRE_PACKAGES_LIBTAR=1
  3021. REQUIRE_PACKAGES_FPMKUNIT=1
  3022. REQUIRE_PACKAGES_LIBNDSFPC=1
  3023. endif
  3024. ifeq ($(FULL_TARGET),i386-go32v2)
  3025. REQUIRE_PACKAGES_RTL=1
  3026. REQUIRE_PACKAGES_PASZLIB=1
  3027. REQUIRE_PACKAGES_FCL-PROCESS=1
  3028. REQUIRE_PACKAGES_HASH=1
  3029. REQUIRE_PACKAGES_LIBTAR=1
  3030. REQUIRE_PACKAGES_FPMKUNIT=1
  3031. REQUIRE_PACKAGES_LIBNDSFPC=1
  3032. endif
  3033. ifeq ($(FULL_TARGET),i386-win32)
  3034. REQUIRE_PACKAGES_RTL=1
  3035. REQUIRE_PACKAGES_PASZLIB=1
  3036. REQUIRE_PACKAGES_FCL-PROCESS=1
  3037. REQUIRE_PACKAGES_HASH=1
  3038. REQUIRE_PACKAGES_LIBTAR=1
  3039. REQUIRE_PACKAGES_FPMKUNIT=1
  3040. REQUIRE_PACKAGES_LIBNDSFPC=1
  3041. endif
  3042. ifeq ($(FULL_TARGET),i386-os2)
  3043. REQUIRE_PACKAGES_RTL=1
  3044. REQUIRE_PACKAGES_PASZLIB=1
  3045. REQUIRE_PACKAGES_FCL-PROCESS=1
  3046. REQUIRE_PACKAGES_HASH=1
  3047. REQUIRE_PACKAGES_LIBTAR=1
  3048. REQUIRE_PACKAGES_FPMKUNIT=1
  3049. REQUIRE_PACKAGES_LIBNDSFPC=1
  3050. endif
  3051. ifeq ($(FULL_TARGET),i386-freebsd)
  3052. REQUIRE_PACKAGES_RTL=1
  3053. REQUIRE_PACKAGES_PASZLIB=1
  3054. REQUIRE_PACKAGES_FCL-PROCESS=1
  3055. REQUIRE_PACKAGES_HASH=1
  3056. REQUIRE_PACKAGES_LIBTAR=1
  3057. REQUIRE_PACKAGES_FPMKUNIT=1
  3058. REQUIRE_PACKAGES_LIBNDSFPC=1
  3059. endif
  3060. ifeq ($(FULL_TARGET),i386-beos)
  3061. REQUIRE_PACKAGES_RTL=1
  3062. REQUIRE_PACKAGES_PASZLIB=1
  3063. REQUIRE_PACKAGES_FCL-PROCESS=1
  3064. REQUIRE_PACKAGES_HASH=1
  3065. REQUIRE_PACKAGES_LIBTAR=1
  3066. REQUIRE_PACKAGES_FPMKUNIT=1
  3067. REQUIRE_PACKAGES_LIBNDSFPC=1
  3068. endif
  3069. ifeq ($(FULL_TARGET),i386-haiku)
  3070. REQUIRE_PACKAGES_RTL=1
  3071. REQUIRE_PACKAGES_PASZLIB=1
  3072. REQUIRE_PACKAGES_FCL-PROCESS=1
  3073. REQUIRE_PACKAGES_HASH=1
  3074. REQUIRE_PACKAGES_LIBTAR=1
  3075. REQUIRE_PACKAGES_FPMKUNIT=1
  3076. REQUIRE_PACKAGES_LIBNDSFPC=1
  3077. endif
  3078. ifeq ($(FULL_TARGET),i386-netbsd)
  3079. REQUIRE_PACKAGES_RTL=1
  3080. REQUIRE_PACKAGES_PASZLIB=1
  3081. REQUIRE_PACKAGES_FCL-PROCESS=1
  3082. REQUIRE_PACKAGES_HASH=1
  3083. REQUIRE_PACKAGES_LIBTAR=1
  3084. REQUIRE_PACKAGES_FPMKUNIT=1
  3085. REQUIRE_PACKAGES_LIBNDSFPC=1
  3086. endif
  3087. ifeq ($(FULL_TARGET),i386-solaris)
  3088. REQUIRE_PACKAGES_RTL=1
  3089. REQUIRE_PACKAGES_PASZLIB=1
  3090. REQUIRE_PACKAGES_FCL-PROCESS=1
  3091. REQUIRE_PACKAGES_HASH=1
  3092. REQUIRE_PACKAGES_LIBTAR=1
  3093. REQUIRE_PACKAGES_FPMKUNIT=1
  3094. REQUIRE_PACKAGES_LIBNDSFPC=1
  3095. endif
  3096. ifeq ($(FULL_TARGET),i386-netware)
  3097. REQUIRE_PACKAGES_RTL=1
  3098. REQUIRE_PACKAGES_PASZLIB=1
  3099. REQUIRE_PACKAGES_FCL-PROCESS=1
  3100. REQUIRE_PACKAGES_HASH=1
  3101. REQUIRE_PACKAGES_LIBTAR=1
  3102. REQUIRE_PACKAGES_FPMKUNIT=1
  3103. REQUIRE_PACKAGES_LIBNDSFPC=1
  3104. endif
  3105. ifeq ($(FULL_TARGET),i386-openbsd)
  3106. REQUIRE_PACKAGES_RTL=1
  3107. REQUIRE_PACKAGES_PASZLIB=1
  3108. REQUIRE_PACKAGES_FCL-PROCESS=1
  3109. REQUIRE_PACKAGES_HASH=1
  3110. REQUIRE_PACKAGES_LIBTAR=1
  3111. REQUIRE_PACKAGES_FPMKUNIT=1
  3112. REQUIRE_PACKAGES_LIBNDSFPC=1
  3113. endif
  3114. ifeq ($(FULL_TARGET),i386-wdosx)
  3115. REQUIRE_PACKAGES_RTL=1
  3116. REQUIRE_PACKAGES_PASZLIB=1
  3117. REQUIRE_PACKAGES_FCL-PROCESS=1
  3118. REQUIRE_PACKAGES_HASH=1
  3119. REQUIRE_PACKAGES_LIBTAR=1
  3120. REQUIRE_PACKAGES_FPMKUNIT=1
  3121. REQUIRE_PACKAGES_LIBNDSFPC=1
  3122. endif
  3123. ifeq ($(FULL_TARGET),i386-darwin)
  3124. REQUIRE_PACKAGES_RTL=1
  3125. REQUIRE_PACKAGES_PASZLIB=1
  3126. REQUIRE_PACKAGES_FCL-PROCESS=1
  3127. REQUIRE_PACKAGES_HASH=1
  3128. REQUIRE_PACKAGES_LIBTAR=1
  3129. REQUIRE_PACKAGES_FPMKUNIT=1
  3130. REQUIRE_PACKAGES_LIBNDSFPC=1
  3131. endif
  3132. ifeq ($(FULL_TARGET),i386-emx)
  3133. REQUIRE_PACKAGES_RTL=1
  3134. REQUIRE_PACKAGES_PASZLIB=1
  3135. REQUIRE_PACKAGES_FCL-PROCESS=1
  3136. REQUIRE_PACKAGES_HASH=1
  3137. REQUIRE_PACKAGES_LIBTAR=1
  3138. REQUIRE_PACKAGES_FPMKUNIT=1
  3139. REQUIRE_PACKAGES_LIBNDSFPC=1
  3140. endif
  3141. ifeq ($(FULL_TARGET),i386-watcom)
  3142. REQUIRE_PACKAGES_RTL=1
  3143. REQUIRE_PACKAGES_PASZLIB=1
  3144. REQUIRE_PACKAGES_FCL-PROCESS=1
  3145. REQUIRE_PACKAGES_HASH=1
  3146. REQUIRE_PACKAGES_LIBTAR=1
  3147. REQUIRE_PACKAGES_FPMKUNIT=1
  3148. REQUIRE_PACKAGES_LIBNDSFPC=1
  3149. endif
  3150. ifeq ($(FULL_TARGET),i386-netwlibc)
  3151. REQUIRE_PACKAGES_RTL=1
  3152. REQUIRE_PACKAGES_PASZLIB=1
  3153. REQUIRE_PACKAGES_FCL-PROCESS=1
  3154. REQUIRE_PACKAGES_HASH=1
  3155. REQUIRE_PACKAGES_LIBTAR=1
  3156. REQUIRE_PACKAGES_FPMKUNIT=1
  3157. REQUIRE_PACKAGES_LIBNDSFPC=1
  3158. endif
  3159. ifeq ($(FULL_TARGET),i386-wince)
  3160. REQUIRE_PACKAGES_RTL=1
  3161. REQUIRE_PACKAGES_PASZLIB=1
  3162. REQUIRE_PACKAGES_FCL-PROCESS=1
  3163. REQUIRE_PACKAGES_HASH=1
  3164. REQUIRE_PACKAGES_LIBTAR=1
  3165. REQUIRE_PACKAGES_FPMKUNIT=1
  3166. REQUIRE_PACKAGES_LIBNDSFPC=1
  3167. endif
  3168. ifeq ($(FULL_TARGET),i386-embedded)
  3169. REQUIRE_PACKAGES_RTL=1
  3170. REQUIRE_PACKAGES_PASZLIB=1
  3171. REQUIRE_PACKAGES_FCL-PROCESS=1
  3172. REQUIRE_PACKAGES_HASH=1
  3173. REQUIRE_PACKAGES_LIBTAR=1
  3174. REQUIRE_PACKAGES_FPMKUNIT=1
  3175. REQUIRE_PACKAGES_LIBNDSFPC=1
  3176. endif
  3177. ifeq ($(FULL_TARGET),i386-symbian)
  3178. REQUIRE_PACKAGES_RTL=1
  3179. REQUIRE_PACKAGES_PASZLIB=1
  3180. REQUIRE_PACKAGES_FCL-PROCESS=1
  3181. REQUIRE_PACKAGES_HASH=1
  3182. REQUIRE_PACKAGES_LIBTAR=1
  3183. REQUIRE_PACKAGES_FPMKUNIT=1
  3184. REQUIRE_PACKAGES_LIBNDSFPC=1
  3185. endif
  3186. ifeq ($(FULL_TARGET),i386-nativent)
  3187. REQUIRE_PACKAGES_RTL=1
  3188. REQUIRE_PACKAGES_PASZLIB=1
  3189. REQUIRE_PACKAGES_FCL-PROCESS=1
  3190. REQUIRE_PACKAGES_HASH=1
  3191. REQUIRE_PACKAGES_LIBTAR=1
  3192. REQUIRE_PACKAGES_FPMKUNIT=1
  3193. REQUIRE_PACKAGES_LIBNDSFPC=1
  3194. endif
  3195. ifeq ($(FULL_TARGET),i386-iphonesim)
  3196. REQUIRE_PACKAGES_RTL=1
  3197. REQUIRE_PACKAGES_PASZLIB=1
  3198. REQUIRE_PACKAGES_FCL-PROCESS=1
  3199. REQUIRE_PACKAGES_HASH=1
  3200. REQUIRE_PACKAGES_LIBTAR=1
  3201. REQUIRE_PACKAGES_FPMKUNIT=1
  3202. REQUIRE_PACKAGES_LIBNDSFPC=1
  3203. endif
  3204. ifeq ($(FULL_TARGET),i386-android)
  3205. REQUIRE_PACKAGES_RTL=1
  3206. REQUIRE_PACKAGES_PASZLIB=1
  3207. REQUIRE_PACKAGES_FCL-PROCESS=1
  3208. REQUIRE_PACKAGES_HASH=1
  3209. REQUIRE_PACKAGES_LIBTAR=1
  3210. REQUIRE_PACKAGES_FPMKUNIT=1
  3211. REQUIRE_PACKAGES_LIBNDSFPC=1
  3212. endif
  3213. ifeq ($(FULL_TARGET),i386-aros)
  3214. REQUIRE_PACKAGES_RTL=1
  3215. REQUIRE_PACKAGES_PASZLIB=1
  3216. REQUIRE_PACKAGES_FCL-PROCESS=1
  3217. REQUIRE_PACKAGES_HASH=1
  3218. REQUIRE_PACKAGES_LIBTAR=1
  3219. REQUIRE_PACKAGES_FPMKUNIT=1
  3220. REQUIRE_PACKAGES_LIBNDSFPC=1
  3221. endif
  3222. ifeq ($(FULL_TARGET),m68k-linux)
  3223. REQUIRE_PACKAGES_RTL=1
  3224. REQUIRE_PACKAGES_PASZLIB=1
  3225. REQUIRE_PACKAGES_FCL-PROCESS=1
  3226. REQUIRE_PACKAGES_HASH=1
  3227. REQUIRE_PACKAGES_LIBTAR=1
  3228. REQUIRE_PACKAGES_FPMKUNIT=1
  3229. REQUIRE_PACKAGES_LIBNDSFPC=1
  3230. endif
  3231. ifeq ($(FULL_TARGET),m68k-netbsd)
  3232. REQUIRE_PACKAGES_RTL=1
  3233. REQUIRE_PACKAGES_PASZLIB=1
  3234. REQUIRE_PACKAGES_FCL-PROCESS=1
  3235. REQUIRE_PACKAGES_HASH=1
  3236. REQUIRE_PACKAGES_LIBTAR=1
  3237. REQUIRE_PACKAGES_FPMKUNIT=1
  3238. REQUIRE_PACKAGES_LIBNDSFPC=1
  3239. endif
  3240. ifeq ($(FULL_TARGET),m68k-amiga)
  3241. REQUIRE_PACKAGES_RTL=1
  3242. REQUIRE_PACKAGES_PASZLIB=1
  3243. REQUIRE_PACKAGES_FCL-PROCESS=1
  3244. REQUIRE_PACKAGES_HASH=1
  3245. REQUIRE_PACKAGES_LIBTAR=1
  3246. REQUIRE_PACKAGES_FPMKUNIT=1
  3247. REQUIRE_PACKAGES_LIBNDSFPC=1
  3248. endif
  3249. ifeq ($(FULL_TARGET),m68k-atari)
  3250. REQUIRE_PACKAGES_RTL=1
  3251. REQUIRE_PACKAGES_PASZLIB=1
  3252. REQUIRE_PACKAGES_FCL-PROCESS=1
  3253. REQUIRE_PACKAGES_HASH=1
  3254. REQUIRE_PACKAGES_LIBTAR=1
  3255. REQUIRE_PACKAGES_FPMKUNIT=1
  3256. REQUIRE_PACKAGES_LIBNDSFPC=1
  3257. endif
  3258. ifeq ($(FULL_TARGET),m68k-palmos)
  3259. REQUIRE_PACKAGES_RTL=1
  3260. REQUIRE_PACKAGES_PASZLIB=1
  3261. REQUIRE_PACKAGES_FCL-PROCESS=1
  3262. REQUIRE_PACKAGES_HASH=1
  3263. REQUIRE_PACKAGES_LIBTAR=1
  3264. REQUIRE_PACKAGES_FPMKUNIT=1
  3265. REQUIRE_PACKAGES_LIBNDSFPC=1
  3266. endif
  3267. ifeq ($(FULL_TARGET),m68k-macosclassic)
  3268. REQUIRE_PACKAGES_RTL=1
  3269. REQUIRE_PACKAGES_PASZLIB=1
  3270. REQUIRE_PACKAGES_FCL-PROCESS=1
  3271. REQUIRE_PACKAGES_HASH=1
  3272. REQUIRE_PACKAGES_LIBTAR=1
  3273. REQUIRE_PACKAGES_FPMKUNIT=1
  3274. REQUIRE_PACKAGES_LIBNDSFPC=1
  3275. endif
  3276. ifeq ($(FULL_TARGET),m68k-embedded)
  3277. REQUIRE_PACKAGES_RTL=1
  3278. REQUIRE_PACKAGES_PASZLIB=1
  3279. REQUIRE_PACKAGES_FCL-PROCESS=1
  3280. REQUIRE_PACKAGES_HASH=1
  3281. REQUIRE_PACKAGES_LIBTAR=1
  3282. REQUIRE_PACKAGES_FPMKUNIT=1
  3283. REQUIRE_PACKAGES_LIBNDSFPC=1
  3284. endif
  3285. ifeq ($(FULL_TARGET),m68k-sinclairql)
  3286. REQUIRE_PACKAGES_RTL=1
  3287. REQUIRE_PACKAGES_PASZLIB=1
  3288. REQUIRE_PACKAGES_FCL-PROCESS=1
  3289. REQUIRE_PACKAGES_HASH=1
  3290. REQUIRE_PACKAGES_LIBTAR=1
  3291. REQUIRE_PACKAGES_FPMKUNIT=1
  3292. REQUIRE_PACKAGES_LIBNDSFPC=1
  3293. endif
  3294. ifeq ($(FULL_TARGET),powerpc-linux)
  3295. REQUIRE_PACKAGES_RTL=1
  3296. REQUIRE_PACKAGES_PASZLIB=1
  3297. REQUIRE_PACKAGES_FCL-PROCESS=1
  3298. REQUIRE_PACKAGES_HASH=1
  3299. REQUIRE_PACKAGES_LIBTAR=1
  3300. REQUIRE_PACKAGES_FPMKUNIT=1
  3301. REQUIRE_PACKAGES_LIBNDSFPC=1
  3302. endif
  3303. ifeq ($(FULL_TARGET),powerpc-netbsd)
  3304. REQUIRE_PACKAGES_RTL=1
  3305. REQUIRE_PACKAGES_PASZLIB=1
  3306. REQUIRE_PACKAGES_FCL-PROCESS=1
  3307. REQUIRE_PACKAGES_HASH=1
  3308. REQUIRE_PACKAGES_LIBTAR=1
  3309. REQUIRE_PACKAGES_FPMKUNIT=1
  3310. REQUIRE_PACKAGES_LIBNDSFPC=1
  3311. endif
  3312. ifeq ($(FULL_TARGET),powerpc-amiga)
  3313. REQUIRE_PACKAGES_RTL=1
  3314. REQUIRE_PACKAGES_PASZLIB=1
  3315. REQUIRE_PACKAGES_FCL-PROCESS=1
  3316. REQUIRE_PACKAGES_HASH=1
  3317. REQUIRE_PACKAGES_LIBTAR=1
  3318. REQUIRE_PACKAGES_FPMKUNIT=1
  3319. REQUIRE_PACKAGES_LIBNDSFPC=1
  3320. endif
  3321. ifeq ($(FULL_TARGET),powerpc-macosclassic)
  3322. REQUIRE_PACKAGES_RTL=1
  3323. REQUIRE_PACKAGES_PASZLIB=1
  3324. REQUIRE_PACKAGES_FCL-PROCESS=1
  3325. REQUIRE_PACKAGES_HASH=1
  3326. REQUIRE_PACKAGES_LIBTAR=1
  3327. REQUIRE_PACKAGES_FPMKUNIT=1
  3328. REQUIRE_PACKAGES_LIBNDSFPC=1
  3329. endif
  3330. ifeq ($(FULL_TARGET),powerpc-darwin)
  3331. REQUIRE_PACKAGES_RTL=1
  3332. REQUIRE_PACKAGES_PASZLIB=1
  3333. REQUIRE_PACKAGES_FCL-PROCESS=1
  3334. REQUIRE_PACKAGES_HASH=1
  3335. REQUIRE_PACKAGES_LIBTAR=1
  3336. REQUIRE_PACKAGES_FPMKUNIT=1
  3337. REQUIRE_PACKAGES_LIBNDSFPC=1
  3338. endif
  3339. ifeq ($(FULL_TARGET),powerpc-morphos)
  3340. REQUIRE_PACKAGES_RTL=1
  3341. REQUIRE_PACKAGES_PASZLIB=1
  3342. REQUIRE_PACKAGES_FCL-PROCESS=1
  3343. REQUIRE_PACKAGES_HASH=1
  3344. REQUIRE_PACKAGES_LIBTAR=1
  3345. REQUIRE_PACKAGES_FPMKUNIT=1
  3346. REQUIRE_PACKAGES_LIBNDSFPC=1
  3347. endif
  3348. ifeq ($(FULL_TARGET),powerpc-embedded)
  3349. REQUIRE_PACKAGES_RTL=1
  3350. REQUIRE_PACKAGES_PASZLIB=1
  3351. REQUIRE_PACKAGES_FCL-PROCESS=1
  3352. REQUIRE_PACKAGES_HASH=1
  3353. REQUIRE_PACKAGES_LIBTAR=1
  3354. REQUIRE_PACKAGES_FPMKUNIT=1
  3355. REQUIRE_PACKAGES_LIBNDSFPC=1
  3356. endif
  3357. ifeq ($(FULL_TARGET),powerpc-wii)
  3358. REQUIRE_PACKAGES_RTL=1
  3359. REQUIRE_PACKAGES_PASZLIB=1
  3360. REQUIRE_PACKAGES_FCL-PROCESS=1
  3361. REQUIRE_PACKAGES_HASH=1
  3362. REQUIRE_PACKAGES_LIBTAR=1
  3363. REQUIRE_PACKAGES_FPMKUNIT=1
  3364. REQUIRE_PACKAGES_LIBNDSFPC=1
  3365. endif
  3366. ifeq ($(FULL_TARGET),powerpc-aix)
  3367. REQUIRE_PACKAGES_RTL=1
  3368. REQUIRE_PACKAGES_PASZLIB=1
  3369. REQUIRE_PACKAGES_FCL-PROCESS=1
  3370. REQUIRE_PACKAGES_HASH=1
  3371. REQUIRE_PACKAGES_LIBTAR=1
  3372. REQUIRE_PACKAGES_FPMKUNIT=1
  3373. REQUIRE_PACKAGES_LIBNDSFPC=1
  3374. endif
  3375. ifeq ($(FULL_TARGET),sparc-linux)
  3376. REQUIRE_PACKAGES_RTL=1
  3377. REQUIRE_PACKAGES_PASZLIB=1
  3378. REQUIRE_PACKAGES_FCL-PROCESS=1
  3379. REQUIRE_PACKAGES_HASH=1
  3380. REQUIRE_PACKAGES_LIBTAR=1
  3381. REQUIRE_PACKAGES_FPMKUNIT=1
  3382. REQUIRE_PACKAGES_LIBNDSFPC=1
  3383. endif
  3384. ifeq ($(FULL_TARGET),sparc-netbsd)
  3385. REQUIRE_PACKAGES_RTL=1
  3386. REQUIRE_PACKAGES_PASZLIB=1
  3387. REQUIRE_PACKAGES_FCL-PROCESS=1
  3388. REQUIRE_PACKAGES_HASH=1
  3389. REQUIRE_PACKAGES_LIBTAR=1
  3390. REQUIRE_PACKAGES_FPMKUNIT=1
  3391. REQUIRE_PACKAGES_LIBNDSFPC=1
  3392. endif
  3393. ifeq ($(FULL_TARGET),sparc-solaris)
  3394. REQUIRE_PACKAGES_RTL=1
  3395. REQUIRE_PACKAGES_PASZLIB=1
  3396. REQUIRE_PACKAGES_FCL-PROCESS=1
  3397. REQUIRE_PACKAGES_HASH=1
  3398. REQUIRE_PACKAGES_LIBTAR=1
  3399. REQUIRE_PACKAGES_FPMKUNIT=1
  3400. REQUIRE_PACKAGES_LIBNDSFPC=1
  3401. endif
  3402. ifeq ($(FULL_TARGET),sparc-embedded)
  3403. REQUIRE_PACKAGES_RTL=1
  3404. REQUIRE_PACKAGES_PASZLIB=1
  3405. REQUIRE_PACKAGES_FCL-PROCESS=1
  3406. REQUIRE_PACKAGES_HASH=1
  3407. REQUIRE_PACKAGES_LIBTAR=1
  3408. REQUIRE_PACKAGES_FPMKUNIT=1
  3409. REQUIRE_PACKAGES_LIBNDSFPC=1
  3410. endif
  3411. ifeq ($(FULL_TARGET),x86_64-linux)
  3412. REQUIRE_PACKAGES_RTL=1
  3413. REQUIRE_PACKAGES_PASZLIB=1
  3414. REQUIRE_PACKAGES_FCL-PROCESS=1
  3415. REQUIRE_PACKAGES_HASH=1
  3416. REQUIRE_PACKAGES_LIBTAR=1
  3417. REQUIRE_PACKAGES_FPMKUNIT=1
  3418. REQUIRE_PACKAGES_LIBNDSFPC=1
  3419. endif
  3420. ifeq ($(FULL_TARGET),x86_64-freebsd)
  3421. REQUIRE_PACKAGES_RTL=1
  3422. REQUIRE_PACKAGES_PASZLIB=1
  3423. REQUIRE_PACKAGES_FCL-PROCESS=1
  3424. REQUIRE_PACKAGES_HASH=1
  3425. REQUIRE_PACKAGES_LIBTAR=1
  3426. REQUIRE_PACKAGES_FPMKUNIT=1
  3427. REQUIRE_PACKAGES_LIBNDSFPC=1
  3428. endif
  3429. ifeq ($(FULL_TARGET),x86_64-haiku)
  3430. REQUIRE_PACKAGES_RTL=1
  3431. REQUIRE_PACKAGES_PASZLIB=1
  3432. REQUIRE_PACKAGES_FCL-PROCESS=1
  3433. REQUIRE_PACKAGES_HASH=1
  3434. REQUIRE_PACKAGES_LIBTAR=1
  3435. REQUIRE_PACKAGES_FPMKUNIT=1
  3436. REQUIRE_PACKAGES_LIBNDSFPC=1
  3437. endif
  3438. ifeq ($(FULL_TARGET),x86_64-netbsd)
  3439. REQUIRE_PACKAGES_RTL=1
  3440. REQUIRE_PACKAGES_PASZLIB=1
  3441. REQUIRE_PACKAGES_FCL-PROCESS=1
  3442. REQUIRE_PACKAGES_HASH=1
  3443. REQUIRE_PACKAGES_LIBTAR=1
  3444. REQUIRE_PACKAGES_FPMKUNIT=1
  3445. REQUIRE_PACKAGES_LIBNDSFPC=1
  3446. endif
  3447. ifeq ($(FULL_TARGET),x86_64-solaris)
  3448. REQUIRE_PACKAGES_RTL=1
  3449. REQUIRE_PACKAGES_PASZLIB=1
  3450. REQUIRE_PACKAGES_FCL-PROCESS=1
  3451. REQUIRE_PACKAGES_HASH=1
  3452. REQUIRE_PACKAGES_LIBTAR=1
  3453. REQUIRE_PACKAGES_FPMKUNIT=1
  3454. REQUIRE_PACKAGES_LIBNDSFPC=1
  3455. endif
  3456. ifeq ($(FULL_TARGET),x86_64-openbsd)
  3457. REQUIRE_PACKAGES_RTL=1
  3458. REQUIRE_PACKAGES_PASZLIB=1
  3459. REQUIRE_PACKAGES_FCL-PROCESS=1
  3460. REQUIRE_PACKAGES_HASH=1
  3461. REQUIRE_PACKAGES_LIBTAR=1
  3462. REQUIRE_PACKAGES_FPMKUNIT=1
  3463. REQUIRE_PACKAGES_LIBNDSFPC=1
  3464. endif
  3465. ifeq ($(FULL_TARGET),x86_64-darwin)
  3466. REQUIRE_PACKAGES_RTL=1
  3467. REQUIRE_PACKAGES_PASZLIB=1
  3468. REQUIRE_PACKAGES_FCL-PROCESS=1
  3469. REQUIRE_PACKAGES_HASH=1
  3470. REQUIRE_PACKAGES_LIBTAR=1
  3471. REQUIRE_PACKAGES_FPMKUNIT=1
  3472. REQUIRE_PACKAGES_LIBNDSFPC=1
  3473. endif
  3474. ifeq ($(FULL_TARGET),x86_64-win64)
  3475. REQUIRE_PACKAGES_RTL=1
  3476. REQUIRE_PACKAGES_PASZLIB=1
  3477. REQUIRE_PACKAGES_FCL-PROCESS=1
  3478. REQUIRE_PACKAGES_HASH=1
  3479. REQUIRE_PACKAGES_LIBTAR=1
  3480. REQUIRE_PACKAGES_FPMKUNIT=1
  3481. REQUIRE_PACKAGES_LIBNDSFPC=1
  3482. endif
  3483. ifeq ($(FULL_TARGET),x86_64-embedded)
  3484. REQUIRE_PACKAGES_RTL=1
  3485. REQUIRE_PACKAGES_PASZLIB=1
  3486. REQUIRE_PACKAGES_FCL-PROCESS=1
  3487. REQUIRE_PACKAGES_HASH=1
  3488. REQUIRE_PACKAGES_LIBTAR=1
  3489. REQUIRE_PACKAGES_FPMKUNIT=1
  3490. REQUIRE_PACKAGES_LIBNDSFPC=1
  3491. endif
  3492. ifeq ($(FULL_TARGET),x86_64-iphonesim)
  3493. REQUIRE_PACKAGES_RTL=1
  3494. REQUIRE_PACKAGES_PASZLIB=1
  3495. REQUIRE_PACKAGES_FCL-PROCESS=1
  3496. REQUIRE_PACKAGES_HASH=1
  3497. REQUIRE_PACKAGES_LIBTAR=1
  3498. REQUIRE_PACKAGES_FPMKUNIT=1
  3499. REQUIRE_PACKAGES_LIBNDSFPC=1
  3500. endif
  3501. ifeq ($(FULL_TARGET),x86_64-android)
  3502. REQUIRE_PACKAGES_RTL=1
  3503. REQUIRE_PACKAGES_PASZLIB=1
  3504. REQUIRE_PACKAGES_FCL-PROCESS=1
  3505. REQUIRE_PACKAGES_HASH=1
  3506. REQUIRE_PACKAGES_LIBTAR=1
  3507. REQUIRE_PACKAGES_FPMKUNIT=1
  3508. REQUIRE_PACKAGES_LIBNDSFPC=1
  3509. endif
  3510. ifeq ($(FULL_TARGET),x86_64-aros)
  3511. REQUIRE_PACKAGES_RTL=1
  3512. REQUIRE_PACKAGES_PASZLIB=1
  3513. REQUIRE_PACKAGES_FCL-PROCESS=1
  3514. REQUIRE_PACKAGES_HASH=1
  3515. REQUIRE_PACKAGES_LIBTAR=1
  3516. REQUIRE_PACKAGES_FPMKUNIT=1
  3517. REQUIRE_PACKAGES_LIBNDSFPC=1
  3518. endif
  3519. ifeq ($(FULL_TARGET),x86_64-dragonfly)
  3520. REQUIRE_PACKAGES_RTL=1
  3521. REQUIRE_PACKAGES_PASZLIB=1
  3522. REQUIRE_PACKAGES_FCL-PROCESS=1
  3523. REQUIRE_PACKAGES_HASH=1
  3524. REQUIRE_PACKAGES_LIBTAR=1
  3525. REQUIRE_PACKAGES_FPMKUNIT=1
  3526. REQUIRE_PACKAGES_LIBNDSFPC=1
  3527. endif
  3528. ifeq ($(FULL_TARGET),arm-linux)
  3529. REQUIRE_PACKAGES_RTL=1
  3530. REQUIRE_PACKAGES_PASZLIB=1
  3531. REQUIRE_PACKAGES_FCL-PROCESS=1
  3532. REQUIRE_PACKAGES_HASH=1
  3533. REQUIRE_PACKAGES_LIBTAR=1
  3534. REQUIRE_PACKAGES_FPMKUNIT=1
  3535. REQUIRE_PACKAGES_LIBNDSFPC=1
  3536. endif
  3537. ifeq ($(FULL_TARGET),arm-netbsd)
  3538. REQUIRE_PACKAGES_RTL=1
  3539. REQUIRE_PACKAGES_PASZLIB=1
  3540. REQUIRE_PACKAGES_FCL-PROCESS=1
  3541. REQUIRE_PACKAGES_HASH=1
  3542. REQUIRE_PACKAGES_LIBTAR=1
  3543. REQUIRE_PACKAGES_FPMKUNIT=1
  3544. REQUIRE_PACKAGES_LIBNDSFPC=1
  3545. endif
  3546. ifeq ($(FULL_TARGET),arm-palmos)
  3547. REQUIRE_PACKAGES_RTL=1
  3548. REQUIRE_PACKAGES_PASZLIB=1
  3549. REQUIRE_PACKAGES_FCL-PROCESS=1
  3550. REQUIRE_PACKAGES_HASH=1
  3551. REQUIRE_PACKAGES_LIBTAR=1
  3552. REQUIRE_PACKAGES_FPMKUNIT=1
  3553. REQUIRE_PACKAGES_LIBNDSFPC=1
  3554. endif
  3555. ifeq ($(FULL_TARGET),arm-wince)
  3556. REQUIRE_PACKAGES_RTL=1
  3557. REQUIRE_PACKAGES_PASZLIB=1
  3558. REQUIRE_PACKAGES_FCL-PROCESS=1
  3559. REQUIRE_PACKAGES_HASH=1
  3560. REQUIRE_PACKAGES_LIBTAR=1
  3561. REQUIRE_PACKAGES_FPMKUNIT=1
  3562. REQUIRE_PACKAGES_LIBNDSFPC=1
  3563. endif
  3564. ifeq ($(FULL_TARGET),arm-gba)
  3565. REQUIRE_PACKAGES_RTL=1
  3566. REQUIRE_PACKAGES_PASZLIB=1
  3567. REQUIRE_PACKAGES_FCL-PROCESS=1
  3568. REQUIRE_PACKAGES_HASH=1
  3569. REQUIRE_PACKAGES_LIBTAR=1
  3570. REQUIRE_PACKAGES_FPMKUNIT=1
  3571. REQUIRE_PACKAGES_LIBNDSFPC=1
  3572. endif
  3573. ifeq ($(FULL_TARGET),arm-nds)
  3574. REQUIRE_PACKAGES_RTL=1
  3575. REQUIRE_PACKAGES_PASZLIB=1
  3576. REQUIRE_PACKAGES_FCL-PROCESS=1
  3577. REQUIRE_PACKAGES_HASH=1
  3578. REQUIRE_PACKAGES_LIBTAR=1
  3579. REQUIRE_PACKAGES_FPMKUNIT=1
  3580. REQUIRE_PACKAGES_LIBNDSFPC=1
  3581. endif
  3582. ifeq ($(FULL_TARGET),arm-embedded)
  3583. REQUIRE_PACKAGES_RTL=1
  3584. REQUIRE_PACKAGES_PASZLIB=1
  3585. REQUIRE_PACKAGES_FCL-PROCESS=1
  3586. REQUIRE_PACKAGES_HASH=1
  3587. REQUIRE_PACKAGES_LIBTAR=1
  3588. REQUIRE_PACKAGES_FPMKUNIT=1
  3589. REQUIRE_PACKAGES_LIBNDSFPC=1
  3590. endif
  3591. ifeq ($(FULL_TARGET),arm-symbian)
  3592. REQUIRE_PACKAGES_RTL=1
  3593. REQUIRE_PACKAGES_PASZLIB=1
  3594. REQUIRE_PACKAGES_FCL-PROCESS=1
  3595. REQUIRE_PACKAGES_HASH=1
  3596. REQUIRE_PACKAGES_LIBTAR=1
  3597. REQUIRE_PACKAGES_FPMKUNIT=1
  3598. REQUIRE_PACKAGES_LIBNDSFPC=1
  3599. endif
  3600. ifeq ($(FULL_TARGET),arm-android)
  3601. REQUIRE_PACKAGES_RTL=1
  3602. REQUIRE_PACKAGES_PASZLIB=1
  3603. REQUIRE_PACKAGES_FCL-PROCESS=1
  3604. REQUIRE_PACKAGES_HASH=1
  3605. REQUIRE_PACKAGES_LIBTAR=1
  3606. REQUIRE_PACKAGES_FPMKUNIT=1
  3607. REQUIRE_PACKAGES_LIBNDSFPC=1
  3608. endif
  3609. ifeq ($(FULL_TARGET),arm-aros)
  3610. REQUIRE_PACKAGES_RTL=1
  3611. REQUIRE_PACKAGES_PASZLIB=1
  3612. REQUIRE_PACKAGES_FCL-PROCESS=1
  3613. REQUIRE_PACKAGES_HASH=1
  3614. REQUIRE_PACKAGES_LIBTAR=1
  3615. REQUIRE_PACKAGES_FPMKUNIT=1
  3616. REQUIRE_PACKAGES_LIBNDSFPC=1
  3617. endif
  3618. ifeq ($(FULL_TARGET),arm-freertos)
  3619. REQUIRE_PACKAGES_RTL=1
  3620. REQUIRE_PACKAGES_PASZLIB=1
  3621. REQUIRE_PACKAGES_FCL-PROCESS=1
  3622. REQUIRE_PACKAGES_HASH=1
  3623. REQUIRE_PACKAGES_LIBTAR=1
  3624. REQUIRE_PACKAGES_FPMKUNIT=1
  3625. REQUIRE_PACKAGES_LIBNDSFPC=1
  3626. endif
  3627. ifeq ($(FULL_TARGET),arm-ios)
  3628. REQUIRE_PACKAGES_RTL=1
  3629. REQUIRE_PACKAGES_PASZLIB=1
  3630. REQUIRE_PACKAGES_FCL-PROCESS=1
  3631. REQUIRE_PACKAGES_HASH=1
  3632. REQUIRE_PACKAGES_LIBTAR=1
  3633. REQUIRE_PACKAGES_FPMKUNIT=1
  3634. REQUIRE_PACKAGES_LIBNDSFPC=1
  3635. endif
  3636. ifeq ($(FULL_TARGET),powerpc64-linux)
  3637. REQUIRE_PACKAGES_RTL=1
  3638. REQUIRE_PACKAGES_PASZLIB=1
  3639. REQUIRE_PACKAGES_FCL-PROCESS=1
  3640. REQUIRE_PACKAGES_HASH=1
  3641. REQUIRE_PACKAGES_LIBTAR=1
  3642. REQUIRE_PACKAGES_FPMKUNIT=1
  3643. REQUIRE_PACKAGES_LIBNDSFPC=1
  3644. endif
  3645. ifeq ($(FULL_TARGET),powerpc64-darwin)
  3646. REQUIRE_PACKAGES_RTL=1
  3647. REQUIRE_PACKAGES_PASZLIB=1
  3648. REQUIRE_PACKAGES_FCL-PROCESS=1
  3649. REQUIRE_PACKAGES_HASH=1
  3650. REQUIRE_PACKAGES_LIBTAR=1
  3651. REQUIRE_PACKAGES_FPMKUNIT=1
  3652. REQUIRE_PACKAGES_LIBNDSFPC=1
  3653. endif
  3654. ifeq ($(FULL_TARGET),powerpc64-embedded)
  3655. REQUIRE_PACKAGES_RTL=1
  3656. REQUIRE_PACKAGES_PASZLIB=1
  3657. REQUIRE_PACKAGES_FCL-PROCESS=1
  3658. REQUIRE_PACKAGES_HASH=1
  3659. REQUIRE_PACKAGES_LIBTAR=1
  3660. REQUIRE_PACKAGES_FPMKUNIT=1
  3661. REQUIRE_PACKAGES_LIBNDSFPC=1
  3662. endif
  3663. ifeq ($(FULL_TARGET),powerpc64-aix)
  3664. REQUIRE_PACKAGES_RTL=1
  3665. REQUIRE_PACKAGES_PASZLIB=1
  3666. REQUIRE_PACKAGES_FCL-PROCESS=1
  3667. REQUIRE_PACKAGES_HASH=1
  3668. REQUIRE_PACKAGES_LIBTAR=1
  3669. REQUIRE_PACKAGES_FPMKUNIT=1
  3670. REQUIRE_PACKAGES_LIBNDSFPC=1
  3671. endif
  3672. ifeq ($(FULL_TARGET),avr-embedded)
  3673. REQUIRE_PACKAGES_RTL=1
  3674. REQUIRE_PACKAGES_PASZLIB=1
  3675. REQUIRE_PACKAGES_FCL-PROCESS=1
  3676. REQUIRE_PACKAGES_HASH=1
  3677. REQUIRE_PACKAGES_LIBTAR=1
  3678. REQUIRE_PACKAGES_FPMKUNIT=1
  3679. REQUIRE_PACKAGES_LIBNDSFPC=1
  3680. endif
  3681. ifeq ($(FULL_TARGET),armeb-linux)
  3682. REQUIRE_PACKAGES_RTL=1
  3683. REQUIRE_PACKAGES_PASZLIB=1
  3684. REQUIRE_PACKAGES_FCL-PROCESS=1
  3685. REQUIRE_PACKAGES_HASH=1
  3686. REQUIRE_PACKAGES_LIBTAR=1
  3687. REQUIRE_PACKAGES_FPMKUNIT=1
  3688. REQUIRE_PACKAGES_LIBNDSFPC=1
  3689. endif
  3690. ifeq ($(FULL_TARGET),armeb-embedded)
  3691. REQUIRE_PACKAGES_RTL=1
  3692. REQUIRE_PACKAGES_PASZLIB=1
  3693. REQUIRE_PACKAGES_FCL-PROCESS=1
  3694. REQUIRE_PACKAGES_HASH=1
  3695. REQUIRE_PACKAGES_LIBTAR=1
  3696. REQUIRE_PACKAGES_FPMKUNIT=1
  3697. REQUIRE_PACKAGES_LIBNDSFPC=1
  3698. endif
  3699. ifeq ($(FULL_TARGET),mips-linux)
  3700. REQUIRE_PACKAGES_RTL=1
  3701. REQUIRE_PACKAGES_PASZLIB=1
  3702. REQUIRE_PACKAGES_FCL-PROCESS=1
  3703. REQUIRE_PACKAGES_HASH=1
  3704. REQUIRE_PACKAGES_LIBTAR=1
  3705. REQUIRE_PACKAGES_FPMKUNIT=1
  3706. REQUIRE_PACKAGES_LIBNDSFPC=1
  3707. endif
  3708. ifeq ($(FULL_TARGET),mipsel-linux)
  3709. REQUIRE_PACKAGES_RTL=1
  3710. REQUIRE_PACKAGES_PASZLIB=1
  3711. REQUIRE_PACKAGES_FCL-PROCESS=1
  3712. REQUIRE_PACKAGES_HASH=1
  3713. REQUIRE_PACKAGES_LIBTAR=1
  3714. REQUIRE_PACKAGES_FPMKUNIT=1
  3715. REQUIRE_PACKAGES_LIBNDSFPC=1
  3716. endif
  3717. ifeq ($(FULL_TARGET),mipsel-embedded)
  3718. REQUIRE_PACKAGES_RTL=1
  3719. REQUIRE_PACKAGES_PASZLIB=1
  3720. REQUIRE_PACKAGES_FCL-PROCESS=1
  3721. REQUIRE_PACKAGES_HASH=1
  3722. REQUIRE_PACKAGES_LIBTAR=1
  3723. REQUIRE_PACKAGES_FPMKUNIT=1
  3724. REQUIRE_PACKAGES_LIBNDSFPC=1
  3725. endif
  3726. ifeq ($(FULL_TARGET),mipsel-android)
  3727. REQUIRE_PACKAGES_RTL=1
  3728. REQUIRE_PACKAGES_PASZLIB=1
  3729. REQUIRE_PACKAGES_FCL-PROCESS=1
  3730. REQUIRE_PACKAGES_HASH=1
  3731. REQUIRE_PACKAGES_LIBTAR=1
  3732. REQUIRE_PACKAGES_FPMKUNIT=1
  3733. REQUIRE_PACKAGES_LIBNDSFPC=1
  3734. endif
  3735. ifeq ($(FULL_TARGET),mips64el-linux)
  3736. REQUIRE_PACKAGES_RTL=1
  3737. REQUIRE_PACKAGES_PASZLIB=1
  3738. REQUIRE_PACKAGES_FCL-PROCESS=1
  3739. REQUIRE_PACKAGES_HASH=1
  3740. REQUIRE_PACKAGES_LIBTAR=1
  3741. REQUIRE_PACKAGES_FPMKUNIT=1
  3742. REQUIRE_PACKAGES_LIBNDSFPC=1
  3743. endif
  3744. ifeq ($(FULL_TARGET),jvm-java)
  3745. REQUIRE_PACKAGES_RTL=1
  3746. REQUIRE_PACKAGES_PASZLIB=1
  3747. REQUIRE_PACKAGES_FCL-PROCESS=1
  3748. REQUIRE_PACKAGES_HASH=1
  3749. REQUIRE_PACKAGES_LIBTAR=1
  3750. REQUIRE_PACKAGES_FPMKUNIT=1
  3751. REQUIRE_PACKAGES_LIBNDSFPC=1
  3752. endif
  3753. ifeq ($(FULL_TARGET),jvm-android)
  3754. REQUIRE_PACKAGES_RTL=1
  3755. REQUIRE_PACKAGES_PASZLIB=1
  3756. REQUIRE_PACKAGES_FCL-PROCESS=1
  3757. REQUIRE_PACKAGES_HASH=1
  3758. REQUIRE_PACKAGES_LIBTAR=1
  3759. REQUIRE_PACKAGES_FPMKUNIT=1
  3760. REQUIRE_PACKAGES_LIBNDSFPC=1
  3761. endif
  3762. ifeq ($(FULL_TARGET),i8086-embedded)
  3763. REQUIRE_PACKAGES_RTL=1
  3764. REQUIRE_PACKAGES_PASZLIB=1
  3765. REQUIRE_PACKAGES_FCL-PROCESS=1
  3766. REQUIRE_PACKAGES_HASH=1
  3767. REQUIRE_PACKAGES_LIBTAR=1
  3768. REQUIRE_PACKAGES_FPMKUNIT=1
  3769. REQUIRE_PACKAGES_LIBNDSFPC=1
  3770. endif
  3771. ifeq ($(FULL_TARGET),i8086-msdos)
  3772. REQUIRE_PACKAGES_RTL=1
  3773. REQUIRE_PACKAGES_PASZLIB=1
  3774. REQUIRE_PACKAGES_FCL-PROCESS=1
  3775. REQUIRE_PACKAGES_HASH=1
  3776. REQUIRE_PACKAGES_LIBTAR=1
  3777. REQUIRE_PACKAGES_FPMKUNIT=1
  3778. REQUIRE_PACKAGES_LIBNDSFPC=1
  3779. endif
  3780. ifeq ($(FULL_TARGET),i8086-win16)
  3781. REQUIRE_PACKAGES_RTL=1
  3782. REQUIRE_PACKAGES_PASZLIB=1
  3783. REQUIRE_PACKAGES_FCL-PROCESS=1
  3784. REQUIRE_PACKAGES_HASH=1
  3785. REQUIRE_PACKAGES_LIBTAR=1
  3786. REQUIRE_PACKAGES_FPMKUNIT=1
  3787. REQUIRE_PACKAGES_LIBNDSFPC=1
  3788. endif
  3789. ifeq ($(FULL_TARGET),aarch64-linux)
  3790. REQUIRE_PACKAGES_RTL=1
  3791. REQUIRE_PACKAGES_PASZLIB=1
  3792. REQUIRE_PACKAGES_FCL-PROCESS=1
  3793. REQUIRE_PACKAGES_HASH=1
  3794. REQUIRE_PACKAGES_LIBTAR=1
  3795. REQUIRE_PACKAGES_FPMKUNIT=1
  3796. REQUIRE_PACKAGES_LIBNDSFPC=1
  3797. endif
  3798. ifeq ($(FULL_TARGET),aarch64-darwin)
  3799. REQUIRE_PACKAGES_RTL=1
  3800. REQUIRE_PACKAGES_PASZLIB=1
  3801. REQUIRE_PACKAGES_FCL-PROCESS=1
  3802. REQUIRE_PACKAGES_HASH=1
  3803. REQUIRE_PACKAGES_LIBTAR=1
  3804. REQUIRE_PACKAGES_FPMKUNIT=1
  3805. REQUIRE_PACKAGES_LIBNDSFPC=1
  3806. endif
  3807. ifeq ($(FULL_TARGET),aarch64-win64)
  3808. REQUIRE_PACKAGES_RTL=1
  3809. REQUIRE_PACKAGES_PASZLIB=1
  3810. REQUIRE_PACKAGES_FCL-PROCESS=1
  3811. REQUIRE_PACKAGES_HASH=1
  3812. REQUIRE_PACKAGES_LIBTAR=1
  3813. REQUIRE_PACKAGES_FPMKUNIT=1
  3814. REQUIRE_PACKAGES_LIBNDSFPC=1
  3815. endif
  3816. ifeq ($(FULL_TARGET),aarch64-android)
  3817. REQUIRE_PACKAGES_RTL=1
  3818. REQUIRE_PACKAGES_PASZLIB=1
  3819. REQUIRE_PACKAGES_FCL-PROCESS=1
  3820. REQUIRE_PACKAGES_HASH=1
  3821. REQUIRE_PACKAGES_LIBTAR=1
  3822. REQUIRE_PACKAGES_FPMKUNIT=1
  3823. REQUIRE_PACKAGES_LIBNDSFPC=1
  3824. endif
  3825. ifeq ($(FULL_TARGET),aarch64-ios)
  3826. REQUIRE_PACKAGES_RTL=1
  3827. REQUIRE_PACKAGES_PASZLIB=1
  3828. REQUIRE_PACKAGES_FCL-PROCESS=1
  3829. REQUIRE_PACKAGES_HASH=1
  3830. REQUIRE_PACKAGES_LIBTAR=1
  3831. REQUIRE_PACKAGES_FPMKUNIT=1
  3832. REQUIRE_PACKAGES_LIBNDSFPC=1
  3833. endif
  3834. ifeq ($(FULL_TARGET),wasm32-embedded)
  3835. REQUIRE_PACKAGES_RTL=1
  3836. REQUIRE_PACKAGES_PASZLIB=1
  3837. REQUIRE_PACKAGES_FCL-PROCESS=1
  3838. REQUIRE_PACKAGES_HASH=1
  3839. REQUIRE_PACKAGES_LIBTAR=1
  3840. REQUIRE_PACKAGES_FPMKUNIT=1
  3841. REQUIRE_PACKAGES_LIBNDSFPC=1
  3842. endif
  3843. ifeq ($(FULL_TARGET),wasm32-wasi)
  3844. REQUIRE_PACKAGES_RTL=1
  3845. REQUIRE_PACKAGES_PASZLIB=1
  3846. REQUIRE_PACKAGES_FCL-PROCESS=1
  3847. REQUIRE_PACKAGES_HASH=1
  3848. REQUIRE_PACKAGES_LIBTAR=1
  3849. REQUIRE_PACKAGES_FPMKUNIT=1
  3850. REQUIRE_PACKAGES_LIBNDSFPC=1
  3851. endif
  3852. ifeq ($(FULL_TARGET),sparc64-linux)
  3853. REQUIRE_PACKAGES_RTL=1
  3854. REQUIRE_PACKAGES_PASZLIB=1
  3855. REQUIRE_PACKAGES_FCL-PROCESS=1
  3856. REQUIRE_PACKAGES_HASH=1
  3857. REQUIRE_PACKAGES_LIBTAR=1
  3858. REQUIRE_PACKAGES_FPMKUNIT=1
  3859. REQUIRE_PACKAGES_LIBNDSFPC=1
  3860. endif
  3861. ifeq ($(FULL_TARGET),riscv32-linux)
  3862. REQUIRE_PACKAGES_RTL=1
  3863. REQUIRE_PACKAGES_PASZLIB=1
  3864. REQUIRE_PACKAGES_FCL-PROCESS=1
  3865. REQUIRE_PACKAGES_HASH=1
  3866. REQUIRE_PACKAGES_LIBTAR=1
  3867. REQUIRE_PACKAGES_FPMKUNIT=1
  3868. REQUIRE_PACKAGES_LIBNDSFPC=1
  3869. endif
  3870. ifeq ($(FULL_TARGET),riscv32-embedded)
  3871. REQUIRE_PACKAGES_RTL=1
  3872. REQUIRE_PACKAGES_PASZLIB=1
  3873. REQUIRE_PACKAGES_FCL-PROCESS=1
  3874. REQUIRE_PACKAGES_HASH=1
  3875. REQUIRE_PACKAGES_LIBTAR=1
  3876. REQUIRE_PACKAGES_FPMKUNIT=1
  3877. REQUIRE_PACKAGES_LIBNDSFPC=1
  3878. endif
  3879. ifeq ($(FULL_TARGET),riscv64-linux)
  3880. REQUIRE_PACKAGES_RTL=1
  3881. REQUIRE_PACKAGES_PASZLIB=1
  3882. REQUIRE_PACKAGES_FCL-PROCESS=1
  3883. REQUIRE_PACKAGES_HASH=1
  3884. REQUIRE_PACKAGES_LIBTAR=1
  3885. REQUIRE_PACKAGES_FPMKUNIT=1
  3886. REQUIRE_PACKAGES_LIBNDSFPC=1
  3887. endif
  3888. ifeq ($(FULL_TARGET),riscv64-embedded)
  3889. REQUIRE_PACKAGES_RTL=1
  3890. REQUIRE_PACKAGES_PASZLIB=1
  3891. REQUIRE_PACKAGES_FCL-PROCESS=1
  3892. REQUIRE_PACKAGES_HASH=1
  3893. REQUIRE_PACKAGES_LIBTAR=1
  3894. REQUIRE_PACKAGES_FPMKUNIT=1
  3895. REQUIRE_PACKAGES_LIBNDSFPC=1
  3896. endif
  3897. ifeq ($(FULL_TARGET),xtensa-linux)
  3898. REQUIRE_PACKAGES_RTL=1
  3899. REQUIRE_PACKAGES_PASZLIB=1
  3900. REQUIRE_PACKAGES_FCL-PROCESS=1
  3901. REQUIRE_PACKAGES_HASH=1
  3902. REQUIRE_PACKAGES_LIBTAR=1
  3903. REQUIRE_PACKAGES_FPMKUNIT=1
  3904. REQUIRE_PACKAGES_LIBNDSFPC=1
  3905. endif
  3906. ifeq ($(FULL_TARGET),xtensa-embedded)
  3907. REQUIRE_PACKAGES_RTL=1
  3908. REQUIRE_PACKAGES_PASZLIB=1
  3909. REQUIRE_PACKAGES_FCL-PROCESS=1
  3910. REQUIRE_PACKAGES_HASH=1
  3911. REQUIRE_PACKAGES_LIBTAR=1
  3912. REQUIRE_PACKAGES_FPMKUNIT=1
  3913. REQUIRE_PACKAGES_LIBNDSFPC=1
  3914. endif
  3915. ifeq ($(FULL_TARGET),xtensa-freertos)
  3916. REQUIRE_PACKAGES_RTL=1
  3917. REQUIRE_PACKAGES_PASZLIB=1
  3918. REQUIRE_PACKAGES_FCL-PROCESS=1
  3919. REQUIRE_PACKAGES_HASH=1
  3920. REQUIRE_PACKAGES_LIBTAR=1
  3921. REQUIRE_PACKAGES_FPMKUNIT=1
  3922. REQUIRE_PACKAGES_LIBNDSFPC=1
  3923. endif
  3924. ifeq ($(FULL_TARGET),z80-embedded)
  3925. REQUIRE_PACKAGES_RTL=1
  3926. REQUIRE_PACKAGES_PASZLIB=1
  3927. REQUIRE_PACKAGES_FCL-PROCESS=1
  3928. REQUIRE_PACKAGES_HASH=1
  3929. REQUIRE_PACKAGES_LIBTAR=1
  3930. REQUIRE_PACKAGES_FPMKUNIT=1
  3931. REQUIRE_PACKAGES_LIBNDSFPC=1
  3932. endif
  3933. ifeq ($(FULL_TARGET),z80-zxspectrum)
  3934. REQUIRE_PACKAGES_RTL=1
  3935. REQUIRE_PACKAGES_PASZLIB=1
  3936. REQUIRE_PACKAGES_FCL-PROCESS=1
  3937. REQUIRE_PACKAGES_HASH=1
  3938. REQUIRE_PACKAGES_LIBTAR=1
  3939. REQUIRE_PACKAGES_FPMKUNIT=1
  3940. REQUIRE_PACKAGES_LIBNDSFPC=1
  3941. endif
  3942. ifeq ($(FULL_TARGET),z80-msxdos)
  3943. REQUIRE_PACKAGES_RTL=1
  3944. REQUIRE_PACKAGES_PASZLIB=1
  3945. REQUIRE_PACKAGES_FCL-PROCESS=1
  3946. REQUIRE_PACKAGES_HASH=1
  3947. REQUIRE_PACKAGES_LIBTAR=1
  3948. REQUIRE_PACKAGES_FPMKUNIT=1
  3949. REQUIRE_PACKAGES_LIBNDSFPC=1
  3950. endif
  3951. ifeq ($(FULL_TARGET),z80-amstradcpc)
  3952. REQUIRE_PACKAGES_RTL=1
  3953. REQUIRE_PACKAGES_PASZLIB=1
  3954. REQUIRE_PACKAGES_FCL-PROCESS=1
  3955. REQUIRE_PACKAGES_HASH=1
  3956. REQUIRE_PACKAGES_LIBTAR=1
  3957. REQUIRE_PACKAGES_FPMKUNIT=1
  3958. REQUIRE_PACKAGES_LIBNDSFPC=1
  3959. endif
  3960. ifdef REQUIRE_PACKAGES_RTL
  3961. PACKAGEDIR_RTL:=$(firstword $(subst /Makefile.fpc,,$(strip $(wildcard $(addsuffix /rtl/Makefile.fpc,$(PACKAGESDIR))))))
  3962. ifneq ($(PACKAGEDIR_RTL),)
  3963. ifneq ($(wildcard $(PACKAGEDIR_RTL)/units/$(TARGETSUFFIX)),)
  3964. UNITDIR_RTL=$(PACKAGEDIR_RTL)/units/$(TARGETSUFFIX)
  3965. else
  3966. UNITDIR_RTL=$(PACKAGEDIR_RTL)
  3967. endif
  3968. ifneq ($(wildcard $(PACKAGEDIR_RTL)/units/$(SOURCESUFFIX)),)
  3969. UNITDIR_FPMAKE_RTL=$(PACKAGEDIR_RTL)/units/$(SOURCESUFFIX)
  3970. else
  3971. ifneq ($(wildcard $(PACKAGEDIR_RTL)/units_bs/$(SOURCESUFFIX)),)
  3972. UNITDIR_FPMAKE_RTL=$(PACKAGEDIR_RTL)/units_bs/$(SOURCESUFFIX)
  3973. else
  3974. UNITDIR_FPMAKE_RTL=$(PACKAGEDIR_RTL)
  3975. endif
  3976. endif
  3977. ifdef CHECKDEPEND
  3978. $(PACKAGEDIR_RTL)/$(OS_TARGET)/$(FPCMADE):
  3979. $(MAKE) -C $(PACKAGEDIR_RTL)/$(OS_TARGET) $(FPCMADE)
  3980. override ALLDEPENDENCIES+=$(PACKAGEDIR_RTL)/$(OS_TARGET)/$(FPCMADE)
  3981. endif
  3982. else
  3983. PACKAGEDIR_RTL=
  3984. UNITDIR_RTL:=$(subst /Package.fpc,,$(strip $(wildcard $(addsuffix /rtl/Package.fpc,$(UNITSDIR)))))
  3985. ifneq ($(UNITDIR_RTL),)
  3986. UNITDIR_RTL:=$(firstword $(UNITDIR_RTL))
  3987. else
  3988. UNITDIR_RTL=
  3989. endif
  3990. endif
  3991. ifdef UNITDIR_RTL
  3992. override COMPILER_UNITDIR+=$(UNITDIR_RTL)
  3993. endif
  3994. ifdef UNITDIR_FPMAKE_RTL
  3995. override COMPILER_FPMAKE_UNITDIR+=$(UNITDIR_FPMAKE_RTL)
  3996. endif
  3997. endif
  3998. ifdef REQUIRE_PACKAGES_PASZLIB
  3999. PACKAGEDIR_PASZLIB:=$(firstword $(subst /Makefile.fpc,,$(strip $(wildcard $(addsuffix /paszlib/Makefile.fpc,$(PACKAGESDIR))))))
  4000. ifneq ($(PACKAGEDIR_PASZLIB),)
  4001. ifneq ($(wildcard $(PACKAGEDIR_PASZLIB)/units/$(TARGETSUFFIX)),)
  4002. UNITDIR_PASZLIB=$(PACKAGEDIR_PASZLIB)/units/$(TARGETSUFFIX)
  4003. else
  4004. UNITDIR_PASZLIB=$(PACKAGEDIR_PASZLIB)
  4005. endif
  4006. ifneq ($(wildcard $(PACKAGEDIR_PASZLIB)/units/$(SOURCESUFFIX)),)
  4007. UNITDIR_FPMAKE_PASZLIB=$(PACKAGEDIR_PASZLIB)/units/$(SOURCESUFFIX)
  4008. else
  4009. ifneq ($(wildcard $(PACKAGEDIR_PASZLIB)/units_bs/$(SOURCESUFFIX)),)
  4010. UNITDIR_FPMAKE_PASZLIB=$(PACKAGEDIR_PASZLIB)/units_bs/$(SOURCESUFFIX)
  4011. else
  4012. UNITDIR_FPMAKE_PASZLIB=$(PACKAGEDIR_PASZLIB)
  4013. endif
  4014. endif
  4015. ifdef CHECKDEPEND
  4016. $(PACKAGEDIR_PASZLIB)/$(FPCMADE):
  4017. $(MAKE) -C $(PACKAGEDIR_PASZLIB) $(FPCMADE)
  4018. override ALLDEPENDENCIES+=$(PACKAGEDIR_PASZLIB)/$(FPCMADE)
  4019. endif
  4020. else
  4021. PACKAGEDIR_PASZLIB=
  4022. UNITDIR_PASZLIB:=$(subst /Package.fpc,,$(strip $(wildcard $(addsuffix /paszlib/Package.fpc,$(UNITSDIR)))))
  4023. ifneq ($(UNITDIR_PASZLIB),)
  4024. UNITDIR_PASZLIB:=$(firstword $(UNITDIR_PASZLIB))
  4025. else
  4026. UNITDIR_PASZLIB=
  4027. endif
  4028. endif
  4029. ifdef UNITDIR_PASZLIB
  4030. override COMPILER_UNITDIR+=$(UNITDIR_PASZLIB)
  4031. endif
  4032. ifdef UNITDIR_FPMAKE_PASZLIB
  4033. override COMPILER_FPMAKE_UNITDIR+=$(UNITDIR_FPMAKE_PASZLIB)
  4034. endif
  4035. endif
  4036. ifdef REQUIRE_PACKAGES_FCL-PROCESS
  4037. PACKAGEDIR_FCL-PROCESS:=$(firstword $(subst /Makefile.fpc,,$(strip $(wildcard $(addsuffix /fcl-process/Makefile.fpc,$(PACKAGESDIR))))))
  4038. ifneq ($(PACKAGEDIR_FCL-PROCESS),)
  4039. ifneq ($(wildcard $(PACKAGEDIR_FCL-PROCESS)/units/$(TARGETSUFFIX)),)
  4040. UNITDIR_FCL-PROCESS=$(PACKAGEDIR_FCL-PROCESS)/units/$(TARGETSUFFIX)
  4041. else
  4042. UNITDIR_FCL-PROCESS=$(PACKAGEDIR_FCL-PROCESS)
  4043. endif
  4044. ifneq ($(wildcard $(PACKAGEDIR_FCL-PROCESS)/units/$(SOURCESUFFIX)),)
  4045. UNITDIR_FPMAKE_FCL-PROCESS=$(PACKAGEDIR_FCL-PROCESS)/units/$(SOURCESUFFIX)
  4046. else
  4047. ifneq ($(wildcard $(PACKAGEDIR_FCL-PROCESS)/units_bs/$(SOURCESUFFIX)),)
  4048. UNITDIR_FPMAKE_FCL-PROCESS=$(PACKAGEDIR_FCL-PROCESS)/units_bs/$(SOURCESUFFIX)
  4049. else
  4050. UNITDIR_FPMAKE_FCL-PROCESS=$(PACKAGEDIR_FCL-PROCESS)
  4051. endif
  4052. endif
  4053. ifdef CHECKDEPEND
  4054. $(PACKAGEDIR_FCL-PROCESS)/$(FPCMADE):
  4055. $(MAKE) -C $(PACKAGEDIR_FCL-PROCESS) $(FPCMADE)
  4056. override ALLDEPENDENCIES+=$(PACKAGEDIR_FCL-PROCESS)/$(FPCMADE)
  4057. endif
  4058. else
  4059. PACKAGEDIR_FCL-PROCESS=
  4060. UNITDIR_FCL-PROCESS:=$(subst /Package.fpc,,$(strip $(wildcard $(addsuffix /fcl-process/Package.fpc,$(UNITSDIR)))))
  4061. ifneq ($(UNITDIR_FCL-PROCESS),)
  4062. UNITDIR_FCL-PROCESS:=$(firstword $(UNITDIR_FCL-PROCESS))
  4063. else
  4064. UNITDIR_FCL-PROCESS=
  4065. endif
  4066. endif
  4067. ifdef UNITDIR_FCL-PROCESS
  4068. override COMPILER_UNITDIR+=$(UNITDIR_FCL-PROCESS)
  4069. endif
  4070. ifdef UNITDIR_FPMAKE_FCL-PROCESS
  4071. override COMPILER_FPMAKE_UNITDIR+=$(UNITDIR_FPMAKE_FCL-PROCESS)
  4072. endif
  4073. endif
  4074. ifdef REQUIRE_PACKAGES_HASH
  4075. PACKAGEDIR_HASH:=$(firstword $(subst /Makefile.fpc,,$(strip $(wildcard $(addsuffix /hash/Makefile.fpc,$(PACKAGESDIR))))))
  4076. ifneq ($(PACKAGEDIR_HASH),)
  4077. ifneq ($(wildcard $(PACKAGEDIR_HASH)/units/$(TARGETSUFFIX)),)
  4078. UNITDIR_HASH=$(PACKAGEDIR_HASH)/units/$(TARGETSUFFIX)
  4079. else
  4080. UNITDIR_HASH=$(PACKAGEDIR_HASH)
  4081. endif
  4082. ifneq ($(wildcard $(PACKAGEDIR_HASH)/units/$(SOURCESUFFIX)),)
  4083. UNITDIR_FPMAKE_HASH=$(PACKAGEDIR_HASH)/units/$(SOURCESUFFIX)
  4084. else
  4085. ifneq ($(wildcard $(PACKAGEDIR_HASH)/units_bs/$(SOURCESUFFIX)),)
  4086. UNITDIR_FPMAKE_HASH=$(PACKAGEDIR_HASH)/units_bs/$(SOURCESUFFIX)
  4087. else
  4088. UNITDIR_FPMAKE_HASH=$(PACKAGEDIR_HASH)
  4089. endif
  4090. endif
  4091. ifdef CHECKDEPEND
  4092. $(PACKAGEDIR_HASH)/$(FPCMADE):
  4093. $(MAKE) -C $(PACKAGEDIR_HASH) $(FPCMADE)
  4094. override ALLDEPENDENCIES+=$(PACKAGEDIR_HASH)/$(FPCMADE)
  4095. endif
  4096. else
  4097. PACKAGEDIR_HASH=
  4098. UNITDIR_HASH:=$(subst /Package.fpc,,$(strip $(wildcard $(addsuffix /hash/Package.fpc,$(UNITSDIR)))))
  4099. ifneq ($(UNITDIR_HASH),)
  4100. UNITDIR_HASH:=$(firstword $(UNITDIR_HASH))
  4101. else
  4102. UNITDIR_HASH=
  4103. endif
  4104. endif
  4105. ifdef UNITDIR_HASH
  4106. override COMPILER_UNITDIR+=$(UNITDIR_HASH)
  4107. endif
  4108. ifdef UNITDIR_FPMAKE_HASH
  4109. override COMPILER_FPMAKE_UNITDIR+=$(UNITDIR_FPMAKE_HASH)
  4110. endif
  4111. endif
  4112. ifdef REQUIRE_PACKAGES_LIBTAR
  4113. PACKAGEDIR_LIBTAR:=$(firstword $(subst /Makefile.fpc,,$(strip $(wildcard $(addsuffix /libtar/Makefile.fpc,$(PACKAGESDIR))))))
  4114. ifneq ($(PACKAGEDIR_LIBTAR),)
  4115. ifneq ($(wildcard $(PACKAGEDIR_LIBTAR)/units/$(TARGETSUFFIX)),)
  4116. UNITDIR_LIBTAR=$(PACKAGEDIR_LIBTAR)/units/$(TARGETSUFFIX)
  4117. else
  4118. UNITDIR_LIBTAR=$(PACKAGEDIR_LIBTAR)
  4119. endif
  4120. ifneq ($(wildcard $(PACKAGEDIR_LIBTAR)/units/$(SOURCESUFFIX)),)
  4121. UNITDIR_FPMAKE_LIBTAR=$(PACKAGEDIR_LIBTAR)/units/$(SOURCESUFFIX)
  4122. else
  4123. ifneq ($(wildcard $(PACKAGEDIR_LIBTAR)/units_bs/$(SOURCESUFFIX)),)
  4124. UNITDIR_FPMAKE_LIBTAR=$(PACKAGEDIR_LIBTAR)/units_bs/$(SOURCESUFFIX)
  4125. else
  4126. UNITDIR_FPMAKE_LIBTAR=$(PACKAGEDIR_LIBTAR)
  4127. endif
  4128. endif
  4129. ifdef CHECKDEPEND
  4130. $(PACKAGEDIR_LIBTAR)/$(FPCMADE):
  4131. $(MAKE) -C $(PACKAGEDIR_LIBTAR) $(FPCMADE)
  4132. override ALLDEPENDENCIES+=$(PACKAGEDIR_LIBTAR)/$(FPCMADE)
  4133. endif
  4134. else
  4135. PACKAGEDIR_LIBTAR=
  4136. UNITDIR_LIBTAR:=$(subst /Package.fpc,,$(strip $(wildcard $(addsuffix /libtar/Package.fpc,$(UNITSDIR)))))
  4137. ifneq ($(UNITDIR_LIBTAR),)
  4138. UNITDIR_LIBTAR:=$(firstword $(UNITDIR_LIBTAR))
  4139. else
  4140. UNITDIR_LIBTAR=
  4141. endif
  4142. endif
  4143. ifdef UNITDIR_LIBTAR
  4144. override COMPILER_UNITDIR+=$(UNITDIR_LIBTAR)
  4145. endif
  4146. ifdef UNITDIR_FPMAKE_LIBTAR
  4147. override COMPILER_FPMAKE_UNITDIR+=$(UNITDIR_FPMAKE_LIBTAR)
  4148. endif
  4149. endif
  4150. ifdef REQUIRE_PACKAGES_FPMKUNIT
  4151. PACKAGEDIR_FPMKUNIT:=$(firstword $(subst /Makefile.fpc,,$(strip $(wildcard $(addsuffix /fpmkunit/Makefile.fpc,$(PACKAGESDIR))))))
  4152. ifneq ($(PACKAGEDIR_FPMKUNIT),)
  4153. ifneq ($(wildcard $(PACKAGEDIR_FPMKUNIT)/units/$(TARGETSUFFIX)),)
  4154. UNITDIR_FPMKUNIT=$(PACKAGEDIR_FPMKUNIT)/units/$(TARGETSUFFIX)
  4155. else
  4156. UNITDIR_FPMKUNIT=$(PACKAGEDIR_FPMKUNIT)
  4157. endif
  4158. ifneq ($(wildcard $(PACKAGEDIR_FPMKUNIT)/units/$(SOURCESUFFIX)),)
  4159. UNITDIR_FPMAKE_FPMKUNIT=$(PACKAGEDIR_FPMKUNIT)/units/$(SOURCESUFFIX)
  4160. else
  4161. ifneq ($(wildcard $(PACKAGEDIR_FPMKUNIT)/units_bs/$(SOURCESUFFIX)),)
  4162. UNITDIR_FPMAKE_FPMKUNIT=$(PACKAGEDIR_FPMKUNIT)/units_bs/$(SOURCESUFFIX)
  4163. else
  4164. UNITDIR_FPMAKE_FPMKUNIT=$(PACKAGEDIR_FPMKUNIT)
  4165. endif
  4166. endif
  4167. ifdef CHECKDEPEND
  4168. $(PACKAGEDIR_FPMKUNIT)/$(FPCMADE):
  4169. $(MAKE) -C $(PACKAGEDIR_FPMKUNIT) $(FPCMADE)
  4170. override ALLDEPENDENCIES+=$(PACKAGEDIR_FPMKUNIT)/$(FPCMADE)
  4171. endif
  4172. else
  4173. PACKAGEDIR_FPMKUNIT=
  4174. UNITDIR_FPMKUNIT:=$(subst /Package.fpc,,$(strip $(wildcard $(addsuffix /fpmkunit/Package.fpc,$(UNITSDIR)))))
  4175. ifneq ($(UNITDIR_FPMKUNIT),)
  4176. UNITDIR_FPMKUNIT:=$(firstword $(UNITDIR_FPMKUNIT))
  4177. else
  4178. UNITDIR_FPMKUNIT=
  4179. endif
  4180. endif
  4181. ifdef UNITDIR_FPMKUNIT
  4182. override COMPILER_UNITDIR+=$(UNITDIR_FPMKUNIT)
  4183. endif
  4184. ifdef UNITDIR_FPMAKE_FPMKUNIT
  4185. override COMPILER_FPMAKE_UNITDIR+=$(UNITDIR_FPMAKE_FPMKUNIT)
  4186. endif
  4187. endif
  4188. ifdef REQUIRE_PACKAGES_LIBNDSFPC
  4189. PACKAGEDIR_LIBNDSFPC:=$(firstword $(subst /Makefile.fpc,,$(strip $(wildcard $(addsuffix /libndsfpc/Makefile.fpc,$(PACKAGESDIR))))))
  4190. ifneq ($(PACKAGEDIR_LIBNDSFPC),)
  4191. ifneq ($(wildcard $(PACKAGEDIR_LIBNDSFPC)/units/$(TARGETSUFFIX)),)
  4192. UNITDIR_LIBNDSFPC=$(PACKAGEDIR_LIBNDSFPC)/units/$(TARGETSUFFIX)
  4193. else
  4194. UNITDIR_LIBNDSFPC=$(PACKAGEDIR_LIBNDSFPC)
  4195. endif
  4196. ifneq ($(wildcard $(PACKAGEDIR_LIBNDSFPC)/units/$(SOURCESUFFIX)),)
  4197. UNITDIR_FPMAKE_LIBNDSFPC=$(PACKAGEDIR_LIBNDSFPC)/units/$(SOURCESUFFIX)
  4198. else
  4199. ifneq ($(wildcard $(PACKAGEDIR_LIBNDSFPC)/units_bs/$(SOURCESUFFIX)),)
  4200. UNITDIR_FPMAKE_LIBNDSFPC=$(PACKAGEDIR_LIBNDSFPC)/units_bs/$(SOURCESUFFIX)
  4201. else
  4202. UNITDIR_FPMAKE_LIBNDSFPC=$(PACKAGEDIR_LIBNDSFPC)
  4203. endif
  4204. endif
  4205. ifdef CHECKDEPEND
  4206. $(PACKAGEDIR_LIBNDSFPC)/$(FPCMADE):
  4207. $(MAKE) -C $(PACKAGEDIR_LIBNDSFPC) $(FPCMADE)
  4208. override ALLDEPENDENCIES+=$(PACKAGEDIR_LIBNDSFPC)/$(FPCMADE)
  4209. endif
  4210. else
  4211. PACKAGEDIR_LIBNDSFPC=
  4212. UNITDIR_LIBNDSFPC:=$(subst /Package.fpc,,$(strip $(wildcard $(addsuffix /libndsfpc/Package.fpc,$(UNITSDIR)))))
  4213. ifneq ($(UNITDIR_LIBNDSFPC),)
  4214. UNITDIR_LIBNDSFPC:=$(firstword $(UNITDIR_LIBNDSFPC))
  4215. else
  4216. UNITDIR_LIBNDSFPC=
  4217. endif
  4218. endif
  4219. ifdef UNITDIR_LIBNDSFPC
  4220. override COMPILER_UNITDIR+=$(UNITDIR_LIBNDSFPC)
  4221. endif
  4222. ifdef UNITDIR_FPMAKE_LIBNDSFPC
  4223. override COMPILER_FPMAKE_UNITDIR+=$(UNITDIR_FPMAKE_LIBNDSFPC)
  4224. endif
  4225. endif
  4226. ifndef NOCPUDEF
  4227. override FPCOPTDEF=$(ARCH)
  4228. endif
  4229. ifneq ($(OS_TARGET),$(OS_SOURCE))
  4230. override FPCOPT+=-T$(OS_TARGET)
  4231. endif
  4232. ifneq ($(CPU_TARGET),$(CPU_SOURCE))
  4233. override FPCOPT+=-P$(ARCH)
  4234. endif
  4235. ifeq ($(OS_SOURCE),openbsd)
  4236. override FPCOPT+=-FD$(NEW_BINUTILS_PATH)
  4237. override FPCMAKEOPT+=-FD$(NEW_BINUTILS_PATH)
  4238. override FPMAKE_BUILD_OPT+=-FD$(NEW_BINUTILS_PATH)
  4239. endif
  4240. ifndef CROSSBOOTSTRAP
  4241. ifneq ($(BINUTILSPREFIX),)
  4242. override FPCOPT+=-XP$(BINUTILSPREFIX)
  4243. ifneq ($(RLINKPATH),)
  4244. override FPCOPT+=-Xr$(RLINKPATH)
  4245. endif
  4246. endif
  4247. endif
  4248. ifndef CROSSCOMPILE
  4249. ifneq ($(BINUTILSPREFIX),)
  4250. override FPCMAKEOPT+=-XP$(BINUTILSPREFIX)
  4251. override FPMAKE_BUILD_OPT+=-XP$(BINUTILSPREFIX)
  4252. endif
  4253. endif
  4254. ifdef UNITDIR
  4255. override FPCOPT+=$(addprefix -Fu,$(UNITDIR))
  4256. endif
  4257. ifdef LIBDIR
  4258. override FPCOPT+=$(addprefix -Fl,$(LIBDIR))
  4259. endif
  4260. ifdef OBJDIR
  4261. override FPCOPT+=$(addprefix -Fo,$(OBJDIR))
  4262. endif
  4263. ifdef INCDIR
  4264. override FPCOPT+=$(addprefix -Fi,$(INCDIR))
  4265. endif
  4266. ifdef LINKSMART
  4267. override FPCOPT+=-XX
  4268. endif
  4269. ifdef CREATESMART
  4270. override FPCOPT+=-CX
  4271. endif
  4272. ifdef DEBUG
  4273. override FPCOPT+=-gl
  4274. override FPCOPTDEF+=DEBUG
  4275. endif
  4276. ifdef RELEASE
  4277. FPCCPUOPT:=-O2
  4278. override FPCOPT+=-Ur -Xs $(FPCCPUOPT) -n
  4279. override FPCOPTDEF+=RELEASE
  4280. endif
  4281. ifdef STRIP
  4282. override FPCOPT+=-Xs
  4283. endif
  4284. ifdef OPTIMIZE
  4285. override FPCOPT+=-O2
  4286. endif
  4287. ifdef VERBOSE
  4288. override FPCOPT+=-vwni
  4289. endif
  4290. ifdef COMPILER_OPTIONS
  4291. override FPCOPT+=$(COMPILER_OPTIONS)
  4292. endif
  4293. ifdef COMPILER_UNITDIR
  4294. override FPCOPT+=$(addprefix -Fu,$(COMPILER_UNITDIR))
  4295. endif
  4296. ifdef COMPILER_LIBRARYDIR
  4297. override FPCOPT+=$(addprefix -Fl,$(COMPILER_LIBRARYDIR))
  4298. endif
  4299. ifdef COMPILER_OBJECTDIR
  4300. override FPCOPT+=$(addprefix -Fo,$(COMPILER_OBJECTDIR))
  4301. endif
  4302. ifdef COMPILER_INCLUDEDIR
  4303. override FPCOPT+=$(addprefix -Fi,$(COMPILER_INCLUDEDIR))
  4304. endif
  4305. ifdef CROSSBINDIR
  4306. override FPCOPT+=-FD$(CROSSBINDIR)
  4307. endif
  4308. ifdef COMPILER_TARGETDIR
  4309. override FPCOPT+=-FE$(COMPILER_TARGETDIR)
  4310. ifeq ($(COMPILER_TARGETDIR),.)
  4311. override TARGETDIRPREFIX=
  4312. else
  4313. override TARGETDIRPREFIX=$(COMPILER_TARGETDIR)/
  4314. endif
  4315. endif
  4316. ifdef COMPILER_UNITTARGETDIR
  4317. override FPCOPT+=-FU$(COMPILER_UNITTARGETDIR)
  4318. ifeq ($(COMPILER_UNITTARGETDIR),.)
  4319. override UNITTARGETDIRPREFIX=
  4320. else
  4321. override UNITTARGETDIRPREFIX=$(COMPILER_UNITTARGETDIR)/
  4322. endif
  4323. else
  4324. ifdef COMPILER_TARGETDIR
  4325. override COMPILER_UNITTARGETDIR=$(COMPILER_TARGETDIR)
  4326. override UNITTARGETDIRPREFIX=$(TARGETDIRPREFIX)
  4327. endif
  4328. endif
  4329. ifdef CREATESHARED
  4330. override FPCOPT+=-Cg
  4331. endif
  4332. ifneq ($(findstring $(OS_TARGET),dragonfly freebsd openbsd netbsd linux solaris),)
  4333. ifneq ($(findstring $(CPU_TARGET),x86_64 mips mipsel riscv64),)
  4334. override FPCOPT+=-Cg
  4335. endif
  4336. endif
  4337. ifdef LINKSHARED
  4338. endif
  4339. ifdef GCCLIBDIR
  4340. override FPCOPT+=-Fl$(GCCLIBDIR)
  4341. ifdef FPCMAKEGCCLIBDIR
  4342. override FPCMAKEOPT+=-Fl$(FPCMAKEGCCLIBDIR)
  4343. else
  4344. override FPCMAKEOPT+=-Fl$(GCCLIBDIR)
  4345. endif
  4346. endif
  4347. ifdef OTHERLIBDIR
  4348. override FPCOPT+=$(addprefix -Fl,$(OTHERLIBDIR))
  4349. endif
  4350. ifdef OPT
  4351. override FPCOPT+=$(OPT)
  4352. endif
  4353. ifdef FPMAKEBUILDOPT
  4354. override FPMAKE_BUILD_OPT+=$(FPMAKEBUILDOPT)
  4355. endif
  4356. ifdef FPCOPTDEF
  4357. override FPCOPT+=$(addprefix -d,$(FPCOPTDEF))
  4358. endif
  4359. ifdef CFGFILE
  4360. override FPCOPT+=@$(CFGFILE)
  4361. endif
  4362. ifdef USEENV
  4363. override FPCEXTCMD:=$(FPCOPT)
  4364. override FPCOPT:=!FPCEXTCMD
  4365. export FPCEXTCMD
  4366. endif
  4367. override AFULL_TARGET=$(CPU_TARGET)-$(OS_TARGET)
  4368. override AFULL_SOURCE=$(CPU_SOURCE)-$(OS_SOURCE)
  4369. ifneq ($(AFULL_TARGET),$(AFULL_SOURCE))
  4370. override ACROSSCOMPILE=1
  4371. endif
  4372. ifdef ACROSSCOMPILE
  4373. override FPCOPT+=$(CROSSOPT)
  4374. endif
  4375. override COMPILER:=$(strip $(FPC) $(FPCOPT))
  4376. ifneq (,$(findstring -sh ,$(COMPILER)))
  4377. UseEXECPPAS=1
  4378. endif
  4379. ifneq (,$(findstring -s ,$(COMPILER)))
  4380. ifeq ($(FULL_SOURCE),$(FULL_TARGET))
  4381. UseEXECPPAS=1
  4382. endif
  4383. endif
  4384. ifneq ($(UseEXECPPAS),1)
  4385. EXECPPAS=
  4386. else
  4387. ifdef RUNBATCH
  4388. EXECPPAS:=@$(RUNBATCH) $(PPAS)
  4389. else
  4390. EXECPPAS:=@$(PPAS)
  4391. endif
  4392. endif
  4393. .PHONY: fpc_exes
  4394. ifndef CROSSINSTALL
  4395. ifneq ($(TARGET_PROGRAMS),)
  4396. override EXEFILES=$(addsuffix $(EXEEXT),$(TARGET_PROGRAMS))
  4397. override EXEOFILES:=$(addsuffix $(OEXT),$(TARGET_PROGRAMS)) $(addsuffix $(LTOEXT),$(TARGET_PROGRAMS))$(addprefix $(STATICLIBPREFIX),$(addsuffix $(STATICLIBEXT),$(TARGET_PROGRAMS))) $(addprefix $(IMPORTLIBPREFIX),$(addsuffix $(STATICLIBEXT),$(TARGET_PROGRAMS)))
  4398. override EXEDBGFILES:=$(addsuffix $(EXEDBGEXT),$(TARGET_PROGRAMS))
  4399. override ALLTARGET+=fpc_exes
  4400. override INSTALLEXEFILES+=$(EXEFILES)
  4401. override CLEANEXEFILES+=$(EXEFILES) $(EXEOFILES)
  4402. override CLEANEXEDBGFILES+=$(EXEDBGFILES)
  4403. ifeq ($(OS_TARGET),os2)
  4404. override CLEANEXEFILES+=$(addsuffix $(AOUTEXT),$(TARGET_PROGRAMS))
  4405. endif
  4406. ifeq ($(OS_TARGET),emx)
  4407. override CLEANEXEFILES+=$(addsuffix $(AOUTEXT),$(TARGET_PROGRAMS))
  4408. endif
  4409. endif
  4410. endif
  4411. fpc_exes: $(COMPILER_TARGETDIR) $(COMPILER_UNITTARGETDIR) $(EXEFILES)
  4412. ifdef TARGET_RSTS
  4413. override RSTFILES=$(addsuffix $(RSTEXT),$(TARGET_RSTS))
  4414. override CLEANRSTFILES+=$(RSTFILES)
  4415. endif
  4416. .PHONY: fpc_all fpc_smart fpc_debug fpc_release fpc_shared
  4417. $(FPCMADE): $(ALLDEPENDENCIES) $(ALLTARGET)
  4418. @$(ECHOREDIR) Compiled > $(FPCMADE)
  4419. fpc_all: $(FPCMADE)
  4420. fpc_smart:
  4421. $(MAKE) all LINKSMART=1 CREATESMART=1
  4422. fpc_debug:
  4423. $(MAKE) all DEBUG=1
  4424. fpc_release:
  4425. $(MAKE) all RELEASE=1
  4426. .SUFFIXES: $(EXEEXT) $(PPUEXT) $(OEXT) $(LTOEXT) .pas .lpr .dpr .pp .rc .res
  4427. $(COMPILER_UNITTARGETDIR):
  4428. $(MKDIRTREE) $(COMPILER_UNITTARGETDIR)
  4429. $(COMPILER_TARGETDIR):
  4430. $(MKDIRTREE) $(COMPILER_TARGETDIR)
  4431. %$(PPUEXT): %.pp
  4432. $(COMPILER) $<
  4433. $(EXECPPAS)
  4434. %$(PPUEXT): %.pas
  4435. $(COMPILER) $<
  4436. $(EXECPPAS)
  4437. %$(EXEEXT): %.pp
  4438. $(COMPILER) $<
  4439. $(EXECPPAS)
  4440. %$(EXEEXT): %.pas
  4441. $(COMPILER) $<
  4442. $(EXECPPAS)
  4443. %$(EXEEXT): %.lpr
  4444. $(COMPILER) $<
  4445. $(EXECPPAS)
  4446. %$(EXEEXT): %.dpr
  4447. $(COMPILER) $<
  4448. $(EXECPPAS)
  4449. %.res: %.rc
  4450. windres -i $< -o $@
  4451. vpath %.pp $(COMPILER_SOURCEDIR) $(COMPILER_INCLUDEDIR)
  4452. vpath %.pas $(COMPILER_SOURCEDIR) $(COMPILER_INCLUDEDIR)
  4453. vpath %.lpr $(COMPILER_SOURCEDIR) $(COMPILER_INCLUDEDIR)
  4454. vpath %.dpr $(COMPILER_SOURCEDIR) $(COMPILER_INCLUDEDIR)
  4455. vpath %.inc $(COMPILER_INCLUDEDIR)
  4456. vpath %$(OEXT) $(COMPILER_UNITTARGETDIR)
  4457. vpath %$(LTOEXT) $(COMPILER_UNITTARGETDIR)
  4458. vpath %$(PPUEXT) $(COMPILER_UNITTARGETDIR)
  4459. .PHONY: fpc_shared
  4460. override INSTALLTARGET+=fpc_shared_install
  4461. ifndef SHARED_LIBVERSION
  4462. SHARED_LIBVERSION=$(FPC_VERSION)
  4463. endif
  4464. ifndef SHARED_LIBNAME
  4465. SHARED_LIBNAME=$(PACKAGE_NAME)
  4466. endif
  4467. ifndef SHARED_FULLNAME
  4468. SHARED_FULLNAME=$(SHAREDLIBPREFIX)$(SHARED_LIBNAME)-$(SHARED_LIBVERSION)$(SHAREDLIBEXT)
  4469. endif
  4470. ifndef SHARED_LIBUNITS
  4471. SHARED_LIBUNITS:=$(TARGET_UNITS) $(TARGET_IMPLICITUNITS)
  4472. override SHARED_LIBUNITS:=$(filter-out $(INSTALL_BUILDUNIT),$(SHARED_LIBUNITS))
  4473. endif
  4474. fpc_shared:
  4475. ifdef HASSHAREDLIB
  4476. $(MAKE) all CREATESHARED=1 LINKSHARED=1 CREATESMART=1
  4477. ifneq ($(SHARED_BUILD),n)
  4478. $(PPUMOVE) -q $(SHARED_LIBUNITS) -i$(COMPILER_UNITTARGETDIR) -o$(SHARED_FULLNAME) -d$(COMPILER_UNITTARGETDIR) -P$(BINUTILSPREFIX)
  4479. endif
  4480. else
  4481. @$(ECHO) Shared Libraries not supported
  4482. endif
  4483. fpc_shared_install:
  4484. ifneq ($(SHARED_BUILD),n)
  4485. ifneq ($(SHARED_LIBUNITS),)
  4486. ifneq ($(wildcard $(COMPILER_UNITTARGETDIR)/$(SHARED_FULLNAME)),)
  4487. $(INSTALL) $(COMPILER_UNITTARGETDIR)/$(SHARED_FULLNAME) $(INSTALL_SHAREDDIR)
  4488. endif
  4489. endif
  4490. endif
  4491. .PHONY: fpc_install fpc_sourceinstall fpc_exampleinstall
  4492. ifdef INSTALL_UNITS
  4493. override INSTALLPPUFILES+=$(addsuffix $(PPUEXT),$(INSTALL_UNITS))
  4494. endif
  4495. ifdef INSTALL_BUILDUNIT
  4496. override INSTALLPPUFILES:=$(filter-out $(INSTALL_BUILDUNIT)$(PPUEXT),$(INSTALLPPUFILES))
  4497. endif
  4498. ifdef INSTALLPPUFILES
  4499. ifneq ($(IMPORTLIBPREFIX)-$(STATICLIBEXT),$(STATICLIBPREFIX)-$(STATICLIBEXT))
  4500. override INSTALLPPULINKFILES:=$(subst $(PPUEXT),$(OEXT),$(INSTALLPPUFILES)) $(subst $(PPUEXT),$(LTOEXT),$(INSTALLPPUFILES)) $(addprefix $(STATICLIBPREFIX),$(subst $(PPUEXT),$(STATICLIBEXT),$(INSTALLPPUFILES))) $(addprefix $(IMPORTLIBPREFIX),$(subst $(PPUEXT),$(STATICLIBEXT),$(INSTALLPPUFILES)))
  4501. else
  4502. override INSTALLPPULINKFILES:=$(subst $(PPUEXT),$(OEXT),$(INSTALLPPUFILES)) $(subst $(PPUEXT),$(LTOEXT),$(INSTALLPPUFILES)) $(addprefix $(STATICLIBPREFIX),$(subst $(PPUEXT),$(STATICLIBEXT),$(INSTALLPPUFILES)))
  4503. endif
  4504. ifneq ($(UNITTARGETDIRPREFIX),)
  4505. override INSTALLPPUFILENAMES:=$(notdir $(INSTALLPPUFILES))
  4506. override INSTALLPPULINKFILENAMES:=$(notdir $(INSTALLPPULINKFILES))
  4507. override INSTALLPPUFILES=$(addprefix $(UNITTARGETDIRPREFIX),$(INSTALLPPUFILENAMES))
  4508. override INSTALLPPULINKFILES=$(wildcard $(addprefix $(UNITTARGETDIRPREFIX),$(INSTALLPPULINKFILENAMES)))
  4509. endif
  4510. override INSTALL_CREATEPACKAGEFPC=1
  4511. endif
  4512. ifdef INSTALLEXEFILES
  4513. ifneq ($(TARGETDIRPREFIX),)
  4514. override INSTALLEXEFILES:=$(addprefix $(TARGETDIRPREFIX),$(notdir $(INSTALLEXEFILES)))
  4515. endif
  4516. endif
  4517. fpc_install: all $(INSTALLTARGET)
  4518. ifdef INSTALLEXEFILES
  4519. $(MKDIR) $(INSTALL_BINDIR)
  4520. $(INSTALLEXE) $(INSTALLEXEFILES) $(INSTALL_BINDIR)
  4521. endif
  4522. ifdef INSTALL_CREATEPACKAGEFPC
  4523. ifdef FPCMAKE
  4524. ifdef PACKAGE_VERSION
  4525. ifneq ($(wildcard Makefile.fpc),)
  4526. $(FPCMAKE) -p -T$(CPU_TARGET)-$(OS_TARGET) Makefile.fpc
  4527. $(MKDIR) $(INSTALL_UNITDIR)
  4528. $(INSTALL) Package.fpc $(INSTALL_UNITDIR)
  4529. endif
  4530. endif
  4531. endif
  4532. endif
  4533. ifdef INSTALLPPUFILES
  4534. $(MKDIR) $(INSTALL_UNITDIR)
  4535. $(INSTALL) $(INSTALLPPUFILES) $(INSTALL_UNITDIR)
  4536. ifneq ($(INSTALLPPULINKFILES),)
  4537. $(INSTALL) $(INSTALLPPULINKFILES) $(INSTALL_UNITDIR)
  4538. endif
  4539. ifneq ($(wildcard $(LIB_FULLNAME)),)
  4540. $(MKDIR) $(INSTALL_LIBDIR)
  4541. $(INSTALL) $(LIB_FULLNAME) $(INSTALL_LIBDIR)
  4542. ifdef inUnix
  4543. ln -sf $(LIB_FULLNAME) $(INSTALL_LIBDIR)/$(LIB_NAME)
  4544. endif
  4545. endif
  4546. endif
  4547. ifdef INSTALL_FILES
  4548. $(MKDIR) $(INSTALL_DATADIR)
  4549. $(INSTALL) $(INSTALL_FILES) $(INSTALL_DATADIR)
  4550. endif
  4551. fpc_sourceinstall: distclean
  4552. $(MKDIR) $(INSTALL_SOURCEDIR)
  4553. $(COPYTREE) $(BASEDIR)/* $(INSTALL_SOURCEDIR)
  4554. fpc_exampleinstall: $(EXAMPLEINSTALLTARGET) $(addsuffix _distclean,$(TARGET_EXAMPLEDIRS))
  4555. ifdef HASEXAMPLES
  4556. $(MKDIR) $(INSTALL_EXAMPLEDIR)
  4557. endif
  4558. ifdef EXAMPLESOURCEFILES
  4559. $(COPY) $(EXAMPLESOURCEFILES) $(INSTALL_EXAMPLEDIR)
  4560. endif
  4561. ifdef TARGET_EXAMPLEDIRS
  4562. $(COPYTREE) $(addsuffix /*,$(TARGET_EXAMPLEDIRS)) $(INSTALL_EXAMPLEDIR)
  4563. endif
  4564. .PHONY: fpc_clean fpc_cleanall fpc_distclean
  4565. ifdef EXEFILES
  4566. override CLEANEXEFILES:=$(addprefix $(TARGETDIRPREFIX),$(CLEANEXEFILES))
  4567. override CLEANEXEDBGFILES:=$(addprefix $(TARGETDIRPREFIX),$(CLEANEXEDBGFILES))
  4568. endif
  4569. ifdef CLEAN_PROGRAMS
  4570. override CLEANEXEFILES+=$(addprefix $(TARGETDIRPREFIX),$(addsuffix $(EXEEXT), $(CLEAN_PROGRAMS)))
  4571. override CLEANEXEDBGFILES+=$(addprefix $(TARGETDIRPREFIX),$(addsuffix $(EXEDBGEXT), $(CLEAN_PROGRAMS)))
  4572. endif
  4573. ifdef CLEAN_UNITS
  4574. override CLEANPPUFILES+=$(addsuffix $(PPUEXT),$(CLEAN_UNITS))
  4575. endif
  4576. ifdef CLEANPPUFILES
  4577. override CLEANPPULINKFILES:=$(subst $(PPUEXT),$(OEXT),$(CLEANPPUFILES)) $(subst $(PPUEXT),$(LTOEXT),$(CLEANPPUFILES)) $(addprefix $(STATICLIBPREFIX),$(subst $(PPUEXT),$(STATICLIBEXT),$(CLEANPPUFILES))) $(addprefix $(IMPORTLIBPREFIX),$(subst $(PPUEXT),$(STATICLIBEXT),$(CLEANPPUFILES)))
  4578. ifdef DEBUGSYMEXT
  4579. override CLEANPPULINKFILES+=$(subst $(PPUEXT),$(DEBUGSYMEXT),$(CLEANPPUFILES))
  4580. endif
  4581. override CLEANPPUFILENAMES:=$(CLEANPPUFILES)
  4582. override CLEANPPUFILES=$(addprefix $(UNITTARGETDIRPREFIX),$(CLEANPPUFILENAMES))
  4583. override CLEANPPULINKFILENAMES:=$(CLEANPPULINKFILES)
  4584. override CLEANPPULINKFILES=$(wildcard $(addprefix $(UNITTARGETDIRPREFIX),$(CLEANPPULINKFILENAMES)))
  4585. endif
  4586. fpc_clean: $(CLEANTARGET)
  4587. ifdef CLEANEXEFILES
  4588. -$(DEL) $(CLEANEXEFILES)
  4589. endif
  4590. ifdef CLEANEXEDBGFILES
  4591. -$(DELTREE) $(CLEANEXEDBGFILES)
  4592. endif
  4593. ifdef CLEANPPUFILES
  4594. -$(DEL) $(CLEANPPUFILES)
  4595. endif
  4596. ifneq ($(CLEANPPULINKFILES),)
  4597. -$(DEL) $(CLEANPPULINKFILES)
  4598. endif
  4599. ifdef CLEANRSTFILES
  4600. -$(DEL) $(addprefix $(UNITTARGETDIRPREFIX),$(CLEANRSTFILES))
  4601. endif
  4602. ifdef CLEAN_FILES
  4603. -$(DEL) $(CLEAN_FILES)
  4604. endif
  4605. ifdef LIB_NAME
  4606. -$(DEL) $(LIB_NAME) $(LIB_FULLNAME)
  4607. endif
  4608. -$(DEL) $(FPCMADE) *$(FULL_TARGET).fpm Package.fpc *$(ASMEXT)
  4609. -$(DEL) $(FPCEXTFILE) $(REDIRFILE) script*.res link*.res *_script.res *_link.res
  4610. -$(DEL) $(PPAS) *_ppas$(BATCHEXT) ppas$(BATCHEXT) ppaslink$(BATCHEXT)
  4611. fpc_cleanall: $(CLEANTARGET)
  4612. ifdef CLEANEXEFILES
  4613. -$(DEL) $(CLEANEXEFILES)
  4614. endif
  4615. ifdef COMPILER_UNITTARGETDIR
  4616. ifdef CLEANPPUFILES
  4617. -$(DEL) $(CLEANPPUFILES)
  4618. endif
  4619. ifneq ($(CLEANPPULINKFILES),)
  4620. -$(DEL) $(CLEANPPULINKFILES)
  4621. endif
  4622. ifdef CLEANRSTFILES
  4623. -$(DEL) $(addprefix $(UNITTARGETDIRPREFIX),$(CLEANRSTFILES))
  4624. endif
  4625. endif
  4626. ifdef CLEAN_FILES
  4627. -$(DEL) $(CLEAN_FILES)
  4628. endif
  4629. -$(DELTREE) units
  4630. -$(DELTREE) bin
  4631. -$(DEL) *$(OEXT) *$(LTOEXT) *$(PPUEXT) *$(RSTEXT) *$(ASMEXT) *$(STATICLIBEXT) *$(SHAREDLIBEXT) *$(PPLEXT)
  4632. ifneq ($(PPUEXT),.ppu)
  4633. -$(DEL) *.o *.ppu *.a
  4634. endif
  4635. -$(DELTREE) *$(SMARTEXT)
  4636. -$(DEL) fpcmade.* Package.fpc *.fpm
  4637. -$(DEL) $(FPCEXTFILE) $(REDIRFILE) script*.res link*.res *_script.res *_link.res
  4638. -$(DEL) $(PPAS) *_ppas$(BATCHEXT) ppas$(BATCHEXT) ppaslink$(BATCHEXT)
  4639. ifdef AOUTEXT
  4640. -$(DEL) *$(AOUTEXT)
  4641. endif
  4642. ifdef DEBUGSYMEXT
  4643. -$(DEL) *$(DEBUGSYMEXT)
  4644. endif
  4645. ifdef LOCALFPMAKEBIN
  4646. -$(DEL) $(LOCALFPMAKEBIN)
  4647. -$(DEL) $(FPMAKEBINOBJ)
  4648. endif
  4649. fpc_distclean: cleanall
  4650. .PHONY: fpc_baseinfo
  4651. override INFORULES+=fpc_baseinfo
  4652. fpc_baseinfo:
  4653. @$(ECHO)
  4654. @$(ECHO) == Package info ==
  4655. @$(ECHO) Package Name..... $(PACKAGE_NAME)
  4656. @$(ECHO) Package Version.. $(PACKAGE_VERSION)
  4657. @$(ECHO)
  4658. @$(ECHO) == Configuration info ==
  4659. @$(ECHO)
  4660. @$(ECHO) FPC.......... $(FPC)
  4661. @$(ECHO) FPC Version.. $(FPC_VERSION)
  4662. @$(ECHO) Source CPU... $(CPU_SOURCE)
  4663. @$(ECHO) Target CPU... $(CPU_TARGET)
  4664. @$(ECHO) Source OS.... $(OS_SOURCE)
  4665. @$(ECHO) Target OS.... $(OS_TARGET)
  4666. @$(ECHO) Full Source.. $(FULL_SOURCE)
  4667. @$(ECHO) Full Target.. $(FULL_TARGET)
  4668. @$(ECHO) SourceSuffix. $(SOURCESUFFIX)
  4669. @$(ECHO) TargetSuffix. $(TARGETSUFFIX)
  4670. @$(ECHO) FPC fpmake... $(FPCFPMAKE)
  4671. @$(ECHO)
  4672. @$(ECHO) == Directory info ==
  4673. @$(ECHO)
  4674. @$(ECHO) Required pkgs... $(REQUIRE_PACKAGES)
  4675. @$(ECHO)
  4676. @$(ECHO) Basedir......... $(BASEDIR)
  4677. @$(ECHO) FPCDir.......... $(FPCDIR)
  4678. @$(ECHO) CrossBinDir..... $(CROSSBINDIR)
  4679. @$(ECHO) UnitsDir........ $(UNITSDIR)
  4680. @$(ECHO) PackagesDir..... $(PACKAGESDIR)
  4681. @$(ECHO)
  4682. @$(ECHO) GCC library..... $(GCCLIBDIR)
  4683. @$(ECHO) Other library... $(OTHERLIBDIR)
  4684. @$(ECHO)
  4685. @$(ECHO) == Tools info ==
  4686. @$(ECHO)
  4687. @$(ECHO) As........ $(AS)
  4688. @$(ECHO) Ld........ $(LD)
  4689. @$(ECHO) Ar........ $(AR)
  4690. @$(ECHO) Rc........ $(RC)
  4691. @$(ECHO)
  4692. @$(ECHO) Mv........ $(MVPROG)
  4693. @$(ECHO) Cp........ $(CPPROG)
  4694. @$(ECHO) Rm........ $(RMPROG)
  4695. @$(ECHO) GInstall.. $(GINSTALL)
  4696. @$(ECHO) Echo...... $(ECHO)
  4697. @$(ECHO) Shell..... $(SHELL)
  4698. @$(ECHO) Date...... $(DATE)
  4699. @$(ECHO) FPCMake... $(FPCMAKE)
  4700. @$(ECHO) PPUMove... $(PPUMOVE)
  4701. @$(ECHO) Zip....... $(ZIPPROG)
  4702. @$(ECHO)
  4703. @$(ECHO) == Object info ==
  4704. @$(ECHO)
  4705. @$(ECHO) Target Loaders........ $(TARGET_LOADERS)
  4706. @$(ECHO) Target Units.......... $(TARGET_UNITS)
  4707. @$(ECHO) Target Implicit Units. $(TARGET_IMPLICITUNITS)
  4708. @$(ECHO) Target Programs....... $(TARGET_PROGRAMS)
  4709. @$(ECHO) Target Dirs........... $(TARGET_DIRS)
  4710. @$(ECHO) Target Examples....... $(TARGET_EXAMPLES)
  4711. @$(ECHO) Target ExampleDirs.... $(TARGET_EXAMPLEDIRS)
  4712. @$(ECHO)
  4713. @$(ECHO) Clean Units......... $(CLEAN_UNITS)
  4714. @$(ECHO) Clean Files......... $(CLEAN_FILES)
  4715. @$(ECHO)
  4716. @$(ECHO) Install Units....... $(INSTALL_UNITS)
  4717. @$(ECHO) Install Files....... $(INSTALL_FILES)
  4718. @$(ECHO)
  4719. @$(ECHO) == Install info ==
  4720. @$(ECHO)
  4721. @$(ECHO) DateStr.............. $(DATESTR)
  4722. @$(ECHO) ZipName.............. $(ZIPNAME)
  4723. @$(ECHO) ZipPrefix............ $(ZIPPREFIX)
  4724. @$(ECHO) ZipCrossPrefix....... $(ZIPCROSSPREFIX)
  4725. @$(ECHO) ZipSuffix............ $(ZIPSUFFIX)
  4726. @$(ECHO) FullZipName.......... $(FULLZIPNAME)
  4727. @$(ECHO) Install FPC Package.. $(INSTALL_FPCPACKAGE)
  4728. @$(ECHO)
  4729. @$(ECHO) Install base dir..... $(INSTALL_BASEDIR)
  4730. @$(ECHO) Install binary dir... $(INSTALL_BINDIR)
  4731. @$(ECHO) Install library dir.. $(INSTALL_LIBDIR)
  4732. @$(ECHO) Install units dir.... $(INSTALL_UNITDIR)
  4733. @$(ECHO) Install source dir... $(INSTALL_SOURCEDIR)
  4734. @$(ECHO) Install doc dir...... $(INSTALL_DOCDIR)
  4735. @$(ECHO) Install example dir.. $(INSTALL_EXAMPLEDIR)
  4736. @$(ECHO) Install data dir..... $(INSTALL_DATADIR)
  4737. @$(ECHO)
  4738. @$(ECHO) Dist destination dir. $(DIST_DESTDIR)
  4739. @$(ECHO) Dist zip name........ $(DIST_ZIPNAME)
  4740. @$(ECHO)
  4741. .PHONY: fpc_info
  4742. fpc_info: $(INFORULES)
  4743. .PHONY: fpc_makefile fpc_makefiles fpc_makefile_sub1 fpc_makefile_sub2 \
  4744. fpc_makefile_dirs
  4745. fpc_makefile:
  4746. $(FPCMAKE) -w -T$(OS_TARGET) Makefile.fpc
  4747. fpc_makefile_sub1:
  4748. ifdef TARGET_DIRS
  4749. $(FPCMAKE) -w -T$(OS_TARGET) $(addsuffix /Makefile.fpc,$(TARGET_DIRS))
  4750. endif
  4751. ifdef TARGET_EXAMPLEDIRS
  4752. $(FPCMAKE) -w -T$(OS_TARGET) $(addsuffix /Makefile.fpc,$(TARGET_EXAMPLEDIRS))
  4753. endif
  4754. fpc_makefile_sub2: $(addsuffix _makefile_dirs,$(TARGET_DIRS) $(TARGET_EXAMPLEDIRS))
  4755. fpc_makefile_dirs: fpc_makefile_sub1 fpc_makefile_sub2
  4756. fpc_makefiles: fpc_makefile fpc_makefile_dirs
  4757. ifndef BIN2S
  4758. BIN2S:=$(strip $(wildcard $(addsuffix /bin2s$(SRCEXEEXT),$(SEARCHPATH))))
  4759. ifeq ($(BIN2S),)
  4760. BIN2S= __missing_command_BIN2S
  4761. else
  4762. BIN2S:=$(firstword $(BIN2S))
  4763. endif
  4764. endif
  4765. export BIN2S
  4766. ifndef MMUTIL
  4767. MMUTIL:=$(strip $(wildcard $(addsuffix /mmutil$(SRCEXEEXT),$(SEARCHPATH))))
  4768. ifeq ($(MMUTIL),)
  4769. MMUTIL= __missing_command_MMUTIL
  4770. else
  4771. MMUTIL:=$(firstword $(MMUTIL))
  4772. endif
  4773. endif
  4774. export MMUTIL
  4775. ifndef GRIT_FPC
  4776. GRIT_FPC:=$(strip $(wildcard $(addsuffix /grit_fpc$(SRCEXEEXT),$(SEARCHPATH))))
  4777. ifeq ($(GRIT_FPC),)
  4778. GRIT_FPC= __missing_command_GRIT_FPC
  4779. else
  4780. GRIT_FPC:=$(firstword $(GRIT_FPC))
  4781. endif
  4782. endif
  4783. export GRIT_FPC
  4784. ifndef RMDIR
  4785. RMDIR:=$(strip $(wildcard $(addsuffix /rmdir$(SRCEXEEXT),$(SEARCHPATH))))
  4786. ifeq ($(RMDIR),)
  4787. RMDIR= __missing_command_RMDIR
  4788. else
  4789. RMDIR:=$(firstword $(RMDIR))
  4790. endif
  4791. endif
  4792. export RMDIR
  4793. ifndef MV
  4794. MV:=$(strip $(wildcard $(addsuffix /mv$(SRCEXEEXT),$(SEARCHPATH))))
  4795. ifeq ($(MV),)
  4796. MV= __missing_command_MV
  4797. else
  4798. MV:=$(firstword $(MV))
  4799. endif
  4800. endif
  4801. export MV
  4802. ifndef NDSTOOL
  4803. NDSTOOL:=$(strip $(wildcard $(addsuffix /ndstool$(SRCEXEEXT),$(SEARCHPATH))))
  4804. ifeq ($(NDSTOOL),)
  4805. NDSTOOL= __missing_command_NDSTOOL
  4806. else
  4807. NDSTOOL:=$(firstword $(NDSTOOL))
  4808. endif
  4809. endif
  4810. export NDSTOOL
  4811. debug: fpc_debug
  4812. smart: fpc_smart
  4813. release: fpc_release
  4814. units: fpc_units
  4815. examples:
  4816. shared: fpc_shared
  4817. install: fpc_install
  4818. sourceinstall: fpc_sourceinstall
  4819. exampleinstall: fpc_exampleinstall
  4820. distinstall:
  4821. zipinstall:
  4822. zipsourceinstall:
  4823. zipexampleinstall:
  4824. zipdistinstall:
  4825. distclean: fpc_distclean
  4826. cleanall: fpc_cleanall
  4827. info: fpc_info
  4828. makefiles: fpc_makefiles
  4829. .PHONY: debug smart release units examples shared install sourceinstall exampleinstall distinstall zipinstall zipsourceinstall zipexampleinstall zipdistinstall distclean cleanall info makefiles
  4830. ifneq ($(wildcard fpcmake.loc),)
  4831. include fpcmake.loc
  4832. endif
  4833. .NOTPARALLEL:
  4834. clean: dir_delete fpc_clean fpc_cleanall
  4835. all: dir_make $(BIN_FILES) $(GFX_FILES) fpc_all
  4836. filesystem: all make_filesystem
  4837. dir_delete:
  4838. @$(DELTREE) $(CURDIR)/$(BUILD)
  4839. @$(DELTREE) $(CURDIR)/$(INC)
  4840. @$(DELTREE) $(CURDIR)/$(BIN)
  4841. dir_make:
  4842. ifneq ($(BUILD), $(CURDIR))
  4843. @$(MKDIR) $(BUILD)
  4844. endif
  4845. ifneq ($(INC), $(CURDIR))
  4846. @$(MKDIR) $(INC)
  4847. endif
  4848. ifneq ($(BIN), $(CURDIR))
  4849. @$(MKDIR) $(BIN)
  4850. endif
  4851. soundbank.bin.o : $(AUDIO_FILES)
  4852. @$(MMUTIL) $^ -d -o$(BUILD)/soundbank.bin -h$(BUILD)/soundbank.h
  4853. $(BIN2S) $(BUILD)/soundbank.bin > $(BUILD)/soundbank.bin.s
  4854. $(AS) -o $(BUILD)/soundbank.bin.o $(BUILD)/soundbank.bin.s
  4855. $(GFX_FILES): $(wildcard %.bmp %.png)
  4856. @echo 'Converting $(@) file to asm...'
  4857. $(GRIT_FPC) $(GFX)/$(@) -fp -fts -ff $(GFX)/$(basename $(@)).grit -o$(BUILD)/$(@)
  4858. @echo 'Assembling $(@).s file...'
  4859. $(AS) -o $(BUILD)/$(basename $(@)).o $(BUILD)/$(basename $(@)).s
  4860. $(MV) -f $(BUILD)/$(basename $(@)).inc $(INC)/$(basename $(@)).inc
  4861. @echo 'Done!'
  4862. $(BIN_FILES): $(wildcard %.*)
  4863. @echo 'Converting $(@) file to asm...'
  4864. @$(BIN2S) $(DATA)/$(@) > $(BUILD)/$(@).s
  4865. @echo 'Creating $(@).inc include file...'
  4866. @echo "var" > `(echo "$(INC)/"$(@F) | tr . .)`.inc
  4867. @echo " " `(echo $(@F) | sed -e 's/^\([0-9]\)/_\1/' | tr . _)`"_end: array [0..0] of cuint8; cvar; external;" >> `(echo "$(INC)/"$(@F) | tr . .)`.inc
  4868. @echo " " `(echo $(@F) | sed -e 's/^\([0-9]\)/_\1/' | tr . _)`": array [0..0] of cuint8; cvar; external;" >> `(echo "$(INC)/"$(@F) | tr . .)`.inc
  4869. @echo " " `(echo $(@F) | sed -e 's/^\([0-9]\)/_\1/' | tr . _)`_size": cuint32; cvar; external;" >> `(echo "$(INC)/"$(@F) | tr . .)`.inc
  4870. @echo 'Assembling $(@).s file...'
  4871. @$(AS) -o $(BUILD)/$(@).o $(BUILD)/$(@).s
  4872. @echo 'Done!'
  4873. data.gbfs.o:
  4874. @cd GBFS && gbfs ../$(BUILD)/data.gbfs $(GBFS_FILES)
  4875. $(BIN2S) $(BUILD)/data.gbfs > $(BUILD)/data.gbfs.s
  4876. $(AS) -o $(BUILD)/data.gbfs.o $(BUILD)/data.gbfs.s
  4877. make_filesystem:
  4878. @$(NDSTOOL) -c $(BIN)/$(TARGET_PROGRAMS).fs.nds -9 $(BIN)/$(TARGET_PROGRAMS).nef.bin -d $(CURDIR)/$(FILESYSTEM)
  4879. patch:
  4880. @dlditool r4tf.dldi $(TARGET_PROGRAMS).nds