Makefile 92 KB

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