Makefile 111 KB

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