Makefile 137 KB

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