Makefile 124 KB

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