Makefile 130 KB

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