Makefile 96 KB

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