Makefile 71 KB

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