Makefile 76 KB

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