Makefile 77 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140
  1. #
  2. # Don't edit, this file is generated by FPCMake Version 1.9.8 [2005/01/11]
  3. #
  4. default: all
  5. MAKEFILETARGETS=i386-linux i386-go32v2 i386-win32 i386-os2 i386-freebsd i386-beos i386-netbsd i386-sunos i386-qnx i386-netware i386-openbsd i386-wdosx i386-emx i386-watcom i386-netwlibc m68k-linux m68k-freebsd m68k-netbsd m68k-amiga m68k-atari m68k-openbsd m68k-palmos powerpc-linux powerpc-netbsd powerpc-macos powerpc-darwin powerpc-morphos sparc-linux sparc-netbsd sparc-sunos x86_64-linux x86_64-freebsd arm-linux
  6. BSDs = freebsd netbsd openbsd darwin
  7. UNIXs = linux $(BSDs) sunos 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/base $(FPCDIR)/packages/extra)
  233. override PACKAGE_NAME=utils
  234. override PACKAGE_VERSION=1.9.7
  235. ifeq ($(FULL_TARGET),i386-linux)
  236. override TARGET_DIRS+=fpcm tply h2pas fprcp dxegen fpdoc
  237. endif
  238. ifeq ($(FULL_TARGET),i386-go32v2)
  239. override TARGET_DIRS+=fpcm tply h2pas fprcp dxegen fpdoc
  240. endif
  241. ifeq ($(FULL_TARGET),i386-win32)
  242. override TARGET_DIRS+=fpcm tply h2pas fprcp dxegen fpdoc fpmc
  243. endif
  244. ifeq ($(FULL_TARGET),i386-os2)
  245. override TARGET_DIRS+=fpcm tply h2pas fprcp dxegen fpdoc
  246. endif
  247. ifeq ($(FULL_TARGET),i386-freebsd)
  248. override TARGET_DIRS+=fpcm tply h2pas fprcp dxegen fpdoc
  249. endif
  250. ifeq ($(FULL_TARGET),i386-beos)
  251. override TARGET_DIRS+=fpcm tply h2pas fprcp dxegen fpdoc
  252. endif
  253. ifeq ($(FULL_TARGET),i386-netbsd)
  254. override TARGET_DIRS+=fpcm tply h2pas fprcp dxegen fpdoc
  255. endif
  256. ifeq ($(FULL_TARGET),i386-sunos)
  257. override TARGET_DIRS+=fpcm tply h2pas fprcp dxegen fpdoc
  258. endif
  259. ifeq ($(FULL_TARGET),i386-qnx)
  260. override TARGET_DIRS+=fpcm tply h2pas fprcp dxegen fpdoc
  261. endif
  262. ifeq ($(FULL_TARGET),i386-netware)
  263. override TARGET_DIRS+=fpcm tply h2pas fprcp dxegen fpdoc
  264. endif
  265. ifeq ($(FULL_TARGET),i386-openbsd)
  266. override TARGET_DIRS+=fpcm tply h2pas fprcp dxegen fpdoc
  267. endif
  268. ifeq ($(FULL_TARGET),i386-wdosx)
  269. override TARGET_DIRS+=fpcm tply h2pas fprcp dxegen fpdoc
  270. endif
  271. ifeq ($(FULL_TARGET),i386-emx)
  272. override TARGET_DIRS+=fpcm tply h2pas fprcp dxegen fpdoc
  273. endif
  274. ifeq ($(FULL_TARGET),i386-watcom)
  275. override TARGET_DIRS+=fpcm tply h2pas fprcp dxegen fpdoc
  276. endif
  277. ifeq ($(FULL_TARGET),i386-netwlibc)
  278. override TARGET_DIRS+=fpcm tply h2pas fprcp dxegen fpdoc
  279. endif
  280. ifeq ($(FULL_TARGET),m68k-linux)
  281. override TARGET_DIRS+=fpcm tply h2pas fprcp dxegen fpdoc
  282. endif
  283. ifeq ($(FULL_TARGET),m68k-freebsd)
  284. override TARGET_DIRS+=fpcm tply h2pas fprcp dxegen fpdoc
  285. endif
  286. ifeq ($(FULL_TARGET),m68k-netbsd)
  287. override TARGET_DIRS+=fpcm tply h2pas fprcp dxegen fpdoc
  288. endif
  289. ifeq ($(FULL_TARGET),m68k-amiga)
  290. override TARGET_DIRS+=fpcm tply h2pas fprcp dxegen fpdoc
  291. endif
  292. ifeq ($(FULL_TARGET),m68k-atari)
  293. override TARGET_DIRS+=fpcm tply h2pas fprcp dxegen fpdoc
  294. endif
  295. ifeq ($(FULL_TARGET),m68k-openbsd)
  296. override TARGET_DIRS+=fpcm tply h2pas fprcp dxegen fpdoc
  297. endif
  298. ifeq ($(FULL_TARGET),m68k-palmos)
  299. override TARGET_DIRS+=fpcm tply h2pas fprcp dxegen fpdoc
  300. endif
  301. ifeq ($(FULL_TARGET),powerpc-linux)
  302. override TARGET_DIRS+=fpcm tply h2pas fprcp dxegen fpdoc
  303. endif
  304. ifeq ($(FULL_TARGET),powerpc-netbsd)
  305. override TARGET_DIRS+=fpcm tply h2pas fprcp dxegen fpdoc
  306. endif
  307. ifeq ($(FULL_TARGET),powerpc-macos)
  308. override TARGET_DIRS+=fpcm tply h2pas fprcp dxegen fpdoc
  309. endif
  310. ifeq ($(FULL_TARGET),powerpc-darwin)
  311. override TARGET_DIRS+=fpcm tply h2pas fprcp dxegen fpdoc
  312. endif
  313. ifeq ($(FULL_TARGET),powerpc-morphos)
  314. override TARGET_DIRS+=fpcm tply h2pas fprcp dxegen fpdoc
  315. endif
  316. ifeq ($(FULL_TARGET),sparc-linux)
  317. override TARGET_DIRS+=fpcm tply h2pas fprcp dxegen fpdoc
  318. endif
  319. ifeq ($(FULL_TARGET),sparc-netbsd)
  320. override TARGET_DIRS+=fpcm tply h2pas fprcp dxegen fpdoc
  321. endif
  322. ifeq ($(FULL_TARGET),sparc-sunos)
  323. override TARGET_DIRS+=fpcm tply h2pas fprcp dxegen fpdoc
  324. endif
  325. ifeq ($(FULL_TARGET),x86_64-linux)
  326. override TARGET_DIRS+=fpcm tply h2pas fprcp dxegen fpdoc
  327. endif
  328. ifeq ($(FULL_TARGET),x86_64-freebsd)
  329. override TARGET_DIRS+=fpcm tply h2pas fprcp dxegen fpdoc
  330. endif
  331. ifeq ($(FULL_TARGET),arm-linux)
  332. override TARGET_DIRS+=fpcm tply h2pas fprcp dxegen fpdoc
  333. endif
  334. ifeq ($(FULL_TARGET),i386-linux)
  335. override TARGET_PROGRAMS+=ppdep ptop rstconv data2inc delp bin2obj postw32
  336. endif
  337. ifeq ($(FULL_TARGET),i386-go32v2)
  338. override TARGET_PROGRAMS+=ppdep ptop rstconv data2inc delp bin2obj postw32
  339. endif
  340. ifeq ($(FULL_TARGET),i386-win32)
  341. override TARGET_PROGRAMS+=ppdep ptop rstconv data2inc delp bin2obj postw32
  342. endif
  343. ifeq ($(FULL_TARGET),i386-os2)
  344. override TARGET_PROGRAMS+=ppdep ptop rstconv data2inc delp bin2obj postw32
  345. endif
  346. ifeq ($(FULL_TARGET),i386-freebsd)
  347. override TARGET_PROGRAMS+=ppdep ptop rstconv data2inc delp bin2obj postw32
  348. endif
  349. ifeq ($(FULL_TARGET),i386-beos)
  350. override TARGET_PROGRAMS+=ppdep ptop rstconv data2inc delp bin2obj postw32
  351. endif
  352. ifeq ($(FULL_TARGET),i386-netbsd)
  353. override TARGET_PROGRAMS+=ppdep ptop rstconv data2inc delp bin2obj postw32
  354. endif
  355. ifeq ($(FULL_TARGET),i386-sunos)
  356. override TARGET_PROGRAMS+=ppdep ptop rstconv data2inc delp bin2obj postw32
  357. endif
  358. ifeq ($(FULL_TARGET),i386-qnx)
  359. override TARGET_PROGRAMS+=ppdep ptop rstconv data2inc delp bin2obj postw32
  360. endif
  361. ifeq ($(FULL_TARGET),i386-netware)
  362. override TARGET_PROGRAMS+=ppdep ptop rstconv data2inc delp bin2obj postw32
  363. endif
  364. ifeq ($(FULL_TARGET),i386-openbsd)
  365. override TARGET_PROGRAMS+=ppdep ptop rstconv data2inc delp bin2obj postw32
  366. endif
  367. ifeq ($(FULL_TARGET),i386-wdosx)
  368. override TARGET_PROGRAMS+=ppdep ptop rstconv data2inc delp bin2obj postw32
  369. endif
  370. ifeq ($(FULL_TARGET),i386-emx)
  371. override TARGET_PROGRAMS+=ppdep ptop rstconv data2inc delp bin2obj postw32
  372. endif
  373. ifeq ($(FULL_TARGET),i386-watcom)
  374. override TARGET_PROGRAMS+=ppdep ptop rstconv data2inc delp bin2obj postw32
  375. endif
  376. ifeq ($(FULL_TARGET),i386-netwlibc)
  377. override TARGET_PROGRAMS+=ppdep ptop rstconv data2inc delp bin2obj postw32
  378. endif
  379. ifeq ($(FULL_TARGET),m68k-linux)
  380. override TARGET_PROGRAMS+=ppdep ptop rstconv data2inc delp bin2obj postw32
  381. endif
  382. ifeq ($(FULL_TARGET),m68k-freebsd)
  383. override TARGET_PROGRAMS+=ppdep ptop rstconv data2inc delp bin2obj postw32
  384. endif
  385. ifeq ($(FULL_TARGET),m68k-netbsd)
  386. override TARGET_PROGRAMS+=ppdep ptop rstconv data2inc delp bin2obj postw32
  387. endif
  388. ifeq ($(FULL_TARGET),m68k-amiga)
  389. override TARGET_PROGRAMS+=ppdep ptop rstconv data2inc delp bin2obj postw32
  390. endif
  391. ifeq ($(FULL_TARGET),m68k-atari)
  392. override TARGET_PROGRAMS+=ppdep ptop rstconv data2inc delp bin2obj postw32
  393. endif
  394. ifeq ($(FULL_TARGET),m68k-openbsd)
  395. override TARGET_PROGRAMS+=ppdep ptop rstconv data2inc delp bin2obj postw32
  396. endif
  397. ifeq ($(FULL_TARGET),m68k-palmos)
  398. override TARGET_PROGRAMS+=ppdep ptop rstconv data2inc delp bin2obj postw32
  399. endif
  400. ifeq ($(FULL_TARGET),powerpc-linux)
  401. override TARGET_PROGRAMS+=ppdep ptop rstconv data2inc delp bin2obj postw32
  402. endif
  403. ifeq ($(FULL_TARGET),powerpc-netbsd)
  404. override TARGET_PROGRAMS+=ppdep ptop rstconv data2inc delp bin2obj postw32
  405. endif
  406. ifeq ($(FULL_TARGET),powerpc-macos)
  407. override TARGET_PROGRAMS+=ppdep ptop rstconv data2inc delp bin2obj postw32
  408. endif
  409. ifeq ($(FULL_TARGET),powerpc-darwin)
  410. override TARGET_PROGRAMS+=ppdep ptop rstconv data2inc delp bin2obj postw32
  411. endif
  412. ifeq ($(FULL_TARGET),powerpc-morphos)
  413. override TARGET_PROGRAMS+=ppdep ptop rstconv data2inc delp bin2obj postw32
  414. endif
  415. ifeq ($(FULL_TARGET),sparc-linux)
  416. override TARGET_PROGRAMS+=ppdep ptop rstconv data2inc delp bin2obj postw32
  417. endif
  418. ifeq ($(FULL_TARGET),sparc-netbsd)
  419. override TARGET_PROGRAMS+=ppdep ptop rstconv data2inc delp bin2obj postw32
  420. endif
  421. ifeq ($(FULL_TARGET),sparc-sunos)
  422. override TARGET_PROGRAMS+=ppdep ptop rstconv data2inc delp bin2obj postw32
  423. endif
  424. ifeq ($(FULL_TARGET),x86_64-linux)
  425. override TARGET_PROGRAMS+=ppdep ptop rstconv data2inc delp bin2obj postw32
  426. endif
  427. ifeq ($(FULL_TARGET),x86_64-freebsd)
  428. override TARGET_PROGRAMS+=ppdep ptop rstconv data2inc delp bin2obj postw32
  429. endif
  430. ifeq ($(FULL_TARGET),arm-linux)
  431. override TARGET_PROGRAMS+=ppdep ptop rstconv data2inc delp bin2obj postw32
  432. endif
  433. ifeq ($(FULL_TARGET),i386-linux)
  434. override TARGET_RSTS+=rstconv
  435. endif
  436. ifeq ($(FULL_TARGET),i386-go32v2)
  437. override TARGET_RSTS+=rstconv
  438. endif
  439. ifeq ($(FULL_TARGET),i386-win32)
  440. override TARGET_RSTS+=rstconv
  441. endif
  442. ifeq ($(FULL_TARGET),i386-os2)
  443. override TARGET_RSTS+=rstconv
  444. endif
  445. ifeq ($(FULL_TARGET),i386-freebsd)
  446. override TARGET_RSTS+=rstconv
  447. endif
  448. ifeq ($(FULL_TARGET),i386-beos)
  449. override TARGET_RSTS+=rstconv
  450. endif
  451. ifeq ($(FULL_TARGET),i386-netbsd)
  452. override TARGET_RSTS+=rstconv
  453. endif
  454. ifeq ($(FULL_TARGET),i386-sunos)
  455. override TARGET_RSTS+=rstconv
  456. endif
  457. ifeq ($(FULL_TARGET),i386-qnx)
  458. override TARGET_RSTS+=rstconv
  459. endif
  460. ifeq ($(FULL_TARGET),i386-netware)
  461. override TARGET_RSTS+=rstconv
  462. endif
  463. ifeq ($(FULL_TARGET),i386-openbsd)
  464. override TARGET_RSTS+=rstconv
  465. endif
  466. ifeq ($(FULL_TARGET),i386-wdosx)
  467. override TARGET_RSTS+=rstconv
  468. endif
  469. ifeq ($(FULL_TARGET),i386-emx)
  470. override TARGET_RSTS+=rstconv
  471. endif
  472. ifeq ($(FULL_TARGET),i386-watcom)
  473. override TARGET_RSTS+=rstconv
  474. endif
  475. ifeq ($(FULL_TARGET),i386-netwlibc)
  476. override TARGET_RSTS+=rstconv
  477. endif
  478. ifeq ($(FULL_TARGET),m68k-linux)
  479. override TARGET_RSTS+=rstconv
  480. endif
  481. ifeq ($(FULL_TARGET),m68k-freebsd)
  482. override TARGET_RSTS+=rstconv
  483. endif
  484. ifeq ($(FULL_TARGET),m68k-netbsd)
  485. override TARGET_RSTS+=rstconv
  486. endif
  487. ifeq ($(FULL_TARGET),m68k-amiga)
  488. override TARGET_RSTS+=rstconv
  489. endif
  490. ifeq ($(FULL_TARGET),m68k-atari)
  491. override TARGET_RSTS+=rstconv
  492. endif
  493. ifeq ($(FULL_TARGET),m68k-openbsd)
  494. override TARGET_RSTS+=rstconv
  495. endif
  496. ifeq ($(FULL_TARGET),m68k-palmos)
  497. override TARGET_RSTS+=rstconv
  498. endif
  499. ifeq ($(FULL_TARGET),powerpc-linux)
  500. override TARGET_RSTS+=rstconv
  501. endif
  502. ifeq ($(FULL_TARGET),powerpc-netbsd)
  503. override TARGET_RSTS+=rstconv
  504. endif
  505. ifeq ($(FULL_TARGET),powerpc-macos)
  506. override TARGET_RSTS+=rstconv
  507. endif
  508. ifeq ($(FULL_TARGET),powerpc-darwin)
  509. override TARGET_RSTS+=rstconv
  510. endif
  511. ifeq ($(FULL_TARGET),powerpc-morphos)
  512. override TARGET_RSTS+=rstconv
  513. endif
  514. ifeq ($(FULL_TARGET),sparc-linux)
  515. override TARGET_RSTS+=rstconv
  516. endif
  517. ifeq ($(FULL_TARGET),sparc-netbsd)
  518. override TARGET_RSTS+=rstconv
  519. endif
  520. ifeq ($(FULL_TARGET),sparc-sunos)
  521. override TARGET_RSTS+=rstconv
  522. endif
  523. ifeq ($(FULL_TARGET),x86_64-linux)
  524. override TARGET_RSTS+=rstconv
  525. endif
  526. ifeq ($(FULL_TARGET),x86_64-freebsd)
  527. override TARGET_RSTS+=rstconv
  528. endif
  529. ifeq ($(FULL_TARGET),arm-linux)
  530. override TARGET_RSTS+=rstconv
  531. endif
  532. ifeq ($(FULL_TARGET),i386-linux)
  533. override CLEAN_UNITS+=ptopu
  534. endif
  535. ifeq ($(FULL_TARGET),i386-go32v2)
  536. override CLEAN_UNITS+=ptopu
  537. endif
  538. ifeq ($(FULL_TARGET),i386-win32)
  539. override CLEAN_UNITS+=ptopu
  540. endif
  541. ifeq ($(FULL_TARGET),i386-os2)
  542. override CLEAN_UNITS+=ptopu
  543. endif
  544. ifeq ($(FULL_TARGET),i386-freebsd)
  545. override CLEAN_UNITS+=ptopu
  546. endif
  547. ifeq ($(FULL_TARGET),i386-beos)
  548. override CLEAN_UNITS+=ptopu
  549. endif
  550. ifeq ($(FULL_TARGET),i386-netbsd)
  551. override CLEAN_UNITS+=ptopu
  552. endif
  553. ifeq ($(FULL_TARGET),i386-sunos)
  554. override CLEAN_UNITS+=ptopu
  555. endif
  556. ifeq ($(FULL_TARGET),i386-qnx)
  557. override CLEAN_UNITS+=ptopu
  558. endif
  559. ifeq ($(FULL_TARGET),i386-netware)
  560. override CLEAN_UNITS+=ptopu
  561. endif
  562. ifeq ($(FULL_TARGET),i386-openbsd)
  563. override CLEAN_UNITS+=ptopu
  564. endif
  565. ifeq ($(FULL_TARGET),i386-wdosx)
  566. override CLEAN_UNITS+=ptopu
  567. endif
  568. ifeq ($(FULL_TARGET),i386-emx)
  569. override CLEAN_UNITS+=ptopu
  570. endif
  571. ifeq ($(FULL_TARGET),i386-watcom)
  572. override CLEAN_UNITS+=ptopu
  573. endif
  574. ifeq ($(FULL_TARGET),i386-netwlibc)
  575. override CLEAN_UNITS+=ptopu
  576. endif
  577. ifeq ($(FULL_TARGET),m68k-linux)
  578. override CLEAN_UNITS+=ptopu
  579. endif
  580. ifeq ($(FULL_TARGET),m68k-freebsd)
  581. override CLEAN_UNITS+=ptopu
  582. endif
  583. ifeq ($(FULL_TARGET),m68k-netbsd)
  584. override CLEAN_UNITS+=ptopu
  585. endif
  586. ifeq ($(FULL_TARGET),m68k-amiga)
  587. override CLEAN_UNITS+=ptopu
  588. endif
  589. ifeq ($(FULL_TARGET),m68k-atari)
  590. override CLEAN_UNITS+=ptopu
  591. endif
  592. ifeq ($(FULL_TARGET),m68k-openbsd)
  593. override CLEAN_UNITS+=ptopu
  594. endif
  595. ifeq ($(FULL_TARGET),m68k-palmos)
  596. override CLEAN_UNITS+=ptopu
  597. endif
  598. ifeq ($(FULL_TARGET),powerpc-linux)
  599. override CLEAN_UNITS+=ptopu
  600. endif
  601. ifeq ($(FULL_TARGET),powerpc-netbsd)
  602. override CLEAN_UNITS+=ptopu
  603. endif
  604. ifeq ($(FULL_TARGET),powerpc-macos)
  605. override CLEAN_UNITS+=ptopu
  606. endif
  607. ifeq ($(FULL_TARGET),powerpc-darwin)
  608. override CLEAN_UNITS+=ptopu
  609. endif
  610. ifeq ($(FULL_TARGET),powerpc-morphos)
  611. override CLEAN_UNITS+=ptopu
  612. endif
  613. ifeq ($(FULL_TARGET),sparc-linux)
  614. override CLEAN_UNITS+=ptopu
  615. endif
  616. ifeq ($(FULL_TARGET),sparc-netbsd)
  617. override CLEAN_UNITS+=ptopu
  618. endif
  619. ifeq ($(FULL_TARGET),sparc-sunos)
  620. override CLEAN_UNITS+=ptopu
  621. endif
  622. ifeq ($(FULL_TARGET),x86_64-linux)
  623. override CLEAN_UNITS+=ptopu
  624. endif
  625. ifeq ($(FULL_TARGET),x86_64-freebsd)
  626. override CLEAN_UNITS+=ptopu
  627. endif
  628. ifeq ($(FULL_TARGET),arm-linux)
  629. override CLEAN_UNITS+=ptopu
  630. endif
  631. override INSTALL_FPCPACKAGE=y
  632. ifdef REQUIRE_UNITSDIR
  633. override UNITSDIR+=$(REQUIRE_UNITSDIR)
  634. endif
  635. ifdef REQUIRE_PACKAGESDIR
  636. override PACKAGESDIR+=$(REQUIRE_PACKAGESDIR)
  637. endif
  638. ifdef ZIPINSTALL
  639. ifneq ($(findstring $(OS_TARGET),$(UNIXs)),)
  640. UNIXHier=1
  641. endif
  642. else
  643. ifneq ($(findstring $(OS_SOURCE),$(UNIXs)),)
  644. UNIXHier=1
  645. endif
  646. endif
  647. ifndef INSTALL_PREFIX
  648. ifdef PREFIX
  649. INSTALL_PREFIX=$(PREFIX)
  650. endif
  651. endif
  652. ifndef INSTALL_PREFIX
  653. ifdef UNIXHier
  654. INSTALL_PREFIX=/usr/local
  655. else
  656. ifdef INSTALL_FPCPACKAGE
  657. INSTALL_BASEDIR:=/pp
  658. else
  659. INSTALL_BASEDIR:=/$(PACKAGE_NAME)
  660. endif
  661. endif
  662. endif
  663. export INSTALL_PREFIX
  664. ifdef INSTALL_FPCSUBDIR
  665. export INSTALL_FPCSUBDIR
  666. endif
  667. ifndef DIST_DESTDIR
  668. DIST_DESTDIR:=$(BASEDIR)
  669. endif
  670. export DIST_DESTDIR
  671. ifndef COMPILER_UNITTARGETDIR
  672. ifdef PACKAGEDIR_MAIN
  673. COMPILER_UNITTARGETDIR=$(PACKAGEDIR_MAIN)/units/$(TARGETSUFFIX)
  674. else
  675. COMPILER_UNITTARGETDIR=units/$(TARGETSUFFIX)
  676. endif
  677. endif
  678. ifndef COMPILER_TARGETDIR
  679. COMPILER_TARGETDIR=.
  680. endif
  681. ifndef INSTALL_BASEDIR
  682. ifdef UNIXHier
  683. ifdef INSTALL_FPCPACKAGE
  684. INSTALL_BASEDIR:=$(INSTALL_PREFIX)/lib/fpc/$(FPC_VERSION)
  685. else
  686. INSTALL_BASEDIR:=$(INSTALL_PREFIX)/lib/$(PACKAGE_NAME)
  687. endif
  688. else
  689. INSTALL_BASEDIR:=$(INSTALL_PREFIX)
  690. endif
  691. endif
  692. ifndef INSTALL_BINDIR
  693. ifdef UNIXHier
  694. INSTALL_BINDIR:=$(INSTALL_PREFIX)/bin
  695. else
  696. INSTALL_BINDIR:=$(INSTALL_BASEDIR)/bin
  697. ifdef INSTALL_FPCPACKAGE
  698. ifdef CROSSCOMPILE
  699. ifdef CROSSINSTALL
  700. INSTALL_BINDIR:=$(INSTALL_BINDIR)/$(SOURCESUFFIX)
  701. else
  702. INSTALL_BINDIR:=$(INSTALL_BINDIR)/$(TARGETSUFFIX)
  703. endif
  704. else
  705. INSTALL_BINDIR:=$(INSTALL_BINDIR)/$(TARGETSUFFIX)
  706. endif
  707. endif
  708. endif
  709. endif
  710. ifndef INSTALL_UNITDIR
  711. INSTALL_UNITDIR:=$(INSTALL_BASEDIR)/units/$(TARGETSUFFIX)
  712. ifdef INSTALL_FPCPACKAGE
  713. ifdef PACKAGE_NAME
  714. INSTALL_UNITDIR:=$(INSTALL_UNITDIR)/$(PACKAGE_NAME)
  715. endif
  716. endif
  717. endif
  718. ifndef INSTALL_LIBDIR
  719. ifdef UNIXHier
  720. INSTALL_LIBDIR:=$(INSTALL_PREFIX)/lib
  721. else
  722. INSTALL_LIBDIR:=$(INSTALL_UNITDIR)
  723. endif
  724. endif
  725. ifndef INSTALL_SOURCEDIR
  726. ifdef UNIXHier
  727. ifdef BSDhier
  728. SRCPREFIXDIR=share/src
  729. else
  730. ifdef linuxHier
  731. SRCPREFIXDIR=share/src
  732. else
  733. SRCPREFIXDIR=src
  734. endif
  735. endif
  736. ifdef INSTALL_FPCPACKAGE
  737. ifdef INSTALL_FPCSUBDIR
  738. INSTALL_SOURCEDIR:=$(INSTALL_PREFIX)/$(SRCPREFIXDIR)/fpc-$(FPC_VERSION)/$(INSTALL_FPCSUBDIR)/$(PACKAGE_NAME)
  739. else
  740. INSTALL_SOURCEDIR:=$(INSTALL_PREFIX)/$(SRCPREFIXDIR)/fpc-$(FPC_VERSION)/$(PACKAGE_NAME)
  741. endif
  742. else
  743. INSTALL_SOURCEDIR:=$(INSTALL_PREFIX)/$(SRCPREFIXDIR)/$(PACKAGE_NAME)-$(PACKAGE_VERSION)
  744. endif
  745. else
  746. ifdef INSTALL_FPCPACKAGE
  747. ifdef INSTALL_FPCSUBDIR
  748. INSTALL_SOURCEDIR:=$(INSTALL_BASEDIR)/source/$(INSTALL_FPCSUBDIR)/$(PACKAGE_NAME)
  749. else
  750. INSTALL_SOURCEDIR:=$(INSTALL_BASEDIR)/source/$(PACKAGE_NAME)
  751. endif
  752. else
  753. INSTALL_SOURCEDIR:=$(INSTALL_BASEDIR)/source
  754. endif
  755. endif
  756. endif
  757. ifndef INSTALL_DOCDIR
  758. ifdef UNIXHier
  759. ifdef BSDhier
  760. DOCPREFIXDIR=share/doc
  761. else
  762. ifdef linuxHier
  763. DOCPREFIXDIR=share/doc
  764. else
  765. DOCPREFIXDIR=doc
  766. endif
  767. endif
  768. ifdef INSTALL_FPCPACKAGE
  769. INSTALL_DOCDIR:=$(INSTALL_PREFIX)/$(DOCPREFIXDIR)/fpc-$(FPC_VERSION)/$(PACKAGE_NAME)
  770. else
  771. INSTALL_DOCDIR:=$(INSTALL_PREFIX)/$(DOCPREFIXDIR)/$(PACKAGE_NAME)-$(PACKAGE_VERSION)
  772. endif
  773. else
  774. ifdef INSTALL_FPCPACKAGE
  775. INSTALL_DOCDIR:=$(INSTALL_BASEDIR)/doc/$(PACKAGE_NAME)
  776. else
  777. INSTALL_DOCDIR:=$(INSTALL_BASEDIR)/doc
  778. endif
  779. endif
  780. endif
  781. ifndef INSTALL_EXAMPLEDIR
  782. ifdef UNIXHier
  783. ifdef INSTALL_FPCPACKAGE
  784. ifdef BSDhier
  785. INSTALL_EXAMPLEDIR:=$(INSTALL_PREFIX)/share/examples/fpc-$(FPC_VERSION)/$(PACKAGE_NAME)
  786. else
  787. ifdef linuxHier
  788. INSTALL_EXAMPLEDIR:=$(INSTALL_DOCDIR)/examples
  789. else
  790. INSTALL_EXAMPLEDIR:=$(INSTALL_PREFIX)/doc/fpc-$(FPC_VERSION)/examples/$(PACKAGE_NAME)
  791. endif
  792. endif
  793. else
  794. ifdef BSDhier
  795. INSTALL_EXAMPLEDIR:=$(INSTALL_PREFIX)/share/examples/$(PACKAGE_NAME)-$(PACKAGE_VERSION)
  796. else
  797. ifdef linuxHier
  798. INSTALL_EXAMPLEDIR:=$(INSTALL_DOCDIR)/examples/$(PACKAGE_NAME)-$(PACKAGE_VERSION)
  799. else
  800. INSTALL_EXAMPLEDIR:=$(INSTALL_PREFIX)/doc/$(PACKAGE_NAME)-$(PACKAGE_VERSION)
  801. endif
  802. endif
  803. endif
  804. else
  805. ifdef INSTALL_FPCPACKAGE
  806. INSTALL_EXAMPLEDIR:=$(INSTALL_BASEDIR)/examples/$(PACKAGE_NAME)
  807. else
  808. INSTALL_EXAMPLEDIR:=$(INSTALL_BASEDIR)/examples
  809. endif
  810. endif
  811. endif
  812. ifndef INSTALL_DATADIR
  813. INSTALL_DATADIR=$(INSTALL_BASEDIR)
  814. endif
  815. ifdef CROSSCOMPILE
  816. ifndef CROSSBINDIR
  817. CROSSBINDIR:=$(wildcard $(CROSSTARGETDIR)/bin/$(SOURCESUFFIX))
  818. ifeq ($(CROSSBINDIR),)
  819. CROSSBINDIR:=$(wildcard $(INSTALL_BASEDIR)/cross/$(TARGETSUFFIX)/bin/$(FULL_SOURCE))
  820. endif
  821. endif
  822. else
  823. CROSSBINDIR=
  824. endif
  825. ifeq ($(OS_SOURCE),linux)
  826. ifndef GCCLIBDIR
  827. ifeq ($(CPU_TARGET),i386)
  828. ifneq ($(findstring x86_64,$(shell uname -a)),)
  829. ifeq ($(BINUTILSPREFIX),)
  830. GCCLIBDIR:=$(shell dirname `gcc -m32 -print-libgcc-file-name`)
  831. endif
  832. endif
  833. endif
  834. endif
  835. ifndef GCCLIBDIR
  836. CROSSGCC=$(strip $(wildcard $(addsuffix /$(BINUTILSPREFIX)gcc$(SRCEXEEXT),$(SEARCHPATH))))
  837. ifneq ($(CROSSGCC),)
  838. GCCLIBDIR:=$(shell dirname `$(CROSSGCC) -print-libgcc-file-name`)
  839. endif
  840. endif
  841. ifndef OTHERLIBDIR
  842. OTHERLIBDIR:=$(shell grep -v "^\#" /etc/ld.so.conf | awk '{ ORS=" "; print $1 }')
  843. endif
  844. endif
  845. ifdef inUnix
  846. ifeq ($(OS_SOURCE),netbsd)
  847. OTHERLIBDIR+=/usr/pkg/lib
  848. endif
  849. export GCCLIBDIR OTHERLIB
  850. endif
  851. BATCHEXT=.bat
  852. LOADEREXT=.as
  853. EXEEXT=.exe
  854. PPLEXT=.ppl
  855. PPUEXT=.ppu
  856. OEXT=.o
  857. ASMEXT=.s
  858. SMARTEXT=.sl
  859. STATICLIBEXT=.a
  860. SHAREDLIBEXT=.so
  861. STATICLIBPREFIX=libp
  862. RSTEXT=.rst
  863. ifeq ($(findstring 1.0.,$(FPC_VERSION)),)
  864. ifeq ($(OS_TARGET),go32v1)
  865. STATICLIBPREFIX=
  866. SHORTSUFFIX=v1
  867. endif
  868. ifeq ($(OS_TARGET),go32v2)
  869. STATICLIBPREFIX=
  870. SHORTSUFFIX=dos
  871. endif
  872. ifeq ($(OS_TARGET),watcom)
  873. STATICLIBPREFIX=
  874. OEXT=.obj
  875. ASMEXT=.asm
  876. SHAREDLIBEXT=.dll
  877. SHORTSUFFIX=wat
  878. endif
  879. ifeq ($(OS_TARGET),linux)
  880. BATCHEXT=.sh
  881. EXEEXT=
  882. HASSHAREDLIB=1
  883. SHORTSUFFIX=lnx
  884. endif
  885. ifeq ($(OS_TARGET),freebsd)
  886. BATCHEXT=.sh
  887. EXEEXT=
  888. HASSHAREDLIB=1
  889. SHORTSUFFIX=fbs
  890. endif
  891. ifeq ($(OS_TARGET),netbsd)
  892. BATCHEXT=.sh
  893. EXEEXT=
  894. HASSHAREDLIB=1
  895. SHORTSUFFIX=nbs
  896. endif
  897. ifeq ($(OS_TARGET),openbsd)
  898. BATCHEXT=.sh
  899. EXEEXT=
  900. HASSHAREDLIB=1
  901. SHORTSUFFIX=obs
  902. endif
  903. ifeq ($(OS_TARGET),win32)
  904. SHAREDLIBEXT=.dll
  905. SHORTSUFFIX=w32
  906. endif
  907. ifeq ($(OS_TARGET),os2)
  908. BATCHEXT=.cmd
  909. AOUTEXT=.out
  910. STATICLIBPREFIX=
  911. SHAREDLIBEXT=.dll
  912. SHORTSUFFIX=os2
  913. ECHO=echo
  914. endif
  915. ifeq ($(OS_TARGET),emx)
  916. BATCHEXT=.cmd
  917. AOUTEXT=.out
  918. STATICLIBPREFIX=
  919. SHAREDLIBEXT=.dll
  920. SHORTSUFFIX=emx
  921. ECHO=echo
  922. endif
  923. ifeq ($(OS_TARGET),amiga)
  924. EXEEXT=
  925. SHAREDLIBEXT=.library
  926. SHORTSUFFIX=amg
  927. endif
  928. ifeq ($(OS_TARGET),morphos)
  929. EXEEXT=
  930. SHAREDLIBEXT=.library
  931. SHORTSUFFIX=mos
  932. endif
  933. ifeq ($(OS_TARGET),atari)
  934. EXEEXT=.ttp
  935. SHORTSUFFIX=ata
  936. endif
  937. ifeq ($(OS_TARGET),beos)
  938. BATCHEXT=.sh
  939. EXEEXT=
  940. SHORTSUFFIX=be
  941. endif
  942. ifeq ($(OS_TARGET),sunos)
  943. BATCHEXT=.sh
  944. EXEEXT=
  945. SHORTSUFFIX=sun
  946. endif
  947. ifeq ($(OS_TARGET),qnx)
  948. BATCHEXT=.sh
  949. EXEEXT=
  950. SHORTSUFFIX=qnx
  951. endif
  952. ifeq ($(OS_TARGET),netware)
  953. EXEEXT=.nlm
  954. STATICLIBPREFIX=
  955. SHORTSUFFIX=nw
  956. endif
  957. ifeq ($(OS_TARGET),netwlibc)
  958. EXEEXT=.nlm
  959. STATICLIBPREFIX=
  960. SHORTSUFFIX=nwl
  961. endif
  962. ifeq ($(OS_TARGET),macos)
  963. BATCHEXT=
  964. EXEEXT=
  965. DEBUGSYMEXT=.xcoff
  966. SHORTSUFFIX=mac
  967. endif
  968. ifeq ($(OS_TARGET),darwin)
  969. BATCHEXT=.sh
  970. EXEEXT=
  971. HASSHAREDLIB=1
  972. SHORTSUFFIX=dwn
  973. endif
  974. else
  975. ifeq ($(OS_TARGET),go32v1)
  976. PPUEXT=.pp1
  977. OEXT=.o1
  978. ASMEXT=.s1
  979. SMARTEXT=.sl1
  980. STATICLIBEXT=.a1
  981. SHAREDLIBEXT=.so1
  982. STATICLIBPREFIX=
  983. SHORTSUFFIX=v1
  984. endif
  985. ifeq ($(OS_TARGET),go32v2)
  986. STATICLIBPREFIX=
  987. SHORTSUFFIX=dos
  988. endif
  989. ifeq ($(OS_TARGET),watcom)
  990. STATICLIBPREFIX=
  991. SHORTSUFFIX=wat
  992. endif
  993. ifeq ($(OS_TARGET),linux)
  994. BATCHEXT=.sh
  995. EXEEXT=
  996. HASSHAREDLIB=1
  997. SHORTSUFFIX=lnx
  998. endif
  999. ifeq ($(OS_TARGET),freebsd)
  1000. BATCHEXT=.sh
  1001. EXEEXT=
  1002. HASSHAREDLIB=1
  1003. SHORTSUFFIX=fbs
  1004. endif
  1005. ifeq ($(OS_TARGET),netbsd)
  1006. BATCHEXT=.sh
  1007. EXEEXT=
  1008. HASSHAREDLIB=1
  1009. SHORTSUFFIX=nbs
  1010. endif
  1011. ifeq ($(OS_TARGET),openbsd)
  1012. BATCHEXT=.sh
  1013. EXEEXT=
  1014. HASSHAREDLIB=1
  1015. SHORTSUFFIX=obs
  1016. endif
  1017. ifeq ($(OS_TARGET),win32)
  1018. PPUEXT=.ppw
  1019. OEXT=.ow
  1020. ASMEXT=.sw
  1021. SMARTEXT=.slw
  1022. STATICLIBEXT=.aw
  1023. SHAREDLIBEXT=.dll
  1024. SHORTSUFFIX=w32
  1025. endif
  1026. ifeq ($(OS_TARGET),os2)
  1027. BATCHEXT=.cmd
  1028. PPUEXT=.ppo
  1029. ASMEXT=.so2
  1030. OEXT=.oo2
  1031. AOUTEXT=.out
  1032. SMARTEXT=.sl2
  1033. STATICLIBPREFIX=
  1034. STATICLIBEXT=.ao2
  1035. SHAREDLIBEXT=.dll
  1036. SHORTSUFFIX=os2
  1037. ECHO=echo
  1038. endif
  1039. ifeq ($(OS_TARGET),amiga)
  1040. EXEEXT=
  1041. PPUEXT=.ppu
  1042. ASMEXT=.asm
  1043. OEXT=.o
  1044. SMARTEXT=.sl
  1045. STATICLIBEXT=.a
  1046. SHAREDLIBEXT=.library
  1047. SHORTSUFFIX=amg
  1048. endif
  1049. ifeq ($(OS_TARGET),atari)
  1050. PPUEXT=.ppu
  1051. ASMEXT=.s
  1052. OEXT=.o
  1053. SMARTEXT=.sl
  1054. STATICLIBEXT=.a
  1055. EXEEXT=.ttp
  1056. SHORTSUFFIX=ata
  1057. endif
  1058. ifeq ($(OS_TARGET),beos)
  1059. BATCHEXT=.sh
  1060. PPUEXT=.ppu
  1061. ASMEXT=.s
  1062. OEXT=.o
  1063. SMARTEXT=.sl
  1064. STATICLIBEXT=.a
  1065. EXEEXT=
  1066. SHORTSUFFIX=be
  1067. endif
  1068. ifeq ($(OS_TARGET),sunos)
  1069. BATCHEXT=.sh
  1070. PPUEXT=.ppu
  1071. ASMEXT=.s
  1072. OEXT=.o
  1073. SMARTEXT=.sl
  1074. STATICLIBEXT=.a
  1075. EXEEXT=
  1076. SHORTSUFFIX=sun
  1077. endif
  1078. ifeq ($(OS_TARGET),qnx)
  1079. BATCHEXT=.sh
  1080. PPUEXT=.ppu
  1081. ASMEXT=.s
  1082. OEXT=.o
  1083. SMARTEXT=.sl
  1084. STATICLIBEXT=.a
  1085. EXEEXT=
  1086. SHORTSUFFIX=qnx
  1087. endif
  1088. ifeq ($(OS_TARGET),netware)
  1089. STATICLIBPREFIX=
  1090. PPUEXT=.ppu
  1091. OEXT=.o
  1092. ASMEXT=.s
  1093. SMARTEXT=.sl
  1094. STATICLIBEXT=.a
  1095. SHAREDLIBEXT=.nlm
  1096. EXEEXT=.nlm
  1097. SHORTSUFFIX=nw
  1098. endif
  1099. ifeq ($(OS_TARGET),netwlibc)
  1100. STATICLIBPREFIX=
  1101. PPUEXT=.ppu
  1102. OEXT=.o
  1103. ASMEXT=.s
  1104. SMARTEXT=.sl
  1105. STATICLIBEXT=.a
  1106. SHAREDLIBEXT=.nlm
  1107. EXEEXT=.nlm
  1108. SHORTSUFFIX=nwl
  1109. endif
  1110. ifeq ($(OS_TARGET),macos)
  1111. BATCHEXT=
  1112. PPUEXT=.ppu
  1113. ASMEXT=.s
  1114. OEXT=.o
  1115. SMARTEXT=.sl
  1116. STATICLIBEXT=.a
  1117. EXEEXT=
  1118. DEBUGSYMEXT=.xcoff
  1119. SHORTSUFFIX=mac
  1120. endif
  1121. endif
  1122. ifneq ($(findstring $(OS_SOURCE),$(LIMIT83fs)),)
  1123. FPCMADE=fpcmade.$(SHORTSUFFIX)
  1124. ZIPSUFFIX=$(SHORTSUFFIX)
  1125. ZIPCROSSPREFIX=
  1126. ZIPSOURCESUFFIX=src
  1127. ZIPEXAMPLESUFFIX=exm
  1128. else
  1129. FPCMADE=fpcmade.$(TARGETSUFFIX)
  1130. ZIPSOURCESUFFIX=.source
  1131. ZIPEXAMPLESUFFIX=.examples
  1132. ifdef CROSSCOMPILE
  1133. ZIPSUFFIX=.$(SOURCESUFFIX)
  1134. ZIPCROSSPREFIX=$(TARGETSUFFIX)-
  1135. else
  1136. ZIPSUFFIX=.$(TARGETSUFFIX)
  1137. ZIPCROSSPREFIX=
  1138. endif
  1139. endif
  1140. ifndef ECHO
  1141. ECHO:=$(strip $(wildcard $(addsuffix /gecho$(SRCEXEEXT),$(SEARCHPATH))))
  1142. ifeq ($(ECHO),)
  1143. ECHO:=$(strip $(wildcard $(addsuffix /echo$(SRCEXEEXT),$(SEARCHPATH))))
  1144. ifeq ($(ECHO),)
  1145. ECHO= __missing_command_ECHO
  1146. else
  1147. ECHO:=$(firstword $(ECHO))
  1148. endif
  1149. else
  1150. ECHO:=$(firstword $(ECHO))
  1151. endif
  1152. endif
  1153. export ECHO
  1154. ifndef DATE
  1155. DATE:=$(strip $(wildcard $(addsuffix /gdate$(SRCEXEEXT),$(SEARCHPATH))))
  1156. ifeq ($(DATE),)
  1157. DATE:=$(strip $(wildcard $(addsuffix /date$(SRCEXEEXT),$(SEARCHPATH))))
  1158. ifeq ($(DATE),)
  1159. DATE= __missing_command_DATE
  1160. else
  1161. DATE:=$(firstword $(DATE))
  1162. endif
  1163. else
  1164. DATE:=$(firstword $(DATE))
  1165. endif
  1166. endif
  1167. export DATE
  1168. ifndef GINSTALL
  1169. GINSTALL:=$(strip $(wildcard $(addsuffix /ginstall$(SRCEXEEXT),$(SEARCHPATH))))
  1170. ifeq ($(GINSTALL),)
  1171. GINSTALL:=$(strip $(wildcard $(addsuffix /install$(SRCEXEEXT),$(SEARCHPATH))))
  1172. ifeq ($(GINSTALL),)
  1173. GINSTALL= __missing_command_GINSTALL
  1174. else
  1175. GINSTALL:=$(firstword $(GINSTALL))
  1176. endif
  1177. else
  1178. GINSTALL:=$(firstword $(GINSTALL))
  1179. endif
  1180. endif
  1181. export GINSTALL
  1182. ifndef CPPROG
  1183. CPPROG:=$(strip $(wildcard $(addsuffix /cp$(SRCEXEEXT),$(SEARCHPATH))))
  1184. ifeq ($(CPPROG),)
  1185. CPPROG= __missing_command_CPPROG
  1186. else
  1187. CPPROG:=$(firstword $(CPPROG))
  1188. endif
  1189. endif
  1190. export CPPROG
  1191. ifndef RMPROG
  1192. RMPROG:=$(strip $(wildcard $(addsuffix /rm$(SRCEXEEXT),$(SEARCHPATH))))
  1193. ifeq ($(RMPROG),)
  1194. RMPROG= __missing_command_RMPROG
  1195. else
  1196. RMPROG:=$(firstword $(RMPROG))
  1197. endif
  1198. endif
  1199. export RMPROG
  1200. ifndef MVPROG
  1201. MVPROG:=$(strip $(wildcard $(addsuffix /mv$(SRCEXEEXT),$(SEARCHPATH))))
  1202. ifeq ($(MVPROG),)
  1203. MVPROG= __missing_command_MVPROG
  1204. else
  1205. MVPROG:=$(firstword $(MVPROG))
  1206. endif
  1207. endif
  1208. export MVPROG
  1209. ifndef MKDIRPROG
  1210. MKDIRPROG:=$(strip $(wildcard $(addsuffix /gmkdir$(SRCEXEEXT),$(SEARCHPATH))))
  1211. ifeq ($(MKDIRPROG),)
  1212. MKDIRPROG:=$(strip $(wildcard $(addsuffix /mkdir$(SRCEXEEXT),$(SEARCHPATH))))
  1213. ifeq ($(MKDIRPROG),)
  1214. MKDIRPROG= __missing_command_MKDIRPROG
  1215. else
  1216. MKDIRPROG:=$(firstword $(MKDIRPROG))
  1217. endif
  1218. else
  1219. MKDIRPROG:=$(firstword $(MKDIRPROG))
  1220. endif
  1221. endif
  1222. export MKDIRPROG
  1223. ifndef ECHOREDIR
  1224. ifndef inUnix
  1225. ECHOREDIR=echo
  1226. else
  1227. ECHOREDIR=$(ECHO)
  1228. endif
  1229. endif
  1230. ifndef COPY
  1231. COPY:=$(CPPROG) -fp
  1232. endif
  1233. ifndef COPYTREE
  1234. COPYTREE:=$(CPPROG) -Rfp
  1235. endif
  1236. ifndef MKDIRTREE
  1237. MKDIRTREE:=$(MKDIRPROG) -p
  1238. endif
  1239. ifndef MOVE
  1240. MOVE:=$(MVPROG) -f
  1241. endif
  1242. ifndef DEL
  1243. DEL:=$(RMPROG) -f
  1244. endif
  1245. ifndef DELTREE
  1246. DELTREE:=$(RMPROG) -rf
  1247. endif
  1248. ifndef INSTALL
  1249. ifdef inUnix
  1250. INSTALL:=$(GINSTALL) -c -m 644
  1251. else
  1252. INSTALL:=$(COPY)
  1253. endif
  1254. endif
  1255. ifndef INSTALLEXE
  1256. ifdef inUnix
  1257. INSTALLEXE:=$(GINSTALL) -c -m 755
  1258. else
  1259. INSTALLEXE:=$(COPY)
  1260. endif
  1261. endif
  1262. ifndef MKDIR
  1263. MKDIR:=$(GINSTALL) -m 755 -d
  1264. endif
  1265. export ECHOREDIR COPY COPYTREE MOVE DEL DELTREE INSTALL INSTALLEXE MKDIR
  1266. ifndef PPUMOVE
  1267. PPUMOVE:=$(strip $(wildcard $(addsuffix /ppumove$(SRCEXEEXT),$(SEARCHPATH))))
  1268. ifeq ($(PPUMOVE),)
  1269. PPUMOVE= __missing_command_PPUMOVE
  1270. else
  1271. PPUMOVE:=$(firstword $(PPUMOVE))
  1272. endif
  1273. endif
  1274. export PPUMOVE
  1275. ifndef FPCMAKE
  1276. FPCMAKE:=$(strip $(wildcard $(addsuffix /fpcmake$(SRCEXEEXT),$(SEARCHPATH))))
  1277. ifeq ($(FPCMAKE),)
  1278. FPCMAKE= __missing_command_FPCMAKE
  1279. else
  1280. FPCMAKE:=$(firstword $(FPCMAKE))
  1281. endif
  1282. endif
  1283. export FPCMAKE
  1284. ifndef ZIPPROG
  1285. ZIPPROG:=$(strip $(wildcard $(addsuffix /zip$(SRCEXEEXT),$(SEARCHPATH))))
  1286. ifeq ($(ZIPPROG),)
  1287. ZIPPROG= __missing_command_ZIPPROG
  1288. else
  1289. ZIPPROG:=$(firstword $(ZIPPROG))
  1290. endif
  1291. endif
  1292. export ZIPPROG
  1293. ifndef TARPROG
  1294. TARPROG:=$(strip $(wildcard $(addsuffix /tar$(SRCEXEEXT),$(SEARCHPATH))))
  1295. ifeq ($(TARPROG),)
  1296. TARPROG= __missing_command_TARPROG
  1297. else
  1298. TARPROG:=$(firstword $(TARPROG))
  1299. endif
  1300. endif
  1301. export TARPROG
  1302. ASNAME=$(BINUTILSPREFIX)as
  1303. LDNAME=$(BINUTILSPREFIX)ld
  1304. ARNAME=$(BINUTILSPREFIX)ar
  1305. RCNAME=$(BINUTILSPREFIX)rc
  1306. ifneq ($(findstring 1.0.,$(FPC_VERSION)),)
  1307. ifeq ($(OS_TARGET),win32)
  1308. ifeq ($(CROSSBINDIR),)
  1309. ASNAME=asw
  1310. LDNAME=ldw
  1311. ARNAME=arw
  1312. endif
  1313. endif
  1314. endif
  1315. ifndef ASPROG
  1316. ifdef CROSSBINDIR
  1317. ASPROG=$(CROSSBINDIR)/$(ASNAME)$(SRCEXEEXT)
  1318. else
  1319. ASPROG=$(ASNAME)
  1320. endif
  1321. endif
  1322. ifndef LDPROG
  1323. ifdef CROSSBINDIR
  1324. LDPROG=$(CROSSBINDIR)/$(LDNAME)$(SRCEXEEXT)
  1325. else
  1326. LDPROG=$(LDNAME)
  1327. endif
  1328. endif
  1329. ifndef RCPROG
  1330. ifdef CROSSBINDIR
  1331. RCPROG=$(CROSSBINDIR)/$(RCNAME)$(SRCEXEEXT)
  1332. else
  1333. RCPROG=$(RCNAME)
  1334. endif
  1335. endif
  1336. ifndef ARPROG
  1337. ifdef CROSSBINDIR
  1338. ARPROG=$(CROSSBINDIR)/$(ARNAME)$(SRCEXEEXT)
  1339. else
  1340. ARPROG=$(ARNAME)
  1341. endif
  1342. endif
  1343. AS=$(ASPROG)
  1344. LD=$(LDPROG)
  1345. RC=$(RCPROG)
  1346. AR=$(ARPROG)
  1347. PPAS=ppas$(SRCBATCHEXT)
  1348. ifdef inUnix
  1349. LDCONFIG=ldconfig
  1350. else
  1351. LDCONFIG=
  1352. endif
  1353. ifdef DATE
  1354. DATESTR:=$(shell $(DATE) +%Y%m%d)
  1355. else
  1356. DATESTR=
  1357. endif
  1358. ifndef UPXPROG
  1359. ifeq ($(OS_TARGET),go32v2)
  1360. UPXPROG:=1
  1361. endif
  1362. ifeq ($(OS_TARGET),win32)
  1363. UPXPROG:=1
  1364. endif
  1365. ifdef UPXPROG
  1366. UPXPROG:=$(strip $(wildcard $(addsuffix /upx$(SRCEXEEXT),$(SEARCHPATH))))
  1367. ifeq ($(UPXPROG),)
  1368. UPXPROG=
  1369. else
  1370. UPXPROG:=$(firstword $(UPXPROG))
  1371. endif
  1372. else
  1373. UPXPROG=
  1374. endif
  1375. endif
  1376. export UPXPROG
  1377. ZIPOPT=-9
  1378. ZIPEXT=.zip
  1379. ifeq ($(USETAR),bz2)
  1380. TAROPT=vI
  1381. TAREXT=.tar.bz2
  1382. else
  1383. TAROPT=vz
  1384. TAREXT=.tar.gz
  1385. endif
  1386. override REQUIRE_PACKAGES=rtl fcl
  1387. ifeq ($(FULL_TARGET),i386-linux)
  1388. REQUIRE_PACKAGES_RTL=1
  1389. REQUIRE_PACKAGES_PASZLIB=1
  1390. REQUIRE_PACKAGES_NETDB=1
  1391. REQUIRE_PACKAGES_LIBASYNC=1
  1392. REQUIRE_PACKAGES_PTHREADS=1
  1393. REQUIRE_PACKAGES_FCL=1
  1394. REQUIRE_PACKAGES_PASJPEG=1
  1395. REQUIRE_PACKAGES_IBASE=1
  1396. REQUIRE_PACKAGES_POSTGRES=1
  1397. REQUIRE_PACKAGES_MYSQL=1
  1398. REQUIRE_PACKAGES_SQLITE=1
  1399. endif
  1400. ifeq ($(FULL_TARGET),i386-go32v2)
  1401. REQUIRE_PACKAGES_RTL=1
  1402. REQUIRE_PACKAGES_PASZLIB=1
  1403. REQUIRE_PACKAGES_FCL=1
  1404. REQUIRE_PACKAGES_PASJPEG=1
  1405. REQUIRE_PACKAGES_NETDB=1
  1406. REQUIRE_PACKAGES_LIBASYNC=1
  1407. endif
  1408. ifeq ($(FULL_TARGET),i386-win32)
  1409. REQUIRE_PACKAGES_RTL=1
  1410. REQUIRE_PACKAGES_PASZLIB=1
  1411. REQUIRE_PACKAGES_NETDB=1
  1412. REQUIRE_PACKAGES_FCL=1
  1413. REQUIRE_PACKAGES_PASJPEG=1
  1414. REQUIRE_PACKAGES_IBASE=1
  1415. REQUIRE_PACKAGES_POSTGRES=1
  1416. REQUIRE_PACKAGES_MYSQL=1
  1417. REQUIRE_PACKAGES_SQLITE=1
  1418. REQUIRE_PACKAGES_LIBASYNC=1
  1419. endif
  1420. ifeq ($(FULL_TARGET),i386-os2)
  1421. REQUIRE_PACKAGES_RTL=1
  1422. REQUIRE_PACKAGES_PASZLIB=1
  1423. REQUIRE_PACKAGES_FCL=1
  1424. REQUIRE_PACKAGES_PASJPEG=1
  1425. REQUIRE_PACKAGES_NETDB=1
  1426. REQUIRE_PACKAGES_LIBASYNC=1
  1427. endif
  1428. ifeq ($(FULL_TARGET),i386-freebsd)
  1429. REQUIRE_PACKAGES_RTL=1
  1430. REQUIRE_PACKAGES_PASZLIB=1
  1431. REQUIRE_PACKAGES_NETDB=1
  1432. REQUIRE_PACKAGES_LIBASYNC=1
  1433. REQUIRE_PACKAGES_PTHREADS=1
  1434. REQUIRE_PACKAGES_FCL=1
  1435. REQUIRE_PACKAGES_PASJPEG=1
  1436. REQUIRE_PACKAGES_IBASE=1
  1437. REQUIRE_PACKAGES_POSTGRES=1
  1438. REQUIRE_PACKAGES_MYSQL=1
  1439. REQUIRE_PACKAGES_SQLITE=1
  1440. endif
  1441. ifeq ($(FULL_TARGET),i386-beos)
  1442. REQUIRE_PACKAGES_RTL=1
  1443. REQUIRE_PACKAGES_PASZLIB=1
  1444. REQUIRE_PACKAGES_FCL=1
  1445. REQUIRE_PACKAGES_PASJPEG=1
  1446. REQUIRE_PACKAGES_NETDB=1
  1447. REQUIRE_PACKAGES_LIBASYNC=1
  1448. endif
  1449. ifeq ($(FULL_TARGET),i386-netbsd)
  1450. REQUIRE_PACKAGES_RTL=1
  1451. REQUIRE_PACKAGES_PASZLIB=1
  1452. REQUIRE_PACKAGES_NETDB=1
  1453. REQUIRE_PACKAGES_LIBASYNC=1
  1454. REQUIRE_PACKAGES_FCL=1
  1455. REQUIRE_PACKAGES_PASJPEG=1
  1456. REQUIRE_PACKAGES_IBASE=1
  1457. REQUIRE_PACKAGES_POSTGRES=1
  1458. REQUIRE_PACKAGES_MYSQL=1
  1459. REQUIRE_PACKAGES_SQLITE=1
  1460. endif
  1461. ifeq ($(FULL_TARGET),i386-sunos)
  1462. REQUIRE_PACKAGES_RTL=1
  1463. REQUIRE_PACKAGES_PASZLIB=1
  1464. REQUIRE_PACKAGES_FCL=1
  1465. REQUIRE_PACKAGES_PASJPEG=1
  1466. REQUIRE_PACKAGES_NETDB=1
  1467. REQUIRE_PACKAGES_LIBASYNC=1
  1468. endif
  1469. ifeq ($(FULL_TARGET),i386-qnx)
  1470. REQUIRE_PACKAGES_RTL=1
  1471. REQUIRE_PACKAGES_PASZLIB=1
  1472. REQUIRE_PACKAGES_FCL=1
  1473. REQUIRE_PACKAGES_PASJPEG=1
  1474. REQUIRE_PACKAGES_NETDB=1
  1475. REQUIRE_PACKAGES_LIBASYNC=1
  1476. endif
  1477. ifeq ($(FULL_TARGET),i386-netware)
  1478. REQUIRE_PACKAGES_RTL=1
  1479. REQUIRE_PACKAGES_PASZLIB=1
  1480. REQUIRE_PACKAGES_FCL=1
  1481. REQUIRE_PACKAGES_PASJPEG=1
  1482. REQUIRE_PACKAGES_NETDB=1
  1483. REQUIRE_PACKAGES_LIBASYNC=1
  1484. endif
  1485. ifeq ($(FULL_TARGET),i386-openbsd)
  1486. REQUIRE_PACKAGES_RTL=1
  1487. REQUIRE_PACKAGES_PASZLIB=1
  1488. REQUIRE_PACKAGES_NETDB=1
  1489. REQUIRE_PACKAGES_LIBASYNC=1
  1490. REQUIRE_PACKAGES_FCL=1
  1491. REQUIRE_PACKAGES_PASJPEG=1
  1492. REQUIRE_PACKAGES_IBASE=1
  1493. REQUIRE_PACKAGES_POSTGRES=1
  1494. REQUIRE_PACKAGES_MYSQL=1
  1495. REQUIRE_PACKAGES_SQLITE=1
  1496. endif
  1497. ifeq ($(FULL_TARGET),i386-wdosx)
  1498. REQUIRE_PACKAGES_RTL=1
  1499. REQUIRE_PACKAGES_PASZLIB=1
  1500. REQUIRE_PACKAGES_FCL=1
  1501. REQUIRE_PACKAGES_PASJPEG=1
  1502. REQUIRE_PACKAGES_NETDB=1
  1503. REQUIRE_PACKAGES_LIBASYNC=1
  1504. endif
  1505. ifeq ($(FULL_TARGET),i386-emx)
  1506. REQUIRE_PACKAGES_RTL=1
  1507. REQUIRE_PACKAGES_PASZLIB=1
  1508. REQUIRE_PACKAGES_FCL=1
  1509. REQUIRE_PACKAGES_PASJPEG=1
  1510. REQUIRE_PACKAGES_NETDB=1
  1511. REQUIRE_PACKAGES_LIBASYNC=1
  1512. endif
  1513. ifeq ($(FULL_TARGET),i386-watcom)
  1514. REQUIRE_PACKAGES_RTL=1
  1515. REQUIRE_PACKAGES_PASZLIB=1
  1516. REQUIRE_PACKAGES_FCL=1
  1517. REQUIRE_PACKAGES_PASJPEG=1
  1518. REQUIRE_PACKAGES_NETDB=1
  1519. REQUIRE_PACKAGES_LIBASYNC=1
  1520. endif
  1521. ifeq ($(FULL_TARGET),i386-netwlibc)
  1522. REQUIRE_PACKAGES_RTL=1
  1523. REQUIRE_PACKAGES_PASZLIB=1
  1524. REQUIRE_PACKAGES_FCL=1
  1525. REQUIRE_PACKAGES_PASJPEG=1
  1526. REQUIRE_PACKAGES_NETDB=1
  1527. REQUIRE_PACKAGES_LIBASYNC=1
  1528. endif
  1529. ifeq ($(FULL_TARGET),m68k-linux)
  1530. REQUIRE_PACKAGES_RTL=1
  1531. REQUIRE_PACKAGES_PASZLIB=1
  1532. REQUIRE_PACKAGES_NETDB=1
  1533. REQUIRE_PACKAGES_LIBASYNC=1
  1534. REQUIRE_PACKAGES_PTHREADS=1
  1535. REQUIRE_PACKAGES_FCL=1
  1536. REQUIRE_PACKAGES_PASJPEG=1
  1537. REQUIRE_PACKAGES_IBASE=1
  1538. REQUIRE_PACKAGES_POSTGRES=1
  1539. REQUIRE_PACKAGES_MYSQL=1
  1540. REQUIRE_PACKAGES_SQLITE=1
  1541. endif
  1542. ifeq ($(FULL_TARGET),m68k-freebsd)
  1543. REQUIRE_PACKAGES_RTL=1
  1544. REQUIRE_PACKAGES_PASZLIB=1
  1545. REQUIRE_PACKAGES_NETDB=1
  1546. REQUIRE_PACKAGES_LIBASYNC=1
  1547. REQUIRE_PACKAGES_PTHREADS=1
  1548. REQUIRE_PACKAGES_FCL=1
  1549. REQUIRE_PACKAGES_PASJPEG=1
  1550. REQUIRE_PACKAGES_IBASE=1
  1551. REQUIRE_PACKAGES_POSTGRES=1
  1552. REQUIRE_PACKAGES_MYSQL=1
  1553. REQUIRE_PACKAGES_SQLITE=1
  1554. endif
  1555. ifeq ($(FULL_TARGET),m68k-netbsd)
  1556. REQUIRE_PACKAGES_RTL=1
  1557. REQUIRE_PACKAGES_PASZLIB=1
  1558. REQUIRE_PACKAGES_NETDB=1
  1559. REQUIRE_PACKAGES_LIBASYNC=1
  1560. REQUIRE_PACKAGES_FCL=1
  1561. REQUIRE_PACKAGES_PASJPEG=1
  1562. REQUIRE_PACKAGES_IBASE=1
  1563. REQUIRE_PACKAGES_POSTGRES=1
  1564. REQUIRE_PACKAGES_MYSQL=1
  1565. REQUIRE_PACKAGES_SQLITE=1
  1566. endif
  1567. ifeq ($(FULL_TARGET),m68k-amiga)
  1568. REQUIRE_PACKAGES_RTL=1
  1569. REQUIRE_PACKAGES_PASZLIB=1
  1570. REQUIRE_PACKAGES_FCL=1
  1571. REQUIRE_PACKAGES_PASJPEG=1
  1572. REQUIRE_PACKAGES_NETDB=1
  1573. REQUIRE_PACKAGES_LIBASYNC=1
  1574. endif
  1575. ifeq ($(FULL_TARGET),m68k-atari)
  1576. REQUIRE_PACKAGES_RTL=1
  1577. REQUIRE_PACKAGES_PASZLIB=1
  1578. REQUIRE_PACKAGES_FCL=1
  1579. REQUIRE_PACKAGES_PASJPEG=1
  1580. REQUIRE_PACKAGES_NETDB=1
  1581. REQUIRE_PACKAGES_LIBASYNC=1
  1582. endif
  1583. ifeq ($(FULL_TARGET),m68k-openbsd)
  1584. REQUIRE_PACKAGES_RTL=1
  1585. REQUIRE_PACKAGES_PASZLIB=1
  1586. REQUIRE_PACKAGES_NETDB=1
  1587. REQUIRE_PACKAGES_LIBASYNC=1
  1588. REQUIRE_PACKAGES_FCL=1
  1589. REQUIRE_PACKAGES_PASJPEG=1
  1590. REQUIRE_PACKAGES_IBASE=1
  1591. REQUIRE_PACKAGES_POSTGRES=1
  1592. REQUIRE_PACKAGES_MYSQL=1
  1593. REQUIRE_PACKAGES_SQLITE=1
  1594. endif
  1595. ifeq ($(FULL_TARGET),m68k-palmos)
  1596. REQUIRE_PACKAGES_RTL=1
  1597. REQUIRE_PACKAGES_PASZLIB=1
  1598. REQUIRE_PACKAGES_FCL=1
  1599. REQUIRE_PACKAGES_PASJPEG=1
  1600. REQUIRE_PACKAGES_NETDB=1
  1601. REQUIRE_PACKAGES_LIBASYNC=1
  1602. endif
  1603. ifeq ($(FULL_TARGET),powerpc-linux)
  1604. REQUIRE_PACKAGES_RTL=1
  1605. REQUIRE_PACKAGES_PASZLIB=1
  1606. REQUIRE_PACKAGES_NETDB=1
  1607. REQUIRE_PACKAGES_LIBASYNC=1
  1608. REQUIRE_PACKAGES_PTHREADS=1
  1609. REQUIRE_PACKAGES_FCL=1
  1610. REQUIRE_PACKAGES_PASJPEG=1
  1611. REQUIRE_PACKAGES_IBASE=1
  1612. REQUIRE_PACKAGES_POSTGRES=1
  1613. REQUIRE_PACKAGES_MYSQL=1
  1614. REQUIRE_PACKAGES_SQLITE=1
  1615. endif
  1616. ifeq ($(FULL_TARGET),powerpc-netbsd)
  1617. REQUIRE_PACKAGES_RTL=1
  1618. REQUIRE_PACKAGES_PASZLIB=1
  1619. REQUIRE_PACKAGES_NETDB=1
  1620. REQUIRE_PACKAGES_LIBASYNC=1
  1621. REQUIRE_PACKAGES_FCL=1
  1622. REQUIRE_PACKAGES_PASJPEG=1
  1623. REQUIRE_PACKAGES_IBASE=1
  1624. REQUIRE_PACKAGES_POSTGRES=1
  1625. REQUIRE_PACKAGES_MYSQL=1
  1626. REQUIRE_PACKAGES_SQLITE=1
  1627. endif
  1628. ifeq ($(FULL_TARGET),powerpc-macos)
  1629. REQUIRE_PACKAGES_RTL=1
  1630. REQUIRE_PACKAGES_PASZLIB=1
  1631. REQUIRE_PACKAGES_FCL=1
  1632. REQUIRE_PACKAGES_PASJPEG=1
  1633. REQUIRE_PACKAGES_NETDB=1
  1634. REQUIRE_PACKAGES_LIBASYNC=1
  1635. endif
  1636. ifeq ($(FULL_TARGET),powerpc-darwin)
  1637. REQUIRE_PACKAGES_RTL=1
  1638. REQUIRE_PACKAGES_PASZLIB=1
  1639. REQUIRE_PACKAGES_NETDB=1
  1640. REQUIRE_PACKAGES_LIBASYNC=1
  1641. REQUIRE_PACKAGES_PTHREADS=1
  1642. REQUIRE_PACKAGES_FCL=1
  1643. REQUIRE_PACKAGES_PASJPEG=1
  1644. REQUIRE_PACKAGES_IBASE=1
  1645. REQUIRE_PACKAGES_POSTGRES=1
  1646. REQUIRE_PACKAGES_MYSQL=1
  1647. REQUIRE_PACKAGES_SQLITE=1
  1648. endif
  1649. ifeq ($(FULL_TARGET),powerpc-morphos)
  1650. REQUIRE_PACKAGES_RTL=1
  1651. REQUIRE_PACKAGES_PASZLIB=1
  1652. REQUIRE_PACKAGES_FCL=1
  1653. REQUIRE_PACKAGES_PASJPEG=1
  1654. REQUIRE_PACKAGES_NETDB=1
  1655. REQUIRE_PACKAGES_LIBASYNC=1
  1656. endif
  1657. ifeq ($(FULL_TARGET),sparc-linux)
  1658. REQUIRE_PACKAGES_RTL=1
  1659. REQUIRE_PACKAGES_PASZLIB=1
  1660. REQUIRE_PACKAGES_NETDB=1
  1661. REQUIRE_PACKAGES_LIBASYNC=1
  1662. REQUIRE_PACKAGES_PTHREADS=1
  1663. REQUIRE_PACKAGES_FCL=1
  1664. REQUIRE_PACKAGES_PASJPEG=1
  1665. REQUIRE_PACKAGES_IBASE=1
  1666. REQUIRE_PACKAGES_POSTGRES=1
  1667. REQUIRE_PACKAGES_MYSQL=1
  1668. REQUIRE_PACKAGES_SQLITE=1
  1669. endif
  1670. ifeq ($(FULL_TARGET),sparc-netbsd)
  1671. REQUIRE_PACKAGES_RTL=1
  1672. REQUIRE_PACKAGES_PASZLIB=1
  1673. REQUIRE_PACKAGES_NETDB=1
  1674. REQUIRE_PACKAGES_LIBASYNC=1
  1675. REQUIRE_PACKAGES_FCL=1
  1676. REQUIRE_PACKAGES_PASJPEG=1
  1677. REQUIRE_PACKAGES_IBASE=1
  1678. REQUIRE_PACKAGES_POSTGRES=1
  1679. REQUIRE_PACKAGES_MYSQL=1
  1680. REQUIRE_PACKAGES_SQLITE=1
  1681. endif
  1682. ifeq ($(FULL_TARGET),sparc-sunos)
  1683. REQUIRE_PACKAGES_RTL=1
  1684. REQUIRE_PACKAGES_PASZLIB=1
  1685. REQUIRE_PACKAGES_FCL=1
  1686. REQUIRE_PACKAGES_PASJPEG=1
  1687. REQUIRE_PACKAGES_NETDB=1
  1688. REQUIRE_PACKAGES_LIBASYNC=1
  1689. endif
  1690. ifeq ($(FULL_TARGET),x86_64-linux)
  1691. REQUIRE_PACKAGES_RTL=1
  1692. REQUIRE_PACKAGES_PASZLIB=1
  1693. REQUIRE_PACKAGES_NETDB=1
  1694. REQUIRE_PACKAGES_LIBASYNC=1
  1695. REQUIRE_PACKAGES_PTHREADS=1
  1696. REQUIRE_PACKAGES_FCL=1
  1697. REQUIRE_PACKAGES_PASJPEG=1
  1698. REQUIRE_PACKAGES_IBASE=1
  1699. REQUIRE_PACKAGES_POSTGRES=1
  1700. REQUIRE_PACKAGES_MYSQL=1
  1701. REQUIRE_PACKAGES_SQLITE=1
  1702. endif
  1703. ifeq ($(FULL_TARGET),x86_64-freebsd)
  1704. REQUIRE_PACKAGES_RTL=1
  1705. REQUIRE_PACKAGES_PASZLIB=1
  1706. REQUIRE_PACKAGES_NETDB=1
  1707. REQUIRE_PACKAGES_LIBASYNC=1
  1708. REQUIRE_PACKAGES_PTHREADS=1
  1709. REQUIRE_PACKAGES_FCL=1
  1710. REQUIRE_PACKAGES_PASJPEG=1
  1711. REQUIRE_PACKAGES_IBASE=1
  1712. REQUIRE_PACKAGES_POSTGRES=1
  1713. REQUIRE_PACKAGES_MYSQL=1
  1714. REQUIRE_PACKAGES_SQLITE=1
  1715. endif
  1716. ifeq ($(FULL_TARGET),arm-linux)
  1717. REQUIRE_PACKAGES_RTL=1
  1718. REQUIRE_PACKAGES_PASZLIB=1
  1719. REQUIRE_PACKAGES_NETDB=1
  1720. REQUIRE_PACKAGES_LIBASYNC=1
  1721. REQUIRE_PACKAGES_PTHREADS=1
  1722. REQUIRE_PACKAGES_FCL=1
  1723. REQUIRE_PACKAGES_PASJPEG=1
  1724. REQUIRE_PACKAGES_IBASE=1
  1725. REQUIRE_PACKAGES_POSTGRES=1
  1726. REQUIRE_PACKAGES_MYSQL=1
  1727. REQUIRE_PACKAGES_SQLITE=1
  1728. endif
  1729. ifdef REQUIRE_PACKAGES_RTL
  1730. PACKAGEDIR_RTL:=$(firstword $(subst /Makefile.fpc,,$(strip $(wildcard $(addsuffix /rtl/Makefile.fpc,$(PACKAGESDIR))))))
  1731. ifneq ($(PACKAGEDIR_RTL),)
  1732. ifneq ($(wildcard $(PACKAGEDIR_RTL)/units/$(TARGETSUFFIX)),)
  1733. UNITDIR_RTL=$(PACKAGEDIR_RTL)/units/$(TARGETSUFFIX)
  1734. else
  1735. UNITDIR_RTL=$(PACKAGEDIR_RTL)
  1736. endif
  1737. ifdef CHECKDEPEND
  1738. $(PACKAGEDIR_RTL)/$(FPCMADE):
  1739. $(MAKE) -C $(PACKAGEDIR_RTL) $(FPCMADE)
  1740. override ALLDEPENDENCIES+=$(PACKAGEDIR_RTL)/$(FPCMADE)
  1741. endif
  1742. else
  1743. PACKAGEDIR_RTL=
  1744. UNITDIR_RTL:=$(subst /Package.fpc,,$(strip $(wildcard $(addsuffix /rtl/Package.fpc,$(UNITSDIR)))))
  1745. ifneq ($(UNITDIR_RTL),)
  1746. UNITDIR_RTL:=$(firstword $(UNITDIR_RTL))
  1747. else
  1748. UNITDIR_RTL=
  1749. endif
  1750. endif
  1751. ifdef UNITDIR_RTL
  1752. override COMPILER_UNITDIR+=$(UNITDIR_RTL)
  1753. endif
  1754. endif
  1755. ifdef REQUIRE_PACKAGES_PASZLIB
  1756. PACKAGEDIR_PASZLIB:=$(firstword $(subst /Makefile.fpc,,$(strip $(wildcard $(addsuffix /paszlib/Makefile.fpc,$(PACKAGESDIR))))))
  1757. ifneq ($(PACKAGEDIR_PASZLIB),)
  1758. ifneq ($(wildcard $(PACKAGEDIR_PASZLIB)/units/$(TARGETSUFFIX)),)
  1759. UNITDIR_PASZLIB=$(PACKAGEDIR_PASZLIB)/units/$(TARGETSUFFIX)
  1760. else
  1761. UNITDIR_PASZLIB=$(PACKAGEDIR_PASZLIB)
  1762. endif
  1763. ifdef CHECKDEPEND
  1764. $(PACKAGEDIR_PASZLIB)/$(FPCMADE):
  1765. $(MAKE) -C $(PACKAGEDIR_PASZLIB) $(FPCMADE)
  1766. override ALLDEPENDENCIES+=$(PACKAGEDIR_PASZLIB)/$(FPCMADE)
  1767. endif
  1768. else
  1769. PACKAGEDIR_PASZLIB=
  1770. UNITDIR_PASZLIB:=$(subst /Package.fpc,,$(strip $(wildcard $(addsuffix /paszlib/Package.fpc,$(UNITSDIR)))))
  1771. ifneq ($(UNITDIR_PASZLIB),)
  1772. UNITDIR_PASZLIB:=$(firstword $(UNITDIR_PASZLIB))
  1773. else
  1774. UNITDIR_PASZLIB=
  1775. endif
  1776. endif
  1777. ifdef UNITDIR_PASZLIB
  1778. override COMPILER_UNITDIR+=$(UNITDIR_PASZLIB)
  1779. endif
  1780. endif
  1781. ifdef REQUIRE_PACKAGES_NETDB
  1782. PACKAGEDIR_NETDB:=$(firstword $(subst /Makefile.fpc,,$(strip $(wildcard $(addsuffix /netdb/Makefile.fpc,$(PACKAGESDIR))))))
  1783. ifneq ($(PACKAGEDIR_NETDB),)
  1784. ifneq ($(wildcard $(PACKAGEDIR_NETDB)/units/$(TARGETSUFFIX)),)
  1785. UNITDIR_NETDB=$(PACKAGEDIR_NETDB)/units/$(TARGETSUFFIX)
  1786. else
  1787. UNITDIR_NETDB=$(PACKAGEDIR_NETDB)
  1788. endif
  1789. ifdef CHECKDEPEND
  1790. $(PACKAGEDIR_NETDB)/$(FPCMADE):
  1791. $(MAKE) -C $(PACKAGEDIR_NETDB) $(FPCMADE)
  1792. override ALLDEPENDENCIES+=$(PACKAGEDIR_NETDB)/$(FPCMADE)
  1793. endif
  1794. else
  1795. PACKAGEDIR_NETDB=
  1796. UNITDIR_NETDB:=$(subst /Package.fpc,,$(strip $(wildcard $(addsuffix /netdb/Package.fpc,$(UNITSDIR)))))
  1797. ifneq ($(UNITDIR_NETDB),)
  1798. UNITDIR_NETDB:=$(firstword $(UNITDIR_NETDB))
  1799. else
  1800. UNITDIR_NETDB=
  1801. endif
  1802. endif
  1803. ifdef UNITDIR_NETDB
  1804. override COMPILER_UNITDIR+=$(UNITDIR_NETDB)
  1805. endif
  1806. endif
  1807. ifdef REQUIRE_PACKAGES_LIBASYNC
  1808. PACKAGEDIR_LIBASYNC:=$(firstword $(subst /Makefile.fpc,,$(strip $(wildcard $(addsuffix /libasync/Makefile.fpc,$(PACKAGESDIR))))))
  1809. ifneq ($(PACKAGEDIR_LIBASYNC),)
  1810. ifneq ($(wildcard $(PACKAGEDIR_LIBASYNC)/units/$(TARGETSUFFIX)),)
  1811. UNITDIR_LIBASYNC=$(PACKAGEDIR_LIBASYNC)/units/$(TARGETSUFFIX)
  1812. else
  1813. UNITDIR_LIBASYNC=$(PACKAGEDIR_LIBASYNC)
  1814. endif
  1815. ifdef CHECKDEPEND
  1816. $(PACKAGEDIR_LIBASYNC)/$(FPCMADE):
  1817. $(MAKE) -C $(PACKAGEDIR_LIBASYNC) $(FPCMADE)
  1818. override ALLDEPENDENCIES+=$(PACKAGEDIR_LIBASYNC)/$(FPCMADE)
  1819. endif
  1820. else
  1821. PACKAGEDIR_LIBASYNC=
  1822. UNITDIR_LIBASYNC:=$(subst /Package.fpc,,$(strip $(wildcard $(addsuffix /libasync/Package.fpc,$(UNITSDIR)))))
  1823. ifneq ($(UNITDIR_LIBASYNC),)
  1824. UNITDIR_LIBASYNC:=$(firstword $(UNITDIR_LIBASYNC))
  1825. else
  1826. UNITDIR_LIBASYNC=
  1827. endif
  1828. endif
  1829. ifdef UNITDIR_LIBASYNC
  1830. override COMPILER_UNITDIR+=$(UNITDIR_LIBASYNC)
  1831. endif
  1832. endif
  1833. ifdef REQUIRE_PACKAGES_PTHREADS
  1834. PACKAGEDIR_PTHREADS:=$(firstword $(subst /Makefile.fpc,,$(strip $(wildcard $(addsuffix /pthreads/Makefile.fpc,$(PACKAGESDIR))))))
  1835. ifneq ($(PACKAGEDIR_PTHREADS),)
  1836. ifneq ($(wildcard $(PACKAGEDIR_PTHREADS)/units/$(TARGETSUFFIX)),)
  1837. UNITDIR_PTHREADS=$(PACKAGEDIR_PTHREADS)/units/$(TARGETSUFFIX)
  1838. else
  1839. UNITDIR_PTHREADS=$(PACKAGEDIR_PTHREADS)
  1840. endif
  1841. ifdef CHECKDEPEND
  1842. $(PACKAGEDIR_PTHREADS)/$(FPCMADE):
  1843. $(MAKE) -C $(PACKAGEDIR_PTHREADS) $(FPCMADE)
  1844. override ALLDEPENDENCIES+=$(PACKAGEDIR_PTHREADS)/$(FPCMADE)
  1845. endif
  1846. else
  1847. PACKAGEDIR_PTHREADS=
  1848. UNITDIR_PTHREADS:=$(subst /Package.fpc,,$(strip $(wildcard $(addsuffix /pthreads/Package.fpc,$(UNITSDIR)))))
  1849. ifneq ($(UNITDIR_PTHREADS),)
  1850. UNITDIR_PTHREADS:=$(firstword $(UNITDIR_PTHREADS))
  1851. else
  1852. UNITDIR_PTHREADS=
  1853. endif
  1854. endif
  1855. ifdef UNITDIR_PTHREADS
  1856. override COMPILER_UNITDIR+=$(UNITDIR_PTHREADS)
  1857. endif
  1858. endif
  1859. ifdef REQUIRE_PACKAGES_FCL
  1860. PACKAGEDIR_FCL:=$(firstword $(subst /Makefile.fpc,,$(strip $(wildcard $(addsuffix /fcl/Makefile.fpc,$(PACKAGESDIR))))))
  1861. ifneq ($(PACKAGEDIR_FCL),)
  1862. ifneq ($(wildcard $(PACKAGEDIR_FCL)/units/$(TARGETSUFFIX)),)
  1863. UNITDIR_FCL=$(PACKAGEDIR_FCL)/units/$(TARGETSUFFIX)
  1864. else
  1865. UNITDIR_FCL=$(PACKAGEDIR_FCL)
  1866. endif
  1867. ifdef CHECKDEPEND
  1868. $(PACKAGEDIR_FCL)/$(FPCMADE):
  1869. $(MAKE) -C $(PACKAGEDIR_FCL) $(FPCMADE)
  1870. override ALLDEPENDENCIES+=$(PACKAGEDIR_FCL)/$(FPCMADE)
  1871. endif
  1872. else
  1873. PACKAGEDIR_FCL=
  1874. UNITDIR_FCL:=$(subst /Package.fpc,,$(strip $(wildcard $(addsuffix /fcl/Package.fpc,$(UNITSDIR)))))
  1875. ifneq ($(UNITDIR_FCL),)
  1876. UNITDIR_FCL:=$(firstword $(UNITDIR_FCL))
  1877. else
  1878. UNITDIR_FCL=
  1879. endif
  1880. endif
  1881. ifdef UNITDIR_FCL
  1882. override COMPILER_UNITDIR+=$(UNITDIR_FCL)
  1883. endif
  1884. endif
  1885. ifdef REQUIRE_PACKAGES_PASJPEG
  1886. PACKAGEDIR_PASJPEG:=$(firstword $(subst /Makefile.fpc,,$(strip $(wildcard $(addsuffix /pasjpeg/Makefile.fpc,$(PACKAGESDIR))))))
  1887. ifneq ($(PACKAGEDIR_PASJPEG),)
  1888. ifneq ($(wildcard $(PACKAGEDIR_PASJPEG)/units/$(TARGETSUFFIX)),)
  1889. UNITDIR_PASJPEG=$(PACKAGEDIR_PASJPEG)/units/$(TARGETSUFFIX)
  1890. else
  1891. UNITDIR_PASJPEG=$(PACKAGEDIR_PASJPEG)
  1892. endif
  1893. ifdef CHECKDEPEND
  1894. $(PACKAGEDIR_PASJPEG)/$(FPCMADE):
  1895. $(MAKE) -C $(PACKAGEDIR_PASJPEG) $(FPCMADE)
  1896. override ALLDEPENDENCIES+=$(PACKAGEDIR_PASJPEG)/$(FPCMADE)
  1897. endif
  1898. else
  1899. PACKAGEDIR_PASJPEG=
  1900. UNITDIR_PASJPEG:=$(subst /Package.fpc,,$(strip $(wildcard $(addsuffix /pasjpeg/Package.fpc,$(UNITSDIR)))))
  1901. ifneq ($(UNITDIR_PASJPEG),)
  1902. UNITDIR_PASJPEG:=$(firstword $(UNITDIR_PASJPEG))
  1903. else
  1904. UNITDIR_PASJPEG=
  1905. endif
  1906. endif
  1907. ifdef UNITDIR_PASJPEG
  1908. override COMPILER_UNITDIR+=$(UNITDIR_PASJPEG)
  1909. endif
  1910. endif
  1911. ifdef REQUIRE_PACKAGES_IBASE
  1912. PACKAGEDIR_IBASE:=$(firstword $(subst /Makefile.fpc,,$(strip $(wildcard $(addsuffix /ibase/Makefile.fpc,$(PACKAGESDIR))))))
  1913. ifneq ($(PACKAGEDIR_IBASE),)
  1914. ifneq ($(wildcard $(PACKAGEDIR_IBASE)/units/$(TARGETSUFFIX)),)
  1915. UNITDIR_IBASE=$(PACKAGEDIR_IBASE)/units/$(TARGETSUFFIX)
  1916. else
  1917. UNITDIR_IBASE=$(PACKAGEDIR_IBASE)
  1918. endif
  1919. ifdef CHECKDEPEND
  1920. $(PACKAGEDIR_IBASE)/$(FPCMADE):
  1921. $(MAKE) -C $(PACKAGEDIR_IBASE) $(FPCMADE)
  1922. override ALLDEPENDENCIES+=$(PACKAGEDIR_IBASE)/$(FPCMADE)
  1923. endif
  1924. else
  1925. PACKAGEDIR_IBASE=
  1926. UNITDIR_IBASE:=$(subst /Package.fpc,,$(strip $(wildcard $(addsuffix /ibase/Package.fpc,$(UNITSDIR)))))
  1927. ifneq ($(UNITDIR_IBASE),)
  1928. UNITDIR_IBASE:=$(firstword $(UNITDIR_IBASE))
  1929. else
  1930. UNITDIR_IBASE=
  1931. endif
  1932. endif
  1933. ifdef UNITDIR_IBASE
  1934. override COMPILER_UNITDIR+=$(UNITDIR_IBASE)
  1935. endif
  1936. endif
  1937. ifdef REQUIRE_PACKAGES_POSTGRES
  1938. PACKAGEDIR_POSTGRES:=$(firstword $(subst /Makefile.fpc,,$(strip $(wildcard $(addsuffix /postgres/Makefile.fpc,$(PACKAGESDIR))))))
  1939. ifneq ($(PACKAGEDIR_POSTGRES),)
  1940. ifneq ($(wildcard $(PACKAGEDIR_POSTGRES)/units/$(TARGETSUFFIX)),)
  1941. UNITDIR_POSTGRES=$(PACKAGEDIR_POSTGRES)/units/$(TARGETSUFFIX)
  1942. else
  1943. UNITDIR_POSTGRES=$(PACKAGEDIR_POSTGRES)
  1944. endif
  1945. ifdef CHECKDEPEND
  1946. $(PACKAGEDIR_POSTGRES)/$(FPCMADE):
  1947. $(MAKE) -C $(PACKAGEDIR_POSTGRES) $(FPCMADE)
  1948. override ALLDEPENDENCIES+=$(PACKAGEDIR_POSTGRES)/$(FPCMADE)
  1949. endif
  1950. else
  1951. PACKAGEDIR_POSTGRES=
  1952. UNITDIR_POSTGRES:=$(subst /Package.fpc,,$(strip $(wildcard $(addsuffix /postgres/Package.fpc,$(UNITSDIR)))))
  1953. ifneq ($(UNITDIR_POSTGRES),)
  1954. UNITDIR_POSTGRES:=$(firstword $(UNITDIR_POSTGRES))
  1955. else
  1956. UNITDIR_POSTGRES=
  1957. endif
  1958. endif
  1959. ifdef UNITDIR_POSTGRES
  1960. override COMPILER_UNITDIR+=$(UNITDIR_POSTGRES)
  1961. endif
  1962. endif
  1963. ifdef REQUIRE_PACKAGES_MYSQL
  1964. PACKAGEDIR_MYSQL:=$(firstword $(subst /Makefile.fpc,,$(strip $(wildcard $(addsuffix /mysql/Makefile.fpc,$(PACKAGESDIR))))))
  1965. ifneq ($(PACKAGEDIR_MYSQL),)
  1966. ifneq ($(wildcard $(PACKAGEDIR_MYSQL)/units/$(TARGETSUFFIX)),)
  1967. UNITDIR_MYSQL=$(PACKAGEDIR_MYSQL)/units/$(TARGETSUFFIX)
  1968. else
  1969. UNITDIR_MYSQL=$(PACKAGEDIR_MYSQL)
  1970. endif
  1971. ifdef CHECKDEPEND
  1972. $(PACKAGEDIR_MYSQL)/$(FPCMADE):
  1973. $(MAKE) -C $(PACKAGEDIR_MYSQL) $(FPCMADE)
  1974. override ALLDEPENDENCIES+=$(PACKAGEDIR_MYSQL)/$(FPCMADE)
  1975. endif
  1976. else
  1977. PACKAGEDIR_MYSQL=
  1978. UNITDIR_MYSQL:=$(subst /Package.fpc,,$(strip $(wildcard $(addsuffix /mysql/Package.fpc,$(UNITSDIR)))))
  1979. ifneq ($(UNITDIR_MYSQL),)
  1980. UNITDIR_MYSQL:=$(firstword $(UNITDIR_MYSQL))
  1981. else
  1982. UNITDIR_MYSQL=
  1983. endif
  1984. endif
  1985. ifdef UNITDIR_MYSQL
  1986. override COMPILER_UNITDIR+=$(UNITDIR_MYSQL)
  1987. endif
  1988. endif
  1989. ifdef REQUIRE_PACKAGES_SQLITE
  1990. PACKAGEDIR_SQLITE:=$(firstword $(subst /Makefile.fpc,,$(strip $(wildcard $(addsuffix /sqlite/Makefile.fpc,$(PACKAGESDIR))))))
  1991. ifneq ($(PACKAGEDIR_SQLITE),)
  1992. ifneq ($(wildcard $(PACKAGEDIR_SQLITE)/units/$(TARGETSUFFIX)),)
  1993. UNITDIR_SQLITE=$(PACKAGEDIR_SQLITE)/units/$(TARGETSUFFIX)
  1994. else
  1995. UNITDIR_SQLITE=$(PACKAGEDIR_SQLITE)
  1996. endif
  1997. ifdef CHECKDEPEND
  1998. $(PACKAGEDIR_SQLITE)/$(FPCMADE):
  1999. $(MAKE) -C $(PACKAGEDIR_SQLITE) $(FPCMADE)
  2000. override ALLDEPENDENCIES+=$(PACKAGEDIR_SQLITE)/$(FPCMADE)
  2001. endif
  2002. else
  2003. PACKAGEDIR_SQLITE=
  2004. UNITDIR_SQLITE:=$(subst /Package.fpc,,$(strip $(wildcard $(addsuffix /sqlite/Package.fpc,$(UNITSDIR)))))
  2005. ifneq ($(UNITDIR_SQLITE),)
  2006. UNITDIR_SQLITE:=$(firstword $(UNITDIR_SQLITE))
  2007. else
  2008. UNITDIR_SQLITE=
  2009. endif
  2010. endif
  2011. ifdef UNITDIR_SQLITE
  2012. override COMPILER_UNITDIR+=$(UNITDIR_SQLITE)
  2013. endif
  2014. endif
  2015. ifndef NOCPUDEF
  2016. override FPCOPTDEF=$(CPU_TARGET)
  2017. endif
  2018. ifneq ($(OS_TARGET),$(OS_SOURCE))
  2019. override FPCOPT+=-T$(OS_TARGET)
  2020. endif
  2021. ifeq ($(OS_SOURCE),openbsd)
  2022. override FPCOPT+=-FD$(NEW_BINUTILS_PATH)
  2023. endif
  2024. ifndef CROSSBOOTSTRAP
  2025. ifneq ($(BINUTILSPREFIX),)
  2026. override FPCOPT+=-XP$(BINUTILSPREFIX) -Xc
  2027. endif
  2028. ifneq ($(BINUTILSPREFIX),)
  2029. override FPCOPT+=-Xr$(RLINKPATH)
  2030. endif
  2031. endif
  2032. ifdef UNITDIR
  2033. override FPCOPT+=$(addprefix -Fu,$(UNITDIR))
  2034. endif
  2035. ifdef LIBDIR
  2036. override FPCOPT+=$(addprefix -Fl,$(LIBDIR))
  2037. endif
  2038. ifdef OBJDIR
  2039. override FPCOPT+=$(addprefix -Fo,$(OBJDIR))
  2040. endif
  2041. ifdef INCDIR
  2042. override FPCOPT+=$(addprefix -Fi,$(INCDIR))
  2043. endif
  2044. ifdef LINKSMART
  2045. override FPCOPT+=-XX
  2046. endif
  2047. ifdef CREATESMART
  2048. override FPCOPT+=-CX
  2049. endif
  2050. ifdef DEBUG
  2051. override FPCOPT+=-gl
  2052. override FPCOPTDEF+=DEBUG
  2053. endif
  2054. ifdef RELEASE
  2055. ifeq ($(CPU_TARGET),i386)
  2056. FPCCPUOPT:=-OG2p3
  2057. else
  2058. ifeq ($(CPU_TARGET),powerpc)
  2059. FPCCPUOPT:=-O1
  2060. else
  2061. FPCCPUOPT:=
  2062. endif
  2063. endif
  2064. override FPCOPT+=-Xs $(FPCCPUOPT) -n
  2065. override FPCOPTDEF+=RELEASE
  2066. endif
  2067. ifdef STRIP
  2068. override FPCOPT+=-Xs
  2069. endif
  2070. ifdef OPTIMIZE
  2071. ifeq ($(CPU_TARGET),i386)
  2072. override FPCOPT+=-OG2p3
  2073. endif
  2074. endif
  2075. ifdef VERBOSE
  2076. override FPCOPT+=-vwni
  2077. endif
  2078. ifdef COMPILER_OPTIONS
  2079. override FPCOPT+=$(COMPILER_OPTIONS)
  2080. endif
  2081. ifdef COMPILER_UNITDIR
  2082. override FPCOPT+=$(addprefix -Fu,$(COMPILER_UNITDIR))
  2083. endif
  2084. ifdef COMPILER_LIBRARYDIR
  2085. override FPCOPT+=$(addprefix -Fl,$(COMPILER_LIBRARYDIR))
  2086. endif
  2087. ifdef COMPILER_OBJECTDIR
  2088. override FPCOPT+=$(addprefix -Fo,$(COMPILER_OBJECTDIR))
  2089. endif
  2090. ifdef COMPILER_INCLUDEDIR
  2091. override FPCOPT+=$(addprefix -Fi,$(COMPILER_INCLUDEDIR))
  2092. endif
  2093. ifdef CROSSBINDIR
  2094. override FPCOPT+=-FD$(CROSSBINDIR)
  2095. endif
  2096. ifdef COMPILER_TARGETDIR
  2097. override FPCOPT+=-FE$(COMPILER_TARGETDIR)
  2098. ifeq ($(COMPILER_TARGETDIR),.)
  2099. override TARGETDIRPREFIX=
  2100. else
  2101. override TARGETDIRPREFIX=$(COMPILER_TARGETDIR)/
  2102. endif
  2103. endif
  2104. ifdef COMPILER_UNITTARGETDIR
  2105. override FPCOPT+=-FU$(COMPILER_UNITTARGETDIR)
  2106. ifeq ($(COMPILER_UNITTARGETDIR),.)
  2107. override UNITTARGETDIRPREFIX=
  2108. else
  2109. override UNITTARGETDIRPREFIX=$(COMPILER_UNITTARGETDIR)/
  2110. endif
  2111. else
  2112. ifdef COMPILER_TARGETDIR
  2113. override COMPILER_UNITTARGETDIR=$(COMPILER_TARGETDIR)
  2114. override UNITTARGETDIRPREFIX=$(TARGETDIRPREFIX)
  2115. endif
  2116. endif
  2117. ifeq ($(OS_TARGET),linux)
  2118. ifeq ($(FPC_VERSION),1.0.6)
  2119. override FPCOPTDEF+=HASUNIX
  2120. endif
  2121. endif
  2122. ifdef GCCLIBDIR
  2123. override FPCOPT+=-Fl$(GCCLIBDIR)
  2124. endif
  2125. ifdef OTHERLIBDIR
  2126. override FPCOPT+=$(addprefix -Fl,$(OTHERLIBDIR))
  2127. endif
  2128. ifdef OPT
  2129. override FPCOPT+=$(OPT)
  2130. endif
  2131. ifdef FPCOPTDEF
  2132. override FPCOPT+=$(addprefix -d,$(FPCOPTDEF))
  2133. endif
  2134. ifdef CFGFILE
  2135. override FPCOPT+=@$(CFGFILE)
  2136. endif
  2137. ifdef USEENV
  2138. override FPCEXTCMD:=$(FPCOPT)
  2139. override FPCOPT:=!FPCEXTCMD
  2140. export FPCEXTCMD
  2141. endif
  2142. override COMPILER:=$(FPC) $(FPCOPT)
  2143. ifeq (,$(findstring -s ,$(COMPILER)))
  2144. EXECPPAS=
  2145. else
  2146. ifeq ($(FULL_SOURCE),$(FULL_TARGET))
  2147. EXECPPAS:=@$(PPAS)
  2148. endif
  2149. endif
  2150. .PHONY: fpc_exes
  2151. ifndef CROSSINSTALL
  2152. ifneq ($(TARGET_PROGRAMS),)
  2153. override EXEFILES=$(addsuffix $(EXEEXT),$(TARGET_PROGRAMS))
  2154. override EXEOFILES:=$(addsuffix $(OEXT),$(TARGET_PROGRAMS)) $(addprefix $(STATICLIBPREFIX),$(addsuffix $(STATICLIBEXT),$(TARGET_PROGRAMS)))
  2155. override ALLTARGET+=fpc_exes
  2156. override INSTALLEXEFILES+=$(EXEFILES)
  2157. override CLEANEXEFILES+=$(EXEFILES) $(EXEOFILES)
  2158. ifeq ($(OS_TARGET),os2)
  2159. override CLEANEXEFILES+=$(addsuffix $(AOUTEXT),$(TARGET_PROGRAMS))
  2160. endif
  2161. ifeq ($(OS_TARGET),emx)
  2162. override CLEANEXEFILES+=$(addsuffix $(AOUTEXT),$(TARGET_PROGRAMS))
  2163. endif
  2164. endif
  2165. endif
  2166. fpc_exes: $(COMPILER_TARGETDIR) $(COMPILER_UNITTARGETDIR) $(EXEFILES)
  2167. ifdef TARGET_RSTS
  2168. override RSTFILES=$(addsuffix $(RSTEXT),$(TARGET_RSTS))
  2169. override CLEANRSTFILES+=$(RSTFILES)
  2170. endif
  2171. .PHONY: fpc_all fpc_smart fpc_debug fpc_release
  2172. $(FPCMADE): $(ALLDEPENDENCIES) $(ALLTARGET)
  2173. @$(ECHOREDIR) Compiled > $(FPCMADE)
  2174. fpc_all: $(FPCMADE)
  2175. fpc_smart:
  2176. $(MAKE) all LINKSMART=1 CREATESMART=1
  2177. fpc_debug:
  2178. $(MAKE) all DEBUG=1
  2179. fpc_release:
  2180. $(MAKE) all RELEASE=1
  2181. .SUFFIXES: $(EXEEXT) $(PPUEXT) $(OEXT) .pas .lpr .dpr .pp .rc .res
  2182. $(COMPILER_UNITTARGETDIR):
  2183. $(MKDIRTREE) $(COMPILER_UNITTARGETDIR)
  2184. $(COMPILER_TARGETDIR):
  2185. $(MKDIRTREE) $(COMPILER_TARGETDIR)
  2186. %$(PPUEXT): %.pp
  2187. $(COMPILER) $<
  2188. $(EXECPPAS)
  2189. %$(PPUEXT): %.pas
  2190. $(COMPILER) $<
  2191. $(EXECPPAS)
  2192. %$(EXEEXT): %.pp
  2193. $(COMPILER) $<
  2194. $(EXECPPAS)
  2195. %$(EXEEXT): %.pas
  2196. $(COMPILER) $<
  2197. $(EXECPPAS)
  2198. %$(EXEEXT): %.lpr
  2199. $(COMPILER) $<
  2200. $(EXECPPAS)
  2201. %$(EXEEXT): %.dpr
  2202. $(COMPILER) $<
  2203. $(EXECPPAS)
  2204. %.res: %.rc
  2205. windres -i $< -o $@
  2206. vpath %.pp $(COMPILER_SOURCEDIR) $(COMPILER_INCLUDEDIR)
  2207. vpath %.pas $(COMPILER_SOURCEDIR) $(COMPILER_INCLUDEDIR)
  2208. vpath %.lpr $(COMPILER_SOURCEDIR) $(COMPILER_INCLUDEDIR)
  2209. vpath %.dpr $(COMPILER_SOURCEDIR) $(COMPILER_INCLUDEDIR)
  2210. vpath %$(OEXT) $(COMPILER_UNITTARGETDIR)
  2211. vpath %$(PPUEXT) $(COMPILER_UNITTARGETDIR)
  2212. .PHONY: fpc_install fpc_sourceinstall fpc_exampleinstall
  2213. ifdef INSTALL_UNITS
  2214. override INSTALLPPUFILES+=$(addsuffix $(PPUEXT),$(INSTALL_UNITS))
  2215. endif
  2216. ifdef INSTALL_BUILDUNIT
  2217. override INSTALLPPUFILES:=$(filter-out $(INSTALL_BUILDUNIT)$(PPUEXT),$(INSTALLPPUFILES))
  2218. endif
  2219. ifdef INSTALLPPUFILES
  2220. override INSTALLPPULINKFILES:=$(subst $(PPUEXT),$(OEXT),$(INSTALLPPUFILES)) $(addprefix $(STATICLIBPREFIX),$(subst $(PPUEXT),$(STATICLIBEXT),$(INSTALLPPUFILES)))
  2221. override INSTALLPPUFILES:=$(addprefix $(UNITTARGETDIRPREFIX),$(INSTALLPPUFILES))
  2222. override INSTALLPPULINKFILES:=$(wildcard $(addprefix $(UNITTARGETDIRPREFIX),$(INSTALLPPULINKFILES)))
  2223. override INSTALL_CREATEPACKAGEFPC=1
  2224. endif
  2225. ifdef INSTALLEXEFILES
  2226. override INSTALLEXEFILES:=$(addprefix $(TARGETDIRPREFIX),$(INSTALLEXEFILES))
  2227. endif
  2228. fpc_install: all $(INSTALLTARGET)
  2229. ifdef INSTALLEXEFILES
  2230. $(MKDIR) $(INSTALL_BINDIR)
  2231. ifdef UPXPROG
  2232. -$(UPXPROG) $(INSTALLEXEFILES)
  2233. endif
  2234. $(INSTALLEXE) $(INSTALLEXEFILES) $(INSTALL_BINDIR)
  2235. endif
  2236. ifdef INSTALL_CREATEPACKAGEFPC
  2237. ifdef FPCMAKE
  2238. ifdef PACKAGE_VERSION
  2239. ifneq ($(wildcard Makefile.fpc),)
  2240. $(FPCMAKE) -p -T$(OS_TARGET) Makefile.fpc
  2241. $(MKDIR) $(INSTALL_UNITDIR)
  2242. $(INSTALL) Package.fpc $(INSTALL_UNITDIR)
  2243. endif
  2244. endif
  2245. endif
  2246. endif
  2247. ifdef INSTALLPPUFILES
  2248. $(MKDIR) $(INSTALL_UNITDIR)
  2249. $(INSTALL) $(INSTALLPPUFILES) $(INSTALL_UNITDIR)
  2250. ifneq ($(INSTALLPPULINKFILES),)
  2251. $(INSTALL) $(INSTALLPPULINKFILES) $(INSTALL_UNITDIR)
  2252. endif
  2253. ifneq ($(wildcard $(LIB_FULLNAME)),)
  2254. $(MKDIR) $(INSTALL_LIBDIR)
  2255. $(INSTALL) $(LIB_FULLNAME) $(INSTALL_LIBDIR)
  2256. ifdef inUnix
  2257. ln -sf $(LIB_FULLNAME) $(INSTALL_LIBDIR)/$(LIB_NAME)
  2258. endif
  2259. endif
  2260. endif
  2261. ifdef INSTALL_FILES
  2262. $(MKDIR) $(INSTALL_DATADIR)
  2263. $(INSTALL) $(INSTALL_FILES) $(INSTALL_DATADIR)
  2264. endif
  2265. fpc_sourceinstall: distclean
  2266. $(MKDIR) $(INSTALL_SOURCEDIR)
  2267. $(COPYTREE) $(BASEDIR)/* $(INSTALL_SOURCEDIR)
  2268. fpc_exampleinstall: $(addsuffix _distclean,$(TARGET_EXAMPLEDIRS))
  2269. ifdef HASEXAMPLES
  2270. $(MKDIR) $(INSTALL_EXAMPLEDIR)
  2271. endif
  2272. ifdef EXAMPLESOURCEFILES
  2273. $(COPY) $(EXAMPLESOURCEFILES) $(INSTALL_EXAMPLEDIR)
  2274. endif
  2275. ifdef TARGET_EXAMPLEDIRS
  2276. $(COPYTREE) $(addsuffix /*,$(TARGET_EXAMPLEDIRS)) $(INSTALL_EXAMPLEDIR)
  2277. endif
  2278. .PHONY: fpc_distinstall
  2279. fpc_distinstall: install exampleinstall
  2280. .PHONY: fpc_zipinstall fpc_zipsourceinstall fpc_zipexampleinstall
  2281. ifndef PACKDIR
  2282. ifndef inUnix
  2283. PACKDIR=$(BASEDIR)/../fpc-pack
  2284. else
  2285. PACKDIR=/tmp/fpc-pack
  2286. endif
  2287. endif
  2288. ifndef ZIPNAME
  2289. ifdef DIST_ZIPNAME
  2290. ZIPNAME=$(DIST_ZIPNAME)
  2291. else
  2292. ZIPNAME=$(PACKAGE_NAME)
  2293. endif
  2294. endif
  2295. ifndef FULLZIPNAME
  2296. FULLZIPNAME=$(ZIPCROSSPREFIX)$(ZIPPREFIX)$(ZIPNAME)$(ZIPSUFFIX)
  2297. endif
  2298. ifndef ZIPTARGET
  2299. ifdef DIST_ZIPTARGET
  2300. ZIPTARGET=DIST_ZIPTARGET
  2301. else
  2302. ZIPTARGET=install
  2303. endif
  2304. endif
  2305. ifndef USEZIP
  2306. ifdef inUnix
  2307. USETAR=1
  2308. endif
  2309. endif
  2310. ifndef inUnix
  2311. USEZIPWRAPPER=1
  2312. endif
  2313. ifdef USEZIPWRAPPER
  2314. ZIPPATHSEP=$(PATHSEP)
  2315. ZIPWRAPPER=$(subst /,$(PATHSEP),$(DIST_DESTDIR)/fpczip$(SRCBATCHEXT))
  2316. else
  2317. ZIPPATHSEP=/
  2318. endif
  2319. ZIPCMD_CDPACK:=cd $(subst /,$(ZIPPATHSEP),$(PACKDIR))
  2320. ZIPCMD_CDBASE:=cd $(subst /,$(ZIPPATHSEP),$(BASEDIR))
  2321. ifdef USETAR
  2322. ZIPDESTFILE:=$(DIST_DESTDIR)/$(FULLZIPNAME)$(TAREXT)
  2323. ZIPCMD_ZIP:=$(TARPROG) cf$(TAROPT) $(ZIPDESTFILE) *
  2324. else
  2325. ZIPDESTFILE:=$(DIST_DESTDIR)/$(FULLZIPNAME)$(ZIPEXT)
  2326. ZIPCMD_ZIP:=$(subst /,$(ZIPPATHSEP),$(ZIPPROG)) -Dr $(ZIPOPT) $(ZIPDESTFILE) *
  2327. endif
  2328. fpc_zipinstall:
  2329. $(MAKE) $(ZIPTARGET) INSTALL_PREFIX=$(PACKDIR) ZIPINSTALL=1
  2330. $(MKDIR) $(DIST_DESTDIR)
  2331. $(DEL) $(ZIPDESTFILE)
  2332. ifdef USEZIPWRAPPER
  2333. ifneq ($(ECHOREDIR),echo)
  2334. $(ECHOREDIR) -e "$(subst \,\\,$(ZIPCMD_CDPACK))" > $(ZIPWRAPPER)
  2335. $(ECHOREDIR) -e "$(subst \,\\,$(ZIPCMD_ZIP))" >> $(ZIPWRAPPER)
  2336. $(ECHOREDIR) -e "$(subst \,\\,$(ZIPCMD_CDBASE))" >> $(ZIPWRAPPER)
  2337. else
  2338. echo $(ZIPCMD_CDPACK) > $(ZIPWRAPPER)
  2339. echo $(ZIPCMD_ZIP) >> $(ZIPWRAPPER)
  2340. echo $(ZIPCMD_CDBASE) >> $(ZIPWRAPPER)
  2341. endif
  2342. ifdef inUnix
  2343. /bin/sh $(ZIPWRAPPER)
  2344. else
  2345. $(ZIPWRAPPER)
  2346. endif
  2347. $(DEL) $(ZIPWRAPPER)
  2348. else
  2349. $(ZIPCMD_CDPACK) ; $(ZIPCMD_ZIP) ; $(ZIPCMD_CDBASE)
  2350. endif
  2351. $(DELTREE) $(PACKDIR)
  2352. fpc_zipsourceinstall:
  2353. $(MAKE) fpc_zipinstall ZIPTARGET=sourceinstall ZIPSUFFIX=$(ZIPSOURCESUFFIX)
  2354. fpc_zipexampleinstall:
  2355. ifdef HASEXAMPLES
  2356. $(MAKE) fpc_zipinstall ZIPTARGET=exampleinstall ZIPSUFFIX=$(ZIPEXAMPLESUFFIX)
  2357. endif
  2358. fpc_zipdistinstall:
  2359. $(MAKE) fpc_zipinstall ZIPTARGET=distinstall
  2360. .PHONY: fpc_clean fpc_cleanall fpc_distclean
  2361. ifdef EXEFILES
  2362. override CLEANEXEFILES:=$(addprefix $(TARGETDIRPREFIX),$(CLEANEXEFILES))
  2363. endif
  2364. ifdef CLEAN_UNITS
  2365. override CLEANPPUFILES+=$(addsuffix $(PPUEXT),$(CLEAN_UNITS))
  2366. endif
  2367. ifdef CLEANPPUFILES
  2368. override CLEANPPULINKFILES:=$(subst $(PPUEXT),$(OEXT),$(CLEANPPUFILES)) $(addprefix $(STATICLIBPREFIX),$(subst $(PPUEXT),$(STATICLIBEXT),$(CLEANPPUFILES)))
  2369. ifdef DEBUGSYMEXT
  2370. override CLEANPPULINKFILES+=$(subst $(PPUEXT),$(DEBUGSYMEXT),$(CLEANPPUFILES))
  2371. endif
  2372. override CLEANPPUFILES:=$(addprefix $(UNITTARGETDIRPREFIX),$(CLEANPPUFILES))
  2373. override CLEANPPULINKFILES:=$(wildcard $(addprefix $(UNITTARGETDIRPREFIX),$(CLEANPPULINKFILES)))
  2374. endif
  2375. fpc_clean: $(CLEANTARGET)
  2376. ifdef CLEANEXEFILES
  2377. -$(DEL) $(CLEANEXEFILES)
  2378. endif
  2379. ifdef CLEANPPUFILES
  2380. -$(DEL) $(CLEANPPUFILES)
  2381. endif
  2382. ifneq ($(CLEANPPULINKFILES),)
  2383. -$(DEL) $(CLEANPPULINKFILES)
  2384. endif
  2385. ifdef CLEANRSTFILES
  2386. -$(DEL) $(addprefix $(UNITTARGETDIRPREFIX),$(CLEANRSTFILES))
  2387. endif
  2388. ifdef CLEAN_FILES
  2389. -$(DEL) $(CLEAN_FILES)
  2390. endif
  2391. ifdef LIB_NAME
  2392. -$(DEL) $(LIB_NAME) $(LIB_FULLNAME)
  2393. endif
  2394. -$(DEL) $(FPCMADE) Package.fpc $(PPAS) script.res link.res $(FPCEXTFILE) $(REDIRFILE)
  2395. -$(DEL) *$(ASMEXT) *_ppas$(BATCHEXT)
  2396. fpc_cleanall: $(CLEANTARGET)
  2397. ifdef CLEANEXEFILES
  2398. -$(DEL) $(CLEANEXEFILES)
  2399. endif
  2400. ifdef COMPILER_UNITTARGETDIR
  2401. ifdef CLEANPPUFILES
  2402. -$(DEL) $(CLEANPPUFILES)
  2403. endif
  2404. ifneq ($(CLEANPPULINKFILES),)
  2405. -$(DEL) $(CLEANPPULINKFILES)
  2406. endif
  2407. ifdef CLEANRSTFILES
  2408. -$(DEL) $(addprefix $(UNITTARGETDIRPREFIX),$(CLEANRSTFILES))
  2409. endif
  2410. endif
  2411. -$(DELTREE) units
  2412. -$(DEL) *$(OEXT) *$(PPUEXT) *$(RSTEXT) *$(ASMEXT) *$(STATICLIBEXT) *$(SHAREDLIBEXT) *$(PPLEXT)
  2413. ifneq ($(PPUEXT),.ppu)
  2414. -$(DEL) *.o *.ppu *.a
  2415. endif
  2416. -$(DELTREE) *$(SMARTEXT)
  2417. -$(DEL) fpcmade.* Package.fpc $(PPAS) script.res link.res $(FPCEXTFILE) $(REDIRFILE)
  2418. -$(DEL) *_ppas$(BATCHEXT)
  2419. ifdef AOUTEXT
  2420. -$(DEL) *$(AOUTEXT)
  2421. endif
  2422. ifdef DEBUGSYMEXT
  2423. -$(DEL) *$(DEBUGSYMEXT)
  2424. endif
  2425. fpc_distclean: cleanall
  2426. .PHONY: fpc_baseinfo
  2427. override INFORULES+=fpc_baseinfo
  2428. fpc_baseinfo:
  2429. @$(ECHO)
  2430. @$(ECHO) == Package info ==
  2431. @$(ECHO) Package Name..... $(PACKAGE_NAME)
  2432. @$(ECHO) Package Version.. $(PACKAGE_VERSION)
  2433. @$(ECHO)
  2434. @$(ECHO) == Configuration info ==
  2435. @$(ECHO)
  2436. @$(ECHO) FPC.......... $(FPC)
  2437. @$(ECHO) FPC Version.. $(FPC_VERSION)
  2438. @$(ECHO) Source CPU... $(CPU_SOURCE)
  2439. @$(ECHO) Target CPU... $(CPU_TARGET)
  2440. @$(ECHO) Source OS.... $(OS_SOURCE)
  2441. @$(ECHO) Target OS.... $(OS_TARGET)
  2442. @$(ECHO) Full Source.. $(FULL_SOURCE)
  2443. @$(ECHO) Full Target.. $(FULL_TARGET)
  2444. @$(ECHO) SourceSuffix. $(SOURCESUFFIX)
  2445. @$(ECHO) TargetSuffix. $(TARGETSUFFIX)
  2446. @$(ECHO)
  2447. @$(ECHO) == Directory info ==
  2448. @$(ECHO)
  2449. @$(ECHO) Required pkgs... $(REQUIRE_PACKAGES)
  2450. @$(ECHO)
  2451. @$(ECHO) Basedir......... $(BASEDIR)
  2452. @$(ECHO) FPCDir.......... $(FPCDIR)
  2453. @$(ECHO) CrossBinDir..... $(CROSSBINDIR)
  2454. @$(ECHO) UnitsDir........ $(UNITSDIR)
  2455. @$(ECHO) PackagesDir..... $(PACKAGESDIR)
  2456. @$(ECHO)
  2457. @$(ECHO) GCC library..... $(GCCLIBDIR)
  2458. @$(ECHO) Other library... $(OTHERLIBDIR)
  2459. @$(ECHO)
  2460. @$(ECHO) == Tools info ==
  2461. @$(ECHO)
  2462. @$(ECHO) As........ $(AS)
  2463. @$(ECHO) Ld........ $(LD)
  2464. @$(ECHO) Ar........ $(AR)
  2465. @$(ECHO) Rc........ $(RC)
  2466. @$(ECHO)
  2467. @$(ECHO) Mv........ $(MVPROG)
  2468. @$(ECHO) Cp........ $(CPPROG)
  2469. @$(ECHO) Rm........ $(RMPROG)
  2470. @$(ECHO) GInstall.. $(GINSTALL)
  2471. @$(ECHO) Echo...... $(ECHO)
  2472. @$(ECHO) Shell..... $(SHELL)
  2473. @$(ECHO) Date...... $(DATE)
  2474. @$(ECHO) FPCMake... $(FPCMAKE)
  2475. @$(ECHO) PPUMove... $(PPUMOVE)
  2476. @$(ECHO) Upx....... $(UPXPROG)
  2477. @$(ECHO) Zip....... $(ZIPPROG)
  2478. @$(ECHO)
  2479. @$(ECHO) == Object info ==
  2480. @$(ECHO)
  2481. @$(ECHO) Target Loaders........ $(TARGET_LOADERS)
  2482. @$(ECHO) Target Units.......... $(TARGET_UNITS)
  2483. @$(ECHO) Target Implicit Units. $(TARGET_IMPLICITUNITS)
  2484. @$(ECHO) Target Programs....... $(TARGET_PROGRAMS)
  2485. @$(ECHO) Target Dirs........... $(TARGET_DIRS)
  2486. @$(ECHO) Target Examples....... $(TARGET_EXAMPLES)
  2487. @$(ECHO) Target ExampleDirs.... $(TARGET_EXAMPLEDIRS)
  2488. @$(ECHO)
  2489. @$(ECHO) Clean Units......... $(CLEAN_UNITS)
  2490. @$(ECHO) Clean Files......... $(CLEAN_FILES)
  2491. @$(ECHO)
  2492. @$(ECHO) Install Units....... $(INSTALL_UNITS)
  2493. @$(ECHO) Install Files....... $(INSTALL_FILES)
  2494. @$(ECHO)
  2495. @$(ECHO) == Install info ==
  2496. @$(ECHO)
  2497. @$(ECHO) DateStr.............. $(DATESTR)
  2498. @$(ECHO) ZipName.............. $(ZIPNAME)
  2499. @$(ECHO) ZipPrefix............ $(ZIPPREFIX)
  2500. @$(ECHO) ZipCrossPrefix....... $(ZIPCROSSPREFIX)
  2501. @$(ECHO) ZipSuffix............ $(ZIPSUFFIX)
  2502. @$(ECHO) FullZipName.......... $(FULLZIPNAME)
  2503. @$(ECHO) Install FPC Package.. $(INSTALL_FPCPACKAGE)
  2504. @$(ECHO)
  2505. @$(ECHO) Install base dir..... $(INSTALL_BASEDIR)
  2506. @$(ECHO) Install binary dir... $(INSTALL_BINDIR)
  2507. @$(ECHO) Install library dir.. $(INSTALL_LIBDIR)
  2508. @$(ECHO) Install units dir.... $(INSTALL_UNITDIR)
  2509. @$(ECHO) Install source dir... $(INSTALL_SOURCEDIR)
  2510. @$(ECHO) Install doc dir...... $(INSTALL_DOCDIR)
  2511. @$(ECHO) Install example dir.. $(INSTALL_EXAMPLEDIR)
  2512. @$(ECHO) Install data dir..... $(INSTALL_DATADIR)
  2513. @$(ECHO)
  2514. @$(ECHO) Dist destination dir. $(DIST_DESTDIR)
  2515. @$(ECHO) Dist zip name........ $(DIST_ZIPNAME)
  2516. @$(ECHO)
  2517. .PHONY: fpc_info
  2518. fpc_info: $(INFORULES)
  2519. .PHONY: fpc_makefile fpc_makefiles fpc_makefile_sub1 fpc_makefile_sub2 \
  2520. fpc_makefile_dirs
  2521. fpc_makefile:
  2522. $(FPCMAKE) -w -T$(OS_TARGET) Makefile.fpc
  2523. fpc_makefile_sub1:
  2524. ifdef TARGET_DIRS
  2525. $(FPCMAKE) -w -T$(OS_TARGET) $(addsuffix /Makefile.fpc,$(TARGET_DIRS))
  2526. endif
  2527. ifdef TARGET_EXAMPLEDIRS
  2528. $(FPCMAKE) -w -T$(OS_TARGET) $(addsuffix /Makefile.fpc,$(TARGET_EXAMPLEDIRS))
  2529. endif
  2530. fpc_makefile_sub2: $(addsuffix _makefile_dirs,$(TARGET_DIRS) $(TARGET_EXAMPLEDIRS))
  2531. fpc_makefile_dirs: fpc_makefile_sub1 fpc_makefile_sub2
  2532. fpc_makefiles: fpc_makefile fpc_makefile_dirs
  2533. ifeq ($(FULL_TARGET),i386-linux)
  2534. TARGET_DIRS_FPCM=1
  2535. TARGET_DIRS_TPLY=1
  2536. TARGET_DIRS_H2PAS=1
  2537. TARGET_DIRS_FPRCP=1
  2538. TARGET_DIRS_DXEGEN=1
  2539. TARGET_DIRS_FPDOC=1
  2540. endif
  2541. ifeq ($(FULL_TARGET),i386-go32v2)
  2542. TARGET_DIRS_FPCM=1
  2543. TARGET_DIRS_TPLY=1
  2544. TARGET_DIRS_H2PAS=1
  2545. TARGET_DIRS_FPRCP=1
  2546. TARGET_DIRS_DXEGEN=1
  2547. TARGET_DIRS_FPDOC=1
  2548. endif
  2549. ifeq ($(FULL_TARGET),i386-win32)
  2550. TARGET_DIRS_FPCM=1
  2551. TARGET_DIRS_TPLY=1
  2552. TARGET_DIRS_H2PAS=1
  2553. TARGET_DIRS_FPRCP=1
  2554. TARGET_DIRS_DXEGEN=1
  2555. TARGET_DIRS_FPDOC=1
  2556. TARGET_DIRS_FPMC=1
  2557. endif
  2558. ifeq ($(FULL_TARGET),i386-os2)
  2559. TARGET_DIRS_FPCM=1
  2560. TARGET_DIRS_TPLY=1
  2561. TARGET_DIRS_H2PAS=1
  2562. TARGET_DIRS_FPRCP=1
  2563. TARGET_DIRS_DXEGEN=1
  2564. TARGET_DIRS_FPDOC=1
  2565. endif
  2566. ifeq ($(FULL_TARGET),i386-freebsd)
  2567. TARGET_DIRS_FPCM=1
  2568. TARGET_DIRS_TPLY=1
  2569. TARGET_DIRS_H2PAS=1
  2570. TARGET_DIRS_FPRCP=1
  2571. TARGET_DIRS_DXEGEN=1
  2572. TARGET_DIRS_FPDOC=1
  2573. endif
  2574. ifeq ($(FULL_TARGET),i386-beos)
  2575. TARGET_DIRS_FPCM=1
  2576. TARGET_DIRS_TPLY=1
  2577. TARGET_DIRS_H2PAS=1
  2578. TARGET_DIRS_FPRCP=1
  2579. TARGET_DIRS_DXEGEN=1
  2580. TARGET_DIRS_FPDOC=1
  2581. endif
  2582. ifeq ($(FULL_TARGET),i386-netbsd)
  2583. TARGET_DIRS_FPCM=1
  2584. TARGET_DIRS_TPLY=1
  2585. TARGET_DIRS_H2PAS=1
  2586. TARGET_DIRS_FPRCP=1
  2587. TARGET_DIRS_DXEGEN=1
  2588. TARGET_DIRS_FPDOC=1
  2589. endif
  2590. ifeq ($(FULL_TARGET),i386-sunos)
  2591. TARGET_DIRS_FPCM=1
  2592. TARGET_DIRS_TPLY=1
  2593. TARGET_DIRS_H2PAS=1
  2594. TARGET_DIRS_FPRCP=1
  2595. TARGET_DIRS_DXEGEN=1
  2596. TARGET_DIRS_FPDOC=1
  2597. endif
  2598. ifeq ($(FULL_TARGET),i386-qnx)
  2599. TARGET_DIRS_FPCM=1
  2600. TARGET_DIRS_TPLY=1
  2601. TARGET_DIRS_H2PAS=1
  2602. TARGET_DIRS_FPRCP=1
  2603. TARGET_DIRS_DXEGEN=1
  2604. TARGET_DIRS_FPDOC=1
  2605. endif
  2606. ifeq ($(FULL_TARGET),i386-netware)
  2607. TARGET_DIRS_FPCM=1
  2608. TARGET_DIRS_TPLY=1
  2609. TARGET_DIRS_H2PAS=1
  2610. TARGET_DIRS_FPRCP=1
  2611. TARGET_DIRS_DXEGEN=1
  2612. TARGET_DIRS_FPDOC=1
  2613. endif
  2614. ifeq ($(FULL_TARGET),i386-openbsd)
  2615. TARGET_DIRS_FPCM=1
  2616. TARGET_DIRS_TPLY=1
  2617. TARGET_DIRS_H2PAS=1
  2618. TARGET_DIRS_FPRCP=1
  2619. TARGET_DIRS_DXEGEN=1
  2620. TARGET_DIRS_FPDOC=1
  2621. endif
  2622. ifeq ($(FULL_TARGET),i386-wdosx)
  2623. TARGET_DIRS_FPCM=1
  2624. TARGET_DIRS_TPLY=1
  2625. TARGET_DIRS_H2PAS=1
  2626. TARGET_DIRS_FPRCP=1
  2627. TARGET_DIRS_DXEGEN=1
  2628. TARGET_DIRS_FPDOC=1
  2629. endif
  2630. ifeq ($(FULL_TARGET),i386-emx)
  2631. TARGET_DIRS_FPCM=1
  2632. TARGET_DIRS_TPLY=1
  2633. TARGET_DIRS_H2PAS=1
  2634. TARGET_DIRS_FPRCP=1
  2635. TARGET_DIRS_DXEGEN=1
  2636. TARGET_DIRS_FPDOC=1
  2637. endif
  2638. ifeq ($(FULL_TARGET),i386-watcom)
  2639. TARGET_DIRS_FPCM=1
  2640. TARGET_DIRS_TPLY=1
  2641. TARGET_DIRS_H2PAS=1
  2642. TARGET_DIRS_FPRCP=1
  2643. TARGET_DIRS_DXEGEN=1
  2644. TARGET_DIRS_FPDOC=1
  2645. endif
  2646. ifeq ($(FULL_TARGET),i386-netwlibc)
  2647. TARGET_DIRS_FPCM=1
  2648. TARGET_DIRS_TPLY=1
  2649. TARGET_DIRS_H2PAS=1
  2650. TARGET_DIRS_FPRCP=1
  2651. TARGET_DIRS_DXEGEN=1
  2652. TARGET_DIRS_FPDOC=1
  2653. endif
  2654. ifeq ($(FULL_TARGET),m68k-linux)
  2655. TARGET_DIRS_FPCM=1
  2656. TARGET_DIRS_TPLY=1
  2657. TARGET_DIRS_H2PAS=1
  2658. TARGET_DIRS_FPRCP=1
  2659. TARGET_DIRS_DXEGEN=1
  2660. TARGET_DIRS_FPDOC=1
  2661. endif
  2662. ifeq ($(FULL_TARGET),m68k-freebsd)
  2663. TARGET_DIRS_FPCM=1
  2664. TARGET_DIRS_TPLY=1
  2665. TARGET_DIRS_H2PAS=1
  2666. TARGET_DIRS_FPRCP=1
  2667. TARGET_DIRS_DXEGEN=1
  2668. TARGET_DIRS_FPDOC=1
  2669. endif
  2670. ifeq ($(FULL_TARGET),m68k-netbsd)
  2671. TARGET_DIRS_FPCM=1
  2672. TARGET_DIRS_TPLY=1
  2673. TARGET_DIRS_H2PAS=1
  2674. TARGET_DIRS_FPRCP=1
  2675. TARGET_DIRS_DXEGEN=1
  2676. TARGET_DIRS_FPDOC=1
  2677. endif
  2678. ifeq ($(FULL_TARGET),m68k-amiga)
  2679. TARGET_DIRS_FPCM=1
  2680. TARGET_DIRS_TPLY=1
  2681. TARGET_DIRS_H2PAS=1
  2682. TARGET_DIRS_FPRCP=1
  2683. TARGET_DIRS_DXEGEN=1
  2684. TARGET_DIRS_FPDOC=1
  2685. endif
  2686. ifeq ($(FULL_TARGET),m68k-atari)
  2687. TARGET_DIRS_FPCM=1
  2688. TARGET_DIRS_TPLY=1
  2689. TARGET_DIRS_H2PAS=1
  2690. TARGET_DIRS_FPRCP=1
  2691. TARGET_DIRS_DXEGEN=1
  2692. TARGET_DIRS_FPDOC=1
  2693. endif
  2694. ifeq ($(FULL_TARGET),m68k-openbsd)
  2695. TARGET_DIRS_FPCM=1
  2696. TARGET_DIRS_TPLY=1
  2697. TARGET_DIRS_H2PAS=1
  2698. TARGET_DIRS_FPRCP=1
  2699. TARGET_DIRS_DXEGEN=1
  2700. TARGET_DIRS_FPDOC=1
  2701. endif
  2702. ifeq ($(FULL_TARGET),m68k-palmos)
  2703. TARGET_DIRS_FPCM=1
  2704. TARGET_DIRS_TPLY=1
  2705. TARGET_DIRS_H2PAS=1
  2706. TARGET_DIRS_FPRCP=1
  2707. TARGET_DIRS_DXEGEN=1
  2708. TARGET_DIRS_FPDOC=1
  2709. endif
  2710. ifeq ($(FULL_TARGET),powerpc-linux)
  2711. TARGET_DIRS_FPCM=1
  2712. TARGET_DIRS_TPLY=1
  2713. TARGET_DIRS_H2PAS=1
  2714. TARGET_DIRS_FPRCP=1
  2715. TARGET_DIRS_DXEGEN=1
  2716. TARGET_DIRS_FPDOC=1
  2717. endif
  2718. ifeq ($(FULL_TARGET),powerpc-netbsd)
  2719. TARGET_DIRS_FPCM=1
  2720. TARGET_DIRS_TPLY=1
  2721. TARGET_DIRS_H2PAS=1
  2722. TARGET_DIRS_FPRCP=1
  2723. TARGET_DIRS_DXEGEN=1
  2724. TARGET_DIRS_FPDOC=1
  2725. endif
  2726. ifeq ($(FULL_TARGET),powerpc-macos)
  2727. TARGET_DIRS_FPCM=1
  2728. TARGET_DIRS_TPLY=1
  2729. TARGET_DIRS_H2PAS=1
  2730. TARGET_DIRS_FPRCP=1
  2731. TARGET_DIRS_DXEGEN=1
  2732. TARGET_DIRS_FPDOC=1
  2733. endif
  2734. ifeq ($(FULL_TARGET),powerpc-darwin)
  2735. TARGET_DIRS_FPCM=1
  2736. TARGET_DIRS_TPLY=1
  2737. TARGET_DIRS_H2PAS=1
  2738. TARGET_DIRS_FPRCP=1
  2739. TARGET_DIRS_DXEGEN=1
  2740. TARGET_DIRS_FPDOC=1
  2741. endif
  2742. ifeq ($(FULL_TARGET),powerpc-morphos)
  2743. TARGET_DIRS_FPCM=1
  2744. TARGET_DIRS_TPLY=1
  2745. TARGET_DIRS_H2PAS=1
  2746. TARGET_DIRS_FPRCP=1
  2747. TARGET_DIRS_DXEGEN=1
  2748. TARGET_DIRS_FPDOC=1
  2749. endif
  2750. ifeq ($(FULL_TARGET),sparc-linux)
  2751. TARGET_DIRS_FPCM=1
  2752. TARGET_DIRS_TPLY=1
  2753. TARGET_DIRS_H2PAS=1
  2754. TARGET_DIRS_FPRCP=1
  2755. TARGET_DIRS_DXEGEN=1
  2756. TARGET_DIRS_FPDOC=1
  2757. endif
  2758. ifeq ($(FULL_TARGET),sparc-netbsd)
  2759. TARGET_DIRS_FPCM=1
  2760. TARGET_DIRS_TPLY=1
  2761. TARGET_DIRS_H2PAS=1
  2762. TARGET_DIRS_FPRCP=1
  2763. TARGET_DIRS_DXEGEN=1
  2764. TARGET_DIRS_FPDOC=1
  2765. endif
  2766. ifeq ($(FULL_TARGET),sparc-sunos)
  2767. TARGET_DIRS_FPCM=1
  2768. TARGET_DIRS_TPLY=1
  2769. TARGET_DIRS_H2PAS=1
  2770. TARGET_DIRS_FPRCP=1
  2771. TARGET_DIRS_DXEGEN=1
  2772. TARGET_DIRS_FPDOC=1
  2773. endif
  2774. ifeq ($(FULL_TARGET),x86_64-linux)
  2775. TARGET_DIRS_FPCM=1
  2776. TARGET_DIRS_TPLY=1
  2777. TARGET_DIRS_H2PAS=1
  2778. TARGET_DIRS_FPRCP=1
  2779. TARGET_DIRS_DXEGEN=1
  2780. TARGET_DIRS_FPDOC=1
  2781. endif
  2782. ifeq ($(FULL_TARGET),x86_64-freebsd)
  2783. TARGET_DIRS_FPCM=1
  2784. TARGET_DIRS_TPLY=1
  2785. TARGET_DIRS_H2PAS=1
  2786. TARGET_DIRS_FPRCP=1
  2787. TARGET_DIRS_DXEGEN=1
  2788. TARGET_DIRS_FPDOC=1
  2789. endif
  2790. ifeq ($(FULL_TARGET),arm-linux)
  2791. TARGET_DIRS_FPCM=1
  2792. TARGET_DIRS_TPLY=1
  2793. TARGET_DIRS_H2PAS=1
  2794. TARGET_DIRS_FPRCP=1
  2795. TARGET_DIRS_DXEGEN=1
  2796. TARGET_DIRS_FPDOC=1
  2797. endif
  2798. ifdef TARGET_DIRS_FPCM
  2799. fpcm_all:
  2800. $(MAKE) -C fpcm all
  2801. fpcm_debug:
  2802. $(MAKE) -C fpcm debug
  2803. fpcm_smart:
  2804. $(MAKE) -C fpcm smart
  2805. fpcm_release:
  2806. $(MAKE) -C fpcm release
  2807. fpcm_units:
  2808. $(MAKE) -C fpcm units
  2809. fpcm_examples:
  2810. $(MAKE) -C fpcm examples
  2811. fpcm_shared:
  2812. $(MAKE) -C fpcm shared
  2813. fpcm_install:
  2814. $(MAKE) -C fpcm install
  2815. fpcm_sourceinstall:
  2816. $(MAKE) -C fpcm sourceinstall
  2817. fpcm_exampleinstall:
  2818. $(MAKE) -C fpcm exampleinstall
  2819. fpcm_distinstall:
  2820. $(MAKE) -C fpcm distinstall
  2821. fpcm_zipinstall:
  2822. $(MAKE) -C fpcm zipinstall
  2823. fpcm_zipsourceinstall:
  2824. $(MAKE) -C fpcm zipsourceinstall
  2825. fpcm_zipexampleinstall:
  2826. $(MAKE) -C fpcm zipexampleinstall
  2827. fpcm_zipdistinstall:
  2828. $(MAKE) -C fpcm zipdistinstall
  2829. fpcm_clean:
  2830. $(MAKE) -C fpcm clean
  2831. fpcm_distclean:
  2832. $(MAKE) -C fpcm distclean
  2833. fpcm_cleanall:
  2834. $(MAKE) -C fpcm cleanall
  2835. fpcm_info:
  2836. $(MAKE) -C fpcm info
  2837. fpcm_makefiles:
  2838. $(MAKE) -C fpcm makefiles
  2839. fpcm:
  2840. $(MAKE) -C fpcm all
  2841. .PHONY: fpcm_all fpcm_debug fpcm_smart fpcm_release fpcm_units fpcm_examples fpcm_shared fpcm_install fpcm_sourceinstall fpcm_exampleinstall fpcm_distinstall fpcm_zipinstall fpcm_zipsourceinstall fpcm_zipexampleinstall fpcm_zipdistinstall fpcm_clean fpcm_distclean fpcm_cleanall fpcm_info fpcm_makefiles fpcm
  2842. endif
  2843. ifdef TARGET_DIRS_TPLY
  2844. tply_all:
  2845. $(MAKE) -C tply all
  2846. tply_debug:
  2847. $(MAKE) -C tply debug
  2848. tply_smart:
  2849. $(MAKE) -C tply smart
  2850. tply_release:
  2851. $(MAKE) -C tply release
  2852. tply_units:
  2853. $(MAKE) -C tply units
  2854. tply_examples:
  2855. $(MAKE) -C tply examples
  2856. tply_shared:
  2857. $(MAKE) -C tply shared
  2858. tply_install:
  2859. $(MAKE) -C tply install
  2860. tply_sourceinstall:
  2861. $(MAKE) -C tply sourceinstall
  2862. tply_exampleinstall:
  2863. $(MAKE) -C tply exampleinstall
  2864. tply_distinstall:
  2865. $(MAKE) -C tply distinstall
  2866. tply_zipinstall:
  2867. $(MAKE) -C tply zipinstall
  2868. tply_zipsourceinstall:
  2869. $(MAKE) -C tply zipsourceinstall
  2870. tply_zipexampleinstall:
  2871. $(MAKE) -C tply zipexampleinstall
  2872. tply_zipdistinstall:
  2873. $(MAKE) -C tply zipdistinstall
  2874. tply_clean:
  2875. $(MAKE) -C tply clean
  2876. tply_distclean:
  2877. $(MAKE) -C tply distclean
  2878. tply_cleanall:
  2879. $(MAKE) -C tply cleanall
  2880. tply_info:
  2881. $(MAKE) -C tply info
  2882. tply_makefiles:
  2883. $(MAKE) -C tply makefiles
  2884. tply:
  2885. $(MAKE) -C tply all
  2886. .PHONY: tply_all tply_debug tply_smart tply_release tply_units tply_examples tply_shared tply_install tply_sourceinstall tply_exampleinstall tply_distinstall tply_zipinstall tply_zipsourceinstall tply_zipexampleinstall tply_zipdistinstall tply_clean tply_distclean tply_cleanall tply_info tply_makefiles tply
  2887. endif
  2888. ifdef TARGET_DIRS_H2PAS
  2889. h2pas_all:
  2890. $(MAKE) -C h2pas all
  2891. h2pas_debug:
  2892. $(MAKE) -C h2pas debug
  2893. h2pas_smart:
  2894. $(MAKE) -C h2pas smart
  2895. h2pas_release:
  2896. $(MAKE) -C h2pas release
  2897. h2pas_units:
  2898. $(MAKE) -C h2pas units
  2899. h2pas_examples:
  2900. $(MAKE) -C h2pas examples
  2901. h2pas_shared:
  2902. $(MAKE) -C h2pas shared
  2903. h2pas_install:
  2904. $(MAKE) -C h2pas install
  2905. h2pas_sourceinstall:
  2906. $(MAKE) -C h2pas sourceinstall
  2907. h2pas_exampleinstall:
  2908. $(MAKE) -C h2pas exampleinstall
  2909. h2pas_distinstall:
  2910. $(MAKE) -C h2pas distinstall
  2911. h2pas_zipinstall:
  2912. $(MAKE) -C h2pas zipinstall
  2913. h2pas_zipsourceinstall:
  2914. $(MAKE) -C h2pas zipsourceinstall
  2915. h2pas_zipexampleinstall:
  2916. $(MAKE) -C h2pas zipexampleinstall
  2917. h2pas_zipdistinstall:
  2918. $(MAKE) -C h2pas zipdistinstall
  2919. h2pas_clean:
  2920. $(MAKE) -C h2pas clean
  2921. h2pas_distclean:
  2922. $(MAKE) -C h2pas distclean
  2923. h2pas_cleanall:
  2924. $(MAKE) -C h2pas cleanall
  2925. h2pas_info:
  2926. $(MAKE) -C h2pas info
  2927. h2pas_makefiles:
  2928. $(MAKE) -C h2pas makefiles
  2929. h2pas:
  2930. $(MAKE) -C h2pas all
  2931. .PHONY: h2pas_all h2pas_debug h2pas_smart h2pas_release h2pas_units h2pas_examples h2pas_shared h2pas_install h2pas_sourceinstall h2pas_exampleinstall h2pas_distinstall h2pas_zipinstall h2pas_zipsourceinstall h2pas_zipexampleinstall h2pas_zipdistinstall h2pas_clean h2pas_distclean h2pas_cleanall h2pas_info h2pas_makefiles h2pas
  2932. endif
  2933. ifdef TARGET_DIRS_FPRCP
  2934. fprcp_all:
  2935. $(MAKE) -C fprcp all
  2936. fprcp_debug:
  2937. $(MAKE) -C fprcp debug
  2938. fprcp_smart:
  2939. $(MAKE) -C fprcp smart
  2940. fprcp_release:
  2941. $(MAKE) -C fprcp release
  2942. fprcp_units:
  2943. $(MAKE) -C fprcp units
  2944. fprcp_examples:
  2945. $(MAKE) -C fprcp examples
  2946. fprcp_shared:
  2947. $(MAKE) -C fprcp shared
  2948. fprcp_install:
  2949. $(MAKE) -C fprcp install
  2950. fprcp_sourceinstall:
  2951. $(MAKE) -C fprcp sourceinstall
  2952. fprcp_exampleinstall:
  2953. $(MAKE) -C fprcp exampleinstall
  2954. fprcp_distinstall:
  2955. $(MAKE) -C fprcp distinstall
  2956. fprcp_zipinstall:
  2957. $(MAKE) -C fprcp zipinstall
  2958. fprcp_zipsourceinstall:
  2959. $(MAKE) -C fprcp zipsourceinstall
  2960. fprcp_zipexampleinstall:
  2961. $(MAKE) -C fprcp zipexampleinstall
  2962. fprcp_zipdistinstall:
  2963. $(MAKE) -C fprcp zipdistinstall
  2964. fprcp_clean:
  2965. $(MAKE) -C fprcp clean
  2966. fprcp_distclean:
  2967. $(MAKE) -C fprcp distclean
  2968. fprcp_cleanall:
  2969. $(MAKE) -C fprcp cleanall
  2970. fprcp_info:
  2971. $(MAKE) -C fprcp info
  2972. fprcp_makefiles:
  2973. $(MAKE) -C fprcp makefiles
  2974. fprcp:
  2975. $(MAKE) -C fprcp all
  2976. .PHONY: fprcp_all fprcp_debug fprcp_smart fprcp_release fprcp_units fprcp_examples fprcp_shared fprcp_install fprcp_sourceinstall fprcp_exampleinstall fprcp_distinstall fprcp_zipinstall fprcp_zipsourceinstall fprcp_zipexampleinstall fprcp_zipdistinstall fprcp_clean fprcp_distclean fprcp_cleanall fprcp_info fprcp_makefiles fprcp
  2977. endif
  2978. ifdef TARGET_DIRS_DXEGEN
  2979. dxegen_all:
  2980. $(MAKE) -C dxegen all
  2981. dxegen_debug:
  2982. $(MAKE) -C dxegen debug
  2983. dxegen_smart:
  2984. $(MAKE) -C dxegen smart
  2985. dxegen_release:
  2986. $(MAKE) -C dxegen release
  2987. dxegen_units:
  2988. $(MAKE) -C dxegen units
  2989. dxegen_examples:
  2990. $(MAKE) -C dxegen examples
  2991. dxegen_shared:
  2992. $(MAKE) -C dxegen shared
  2993. dxegen_install:
  2994. $(MAKE) -C dxegen install
  2995. dxegen_sourceinstall:
  2996. $(MAKE) -C dxegen sourceinstall
  2997. dxegen_exampleinstall:
  2998. $(MAKE) -C dxegen exampleinstall
  2999. dxegen_distinstall:
  3000. $(MAKE) -C dxegen distinstall
  3001. dxegen_zipinstall:
  3002. $(MAKE) -C dxegen zipinstall
  3003. dxegen_zipsourceinstall:
  3004. $(MAKE) -C dxegen zipsourceinstall
  3005. dxegen_zipexampleinstall:
  3006. $(MAKE) -C dxegen zipexampleinstall
  3007. dxegen_zipdistinstall:
  3008. $(MAKE) -C dxegen zipdistinstall
  3009. dxegen_clean:
  3010. $(MAKE) -C dxegen clean
  3011. dxegen_distclean:
  3012. $(MAKE) -C dxegen distclean
  3013. dxegen_cleanall:
  3014. $(MAKE) -C dxegen cleanall
  3015. dxegen_info:
  3016. $(MAKE) -C dxegen info
  3017. dxegen_makefiles:
  3018. $(MAKE) -C dxegen makefiles
  3019. dxegen:
  3020. $(MAKE) -C dxegen all
  3021. .PHONY: dxegen_all dxegen_debug dxegen_smart dxegen_release dxegen_units dxegen_examples dxegen_shared dxegen_install dxegen_sourceinstall dxegen_exampleinstall dxegen_distinstall dxegen_zipinstall dxegen_zipsourceinstall dxegen_zipexampleinstall dxegen_zipdistinstall dxegen_clean dxegen_distclean dxegen_cleanall dxegen_info dxegen_makefiles dxegen
  3022. endif
  3023. ifdef TARGET_DIRS_FPDOC
  3024. fpdoc_all:
  3025. $(MAKE) -C fpdoc all
  3026. fpdoc_debug:
  3027. $(MAKE) -C fpdoc debug
  3028. fpdoc_smart:
  3029. $(MAKE) -C fpdoc smart
  3030. fpdoc_release:
  3031. $(MAKE) -C fpdoc release
  3032. fpdoc_units:
  3033. $(MAKE) -C fpdoc units
  3034. fpdoc_examples:
  3035. $(MAKE) -C fpdoc examples
  3036. fpdoc_shared:
  3037. $(MAKE) -C fpdoc shared
  3038. fpdoc_install:
  3039. $(MAKE) -C fpdoc install
  3040. fpdoc_sourceinstall:
  3041. $(MAKE) -C fpdoc sourceinstall
  3042. fpdoc_exampleinstall:
  3043. $(MAKE) -C fpdoc exampleinstall
  3044. fpdoc_distinstall:
  3045. $(MAKE) -C fpdoc distinstall
  3046. fpdoc_zipinstall:
  3047. $(MAKE) -C fpdoc zipinstall
  3048. fpdoc_zipsourceinstall:
  3049. $(MAKE) -C fpdoc zipsourceinstall
  3050. fpdoc_zipexampleinstall:
  3051. $(MAKE) -C fpdoc zipexampleinstall
  3052. fpdoc_zipdistinstall:
  3053. $(MAKE) -C fpdoc zipdistinstall
  3054. fpdoc_clean:
  3055. $(MAKE) -C fpdoc clean
  3056. fpdoc_distclean:
  3057. $(MAKE) -C fpdoc distclean
  3058. fpdoc_cleanall:
  3059. $(MAKE) -C fpdoc cleanall
  3060. fpdoc_info:
  3061. $(MAKE) -C fpdoc info
  3062. fpdoc_makefiles:
  3063. $(MAKE) -C fpdoc makefiles
  3064. fpdoc:
  3065. $(MAKE) -C fpdoc all
  3066. .PHONY: fpdoc_all fpdoc_debug fpdoc_smart fpdoc_release fpdoc_units fpdoc_examples fpdoc_shared fpdoc_install fpdoc_sourceinstall fpdoc_exampleinstall fpdoc_distinstall fpdoc_zipinstall fpdoc_zipsourceinstall fpdoc_zipexampleinstall fpdoc_zipdistinstall fpdoc_clean fpdoc_distclean fpdoc_cleanall fpdoc_info fpdoc_makefiles fpdoc
  3067. endif
  3068. ifdef TARGET_DIRS_FPMC
  3069. fpmc_all:
  3070. $(MAKE) -C fpmc all
  3071. fpmc_debug:
  3072. $(MAKE) -C fpmc debug
  3073. fpmc_smart:
  3074. $(MAKE) -C fpmc smart
  3075. fpmc_release:
  3076. $(MAKE) -C fpmc release
  3077. fpmc_units:
  3078. $(MAKE) -C fpmc units
  3079. fpmc_examples:
  3080. $(MAKE) -C fpmc examples
  3081. fpmc_shared:
  3082. $(MAKE) -C fpmc shared
  3083. fpmc_install:
  3084. $(MAKE) -C fpmc install
  3085. fpmc_sourceinstall:
  3086. $(MAKE) -C fpmc sourceinstall
  3087. fpmc_exampleinstall:
  3088. $(MAKE) -C fpmc exampleinstall
  3089. fpmc_distinstall:
  3090. $(MAKE) -C fpmc distinstall
  3091. fpmc_zipinstall:
  3092. $(MAKE) -C fpmc zipinstall
  3093. fpmc_zipsourceinstall:
  3094. $(MAKE) -C fpmc zipsourceinstall
  3095. fpmc_zipexampleinstall:
  3096. $(MAKE) -C fpmc zipexampleinstall
  3097. fpmc_zipdistinstall:
  3098. $(MAKE) -C fpmc zipdistinstall
  3099. fpmc_clean:
  3100. $(MAKE) -C fpmc clean
  3101. fpmc_distclean:
  3102. $(MAKE) -C fpmc distclean
  3103. fpmc_cleanall:
  3104. $(MAKE) -C fpmc cleanall
  3105. fpmc_info:
  3106. $(MAKE) -C fpmc info
  3107. fpmc_makefiles:
  3108. $(MAKE) -C fpmc makefiles
  3109. fpmc:
  3110. $(MAKE) -C fpmc all
  3111. .PHONY: fpmc_all fpmc_debug fpmc_smart fpmc_release fpmc_units fpmc_examples fpmc_shared fpmc_install fpmc_sourceinstall fpmc_exampleinstall fpmc_distinstall fpmc_zipinstall fpmc_zipsourceinstall fpmc_zipexampleinstall fpmc_zipdistinstall fpmc_clean fpmc_distclean fpmc_cleanall fpmc_info fpmc_makefiles fpmc
  3112. endif
  3113. all: fpc_all $(addsuffix _all,$(TARGET_DIRS))
  3114. debug: fpc_debug
  3115. smart: fpc_smart
  3116. release: fpc_release
  3117. units: fpc_units $(addsuffix _units,$(TARGET_DIRS))
  3118. examples: $(addsuffix _examples,$(TARGET_DIRS))
  3119. shared: $(addsuffix _shared,$(TARGET_DIRS))
  3120. install: fpc_install $(addsuffix _install,$(TARGET_DIRS))
  3121. sourceinstall: fpc_sourceinstall
  3122. exampleinstall: fpc_exampleinstall $(addsuffix _exampleinstall,$(TARGET_DIRS))
  3123. distinstall: fpc_distinstall
  3124. zipinstall: fpc_zipinstall
  3125. zipsourceinstall: fpc_zipsourceinstall
  3126. zipexampleinstall: fpc_zipexampleinstall $(addsuffix _zipexampleinstall,$(TARGET_DIRS))
  3127. zipdistinstall: fpc_zipdistinstall
  3128. clean: fpc_clean $(addsuffix _clean,$(TARGET_DIRS))
  3129. distclean: fpc_distclean $(addsuffix _distclean,$(TARGET_DIRS))
  3130. cleanall: fpc_cleanall $(addsuffix _cleanall,$(TARGET_DIRS))
  3131. info: fpc_info
  3132. makefiles: fpc_makefiles
  3133. .PHONY: all debug smart release units examples shared install sourceinstall exampleinstall distinstall zipinstall zipsourceinstall zipexampleinstall zipdistinstall clean distclean cleanall info makefiles
  3134. ifneq ($(wildcard fpcmake.loc),)
  3135. include fpcmake.loc
  3136. endif
  3137. ptop$(EXEEXT): ptop.pp ptopu$(PPUEXT)
  3138. ptopu$(PPUEXT): ptopu.pp
  3139. ppdep$(EXEEXT): ppdep.pp
  3140. unexport DATA2INC