Makefile 91 KB

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