Makefile 104 KB

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