Makefile 92 KB

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