Makefile 98 KB

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