Makefile 141 KB

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