Makefile 91 KB

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