Makefile 107 KB

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