Makefile 133 KB

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