Makefile 96 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894
  1. #
  2. # Don't edit, this file is generated by FPCMake Version 2.0.0 [2015-09-05 rev 31523]
  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-aros 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 i8086-win16 aarch64-linux aarch64-darwin
  6. BSDs = freebsd netbsd openbsd darwin dragonfly
  7. UNIXs = linux $(BSDs) solaris qnx haiku aix
  8. LIMIT83fs = go32v2 os2 emx watcom msdos win16
  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=gba
  104. override CPU_TARGET_DEFAULT=arm
  105. override DEFAULT_FPCDIR=../..
  106. ifndef FPC
  107. ifdef PP
  108. FPC=$(PP)
  109. endif
  110. endif
  111. ifndef FPC
  112. FPCPROG:=$(strip $(wildcard $(addsuffix /fpc$(SRCEXEEXT),$(SEARCHPATH))))
  113. ifneq ($(FPCPROG),)
  114. FPCPROG:=$(firstword $(FPCPROG))
  115. ifneq ($(CPU_TARGET),)
  116. FPC:=$(shell $(FPCPROG) -P$(CPU_TARGET) -PB)
  117. else
  118. FPC:=$(shell $(FPCPROG) -PB)
  119. endif
  120. ifneq ($(findstring Error,$(FPC)),)
  121. override FPC=$(firstword $(strip $(wildcard $(addsuffix /ppc386$(SRCEXEEXT),$(SEARCHPATH)))))
  122. else
  123. ifeq ($(strip $(wildcard $(FPC))),)
  124. FPC:=$(firstword $(FPCPROG))
  125. endif
  126. endif
  127. else
  128. override FPC=$(firstword $(strip $(wildcard $(addsuffix /ppc386$(SRCEXEEXT),$(SEARCHPATH)))))
  129. endif
  130. endif
  131. override FPC:=$(subst $(SRCEXEEXT),,$(FPC))
  132. override FPC:=$(subst \,/,$(FPC))$(SRCEXEEXT)
  133. FOUNDFPC:=$(strip $(wildcard $(FPC)))
  134. ifeq ($(FOUNDFPC),)
  135. FOUNDFPC=$(strip $(wildcard $(addsuffix /$(FPC),$(SEARCHPATH))))
  136. ifeq ($(FOUNDFPC),)
  137. $(error Compiler $(FPC) not found)
  138. endif
  139. endif
  140. ifndef FPC_COMPILERINFO
  141. FPC_COMPILERINFO:=$(shell $(FPC) -iVSPTPSOTO)
  142. endif
  143. ifndef FPC_VERSION
  144. FPC_VERSION:=$(word 1,$(FPC_COMPILERINFO))
  145. endif
  146. export FPC FPC_VERSION FPC_COMPILERINFO
  147. unexport CHECKDEPEND ALLDEPENDENCIES
  148. ifndef CPU_TARGET
  149. ifdef CPU_TARGET_DEFAULT
  150. CPU_TARGET=$(CPU_TARGET_DEFAULT)
  151. endif
  152. endif
  153. ifndef OS_TARGET
  154. ifdef OS_TARGET_DEFAULT
  155. OS_TARGET=$(OS_TARGET_DEFAULT)
  156. endif
  157. endif
  158. ifndef CPU_SOURCE
  159. CPU_SOURCE:=$(word 2,$(FPC_COMPILERINFO))
  160. endif
  161. ifndef CPU_TARGET
  162. CPU_TARGET:=$(word 3,$(FPC_COMPILERINFO))
  163. endif
  164. ifndef OS_SOURCE
  165. OS_SOURCE:=$(word 4,$(FPC_COMPILERINFO))
  166. endif
  167. ifndef OS_TARGET
  168. OS_TARGET:=$(word 5,$(FPC_COMPILERINFO))
  169. endif
  170. FULL_TARGET=$(CPU_TARGET)-$(OS_TARGET)
  171. FULL_SOURCE=$(CPU_SOURCE)-$(OS_SOURCE)
  172. ifeq ($(CPU_TARGET),armeb)
  173. ARCH=arm
  174. override FPCOPT+=-Cb
  175. else
  176. ifeq ($(CPU_TARGET),armel)
  177. ARCH=arm
  178. override FPCOPT+=-CaEABI
  179. else
  180. ARCH=$(CPU_TARGET)
  181. endif
  182. endif
  183. ifeq ($(FULL_TARGET),arm-embedded)
  184. ifeq ($(SUBARCH),)
  185. $(error When compiling for arm-embedded, a sub-architecture (e.g. SUBARCH=armv4t or SUBARCH=armv7m) must be defined)
  186. endif
  187. override FPCOPT+=-Cp$(SUBARCH)
  188. endif
  189. ifeq ($(FULL_TARGET),avr-embedded)
  190. ifeq ($(SUBARCH),)
  191. $(error When compiling for avr-embedded, a sub-architecture (e.g. SUBARCH=avr25 or SUBARCH=avr35) must be defined)
  192. endif
  193. override FPCOPT+=-Cp$(SUBARCH)
  194. endif
  195. ifeq ($(FULL_TARGET),mipsel-embedded)
  196. ifeq ($(SUBARCH),)
  197. $(error When compiling for mipsel-embedded, a sub-architecture (e.g. SUBARCH=pic32mx) must be defined)
  198. endif
  199. override FPCOPT+=-Cp$(SUBARCH)
  200. endif
  201. ifneq ($(findstring $(OS_SOURCE),$(LIMIT83fs)),)
  202. TARGETSUFFIX=$(OS_TARGET)
  203. SOURCESUFFIX=$(OS_SOURCE)
  204. else
  205. ifneq ($(findstring $(OS_TARGET),$(LIMIT83fs)),)
  206. TARGETSUFFIX=$(OS_TARGET)
  207. else
  208. TARGETSUFFIX=$(FULL_TARGET)
  209. endif
  210. SOURCESUFFIX=$(FULL_SOURCE)
  211. endif
  212. ifneq ($(FULL_TARGET),$(FULL_SOURCE))
  213. CROSSCOMPILE=1
  214. endif
  215. ifeq ($(findstring makefile,$(MAKECMDGOALS)),)
  216. ifeq ($(findstring $(FULL_TARGET),$(MAKEFILETARGETS)),)
  217. $(error The Makefile doesn't support target $(FULL_TARGET), please run fpcmake first)
  218. endif
  219. endif
  220. ifneq ($(findstring $(OS_TARGET),$(BSDs)),)
  221. BSDhier=1
  222. endif
  223. ifeq ($(OS_TARGET),linux)
  224. linuxHier=1
  225. endif
  226. ifndef CROSSCOMPILE
  227. BUILDFULLNATIVE=1
  228. export BUILDFULLNATIVE
  229. endif
  230. ifdef BUILDFULLNATIVE
  231. BUILDNATIVE=1
  232. export BUILDNATIVE
  233. endif
  234. export OS_TARGET OS_SOURCE ARCH CPU_TARGET CPU_SOURCE FULL_TARGET FULL_SOURCE TARGETSUFFIX SOURCESUFFIX CROSSCOMPILE
  235. ifdef FPCDIR
  236. override FPCDIR:=$(subst \,/,$(FPCDIR))
  237. ifeq ($(wildcard $(addprefix $(FPCDIR)/,rtl units)),)
  238. override FPCDIR=wrong
  239. endif
  240. else
  241. override FPCDIR=wrong
  242. endif
  243. ifdef DEFAULT_FPCDIR
  244. ifeq ($(FPCDIR),wrong)
  245. override FPCDIR:=$(subst \,/,$(DEFAULT_FPCDIR))
  246. ifeq ($(wildcard $(addprefix $(FPCDIR)/,rtl units)),)
  247. override FPCDIR=wrong
  248. endif
  249. endif
  250. endif
  251. ifeq ($(FPCDIR),wrong)
  252. ifdef inUnix
  253. override FPCDIR=/usr/local/lib/fpc/$(FPC_VERSION)
  254. ifeq ($(wildcard $(FPCDIR)/units),)
  255. override FPCDIR=/usr/lib/fpc/$(FPC_VERSION)
  256. endif
  257. else
  258. override FPCDIR:=$(subst /$(FPC),,$(firstword $(strip $(wildcard $(addsuffix /$(FPC),$(SEARCHPATH))))))
  259. override FPCDIR:=$(FPCDIR)/..
  260. ifeq ($(wildcard $(addprefix $(FPCDIR)/,rtl units)),)
  261. override FPCDIR:=$(FPCDIR)/..
  262. ifeq ($(wildcard $(addprefix $(FPCDIR)/,rtl units)),)
  263. override FPCDIR:=$(BASEDIR)
  264. ifeq ($(wildcard $(addprefix $(FPCDIR)/,rtl units)),)
  265. override FPCDIR=c:/pp
  266. endif
  267. endif
  268. endif
  269. endif
  270. endif
  271. ifndef CROSSBINDIR
  272. CROSSBINDIR:=$(wildcard $(FPCDIR)/bin/$(TARGETSUFFIX))
  273. endif
  274. ifneq ($(findstring $(OS_TARGET),darwin iphonesim),)
  275. ifeq ($(OS_SOURCE),darwin)
  276. DARWIN2DARWIN=1
  277. endif
  278. endif
  279. ifndef BINUTILSPREFIX
  280. ifndef CROSSBINDIR
  281. ifdef CROSSCOMPILE
  282. ifneq ($(OS_TARGET),msdos)
  283. ifndef DARWIN2DARWIN
  284. ifneq ($(CPU_TARGET),jvm)
  285. BINUTILSPREFIX=$(CPU_TARGET)-$(OS_TARGET)-
  286. ifeq ($(OS_TARGET),android)
  287. ifeq ($(CPU_TARGET),arm)
  288. BINUTILSPREFIX=arm-linux-androideabi-
  289. else
  290. ifeq ($(CPU_TARGET),i386)
  291. BINUTILSPREFIX=i686-linux-android-
  292. else
  293. ifeq ($(CPU_TARGET),mipsel)
  294. BINUTILSPREFIX=mipsel-linux-android-
  295. endif
  296. endif
  297. endif
  298. endif
  299. endif
  300. endif
  301. else
  302. BINUTILSPREFIX=$(OS_TARGET)-
  303. endif
  304. endif
  305. endif
  306. endif
  307. UNITSDIR:=$(wildcard $(FPCDIR)/units/$(TARGETSUFFIX))
  308. ifeq ($(UNITSDIR),)
  309. UNITSDIR:=$(wildcard $(FPCDIR)/units/$(OS_TARGET))
  310. endif
  311. PACKAGESDIR:=$(wildcard $(FPCDIR) $(FPCDIR)/packages $(FPCDIR)/packages/base $(FPCDIR)/packages/extra)
  312. ifndef FPCFPMAKE
  313. ifdef CROSSCOMPILE
  314. ifeq ($(strip $(wildcard $(addsuffix /compiler/ppc$(SRCEXEEXT),$(FPCDIR)))),)
  315. FPCPROG:=$(strip $(wildcard $(addsuffix /fpc$(SRCEXEEXT),$(SEARCHPATH))))
  316. ifneq ($(FPCPROG),)
  317. FPCPROG:=$(firstword $(FPCPROG))
  318. FPCFPMAKE:=$(shell $(FPCPROG) -PB)
  319. ifeq ($(strip $(wildcard $(FPCFPMAKE))),)
  320. FPCFPMAKE:=$(firstword $(FPCPROG))
  321. endif
  322. else
  323. override FPCFPMAKE=$(firstword $(strip $(wildcard $(addsuffix /ppc386$(SRCEXEEXT),$(SEARCHPATH)))))
  324. endif
  325. else
  326. FPCFPMAKE=$(strip $(wildcard $(addsuffix /compiler/ppc$(SRCEXEEXT),$(FPCDIR))))
  327. FPMAKE_SKIP_CONFIG=-n
  328. export FPCFPMAKE
  329. export FPMAKE_SKIP_CONFIG
  330. endif
  331. else
  332. FPMAKE_SKIP_CONFIG=-n
  333. FPCFPMAKE=$(FPC)
  334. endif
  335. endif
  336. override PACKAGE_NAME=rtl
  337. PACKAGEDIR_MAIN:=$(firstword $(subst /Makefile.fpc,,$(strip $(wildcard $(addsuffix /rtl/Makefile.fpc,$(PACKAGESDIR))))))
  338. RTL=..
  339. INC=$(RTL)/inc
  340. COMMON=$(RTL)/common
  341. PROCINC=$(RTL)/$(CPU_TARGET)
  342. UNITPREFIX=rtl
  343. SYSTEMUNIT=system
  344. LOADERS=prt0 cprt0
  345. override [email protected]
  346. ifdef RELEASE
  347. override FPCOPT+=-Ur
  348. endif
  349. OBJPASDIR=$(RTL)/objpas
  350. GRAPHDIR=$(INC)/graph
  351. ifeq ($(FULL_TARGET),i386-linux)
  352. override TARGET_UNITS+=$(SYSTEMUNIT) uuchar objpas macpas iso7185 strings sysutils classes math typinfo ctypes charset cpall getopts types rtlconsts sysconst lineinfo fgl
  353. endif
  354. ifeq ($(FULL_TARGET),i386-go32v2)
  355. override TARGET_UNITS+=$(SYSTEMUNIT) uuchar objpas macpas iso7185 strings sysutils classes math typinfo ctypes charset cpall getopts types rtlconsts sysconst lineinfo fgl
  356. endif
  357. ifeq ($(FULL_TARGET),i386-win32)
  358. override TARGET_UNITS+=$(SYSTEMUNIT) uuchar objpas macpas iso7185 strings sysutils classes math typinfo ctypes charset cpall getopts types rtlconsts sysconst lineinfo fgl
  359. endif
  360. ifeq ($(FULL_TARGET),i386-os2)
  361. override TARGET_UNITS+=$(SYSTEMUNIT) uuchar objpas macpas iso7185 strings sysutils classes math typinfo ctypes charset cpall getopts types rtlconsts sysconst lineinfo fgl
  362. endif
  363. ifeq ($(FULL_TARGET),i386-freebsd)
  364. override TARGET_UNITS+=$(SYSTEMUNIT) uuchar objpas macpas iso7185 strings sysutils classes math typinfo ctypes charset cpall getopts types rtlconsts sysconst lineinfo fgl
  365. endif
  366. ifeq ($(FULL_TARGET),i386-beos)
  367. override TARGET_UNITS+=$(SYSTEMUNIT) uuchar objpas macpas iso7185 strings sysutils classes math typinfo ctypes charset cpall getopts types rtlconsts sysconst lineinfo fgl
  368. endif
  369. ifeq ($(FULL_TARGET),i386-haiku)
  370. override TARGET_UNITS+=$(SYSTEMUNIT) uuchar objpas macpas iso7185 strings sysutils classes math typinfo ctypes charset cpall getopts types rtlconsts sysconst lineinfo fgl
  371. endif
  372. ifeq ($(FULL_TARGET),i386-netbsd)
  373. override TARGET_UNITS+=$(SYSTEMUNIT) uuchar objpas macpas iso7185 strings sysutils classes math typinfo ctypes charset cpall getopts types rtlconsts sysconst lineinfo fgl
  374. endif
  375. ifeq ($(FULL_TARGET),i386-solaris)
  376. override TARGET_UNITS+=$(SYSTEMUNIT) uuchar objpas macpas iso7185 strings sysutils classes math typinfo ctypes charset cpall getopts types rtlconsts sysconst lineinfo fgl
  377. endif
  378. ifeq ($(FULL_TARGET),i386-qnx)
  379. override TARGET_UNITS+=$(SYSTEMUNIT) uuchar objpas macpas iso7185 strings sysutils classes math typinfo ctypes charset cpall getopts types rtlconsts sysconst lineinfo fgl
  380. endif
  381. ifeq ($(FULL_TARGET),i386-netware)
  382. override TARGET_UNITS+=$(SYSTEMUNIT) uuchar objpas macpas iso7185 strings sysutils classes math typinfo ctypes charset cpall getopts types rtlconsts sysconst lineinfo fgl
  383. endif
  384. ifeq ($(FULL_TARGET),i386-openbsd)
  385. override TARGET_UNITS+=$(SYSTEMUNIT) uuchar objpas macpas iso7185 strings sysutils classes math typinfo ctypes charset cpall getopts types rtlconsts sysconst lineinfo fgl
  386. endif
  387. ifeq ($(FULL_TARGET),i386-wdosx)
  388. override TARGET_UNITS+=$(SYSTEMUNIT) uuchar objpas macpas iso7185 strings sysutils classes math typinfo ctypes charset cpall getopts types rtlconsts sysconst lineinfo fgl
  389. endif
  390. ifeq ($(FULL_TARGET),i386-darwin)
  391. override TARGET_UNITS+=$(SYSTEMUNIT) uuchar objpas macpas iso7185 strings sysutils classes math typinfo ctypes charset cpall getopts types rtlconsts sysconst lineinfo fgl
  392. endif
  393. ifeq ($(FULL_TARGET),i386-emx)
  394. override TARGET_UNITS+=$(SYSTEMUNIT) uuchar objpas macpas iso7185 strings sysutils classes math typinfo ctypes charset cpall getopts types rtlconsts sysconst lineinfo fgl
  395. endif
  396. ifeq ($(FULL_TARGET),i386-watcom)
  397. override TARGET_UNITS+=$(SYSTEMUNIT) uuchar objpas macpas iso7185 strings sysutils classes math typinfo ctypes charset cpall getopts types rtlconsts sysconst lineinfo fgl
  398. endif
  399. ifeq ($(FULL_TARGET),i386-netwlibc)
  400. override TARGET_UNITS+=$(SYSTEMUNIT) uuchar objpas macpas iso7185 strings sysutils classes math typinfo ctypes charset cpall getopts types rtlconsts sysconst lineinfo fgl
  401. endif
  402. ifeq ($(FULL_TARGET),i386-wince)
  403. override TARGET_UNITS+=$(SYSTEMUNIT) uuchar objpas macpas iso7185 strings sysutils classes math typinfo ctypes charset cpall getopts types rtlconsts sysconst lineinfo fgl
  404. endif
  405. ifeq ($(FULL_TARGET),i386-embedded)
  406. override TARGET_UNITS+=$(SYSTEMUNIT) uuchar objpas macpas iso7185 strings sysutils classes math typinfo ctypes charset cpall getopts types rtlconsts sysconst lineinfo fgl
  407. endif
  408. ifeq ($(FULL_TARGET),i386-symbian)
  409. override TARGET_UNITS+=$(SYSTEMUNIT) uuchar objpas macpas iso7185 strings sysutils classes math typinfo ctypes charset cpall getopts types rtlconsts sysconst lineinfo fgl
  410. endif
  411. ifeq ($(FULL_TARGET),i386-nativent)
  412. override TARGET_UNITS+=$(SYSTEMUNIT) uuchar objpas macpas iso7185 strings sysutils classes math typinfo ctypes charset cpall getopts types rtlconsts sysconst lineinfo fgl
  413. endif
  414. ifeq ($(FULL_TARGET),i386-iphonesim)
  415. override TARGET_UNITS+=$(SYSTEMUNIT) uuchar objpas macpas iso7185 strings sysutils classes math typinfo ctypes charset cpall getopts types rtlconsts sysconst lineinfo fgl
  416. endif
  417. ifeq ($(FULL_TARGET),i386-android)
  418. override TARGET_UNITS+=$(SYSTEMUNIT) uuchar objpas macpas iso7185 strings sysutils classes math typinfo ctypes charset cpall getopts types rtlconsts sysconst lineinfo fgl
  419. endif
  420. ifeq ($(FULL_TARGET),i386-aros)
  421. override TARGET_UNITS+=$(SYSTEMUNIT) uuchar objpas macpas iso7185 strings sysutils classes math typinfo ctypes charset cpall getopts types rtlconsts sysconst lineinfo fgl
  422. endif
  423. ifeq ($(FULL_TARGET),m68k-linux)
  424. override TARGET_UNITS+=$(SYSTEMUNIT) uuchar objpas macpas iso7185 strings sysutils classes math typinfo ctypes charset cpall getopts types rtlconsts sysconst lineinfo fgl
  425. endif
  426. ifeq ($(FULL_TARGET),m68k-freebsd)
  427. override TARGET_UNITS+=$(SYSTEMUNIT) uuchar objpas macpas iso7185 strings sysutils classes math typinfo ctypes charset cpall getopts types rtlconsts sysconst lineinfo fgl
  428. endif
  429. ifeq ($(FULL_TARGET),m68k-netbsd)
  430. override TARGET_UNITS+=$(SYSTEMUNIT) uuchar objpas macpas iso7185 strings sysutils classes math typinfo ctypes charset cpall getopts types rtlconsts sysconst lineinfo fgl
  431. endif
  432. ifeq ($(FULL_TARGET),m68k-amiga)
  433. override TARGET_UNITS+=$(SYSTEMUNIT) uuchar objpas macpas iso7185 strings sysutils classes math typinfo ctypes charset cpall getopts types rtlconsts sysconst lineinfo fgl
  434. endif
  435. ifeq ($(FULL_TARGET),m68k-atari)
  436. override TARGET_UNITS+=$(SYSTEMUNIT) uuchar objpas macpas iso7185 strings sysutils classes math typinfo ctypes charset cpall getopts types rtlconsts sysconst lineinfo fgl
  437. endif
  438. ifeq ($(FULL_TARGET),m68k-openbsd)
  439. override TARGET_UNITS+=$(SYSTEMUNIT) uuchar objpas macpas iso7185 strings sysutils classes math typinfo ctypes charset cpall getopts types rtlconsts sysconst lineinfo fgl
  440. endif
  441. ifeq ($(FULL_TARGET),m68k-palmos)
  442. override TARGET_UNITS+=$(SYSTEMUNIT) uuchar objpas macpas iso7185 strings sysutils classes math typinfo ctypes charset cpall getopts types rtlconsts sysconst lineinfo fgl
  443. endif
  444. ifeq ($(FULL_TARGET),m68k-embedded)
  445. override TARGET_UNITS+=$(SYSTEMUNIT) uuchar objpas macpas iso7185 strings sysutils classes math typinfo ctypes charset cpall getopts types rtlconsts sysconst lineinfo fgl
  446. endif
  447. ifeq ($(FULL_TARGET),powerpc-linux)
  448. override TARGET_UNITS+=$(SYSTEMUNIT) uuchar objpas macpas iso7185 strings sysutils classes math typinfo ctypes charset cpall getopts types rtlconsts sysconst lineinfo fgl
  449. endif
  450. ifeq ($(FULL_TARGET),powerpc-netbsd)
  451. override TARGET_UNITS+=$(SYSTEMUNIT) uuchar objpas macpas iso7185 strings sysutils classes math typinfo ctypes charset cpall getopts types rtlconsts sysconst lineinfo fgl
  452. endif
  453. ifeq ($(FULL_TARGET),powerpc-amiga)
  454. override TARGET_UNITS+=$(SYSTEMUNIT) uuchar objpas macpas iso7185 strings sysutils classes math typinfo ctypes charset cpall getopts types rtlconsts sysconst lineinfo fgl
  455. endif
  456. ifeq ($(FULL_TARGET),powerpc-macos)
  457. override TARGET_UNITS+=$(SYSTEMUNIT) uuchar objpas macpas iso7185 strings sysutils classes math typinfo ctypes charset cpall getopts types rtlconsts sysconst lineinfo fgl
  458. endif
  459. ifeq ($(FULL_TARGET),powerpc-darwin)
  460. override TARGET_UNITS+=$(SYSTEMUNIT) uuchar objpas macpas iso7185 strings sysutils classes math typinfo ctypes charset cpall getopts types rtlconsts sysconst lineinfo fgl
  461. endif
  462. ifeq ($(FULL_TARGET),powerpc-morphos)
  463. override TARGET_UNITS+=$(SYSTEMUNIT) uuchar objpas macpas iso7185 strings sysutils classes math typinfo ctypes charset cpall getopts types rtlconsts sysconst lineinfo fgl
  464. endif
  465. ifeq ($(FULL_TARGET),powerpc-embedded)
  466. override TARGET_UNITS+=$(SYSTEMUNIT) uuchar objpas macpas iso7185 strings sysutils classes math typinfo ctypes charset cpall getopts types rtlconsts sysconst lineinfo fgl
  467. endif
  468. ifeq ($(FULL_TARGET),powerpc-wii)
  469. override TARGET_UNITS+=$(SYSTEMUNIT) uuchar objpas macpas iso7185 strings sysutils classes math typinfo ctypes charset cpall getopts types rtlconsts sysconst lineinfo fgl
  470. endif
  471. ifeq ($(FULL_TARGET),powerpc-aix)
  472. override TARGET_UNITS+=$(SYSTEMUNIT) uuchar objpas macpas iso7185 strings sysutils classes math typinfo ctypes charset cpall getopts types rtlconsts sysconst lineinfo fgl
  473. endif
  474. ifeq ($(FULL_TARGET),sparc-linux)
  475. override TARGET_UNITS+=$(SYSTEMUNIT) uuchar objpas macpas iso7185 strings sysutils classes math typinfo ctypes charset cpall getopts types rtlconsts sysconst lineinfo fgl
  476. endif
  477. ifeq ($(FULL_TARGET),sparc-netbsd)
  478. override TARGET_UNITS+=$(SYSTEMUNIT) uuchar objpas macpas iso7185 strings sysutils classes math typinfo ctypes charset cpall getopts types rtlconsts sysconst lineinfo fgl
  479. endif
  480. ifeq ($(FULL_TARGET),sparc-solaris)
  481. override TARGET_UNITS+=$(SYSTEMUNIT) uuchar objpas macpas iso7185 strings sysutils classes math typinfo ctypes charset cpall getopts types rtlconsts sysconst lineinfo fgl
  482. endif
  483. ifeq ($(FULL_TARGET),sparc-embedded)
  484. override TARGET_UNITS+=$(SYSTEMUNIT) uuchar objpas macpas iso7185 strings sysutils classes math typinfo ctypes charset cpall getopts types rtlconsts sysconst lineinfo fgl
  485. endif
  486. ifeq ($(FULL_TARGET),x86_64-linux)
  487. override TARGET_UNITS+=$(SYSTEMUNIT) uuchar objpas macpas iso7185 strings sysutils classes math typinfo ctypes charset cpall getopts types rtlconsts sysconst lineinfo fgl
  488. endif
  489. ifeq ($(FULL_TARGET),x86_64-freebsd)
  490. override TARGET_UNITS+=$(SYSTEMUNIT) uuchar objpas macpas iso7185 strings sysutils classes math typinfo ctypes charset cpall getopts types rtlconsts sysconst lineinfo fgl
  491. endif
  492. ifeq ($(FULL_TARGET),x86_64-netbsd)
  493. override TARGET_UNITS+=$(SYSTEMUNIT) uuchar objpas macpas iso7185 strings sysutils classes math typinfo ctypes charset cpall getopts types rtlconsts sysconst lineinfo fgl
  494. endif
  495. ifeq ($(FULL_TARGET),x86_64-solaris)
  496. override TARGET_UNITS+=$(SYSTEMUNIT) uuchar objpas macpas iso7185 strings sysutils classes math typinfo ctypes charset cpall getopts types rtlconsts sysconst lineinfo fgl
  497. endif
  498. ifeq ($(FULL_TARGET),x86_64-openbsd)
  499. override TARGET_UNITS+=$(SYSTEMUNIT) uuchar objpas macpas iso7185 strings sysutils classes math typinfo ctypes charset cpall getopts types rtlconsts sysconst lineinfo fgl
  500. endif
  501. ifeq ($(FULL_TARGET),x86_64-darwin)
  502. override TARGET_UNITS+=$(SYSTEMUNIT) uuchar objpas macpas iso7185 strings sysutils classes math typinfo ctypes charset cpall getopts types rtlconsts sysconst lineinfo fgl
  503. endif
  504. ifeq ($(FULL_TARGET),x86_64-win64)
  505. override TARGET_UNITS+=$(SYSTEMUNIT) uuchar objpas macpas iso7185 strings sysutils classes math typinfo ctypes charset cpall getopts types rtlconsts sysconst lineinfo fgl
  506. endif
  507. ifeq ($(FULL_TARGET),x86_64-embedded)
  508. override TARGET_UNITS+=$(SYSTEMUNIT) uuchar objpas macpas iso7185 strings sysutils classes math typinfo ctypes charset cpall getopts types rtlconsts sysconst lineinfo fgl
  509. endif
  510. ifeq ($(FULL_TARGET),x86_64-iphonesim)
  511. override TARGET_UNITS+=$(SYSTEMUNIT) uuchar objpas macpas iso7185 strings sysutils classes math typinfo ctypes charset cpall getopts types rtlconsts sysconst lineinfo fgl
  512. endif
  513. ifeq ($(FULL_TARGET),x86_64-aros)
  514. override TARGET_UNITS+=$(SYSTEMUNIT) uuchar objpas macpas iso7185 strings sysutils classes math typinfo ctypes charset cpall getopts types rtlconsts sysconst lineinfo fgl
  515. endif
  516. ifeq ($(FULL_TARGET),x86_64-dragonfly)
  517. override TARGET_UNITS+=$(SYSTEMUNIT) uuchar objpas macpas iso7185 strings sysutils classes math typinfo ctypes charset cpall getopts types rtlconsts sysconst lineinfo fgl
  518. endif
  519. ifeq ($(FULL_TARGET),arm-linux)
  520. override TARGET_UNITS+=$(SYSTEMUNIT) uuchar objpas macpas iso7185 strings sysutils classes math typinfo ctypes charset cpall getopts types rtlconsts sysconst lineinfo fgl
  521. endif
  522. ifeq ($(FULL_TARGET),arm-palmos)
  523. override TARGET_UNITS+=$(SYSTEMUNIT) uuchar objpas macpas iso7185 strings sysutils classes math typinfo ctypes charset cpall getopts types rtlconsts sysconst lineinfo fgl
  524. endif
  525. ifeq ($(FULL_TARGET),arm-darwin)
  526. override TARGET_UNITS+=$(SYSTEMUNIT) uuchar objpas macpas iso7185 strings sysutils classes math typinfo ctypes charset cpall getopts types rtlconsts sysconst lineinfo fgl
  527. endif
  528. ifeq ($(FULL_TARGET),arm-wince)
  529. override TARGET_UNITS+=$(SYSTEMUNIT) uuchar objpas macpas iso7185 strings sysutils classes math typinfo ctypes charset cpall getopts types rtlconsts sysconst lineinfo fgl
  530. endif
  531. ifeq ($(FULL_TARGET),arm-gba)
  532. override TARGET_UNITS+=$(SYSTEMUNIT) uuchar objpas macpas iso7185 strings sysutils classes math typinfo ctypes charset cpall getopts types rtlconsts sysconst lineinfo fgl
  533. endif
  534. ifeq ($(FULL_TARGET),arm-nds)
  535. override TARGET_UNITS+=$(SYSTEMUNIT) uuchar objpas macpas iso7185 strings sysutils classes math typinfo ctypes charset cpall getopts types rtlconsts sysconst lineinfo fgl
  536. endif
  537. ifeq ($(FULL_TARGET),arm-embedded)
  538. override TARGET_UNITS+=$(SYSTEMUNIT) uuchar objpas macpas iso7185 strings sysutils classes math typinfo ctypes charset cpall getopts types rtlconsts sysconst lineinfo fgl
  539. endif
  540. ifeq ($(FULL_TARGET),arm-symbian)
  541. override TARGET_UNITS+=$(SYSTEMUNIT) uuchar objpas macpas iso7185 strings sysutils classes math typinfo ctypes charset cpall getopts types rtlconsts sysconst lineinfo fgl
  542. endif
  543. ifeq ($(FULL_TARGET),arm-android)
  544. override TARGET_UNITS+=$(SYSTEMUNIT) uuchar objpas macpas iso7185 strings sysutils classes math typinfo ctypes charset cpall getopts types rtlconsts sysconst lineinfo fgl
  545. endif
  546. ifeq ($(FULL_TARGET),powerpc64-linux)
  547. override TARGET_UNITS+=$(SYSTEMUNIT) uuchar objpas macpas iso7185 strings sysutils classes math typinfo ctypes charset cpall getopts types rtlconsts sysconst lineinfo fgl
  548. endif
  549. ifeq ($(FULL_TARGET),powerpc64-darwin)
  550. override TARGET_UNITS+=$(SYSTEMUNIT) uuchar objpas macpas iso7185 strings sysutils classes math typinfo ctypes charset cpall getopts types rtlconsts sysconst lineinfo fgl
  551. endif
  552. ifeq ($(FULL_TARGET),powerpc64-embedded)
  553. override TARGET_UNITS+=$(SYSTEMUNIT) uuchar objpas macpas iso7185 strings sysutils classes math typinfo ctypes charset cpall getopts types rtlconsts sysconst lineinfo fgl
  554. endif
  555. ifeq ($(FULL_TARGET),powerpc64-aix)
  556. override TARGET_UNITS+=$(SYSTEMUNIT) uuchar objpas macpas iso7185 strings sysutils classes math typinfo ctypes charset cpall getopts types rtlconsts sysconst lineinfo fgl
  557. endif
  558. ifeq ($(FULL_TARGET),avr-embedded)
  559. override TARGET_UNITS+=$(SYSTEMUNIT) uuchar objpas macpas iso7185 strings sysutils classes math typinfo ctypes charset cpall getopts types rtlconsts sysconst lineinfo fgl
  560. endif
  561. ifeq ($(FULL_TARGET),armeb-linux)
  562. override TARGET_UNITS+=$(SYSTEMUNIT) uuchar objpas macpas iso7185 strings sysutils classes math typinfo ctypes charset cpall getopts types rtlconsts sysconst lineinfo fgl
  563. endif
  564. ifeq ($(FULL_TARGET),armeb-embedded)
  565. override TARGET_UNITS+=$(SYSTEMUNIT) uuchar objpas macpas iso7185 strings sysutils classes math typinfo ctypes charset cpall getopts types rtlconsts sysconst lineinfo fgl
  566. endif
  567. ifeq ($(FULL_TARGET),mips-linux)
  568. override TARGET_UNITS+=$(SYSTEMUNIT) uuchar objpas macpas iso7185 strings sysutils classes math typinfo ctypes charset cpall getopts types rtlconsts sysconst lineinfo fgl
  569. endif
  570. ifeq ($(FULL_TARGET),mipsel-linux)
  571. override TARGET_UNITS+=$(SYSTEMUNIT) uuchar objpas macpas iso7185 strings sysutils classes math typinfo ctypes charset cpall getopts types rtlconsts sysconst lineinfo fgl
  572. endif
  573. ifeq ($(FULL_TARGET),mipsel-embedded)
  574. override TARGET_UNITS+=$(SYSTEMUNIT) uuchar objpas macpas iso7185 strings sysutils classes math typinfo ctypes charset cpall getopts types rtlconsts sysconst lineinfo fgl
  575. endif
  576. ifeq ($(FULL_TARGET),mipsel-android)
  577. override TARGET_UNITS+=$(SYSTEMUNIT) uuchar objpas macpas iso7185 strings sysutils classes math typinfo ctypes charset cpall getopts types rtlconsts sysconst lineinfo fgl
  578. endif
  579. ifeq ($(FULL_TARGET),jvm-java)
  580. override TARGET_UNITS+=$(SYSTEMUNIT) uuchar objpas macpas iso7185 strings sysutils classes math typinfo ctypes charset cpall getopts types rtlconsts sysconst lineinfo fgl
  581. endif
  582. ifeq ($(FULL_TARGET),jvm-android)
  583. override TARGET_UNITS+=$(SYSTEMUNIT) uuchar objpas macpas iso7185 strings sysutils classes math typinfo ctypes charset cpall getopts types rtlconsts sysconst lineinfo fgl
  584. endif
  585. ifeq ($(FULL_TARGET),i8086-msdos)
  586. override TARGET_UNITS+=$(SYSTEMUNIT) uuchar objpas macpas iso7185 strings sysutils classes math typinfo ctypes charset cpall getopts types rtlconsts sysconst lineinfo fgl
  587. endif
  588. ifeq ($(FULL_TARGET),i8086-win16)
  589. override TARGET_UNITS+=$(SYSTEMUNIT) uuchar objpas macpas iso7185 strings sysutils classes math typinfo ctypes charset cpall getopts types rtlconsts sysconst lineinfo fgl
  590. endif
  591. ifeq ($(FULL_TARGET),aarch64-linux)
  592. override TARGET_UNITS+=$(SYSTEMUNIT) uuchar objpas macpas iso7185 strings sysutils classes math typinfo ctypes charset cpall getopts types rtlconsts sysconst lineinfo fgl
  593. endif
  594. ifeq ($(FULL_TARGET),aarch64-darwin)
  595. override TARGET_UNITS+=$(SYSTEMUNIT) uuchar objpas macpas iso7185 strings sysutils classes math typinfo ctypes charset cpall getopts types rtlconsts sysconst lineinfo fgl
  596. endif
  597. ifeq ($(FULL_TARGET),i386-linux)
  598. override TARGET_IMPLICITUNITS+=cp1250 cp1251 cp1252 cp1253 cp1254 cp1255 cp1256 cp1257 cp1258 cp437 cp646 cp850 cp856 cp866 cp874 cp8859_1 cp8859_5 cp8859_2 cp852
  599. endif
  600. ifeq ($(FULL_TARGET),i386-go32v2)
  601. override TARGET_IMPLICITUNITS+=cp1250 cp1251 cp1252 cp1253 cp1254 cp1255 cp1256 cp1257 cp1258 cp437 cp646 cp850 cp856 cp866 cp874 cp8859_1 cp8859_5 cp8859_2 cp852
  602. endif
  603. ifeq ($(FULL_TARGET),i386-win32)
  604. override TARGET_IMPLICITUNITS+=cp1250 cp1251 cp1252 cp1253 cp1254 cp1255 cp1256 cp1257 cp1258 cp437 cp646 cp850 cp856 cp866 cp874 cp8859_1 cp8859_5 cp8859_2 cp852
  605. endif
  606. ifeq ($(FULL_TARGET),i386-os2)
  607. override TARGET_IMPLICITUNITS+=cp1250 cp1251 cp1252 cp1253 cp1254 cp1255 cp1256 cp1257 cp1258 cp437 cp646 cp850 cp856 cp866 cp874 cp8859_1 cp8859_5 cp8859_2 cp852
  608. endif
  609. ifeq ($(FULL_TARGET),i386-freebsd)
  610. override TARGET_IMPLICITUNITS+=cp1250 cp1251 cp1252 cp1253 cp1254 cp1255 cp1256 cp1257 cp1258 cp437 cp646 cp850 cp856 cp866 cp874 cp8859_1 cp8859_5 cp8859_2 cp852
  611. endif
  612. ifeq ($(FULL_TARGET),i386-beos)
  613. override TARGET_IMPLICITUNITS+=cp1250 cp1251 cp1252 cp1253 cp1254 cp1255 cp1256 cp1257 cp1258 cp437 cp646 cp850 cp856 cp866 cp874 cp8859_1 cp8859_5 cp8859_2 cp852
  614. endif
  615. ifeq ($(FULL_TARGET),i386-haiku)
  616. override TARGET_IMPLICITUNITS+=cp1250 cp1251 cp1252 cp1253 cp1254 cp1255 cp1256 cp1257 cp1258 cp437 cp646 cp850 cp856 cp866 cp874 cp8859_1 cp8859_5 cp8859_2 cp852
  617. endif
  618. ifeq ($(FULL_TARGET),i386-netbsd)
  619. override TARGET_IMPLICITUNITS+=cp1250 cp1251 cp1252 cp1253 cp1254 cp1255 cp1256 cp1257 cp1258 cp437 cp646 cp850 cp856 cp866 cp874 cp8859_1 cp8859_5 cp8859_2 cp852
  620. endif
  621. ifeq ($(FULL_TARGET),i386-solaris)
  622. override TARGET_IMPLICITUNITS+=cp1250 cp1251 cp1252 cp1253 cp1254 cp1255 cp1256 cp1257 cp1258 cp437 cp646 cp850 cp856 cp866 cp874 cp8859_1 cp8859_5 cp8859_2 cp852
  623. endif
  624. ifeq ($(FULL_TARGET),i386-qnx)
  625. override TARGET_IMPLICITUNITS+=cp1250 cp1251 cp1252 cp1253 cp1254 cp1255 cp1256 cp1257 cp1258 cp437 cp646 cp850 cp856 cp866 cp874 cp8859_1 cp8859_5 cp8859_2 cp852
  626. endif
  627. ifeq ($(FULL_TARGET),i386-netware)
  628. override TARGET_IMPLICITUNITS+=cp1250 cp1251 cp1252 cp1253 cp1254 cp1255 cp1256 cp1257 cp1258 cp437 cp646 cp850 cp856 cp866 cp874 cp8859_1 cp8859_5 cp8859_2 cp852
  629. endif
  630. ifeq ($(FULL_TARGET),i386-openbsd)
  631. override TARGET_IMPLICITUNITS+=cp1250 cp1251 cp1252 cp1253 cp1254 cp1255 cp1256 cp1257 cp1258 cp437 cp646 cp850 cp856 cp866 cp874 cp8859_1 cp8859_5 cp8859_2 cp852
  632. endif
  633. ifeq ($(FULL_TARGET),i386-wdosx)
  634. override TARGET_IMPLICITUNITS+=cp1250 cp1251 cp1252 cp1253 cp1254 cp1255 cp1256 cp1257 cp1258 cp437 cp646 cp850 cp856 cp866 cp874 cp8859_1 cp8859_5 cp8859_2 cp852
  635. endif
  636. ifeq ($(FULL_TARGET),i386-darwin)
  637. override TARGET_IMPLICITUNITS+=cp1250 cp1251 cp1252 cp1253 cp1254 cp1255 cp1256 cp1257 cp1258 cp437 cp646 cp850 cp856 cp866 cp874 cp8859_1 cp8859_5 cp8859_2 cp852
  638. endif
  639. ifeq ($(FULL_TARGET),i386-emx)
  640. override TARGET_IMPLICITUNITS+=cp1250 cp1251 cp1252 cp1253 cp1254 cp1255 cp1256 cp1257 cp1258 cp437 cp646 cp850 cp856 cp866 cp874 cp8859_1 cp8859_5 cp8859_2 cp852
  641. endif
  642. ifeq ($(FULL_TARGET),i386-watcom)
  643. override TARGET_IMPLICITUNITS+=cp1250 cp1251 cp1252 cp1253 cp1254 cp1255 cp1256 cp1257 cp1258 cp437 cp646 cp850 cp856 cp866 cp874 cp8859_1 cp8859_5 cp8859_2 cp852
  644. endif
  645. ifeq ($(FULL_TARGET),i386-netwlibc)
  646. override TARGET_IMPLICITUNITS+=cp1250 cp1251 cp1252 cp1253 cp1254 cp1255 cp1256 cp1257 cp1258 cp437 cp646 cp850 cp856 cp866 cp874 cp8859_1 cp8859_5 cp8859_2 cp852
  647. endif
  648. ifeq ($(FULL_TARGET),i386-wince)
  649. override TARGET_IMPLICITUNITS+=cp1250 cp1251 cp1252 cp1253 cp1254 cp1255 cp1256 cp1257 cp1258 cp437 cp646 cp850 cp856 cp866 cp874 cp8859_1 cp8859_5 cp8859_2 cp852
  650. endif
  651. ifeq ($(FULL_TARGET),i386-embedded)
  652. override TARGET_IMPLICITUNITS+=cp1250 cp1251 cp1252 cp1253 cp1254 cp1255 cp1256 cp1257 cp1258 cp437 cp646 cp850 cp856 cp866 cp874 cp8859_1 cp8859_5 cp8859_2 cp852
  653. endif
  654. ifeq ($(FULL_TARGET),i386-symbian)
  655. override TARGET_IMPLICITUNITS+=cp1250 cp1251 cp1252 cp1253 cp1254 cp1255 cp1256 cp1257 cp1258 cp437 cp646 cp850 cp856 cp866 cp874 cp8859_1 cp8859_5 cp8859_2 cp852
  656. endif
  657. ifeq ($(FULL_TARGET),i386-nativent)
  658. override TARGET_IMPLICITUNITS+=cp1250 cp1251 cp1252 cp1253 cp1254 cp1255 cp1256 cp1257 cp1258 cp437 cp646 cp850 cp856 cp866 cp874 cp8859_1 cp8859_5 cp8859_2 cp852
  659. endif
  660. ifeq ($(FULL_TARGET),i386-iphonesim)
  661. override TARGET_IMPLICITUNITS+=cp1250 cp1251 cp1252 cp1253 cp1254 cp1255 cp1256 cp1257 cp1258 cp437 cp646 cp850 cp856 cp866 cp874 cp8859_1 cp8859_5 cp8859_2 cp852
  662. endif
  663. ifeq ($(FULL_TARGET),i386-android)
  664. override TARGET_IMPLICITUNITS+=cp1250 cp1251 cp1252 cp1253 cp1254 cp1255 cp1256 cp1257 cp1258 cp437 cp646 cp850 cp856 cp866 cp874 cp8859_1 cp8859_5 cp8859_2 cp852
  665. endif
  666. ifeq ($(FULL_TARGET),i386-aros)
  667. override TARGET_IMPLICITUNITS+=cp1250 cp1251 cp1252 cp1253 cp1254 cp1255 cp1256 cp1257 cp1258 cp437 cp646 cp850 cp856 cp866 cp874 cp8859_1 cp8859_5 cp8859_2 cp852
  668. endif
  669. ifeq ($(FULL_TARGET),m68k-linux)
  670. override TARGET_IMPLICITUNITS+=cp1250 cp1251 cp1252 cp1253 cp1254 cp1255 cp1256 cp1257 cp1258 cp437 cp646 cp850 cp856 cp866 cp874 cp8859_1 cp8859_5 cp8859_2 cp852
  671. endif
  672. ifeq ($(FULL_TARGET),m68k-freebsd)
  673. override TARGET_IMPLICITUNITS+=cp1250 cp1251 cp1252 cp1253 cp1254 cp1255 cp1256 cp1257 cp1258 cp437 cp646 cp850 cp856 cp866 cp874 cp8859_1 cp8859_5 cp8859_2 cp852
  674. endif
  675. ifeq ($(FULL_TARGET),m68k-netbsd)
  676. override TARGET_IMPLICITUNITS+=cp1250 cp1251 cp1252 cp1253 cp1254 cp1255 cp1256 cp1257 cp1258 cp437 cp646 cp850 cp856 cp866 cp874 cp8859_1 cp8859_5 cp8859_2 cp852
  677. endif
  678. ifeq ($(FULL_TARGET),m68k-amiga)
  679. override TARGET_IMPLICITUNITS+=cp1250 cp1251 cp1252 cp1253 cp1254 cp1255 cp1256 cp1257 cp1258 cp437 cp646 cp850 cp856 cp866 cp874 cp8859_1 cp8859_5 cp8859_2 cp852
  680. endif
  681. ifeq ($(FULL_TARGET),m68k-atari)
  682. override TARGET_IMPLICITUNITS+=cp1250 cp1251 cp1252 cp1253 cp1254 cp1255 cp1256 cp1257 cp1258 cp437 cp646 cp850 cp856 cp866 cp874 cp8859_1 cp8859_5 cp8859_2 cp852
  683. endif
  684. ifeq ($(FULL_TARGET),m68k-openbsd)
  685. override TARGET_IMPLICITUNITS+=cp1250 cp1251 cp1252 cp1253 cp1254 cp1255 cp1256 cp1257 cp1258 cp437 cp646 cp850 cp856 cp866 cp874 cp8859_1 cp8859_5 cp8859_2 cp852
  686. endif
  687. ifeq ($(FULL_TARGET),m68k-palmos)
  688. override TARGET_IMPLICITUNITS+=cp1250 cp1251 cp1252 cp1253 cp1254 cp1255 cp1256 cp1257 cp1258 cp437 cp646 cp850 cp856 cp866 cp874 cp8859_1 cp8859_5 cp8859_2 cp852
  689. endif
  690. ifeq ($(FULL_TARGET),m68k-embedded)
  691. override TARGET_IMPLICITUNITS+=cp1250 cp1251 cp1252 cp1253 cp1254 cp1255 cp1256 cp1257 cp1258 cp437 cp646 cp850 cp856 cp866 cp874 cp8859_1 cp8859_5 cp8859_2 cp852
  692. endif
  693. ifeq ($(FULL_TARGET),powerpc-linux)
  694. override TARGET_IMPLICITUNITS+=cp1250 cp1251 cp1252 cp1253 cp1254 cp1255 cp1256 cp1257 cp1258 cp437 cp646 cp850 cp856 cp866 cp874 cp8859_1 cp8859_5 cp8859_2 cp852
  695. endif
  696. ifeq ($(FULL_TARGET),powerpc-netbsd)
  697. override TARGET_IMPLICITUNITS+=cp1250 cp1251 cp1252 cp1253 cp1254 cp1255 cp1256 cp1257 cp1258 cp437 cp646 cp850 cp856 cp866 cp874 cp8859_1 cp8859_5 cp8859_2 cp852
  698. endif
  699. ifeq ($(FULL_TARGET),powerpc-amiga)
  700. override TARGET_IMPLICITUNITS+=cp1250 cp1251 cp1252 cp1253 cp1254 cp1255 cp1256 cp1257 cp1258 cp437 cp646 cp850 cp856 cp866 cp874 cp8859_1 cp8859_5 cp8859_2 cp852
  701. endif
  702. ifeq ($(FULL_TARGET),powerpc-macos)
  703. override TARGET_IMPLICITUNITS+=cp1250 cp1251 cp1252 cp1253 cp1254 cp1255 cp1256 cp1257 cp1258 cp437 cp646 cp850 cp856 cp866 cp874 cp8859_1 cp8859_5 cp8859_2 cp852
  704. endif
  705. ifeq ($(FULL_TARGET),powerpc-darwin)
  706. override TARGET_IMPLICITUNITS+=cp1250 cp1251 cp1252 cp1253 cp1254 cp1255 cp1256 cp1257 cp1258 cp437 cp646 cp850 cp856 cp866 cp874 cp8859_1 cp8859_5 cp8859_2 cp852
  707. endif
  708. ifeq ($(FULL_TARGET),powerpc-morphos)
  709. override TARGET_IMPLICITUNITS+=cp1250 cp1251 cp1252 cp1253 cp1254 cp1255 cp1256 cp1257 cp1258 cp437 cp646 cp850 cp856 cp866 cp874 cp8859_1 cp8859_5 cp8859_2 cp852
  710. endif
  711. ifeq ($(FULL_TARGET),powerpc-embedded)
  712. override TARGET_IMPLICITUNITS+=cp1250 cp1251 cp1252 cp1253 cp1254 cp1255 cp1256 cp1257 cp1258 cp437 cp646 cp850 cp856 cp866 cp874 cp8859_1 cp8859_5 cp8859_2 cp852
  713. endif
  714. ifeq ($(FULL_TARGET),powerpc-wii)
  715. override TARGET_IMPLICITUNITS+=cp1250 cp1251 cp1252 cp1253 cp1254 cp1255 cp1256 cp1257 cp1258 cp437 cp646 cp850 cp856 cp866 cp874 cp8859_1 cp8859_5 cp8859_2 cp852
  716. endif
  717. ifeq ($(FULL_TARGET),powerpc-aix)
  718. override TARGET_IMPLICITUNITS+=cp1250 cp1251 cp1252 cp1253 cp1254 cp1255 cp1256 cp1257 cp1258 cp437 cp646 cp850 cp856 cp866 cp874 cp8859_1 cp8859_5 cp8859_2 cp852
  719. endif
  720. ifeq ($(FULL_TARGET),sparc-linux)
  721. override TARGET_IMPLICITUNITS+=cp1250 cp1251 cp1252 cp1253 cp1254 cp1255 cp1256 cp1257 cp1258 cp437 cp646 cp850 cp856 cp866 cp874 cp8859_1 cp8859_5 cp8859_2 cp852
  722. endif
  723. ifeq ($(FULL_TARGET),sparc-netbsd)
  724. override TARGET_IMPLICITUNITS+=cp1250 cp1251 cp1252 cp1253 cp1254 cp1255 cp1256 cp1257 cp1258 cp437 cp646 cp850 cp856 cp866 cp874 cp8859_1 cp8859_5 cp8859_2 cp852
  725. endif
  726. ifeq ($(FULL_TARGET),sparc-solaris)
  727. override TARGET_IMPLICITUNITS+=cp1250 cp1251 cp1252 cp1253 cp1254 cp1255 cp1256 cp1257 cp1258 cp437 cp646 cp850 cp856 cp866 cp874 cp8859_1 cp8859_5 cp8859_2 cp852
  728. endif
  729. ifeq ($(FULL_TARGET),sparc-embedded)
  730. override TARGET_IMPLICITUNITS+=cp1250 cp1251 cp1252 cp1253 cp1254 cp1255 cp1256 cp1257 cp1258 cp437 cp646 cp850 cp856 cp866 cp874 cp8859_1 cp8859_5 cp8859_2 cp852
  731. endif
  732. ifeq ($(FULL_TARGET),x86_64-linux)
  733. override TARGET_IMPLICITUNITS+=cp1250 cp1251 cp1252 cp1253 cp1254 cp1255 cp1256 cp1257 cp1258 cp437 cp646 cp850 cp856 cp866 cp874 cp8859_1 cp8859_5 cp8859_2 cp852
  734. endif
  735. ifeq ($(FULL_TARGET),x86_64-freebsd)
  736. override TARGET_IMPLICITUNITS+=cp1250 cp1251 cp1252 cp1253 cp1254 cp1255 cp1256 cp1257 cp1258 cp437 cp646 cp850 cp856 cp866 cp874 cp8859_1 cp8859_5 cp8859_2 cp852
  737. endif
  738. ifeq ($(FULL_TARGET),x86_64-netbsd)
  739. override TARGET_IMPLICITUNITS+=cp1250 cp1251 cp1252 cp1253 cp1254 cp1255 cp1256 cp1257 cp1258 cp437 cp646 cp850 cp856 cp866 cp874 cp8859_1 cp8859_5 cp8859_2 cp852
  740. endif
  741. ifeq ($(FULL_TARGET),x86_64-solaris)
  742. override TARGET_IMPLICITUNITS+=cp1250 cp1251 cp1252 cp1253 cp1254 cp1255 cp1256 cp1257 cp1258 cp437 cp646 cp850 cp856 cp866 cp874 cp8859_1 cp8859_5 cp8859_2 cp852
  743. endif
  744. ifeq ($(FULL_TARGET),x86_64-openbsd)
  745. override TARGET_IMPLICITUNITS+=cp1250 cp1251 cp1252 cp1253 cp1254 cp1255 cp1256 cp1257 cp1258 cp437 cp646 cp850 cp856 cp866 cp874 cp8859_1 cp8859_5 cp8859_2 cp852
  746. endif
  747. ifeq ($(FULL_TARGET),x86_64-darwin)
  748. override TARGET_IMPLICITUNITS+=cp1250 cp1251 cp1252 cp1253 cp1254 cp1255 cp1256 cp1257 cp1258 cp437 cp646 cp850 cp856 cp866 cp874 cp8859_1 cp8859_5 cp8859_2 cp852
  749. endif
  750. ifeq ($(FULL_TARGET),x86_64-win64)
  751. override TARGET_IMPLICITUNITS+=cp1250 cp1251 cp1252 cp1253 cp1254 cp1255 cp1256 cp1257 cp1258 cp437 cp646 cp850 cp856 cp866 cp874 cp8859_1 cp8859_5 cp8859_2 cp852
  752. endif
  753. ifeq ($(FULL_TARGET),x86_64-embedded)
  754. override TARGET_IMPLICITUNITS+=cp1250 cp1251 cp1252 cp1253 cp1254 cp1255 cp1256 cp1257 cp1258 cp437 cp646 cp850 cp856 cp866 cp874 cp8859_1 cp8859_5 cp8859_2 cp852
  755. endif
  756. ifeq ($(FULL_TARGET),x86_64-iphonesim)
  757. override TARGET_IMPLICITUNITS+=cp1250 cp1251 cp1252 cp1253 cp1254 cp1255 cp1256 cp1257 cp1258 cp437 cp646 cp850 cp856 cp866 cp874 cp8859_1 cp8859_5 cp8859_2 cp852
  758. endif
  759. ifeq ($(FULL_TARGET),x86_64-aros)
  760. override TARGET_IMPLICITUNITS+=cp1250 cp1251 cp1252 cp1253 cp1254 cp1255 cp1256 cp1257 cp1258 cp437 cp646 cp850 cp856 cp866 cp874 cp8859_1 cp8859_5 cp8859_2 cp852
  761. endif
  762. ifeq ($(FULL_TARGET),x86_64-dragonfly)
  763. override TARGET_IMPLICITUNITS+=cp1250 cp1251 cp1252 cp1253 cp1254 cp1255 cp1256 cp1257 cp1258 cp437 cp646 cp850 cp856 cp866 cp874 cp8859_1 cp8859_5 cp8859_2 cp852
  764. endif
  765. ifeq ($(FULL_TARGET),arm-linux)
  766. override TARGET_IMPLICITUNITS+=cp1250 cp1251 cp1252 cp1253 cp1254 cp1255 cp1256 cp1257 cp1258 cp437 cp646 cp850 cp856 cp866 cp874 cp8859_1 cp8859_5 cp8859_2 cp852
  767. endif
  768. ifeq ($(FULL_TARGET),arm-palmos)
  769. override TARGET_IMPLICITUNITS+=cp1250 cp1251 cp1252 cp1253 cp1254 cp1255 cp1256 cp1257 cp1258 cp437 cp646 cp850 cp856 cp866 cp874 cp8859_1 cp8859_5 cp8859_2 cp852
  770. endif
  771. ifeq ($(FULL_TARGET),arm-darwin)
  772. override TARGET_IMPLICITUNITS+=cp1250 cp1251 cp1252 cp1253 cp1254 cp1255 cp1256 cp1257 cp1258 cp437 cp646 cp850 cp856 cp866 cp874 cp8859_1 cp8859_5 cp8859_2 cp852
  773. endif
  774. ifeq ($(FULL_TARGET),arm-wince)
  775. override TARGET_IMPLICITUNITS+=cp1250 cp1251 cp1252 cp1253 cp1254 cp1255 cp1256 cp1257 cp1258 cp437 cp646 cp850 cp856 cp866 cp874 cp8859_1 cp8859_5 cp8859_2 cp852
  776. endif
  777. ifeq ($(FULL_TARGET),arm-gba)
  778. override TARGET_IMPLICITUNITS+=cp1250 cp1251 cp1252 cp1253 cp1254 cp1255 cp1256 cp1257 cp1258 cp437 cp646 cp850 cp856 cp866 cp874 cp8859_1 cp8859_5 cp8859_2 cp852
  779. endif
  780. ifeq ($(FULL_TARGET),arm-nds)
  781. override TARGET_IMPLICITUNITS+=cp1250 cp1251 cp1252 cp1253 cp1254 cp1255 cp1256 cp1257 cp1258 cp437 cp646 cp850 cp856 cp866 cp874 cp8859_1 cp8859_5 cp8859_2 cp852
  782. endif
  783. ifeq ($(FULL_TARGET),arm-embedded)
  784. override TARGET_IMPLICITUNITS+=cp1250 cp1251 cp1252 cp1253 cp1254 cp1255 cp1256 cp1257 cp1258 cp437 cp646 cp850 cp856 cp866 cp874 cp8859_1 cp8859_5 cp8859_2 cp852
  785. endif
  786. ifeq ($(FULL_TARGET),arm-symbian)
  787. override TARGET_IMPLICITUNITS+=cp1250 cp1251 cp1252 cp1253 cp1254 cp1255 cp1256 cp1257 cp1258 cp437 cp646 cp850 cp856 cp866 cp874 cp8859_1 cp8859_5 cp8859_2 cp852
  788. endif
  789. ifeq ($(FULL_TARGET),arm-android)
  790. override TARGET_IMPLICITUNITS+=cp1250 cp1251 cp1252 cp1253 cp1254 cp1255 cp1256 cp1257 cp1258 cp437 cp646 cp850 cp856 cp866 cp874 cp8859_1 cp8859_5 cp8859_2 cp852
  791. endif
  792. ifeq ($(FULL_TARGET),powerpc64-linux)
  793. override TARGET_IMPLICITUNITS+=cp1250 cp1251 cp1252 cp1253 cp1254 cp1255 cp1256 cp1257 cp1258 cp437 cp646 cp850 cp856 cp866 cp874 cp8859_1 cp8859_5 cp8859_2 cp852
  794. endif
  795. ifeq ($(FULL_TARGET),powerpc64-darwin)
  796. override TARGET_IMPLICITUNITS+=cp1250 cp1251 cp1252 cp1253 cp1254 cp1255 cp1256 cp1257 cp1258 cp437 cp646 cp850 cp856 cp866 cp874 cp8859_1 cp8859_5 cp8859_2 cp852
  797. endif
  798. ifeq ($(FULL_TARGET),powerpc64-embedded)
  799. override TARGET_IMPLICITUNITS+=cp1250 cp1251 cp1252 cp1253 cp1254 cp1255 cp1256 cp1257 cp1258 cp437 cp646 cp850 cp856 cp866 cp874 cp8859_1 cp8859_5 cp8859_2 cp852
  800. endif
  801. ifeq ($(FULL_TARGET),powerpc64-aix)
  802. override TARGET_IMPLICITUNITS+=cp1250 cp1251 cp1252 cp1253 cp1254 cp1255 cp1256 cp1257 cp1258 cp437 cp646 cp850 cp856 cp866 cp874 cp8859_1 cp8859_5 cp8859_2 cp852
  803. endif
  804. ifeq ($(FULL_TARGET),avr-embedded)
  805. override TARGET_IMPLICITUNITS+=cp1250 cp1251 cp1252 cp1253 cp1254 cp1255 cp1256 cp1257 cp1258 cp437 cp646 cp850 cp856 cp866 cp874 cp8859_1 cp8859_5 cp8859_2 cp852
  806. endif
  807. ifeq ($(FULL_TARGET),armeb-linux)
  808. override TARGET_IMPLICITUNITS+=cp1250 cp1251 cp1252 cp1253 cp1254 cp1255 cp1256 cp1257 cp1258 cp437 cp646 cp850 cp856 cp866 cp874 cp8859_1 cp8859_5 cp8859_2 cp852
  809. endif
  810. ifeq ($(FULL_TARGET),armeb-embedded)
  811. override TARGET_IMPLICITUNITS+=cp1250 cp1251 cp1252 cp1253 cp1254 cp1255 cp1256 cp1257 cp1258 cp437 cp646 cp850 cp856 cp866 cp874 cp8859_1 cp8859_5 cp8859_2 cp852
  812. endif
  813. ifeq ($(FULL_TARGET),mips-linux)
  814. override TARGET_IMPLICITUNITS+=cp1250 cp1251 cp1252 cp1253 cp1254 cp1255 cp1256 cp1257 cp1258 cp437 cp646 cp850 cp856 cp866 cp874 cp8859_1 cp8859_5 cp8859_2 cp852
  815. endif
  816. ifeq ($(FULL_TARGET),mipsel-linux)
  817. override TARGET_IMPLICITUNITS+=cp1250 cp1251 cp1252 cp1253 cp1254 cp1255 cp1256 cp1257 cp1258 cp437 cp646 cp850 cp856 cp866 cp874 cp8859_1 cp8859_5 cp8859_2 cp852
  818. endif
  819. ifeq ($(FULL_TARGET),mipsel-embedded)
  820. override TARGET_IMPLICITUNITS+=cp1250 cp1251 cp1252 cp1253 cp1254 cp1255 cp1256 cp1257 cp1258 cp437 cp646 cp850 cp856 cp866 cp874 cp8859_1 cp8859_5 cp8859_2 cp852
  821. endif
  822. ifeq ($(FULL_TARGET),mipsel-android)
  823. override TARGET_IMPLICITUNITS+=cp1250 cp1251 cp1252 cp1253 cp1254 cp1255 cp1256 cp1257 cp1258 cp437 cp646 cp850 cp856 cp866 cp874 cp8859_1 cp8859_5 cp8859_2 cp852
  824. endif
  825. ifeq ($(FULL_TARGET),jvm-java)
  826. override TARGET_IMPLICITUNITS+=cp1250 cp1251 cp1252 cp1253 cp1254 cp1255 cp1256 cp1257 cp1258 cp437 cp646 cp850 cp856 cp866 cp874 cp8859_1 cp8859_5 cp8859_2 cp852
  827. endif
  828. ifeq ($(FULL_TARGET),jvm-android)
  829. override TARGET_IMPLICITUNITS+=cp1250 cp1251 cp1252 cp1253 cp1254 cp1255 cp1256 cp1257 cp1258 cp437 cp646 cp850 cp856 cp866 cp874 cp8859_1 cp8859_5 cp8859_2 cp852
  830. endif
  831. ifeq ($(FULL_TARGET),i8086-msdos)
  832. override TARGET_IMPLICITUNITS+=cp1250 cp1251 cp1252 cp1253 cp1254 cp1255 cp1256 cp1257 cp1258 cp437 cp646 cp850 cp856 cp866 cp874 cp8859_1 cp8859_5 cp8859_2 cp852
  833. endif
  834. ifeq ($(FULL_TARGET),i8086-win16)
  835. override TARGET_IMPLICITUNITS+=cp1250 cp1251 cp1252 cp1253 cp1254 cp1255 cp1256 cp1257 cp1258 cp437 cp646 cp850 cp856 cp866 cp874 cp8859_1 cp8859_5 cp8859_2 cp852
  836. endif
  837. ifeq ($(FULL_TARGET),aarch64-linux)
  838. override TARGET_IMPLICITUNITS+=cp1250 cp1251 cp1252 cp1253 cp1254 cp1255 cp1256 cp1257 cp1258 cp437 cp646 cp850 cp856 cp866 cp874 cp8859_1 cp8859_5 cp8859_2 cp852
  839. endif
  840. ifeq ($(FULL_TARGET),aarch64-darwin)
  841. override TARGET_IMPLICITUNITS+=cp1250 cp1251 cp1252 cp1253 cp1254 cp1255 cp1256 cp1257 cp1258 cp437 cp646 cp850 cp856 cp866 cp874 cp8859_1 cp8859_5 cp8859_2 cp852
  842. endif
  843. ifeq ($(FULL_TARGET),i386-linux)
  844. override TARGET_LOADERS+=$(LOADERS)
  845. endif
  846. ifeq ($(FULL_TARGET),i386-go32v2)
  847. override TARGET_LOADERS+=$(LOADERS)
  848. endif
  849. ifeq ($(FULL_TARGET),i386-win32)
  850. override TARGET_LOADERS+=$(LOADERS)
  851. endif
  852. ifeq ($(FULL_TARGET),i386-os2)
  853. override TARGET_LOADERS+=$(LOADERS)
  854. endif
  855. ifeq ($(FULL_TARGET),i386-freebsd)
  856. override TARGET_LOADERS+=$(LOADERS)
  857. endif
  858. ifeq ($(FULL_TARGET),i386-beos)
  859. override TARGET_LOADERS+=$(LOADERS)
  860. endif
  861. ifeq ($(FULL_TARGET),i386-haiku)
  862. override TARGET_LOADERS+=$(LOADERS)
  863. endif
  864. ifeq ($(FULL_TARGET),i386-netbsd)
  865. override TARGET_LOADERS+=$(LOADERS)
  866. endif
  867. ifeq ($(FULL_TARGET),i386-solaris)
  868. override TARGET_LOADERS+=$(LOADERS)
  869. endif
  870. ifeq ($(FULL_TARGET),i386-qnx)
  871. override TARGET_LOADERS+=$(LOADERS)
  872. endif
  873. ifeq ($(FULL_TARGET),i386-netware)
  874. override TARGET_LOADERS+=$(LOADERS)
  875. endif
  876. ifeq ($(FULL_TARGET),i386-openbsd)
  877. override TARGET_LOADERS+=$(LOADERS)
  878. endif
  879. ifeq ($(FULL_TARGET),i386-wdosx)
  880. override TARGET_LOADERS+=$(LOADERS)
  881. endif
  882. ifeq ($(FULL_TARGET),i386-darwin)
  883. override TARGET_LOADERS+=$(LOADERS)
  884. endif
  885. ifeq ($(FULL_TARGET),i386-emx)
  886. override TARGET_LOADERS+=$(LOADERS)
  887. endif
  888. ifeq ($(FULL_TARGET),i386-watcom)
  889. override TARGET_LOADERS+=$(LOADERS)
  890. endif
  891. ifeq ($(FULL_TARGET),i386-netwlibc)
  892. override TARGET_LOADERS+=$(LOADERS)
  893. endif
  894. ifeq ($(FULL_TARGET),i386-wince)
  895. override TARGET_LOADERS+=$(LOADERS)
  896. endif
  897. ifeq ($(FULL_TARGET),i386-embedded)
  898. override TARGET_LOADERS+=$(LOADERS)
  899. endif
  900. ifeq ($(FULL_TARGET),i386-symbian)
  901. override TARGET_LOADERS+=$(LOADERS)
  902. endif
  903. ifeq ($(FULL_TARGET),i386-nativent)
  904. override TARGET_LOADERS+=$(LOADERS)
  905. endif
  906. ifeq ($(FULL_TARGET),i386-iphonesim)
  907. override TARGET_LOADERS+=$(LOADERS)
  908. endif
  909. ifeq ($(FULL_TARGET),i386-android)
  910. override TARGET_LOADERS+=$(LOADERS)
  911. endif
  912. ifeq ($(FULL_TARGET),i386-aros)
  913. override TARGET_LOADERS+=$(LOADERS)
  914. endif
  915. ifeq ($(FULL_TARGET),m68k-linux)
  916. override TARGET_LOADERS+=$(LOADERS)
  917. endif
  918. ifeq ($(FULL_TARGET),m68k-freebsd)
  919. override TARGET_LOADERS+=$(LOADERS)
  920. endif
  921. ifeq ($(FULL_TARGET),m68k-netbsd)
  922. override TARGET_LOADERS+=$(LOADERS)
  923. endif
  924. ifeq ($(FULL_TARGET),m68k-amiga)
  925. override TARGET_LOADERS+=$(LOADERS)
  926. endif
  927. ifeq ($(FULL_TARGET),m68k-atari)
  928. override TARGET_LOADERS+=$(LOADERS)
  929. endif
  930. ifeq ($(FULL_TARGET),m68k-openbsd)
  931. override TARGET_LOADERS+=$(LOADERS)
  932. endif
  933. ifeq ($(FULL_TARGET),m68k-palmos)
  934. override TARGET_LOADERS+=$(LOADERS)
  935. endif
  936. ifeq ($(FULL_TARGET),m68k-embedded)
  937. override TARGET_LOADERS+=$(LOADERS)
  938. endif
  939. ifeq ($(FULL_TARGET),powerpc-linux)
  940. override TARGET_LOADERS+=$(LOADERS)
  941. endif
  942. ifeq ($(FULL_TARGET),powerpc-netbsd)
  943. override TARGET_LOADERS+=$(LOADERS)
  944. endif
  945. ifeq ($(FULL_TARGET),powerpc-amiga)
  946. override TARGET_LOADERS+=$(LOADERS)
  947. endif
  948. ifeq ($(FULL_TARGET),powerpc-macos)
  949. override TARGET_LOADERS+=$(LOADERS)
  950. endif
  951. ifeq ($(FULL_TARGET),powerpc-darwin)
  952. override TARGET_LOADERS+=$(LOADERS)
  953. endif
  954. ifeq ($(FULL_TARGET),powerpc-morphos)
  955. override TARGET_LOADERS+=$(LOADERS)
  956. endif
  957. ifeq ($(FULL_TARGET),powerpc-embedded)
  958. override TARGET_LOADERS+=$(LOADERS)
  959. endif
  960. ifeq ($(FULL_TARGET),powerpc-wii)
  961. override TARGET_LOADERS+=$(LOADERS)
  962. endif
  963. ifeq ($(FULL_TARGET),powerpc-aix)
  964. override TARGET_LOADERS+=$(LOADERS)
  965. endif
  966. ifeq ($(FULL_TARGET),sparc-linux)
  967. override TARGET_LOADERS+=$(LOADERS)
  968. endif
  969. ifeq ($(FULL_TARGET),sparc-netbsd)
  970. override TARGET_LOADERS+=$(LOADERS)
  971. endif
  972. ifeq ($(FULL_TARGET),sparc-solaris)
  973. override TARGET_LOADERS+=$(LOADERS)
  974. endif
  975. ifeq ($(FULL_TARGET),sparc-embedded)
  976. override TARGET_LOADERS+=$(LOADERS)
  977. endif
  978. ifeq ($(FULL_TARGET),x86_64-linux)
  979. override TARGET_LOADERS+=$(LOADERS)
  980. endif
  981. ifeq ($(FULL_TARGET),x86_64-freebsd)
  982. override TARGET_LOADERS+=$(LOADERS)
  983. endif
  984. ifeq ($(FULL_TARGET),x86_64-netbsd)
  985. override TARGET_LOADERS+=$(LOADERS)
  986. endif
  987. ifeq ($(FULL_TARGET),x86_64-solaris)
  988. override TARGET_LOADERS+=$(LOADERS)
  989. endif
  990. ifeq ($(FULL_TARGET),x86_64-openbsd)
  991. override TARGET_LOADERS+=$(LOADERS)
  992. endif
  993. ifeq ($(FULL_TARGET),x86_64-darwin)
  994. override TARGET_LOADERS+=$(LOADERS)
  995. endif
  996. ifeq ($(FULL_TARGET),x86_64-win64)
  997. override TARGET_LOADERS+=$(LOADERS)
  998. endif
  999. ifeq ($(FULL_TARGET),x86_64-embedded)
  1000. override TARGET_LOADERS+=$(LOADERS)
  1001. endif
  1002. ifeq ($(FULL_TARGET),x86_64-iphonesim)
  1003. override TARGET_LOADERS+=$(LOADERS)
  1004. endif
  1005. ifeq ($(FULL_TARGET),x86_64-aros)
  1006. override TARGET_LOADERS+=$(LOADERS)
  1007. endif
  1008. ifeq ($(FULL_TARGET),x86_64-dragonfly)
  1009. override TARGET_LOADERS+=$(LOADERS)
  1010. endif
  1011. ifeq ($(FULL_TARGET),arm-linux)
  1012. override TARGET_LOADERS+=$(LOADERS)
  1013. endif
  1014. ifeq ($(FULL_TARGET),arm-palmos)
  1015. override TARGET_LOADERS+=$(LOADERS)
  1016. endif
  1017. ifeq ($(FULL_TARGET),arm-darwin)
  1018. override TARGET_LOADERS+=$(LOADERS)
  1019. endif
  1020. ifeq ($(FULL_TARGET),arm-wince)
  1021. override TARGET_LOADERS+=$(LOADERS)
  1022. endif
  1023. ifeq ($(FULL_TARGET),arm-gba)
  1024. override TARGET_LOADERS+=$(LOADERS)
  1025. endif
  1026. ifeq ($(FULL_TARGET),arm-nds)
  1027. override TARGET_LOADERS+=$(LOADERS)
  1028. endif
  1029. ifeq ($(FULL_TARGET),arm-embedded)
  1030. override TARGET_LOADERS+=$(LOADERS)
  1031. endif
  1032. ifeq ($(FULL_TARGET),arm-symbian)
  1033. override TARGET_LOADERS+=$(LOADERS)
  1034. endif
  1035. ifeq ($(FULL_TARGET),arm-android)
  1036. override TARGET_LOADERS+=$(LOADERS)
  1037. endif
  1038. ifeq ($(FULL_TARGET),powerpc64-linux)
  1039. override TARGET_LOADERS+=$(LOADERS)
  1040. endif
  1041. ifeq ($(FULL_TARGET),powerpc64-darwin)
  1042. override TARGET_LOADERS+=$(LOADERS)
  1043. endif
  1044. ifeq ($(FULL_TARGET),powerpc64-embedded)
  1045. override TARGET_LOADERS+=$(LOADERS)
  1046. endif
  1047. ifeq ($(FULL_TARGET),powerpc64-aix)
  1048. override TARGET_LOADERS+=$(LOADERS)
  1049. endif
  1050. ifeq ($(FULL_TARGET),avr-embedded)
  1051. override TARGET_LOADERS+=$(LOADERS)
  1052. endif
  1053. ifeq ($(FULL_TARGET),armeb-linux)
  1054. override TARGET_LOADERS+=$(LOADERS)
  1055. endif
  1056. ifeq ($(FULL_TARGET),armeb-embedded)
  1057. override TARGET_LOADERS+=$(LOADERS)
  1058. endif
  1059. ifeq ($(FULL_TARGET),mips-linux)
  1060. override TARGET_LOADERS+=$(LOADERS)
  1061. endif
  1062. ifeq ($(FULL_TARGET),mipsel-linux)
  1063. override TARGET_LOADERS+=$(LOADERS)
  1064. endif
  1065. ifeq ($(FULL_TARGET),mipsel-embedded)
  1066. override TARGET_LOADERS+=$(LOADERS)
  1067. endif
  1068. ifeq ($(FULL_TARGET),mipsel-android)
  1069. override TARGET_LOADERS+=$(LOADERS)
  1070. endif
  1071. ifeq ($(FULL_TARGET),jvm-java)
  1072. override TARGET_LOADERS+=$(LOADERS)
  1073. endif
  1074. ifeq ($(FULL_TARGET),jvm-android)
  1075. override TARGET_LOADERS+=$(LOADERS)
  1076. endif
  1077. ifeq ($(FULL_TARGET),i8086-msdos)
  1078. override TARGET_LOADERS+=$(LOADERS)
  1079. endif
  1080. ifeq ($(FULL_TARGET),i8086-win16)
  1081. override TARGET_LOADERS+=$(LOADERS)
  1082. endif
  1083. ifeq ($(FULL_TARGET),aarch64-linux)
  1084. override TARGET_LOADERS+=$(LOADERS)
  1085. endif
  1086. ifeq ($(FULL_TARGET),aarch64-darwin)
  1087. override TARGET_LOADERS+=$(LOADERS)
  1088. endif
  1089. override INSTALL_FPCPACKAGE=y
  1090. ifeq ($(FULL_TARGET),i386-linux)
  1091. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC)
  1092. endif
  1093. ifeq ($(FULL_TARGET),i386-go32v2)
  1094. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC)
  1095. endif
  1096. ifeq ($(FULL_TARGET),i386-win32)
  1097. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC)
  1098. endif
  1099. ifeq ($(FULL_TARGET),i386-os2)
  1100. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC)
  1101. endif
  1102. ifeq ($(FULL_TARGET),i386-freebsd)
  1103. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC)
  1104. endif
  1105. ifeq ($(FULL_TARGET),i386-beos)
  1106. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC)
  1107. endif
  1108. ifeq ($(FULL_TARGET),i386-haiku)
  1109. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC)
  1110. endif
  1111. ifeq ($(FULL_TARGET),i386-netbsd)
  1112. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC)
  1113. endif
  1114. ifeq ($(FULL_TARGET),i386-solaris)
  1115. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC)
  1116. endif
  1117. ifeq ($(FULL_TARGET),i386-qnx)
  1118. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC)
  1119. endif
  1120. ifeq ($(FULL_TARGET),i386-netware)
  1121. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC)
  1122. endif
  1123. ifeq ($(FULL_TARGET),i386-openbsd)
  1124. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC)
  1125. endif
  1126. ifeq ($(FULL_TARGET),i386-wdosx)
  1127. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC)
  1128. endif
  1129. ifeq ($(FULL_TARGET),i386-darwin)
  1130. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC)
  1131. endif
  1132. ifeq ($(FULL_TARGET),i386-emx)
  1133. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC)
  1134. endif
  1135. ifeq ($(FULL_TARGET),i386-watcom)
  1136. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC)
  1137. endif
  1138. ifeq ($(FULL_TARGET),i386-netwlibc)
  1139. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC)
  1140. endif
  1141. ifeq ($(FULL_TARGET),i386-wince)
  1142. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC)
  1143. endif
  1144. ifeq ($(FULL_TARGET),i386-embedded)
  1145. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC)
  1146. endif
  1147. ifeq ($(FULL_TARGET),i386-symbian)
  1148. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC)
  1149. endif
  1150. ifeq ($(FULL_TARGET),i386-nativent)
  1151. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC)
  1152. endif
  1153. ifeq ($(FULL_TARGET),i386-iphonesim)
  1154. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC)
  1155. endif
  1156. ifeq ($(FULL_TARGET),i386-android)
  1157. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC)
  1158. endif
  1159. ifeq ($(FULL_TARGET),i386-aros)
  1160. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC)
  1161. endif
  1162. ifeq ($(FULL_TARGET),m68k-linux)
  1163. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC)
  1164. endif
  1165. ifeq ($(FULL_TARGET),m68k-freebsd)
  1166. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC)
  1167. endif
  1168. ifeq ($(FULL_TARGET),m68k-netbsd)
  1169. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC)
  1170. endif
  1171. ifeq ($(FULL_TARGET),m68k-amiga)
  1172. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC)
  1173. endif
  1174. ifeq ($(FULL_TARGET),m68k-atari)
  1175. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC)
  1176. endif
  1177. ifeq ($(FULL_TARGET),m68k-openbsd)
  1178. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC)
  1179. endif
  1180. ifeq ($(FULL_TARGET),m68k-palmos)
  1181. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC)
  1182. endif
  1183. ifeq ($(FULL_TARGET),m68k-embedded)
  1184. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC)
  1185. endif
  1186. ifeq ($(FULL_TARGET),powerpc-linux)
  1187. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC)
  1188. endif
  1189. ifeq ($(FULL_TARGET),powerpc-netbsd)
  1190. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC)
  1191. endif
  1192. ifeq ($(FULL_TARGET),powerpc-amiga)
  1193. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC)
  1194. endif
  1195. ifeq ($(FULL_TARGET),powerpc-macos)
  1196. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC)
  1197. endif
  1198. ifeq ($(FULL_TARGET),powerpc-darwin)
  1199. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC)
  1200. endif
  1201. ifeq ($(FULL_TARGET),powerpc-morphos)
  1202. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC)
  1203. endif
  1204. ifeq ($(FULL_TARGET),powerpc-embedded)
  1205. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC)
  1206. endif
  1207. ifeq ($(FULL_TARGET),powerpc-wii)
  1208. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC)
  1209. endif
  1210. ifeq ($(FULL_TARGET),powerpc-aix)
  1211. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC)
  1212. endif
  1213. ifeq ($(FULL_TARGET),sparc-linux)
  1214. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC)
  1215. endif
  1216. ifeq ($(FULL_TARGET),sparc-netbsd)
  1217. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC)
  1218. endif
  1219. ifeq ($(FULL_TARGET),sparc-solaris)
  1220. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC)
  1221. endif
  1222. ifeq ($(FULL_TARGET),sparc-embedded)
  1223. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC)
  1224. endif
  1225. ifeq ($(FULL_TARGET),x86_64-linux)
  1226. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC)
  1227. endif
  1228. ifeq ($(FULL_TARGET),x86_64-freebsd)
  1229. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC)
  1230. endif
  1231. ifeq ($(FULL_TARGET),x86_64-netbsd)
  1232. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC)
  1233. endif
  1234. ifeq ($(FULL_TARGET),x86_64-solaris)
  1235. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC)
  1236. endif
  1237. ifeq ($(FULL_TARGET),x86_64-openbsd)
  1238. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC)
  1239. endif
  1240. ifeq ($(FULL_TARGET),x86_64-darwin)
  1241. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC)
  1242. endif
  1243. ifeq ($(FULL_TARGET),x86_64-win64)
  1244. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC)
  1245. endif
  1246. ifeq ($(FULL_TARGET),x86_64-embedded)
  1247. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC)
  1248. endif
  1249. ifeq ($(FULL_TARGET),x86_64-iphonesim)
  1250. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC)
  1251. endif
  1252. ifeq ($(FULL_TARGET),x86_64-aros)
  1253. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC)
  1254. endif
  1255. ifeq ($(FULL_TARGET),x86_64-dragonfly)
  1256. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC)
  1257. endif
  1258. ifeq ($(FULL_TARGET),arm-linux)
  1259. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC)
  1260. endif
  1261. ifeq ($(FULL_TARGET),arm-palmos)
  1262. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC)
  1263. endif
  1264. ifeq ($(FULL_TARGET),arm-darwin)
  1265. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC)
  1266. endif
  1267. ifeq ($(FULL_TARGET),arm-wince)
  1268. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC)
  1269. endif
  1270. ifeq ($(FULL_TARGET),arm-gba)
  1271. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC)
  1272. endif
  1273. ifeq ($(FULL_TARGET),arm-nds)
  1274. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC)
  1275. endif
  1276. ifeq ($(FULL_TARGET),arm-embedded)
  1277. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC)
  1278. endif
  1279. ifeq ($(FULL_TARGET),arm-symbian)
  1280. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC)
  1281. endif
  1282. ifeq ($(FULL_TARGET),arm-android)
  1283. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC)
  1284. endif
  1285. ifeq ($(FULL_TARGET),powerpc64-linux)
  1286. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC)
  1287. endif
  1288. ifeq ($(FULL_TARGET),powerpc64-darwin)
  1289. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC)
  1290. endif
  1291. ifeq ($(FULL_TARGET),powerpc64-embedded)
  1292. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC)
  1293. endif
  1294. ifeq ($(FULL_TARGET),powerpc64-aix)
  1295. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC)
  1296. endif
  1297. ifeq ($(FULL_TARGET),avr-embedded)
  1298. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC)
  1299. endif
  1300. ifeq ($(FULL_TARGET),armeb-linux)
  1301. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC)
  1302. endif
  1303. ifeq ($(FULL_TARGET),armeb-embedded)
  1304. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC)
  1305. endif
  1306. ifeq ($(FULL_TARGET),mips-linux)
  1307. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC)
  1308. endif
  1309. ifeq ($(FULL_TARGET),mipsel-linux)
  1310. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC)
  1311. endif
  1312. ifeq ($(FULL_TARGET),mipsel-embedded)
  1313. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC)
  1314. endif
  1315. ifeq ($(FULL_TARGET),mipsel-android)
  1316. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC)
  1317. endif
  1318. ifeq ($(FULL_TARGET),jvm-java)
  1319. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC)
  1320. endif
  1321. ifeq ($(FULL_TARGET),jvm-android)
  1322. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC)
  1323. endif
  1324. ifeq ($(FULL_TARGET),i8086-msdos)
  1325. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC)
  1326. endif
  1327. ifeq ($(FULL_TARGET),i8086-win16)
  1328. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC)
  1329. endif
  1330. ifeq ($(FULL_TARGET),aarch64-linux)
  1331. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC)
  1332. endif
  1333. ifeq ($(FULL_TARGET),aarch64-darwin)
  1334. override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC)
  1335. endif
  1336. ifeq ($(FULL_TARGET),i386-linux)
  1337. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(COMMON)
  1338. endif
  1339. ifeq ($(FULL_TARGET),i386-go32v2)
  1340. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(COMMON)
  1341. endif
  1342. ifeq ($(FULL_TARGET),i386-win32)
  1343. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(COMMON)
  1344. endif
  1345. ifeq ($(FULL_TARGET),i386-os2)
  1346. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(COMMON)
  1347. endif
  1348. ifeq ($(FULL_TARGET),i386-freebsd)
  1349. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(COMMON)
  1350. endif
  1351. ifeq ($(FULL_TARGET),i386-beos)
  1352. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(COMMON)
  1353. endif
  1354. ifeq ($(FULL_TARGET),i386-haiku)
  1355. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(COMMON)
  1356. endif
  1357. ifeq ($(FULL_TARGET),i386-netbsd)
  1358. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(COMMON)
  1359. endif
  1360. ifeq ($(FULL_TARGET),i386-solaris)
  1361. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(COMMON)
  1362. endif
  1363. ifeq ($(FULL_TARGET),i386-qnx)
  1364. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(COMMON)
  1365. endif
  1366. ifeq ($(FULL_TARGET),i386-netware)
  1367. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(COMMON)
  1368. endif
  1369. ifeq ($(FULL_TARGET),i386-openbsd)
  1370. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(COMMON)
  1371. endif
  1372. ifeq ($(FULL_TARGET),i386-wdosx)
  1373. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(COMMON)
  1374. endif
  1375. ifeq ($(FULL_TARGET),i386-darwin)
  1376. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(COMMON)
  1377. endif
  1378. ifeq ($(FULL_TARGET),i386-emx)
  1379. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(COMMON)
  1380. endif
  1381. ifeq ($(FULL_TARGET),i386-watcom)
  1382. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(COMMON)
  1383. endif
  1384. ifeq ($(FULL_TARGET),i386-netwlibc)
  1385. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(COMMON)
  1386. endif
  1387. ifeq ($(FULL_TARGET),i386-wince)
  1388. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(COMMON)
  1389. endif
  1390. ifeq ($(FULL_TARGET),i386-embedded)
  1391. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(COMMON)
  1392. endif
  1393. ifeq ($(FULL_TARGET),i386-symbian)
  1394. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(COMMON)
  1395. endif
  1396. ifeq ($(FULL_TARGET),i386-nativent)
  1397. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(COMMON)
  1398. endif
  1399. ifeq ($(FULL_TARGET),i386-iphonesim)
  1400. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(COMMON)
  1401. endif
  1402. ifeq ($(FULL_TARGET),i386-android)
  1403. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(COMMON)
  1404. endif
  1405. ifeq ($(FULL_TARGET),i386-aros)
  1406. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(COMMON)
  1407. endif
  1408. ifeq ($(FULL_TARGET),m68k-linux)
  1409. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(COMMON)
  1410. endif
  1411. ifeq ($(FULL_TARGET),m68k-freebsd)
  1412. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(COMMON)
  1413. endif
  1414. ifeq ($(FULL_TARGET),m68k-netbsd)
  1415. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(COMMON)
  1416. endif
  1417. ifeq ($(FULL_TARGET),m68k-amiga)
  1418. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(COMMON)
  1419. endif
  1420. ifeq ($(FULL_TARGET),m68k-atari)
  1421. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(COMMON)
  1422. endif
  1423. ifeq ($(FULL_TARGET),m68k-openbsd)
  1424. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(COMMON)
  1425. endif
  1426. ifeq ($(FULL_TARGET),m68k-palmos)
  1427. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(COMMON)
  1428. endif
  1429. ifeq ($(FULL_TARGET),m68k-embedded)
  1430. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(COMMON)
  1431. endif
  1432. ifeq ($(FULL_TARGET),powerpc-linux)
  1433. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(COMMON)
  1434. endif
  1435. ifeq ($(FULL_TARGET),powerpc-netbsd)
  1436. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(COMMON)
  1437. endif
  1438. ifeq ($(FULL_TARGET),powerpc-amiga)
  1439. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(COMMON)
  1440. endif
  1441. ifeq ($(FULL_TARGET),powerpc-macos)
  1442. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(COMMON)
  1443. endif
  1444. ifeq ($(FULL_TARGET),powerpc-darwin)
  1445. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(COMMON)
  1446. endif
  1447. ifeq ($(FULL_TARGET),powerpc-morphos)
  1448. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(COMMON)
  1449. endif
  1450. ifeq ($(FULL_TARGET),powerpc-embedded)
  1451. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(COMMON)
  1452. endif
  1453. ifeq ($(FULL_TARGET),powerpc-wii)
  1454. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(COMMON)
  1455. endif
  1456. ifeq ($(FULL_TARGET),powerpc-aix)
  1457. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(COMMON)
  1458. endif
  1459. ifeq ($(FULL_TARGET),sparc-linux)
  1460. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(COMMON)
  1461. endif
  1462. ifeq ($(FULL_TARGET),sparc-netbsd)
  1463. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(COMMON)
  1464. endif
  1465. ifeq ($(FULL_TARGET),sparc-solaris)
  1466. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(COMMON)
  1467. endif
  1468. ifeq ($(FULL_TARGET),sparc-embedded)
  1469. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(COMMON)
  1470. endif
  1471. ifeq ($(FULL_TARGET),x86_64-linux)
  1472. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(COMMON)
  1473. endif
  1474. ifeq ($(FULL_TARGET),x86_64-freebsd)
  1475. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(COMMON)
  1476. endif
  1477. ifeq ($(FULL_TARGET),x86_64-netbsd)
  1478. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(COMMON)
  1479. endif
  1480. ifeq ($(FULL_TARGET),x86_64-solaris)
  1481. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(COMMON)
  1482. endif
  1483. ifeq ($(FULL_TARGET),x86_64-openbsd)
  1484. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(COMMON)
  1485. endif
  1486. ifeq ($(FULL_TARGET),x86_64-darwin)
  1487. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(COMMON)
  1488. endif
  1489. ifeq ($(FULL_TARGET),x86_64-win64)
  1490. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(COMMON)
  1491. endif
  1492. ifeq ($(FULL_TARGET),x86_64-embedded)
  1493. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(COMMON)
  1494. endif
  1495. ifeq ($(FULL_TARGET),x86_64-iphonesim)
  1496. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(COMMON)
  1497. endif
  1498. ifeq ($(FULL_TARGET),x86_64-aros)
  1499. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(COMMON)
  1500. endif
  1501. ifeq ($(FULL_TARGET),x86_64-dragonfly)
  1502. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(COMMON)
  1503. endif
  1504. ifeq ($(FULL_TARGET),arm-linux)
  1505. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(COMMON)
  1506. endif
  1507. ifeq ($(FULL_TARGET),arm-palmos)
  1508. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(COMMON)
  1509. endif
  1510. ifeq ($(FULL_TARGET),arm-darwin)
  1511. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(COMMON)
  1512. endif
  1513. ifeq ($(FULL_TARGET),arm-wince)
  1514. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(COMMON)
  1515. endif
  1516. ifeq ($(FULL_TARGET),arm-gba)
  1517. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(COMMON)
  1518. endif
  1519. ifeq ($(FULL_TARGET),arm-nds)
  1520. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(COMMON)
  1521. endif
  1522. ifeq ($(FULL_TARGET),arm-embedded)
  1523. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(COMMON)
  1524. endif
  1525. ifeq ($(FULL_TARGET),arm-symbian)
  1526. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(COMMON)
  1527. endif
  1528. ifeq ($(FULL_TARGET),arm-android)
  1529. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(COMMON)
  1530. endif
  1531. ifeq ($(FULL_TARGET),powerpc64-linux)
  1532. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(COMMON)
  1533. endif
  1534. ifeq ($(FULL_TARGET),powerpc64-darwin)
  1535. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(COMMON)
  1536. endif
  1537. ifeq ($(FULL_TARGET),powerpc64-embedded)
  1538. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(COMMON)
  1539. endif
  1540. ifeq ($(FULL_TARGET),powerpc64-aix)
  1541. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(COMMON)
  1542. endif
  1543. ifeq ($(FULL_TARGET),avr-embedded)
  1544. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(COMMON)
  1545. endif
  1546. ifeq ($(FULL_TARGET),armeb-linux)
  1547. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(COMMON)
  1548. endif
  1549. ifeq ($(FULL_TARGET),armeb-embedded)
  1550. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(COMMON)
  1551. endif
  1552. ifeq ($(FULL_TARGET),mips-linux)
  1553. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(COMMON)
  1554. endif
  1555. ifeq ($(FULL_TARGET),mipsel-linux)
  1556. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(COMMON)
  1557. endif
  1558. ifeq ($(FULL_TARGET),mipsel-embedded)
  1559. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(COMMON)
  1560. endif
  1561. ifeq ($(FULL_TARGET),mipsel-android)
  1562. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(COMMON)
  1563. endif
  1564. ifeq ($(FULL_TARGET),jvm-java)
  1565. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(COMMON)
  1566. endif
  1567. ifeq ($(FULL_TARGET),jvm-android)
  1568. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(COMMON)
  1569. endif
  1570. ifeq ($(FULL_TARGET),i8086-msdos)
  1571. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(COMMON)
  1572. endif
  1573. ifeq ($(FULL_TARGET),i8086-win16)
  1574. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(COMMON)
  1575. endif
  1576. ifeq ($(FULL_TARGET),aarch64-linux)
  1577. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(COMMON)
  1578. endif
  1579. ifeq ($(FULL_TARGET),aarch64-darwin)
  1580. override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(COMMON)
  1581. endif
  1582. ifdef REQUIRE_UNITSDIR
  1583. override UNITSDIR+=$(REQUIRE_UNITSDIR)
  1584. endif
  1585. ifdef REQUIRE_PACKAGESDIR
  1586. override PACKAGESDIR+=$(REQUIRE_PACKAGESDIR)
  1587. endif
  1588. ifdef ZIPINSTALL
  1589. ifneq ($(findstring $(OS_TARGET),$(UNIXs)),)
  1590. UNIXHier=1
  1591. endif
  1592. else
  1593. ifneq ($(findstring $(OS_SOURCE),$(UNIXs)),)
  1594. UNIXHier=1
  1595. endif
  1596. endif
  1597. ifndef INSTALL_PREFIX
  1598. ifdef PREFIX
  1599. INSTALL_PREFIX=$(PREFIX)
  1600. endif
  1601. endif
  1602. ifndef INSTALL_PREFIX
  1603. ifdef UNIXHier
  1604. INSTALL_PREFIX=/usr/local
  1605. else
  1606. ifdef INSTALL_FPCPACKAGE
  1607. INSTALL_BASEDIR:=/pp
  1608. else
  1609. INSTALL_BASEDIR:=/$(PACKAGE_NAME)
  1610. endif
  1611. endif
  1612. endif
  1613. export INSTALL_PREFIX
  1614. ifdef INSTALL_FPCSUBDIR
  1615. export INSTALL_FPCSUBDIR
  1616. endif
  1617. ifndef DIST_DESTDIR
  1618. DIST_DESTDIR:=$(BASEDIR)
  1619. endif
  1620. export DIST_DESTDIR
  1621. ifndef COMPILER_UNITTARGETDIR
  1622. ifdef PACKAGEDIR_MAIN
  1623. COMPILER_UNITTARGETDIR=$(PACKAGEDIR_MAIN)/units/$(TARGETSUFFIX)
  1624. else
  1625. COMPILER_UNITTARGETDIR=units/$(TARGETSUFFIX)
  1626. endif
  1627. endif
  1628. ifndef COMPILER_TARGETDIR
  1629. COMPILER_TARGETDIR=.
  1630. endif
  1631. ifndef INSTALL_BASEDIR
  1632. ifdef UNIXHier
  1633. ifdef INSTALL_FPCPACKAGE
  1634. INSTALL_BASEDIR:=$(INSTALL_PREFIX)/lib/fpc/$(FPC_VERSION)
  1635. else
  1636. INSTALL_BASEDIR:=$(INSTALL_PREFIX)/lib/$(PACKAGE_NAME)
  1637. endif
  1638. else
  1639. INSTALL_BASEDIR:=$(INSTALL_PREFIX)
  1640. endif
  1641. endif
  1642. ifndef INSTALL_BINDIR
  1643. ifdef UNIXHier
  1644. INSTALL_BINDIR:=$(INSTALL_PREFIX)/bin
  1645. else
  1646. INSTALL_BINDIR:=$(INSTALL_BASEDIR)/bin
  1647. ifdef INSTALL_FPCPACKAGE
  1648. ifdef CROSSCOMPILE
  1649. ifdef CROSSINSTALL
  1650. INSTALL_BINDIR:=$(INSTALL_BINDIR)/$(SOURCESUFFIX)
  1651. else
  1652. INSTALL_BINDIR:=$(INSTALL_BINDIR)/$(TARGETSUFFIX)
  1653. endif
  1654. else
  1655. INSTALL_BINDIR:=$(INSTALL_BINDIR)/$(TARGETSUFFIX)
  1656. endif
  1657. endif
  1658. endif
  1659. endif
  1660. ifndef INSTALL_UNITDIR
  1661. INSTALL_UNITDIR:=$(INSTALL_BASEDIR)/units/$(TARGETSUFFIX)
  1662. ifdef INSTALL_FPCPACKAGE
  1663. ifdef PACKAGE_NAME
  1664. INSTALL_UNITDIR:=$(INSTALL_UNITDIR)/$(PACKAGE_NAME)
  1665. endif
  1666. endif
  1667. endif
  1668. ifndef INSTALL_LIBDIR
  1669. ifdef UNIXHier
  1670. INSTALL_LIBDIR:=$(INSTALL_PREFIX)/lib
  1671. else
  1672. INSTALL_LIBDIR:=$(INSTALL_UNITDIR)
  1673. endif
  1674. endif
  1675. ifndef INSTALL_SOURCEDIR
  1676. ifdef UNIXHier
  1677. ifdef BSDhier
  1678. SRCPREFIXDIR=share/src
  1679. else
  1680. ifdef linuxHier
  1681. SRCPREFIXDIR=share/src
  1682. else
  1683. SRCPREFIXDIR=src
  1684. endif
  1685. endif
  1686. ifdef INSTALL_FPCPACKAGE
  1687. ifdef INSTALL_FPCSUBDIR
  1688. INSTALL_SOURCEDIR:=$(INSTALL_PREFIX)/$(SRCPREFIXDIR)/fpc-$(FPC_VERSION)/$(INSTALL_FPCSUBDIR)/$(PACKAGE_NAME)
  1689. else
  1690. INSTALL_SOURCEDIR:=$(INSTALL_PREFIX)/$(SRCPREFIXDIR)/fpc-$(FPC_VERSION)/$(PACKAGE_NAME)
  1691. endif
  1692. else
  1693. INSTALL_SOURCEDIR:=$(INSTALL_PREFIX)/$(SRCPREFIXDIR)/$(PACKAGE_NAME)-$(PACKAGE_VERSION)
  1694. endif
  1695. else
  1696. ifdef INSTALL_FPCPACKAGE
  1697. ifdef INSTALL_FPCSUBDIR
  1698. INSTALL_SOURCEDIR:=$(INSTALL_BASEDIR)/source/$(INSTALL_FPCSUBDIR)/$(PACKAGE_NAME)
  1699. else
  1700. INSTALL_SOURCEDIR:=$(INSTALL_BASEDIR)/source/$(PACKAGE_NAME)
  1701. endif
  1702. else
  1703. INSTALL_SOURCEDIR:=$(INSTALL_BASEDIR)/source
  1704. endif
  1705. endif
  1706. endif
  1707. ifndef INSTALL_DOCDIR
  1708. ifdef UNIXHier
  1709. ifdef BSDhier
  1710. DOCPREFIXDIR=share/doc
  1711. else
  1712. ifdef linuxHier
  1713. DOCPREFIXDIR=share/doc
  1714. else
  1715. DOCPREFIXDIR=doc
  1716. endif
  1717. endif
  1718. ifdef INSTALL_FPCPACKAGE
  1719. INSTALL_DOCDIR:=$(INSTALL_PREFIX)/$(DOCPREFIXDIR)/fpc-$(FPC_VERSION)/$(PACKAGE_NAME)
  1720. else
  1721. INSTALL_DOCDIR:=$(INSTALL_PREFIX)/$(DOCPREFIXDIR)/$(PACKAGE_NAME)-$(PACKAGE_VERSION)
  1722. endif
  1723. else
  1724. ifdef INSTALL_FPCPACKAGE
  1725. INSTALL_DOCDIR:=$(INSTALL_BASEDIR)/doc/$(PACKAGE_NAME)
  1726. else
  1727. INSTALL_DOCDIR:=$(INSTALL_BASEDIR)/doc
  1728. endif
  1729. endif
  1730. endif
  1731. ifndef INSTALL_EXAMPLEDIR
  1732. ifdef UNIXHier
  1733. ifdef INSTALL_FPCPACKAGE
  1734. ifdef BSDhier
  1735. INSTALL_EXAMPLEDIR:=$(INSTALL_PREFIX)/share/examples/fpc-$(FPC_VERSION)/$(PACKAGE_NAME)
  1736. else
  1737. ifdef linuxHier
  1738. INSTALL_EXAMPLEDIR:=$(INSTALL_DOCDIR)/examples
  1739. else
  1740. INSTALL_EXAMPLEDIR:=$(INSTALL_PREFIX)/doc/fpc-$(FPC_VERSION)/examples/$(PACKAGE_NAME)
  1741. endif
  1742. endif
  1743. else
  1744. ifdef BSDhier
  1745. INSTALL_EXAMPLEDIR:=$(INSTALL_PREFIX)/share/examples/$(PACKAGE_NAME)-$(PACKAGE_VERSION)
  1746. else
  1747. ifdef linuxHier
  1748. INSTALL_EXAMPLEDIR:=$(INSTALL_DOCDIR)/examples/$(PACKAGE_NAME)-$(PACKAGE_VERSION)
  1749. else
  1750. INSTALL_EXAMPLEDIR:=$(INSTALL_PREFIX)/doc/$(PACKAGE_NAME)-$(PACKAGE_VERSION)
  1751. endif
  1752. endif
  1753. endif
  1754. else
  1755. ifdef INSTALL_FPCPACKAGE
  1756. INSTALL_EXAMPLEDIR:=$(INSTALL_BASEDIR)/examples/$(PACKAGE_NAME)
  1757. else
  1758. INSTALL_EXAMPLEDIR:=$(INSTALL_BASEDIR)/examples
  1759. endif
  1760. endif
  1761. endif
  1762. ifndef INSTALL_DATADIR
  1763. INSTALL_DATADIR=$(INSTALL_BASEDIR)
  1764. endif
  1765. ifndef INSTALL_SHAREDDIR
  1766. INSTALL_SHAREDDIR=$(INSTALL_PREFIX)/lib
  1767. endif
  1768. ifdef CROSSCOMPILE
  1769. ifndef CROSSBINDIR
  1770. CROSSBINDIR:=$(wildcard $(CROSSTARGETDIR)/bin/$(SOURCESUFFIX))
  1771. ifeq ($(CROSSBINDIR),)
  1772. CROSSBINDIR:=$(wildcard $(INSTALL_BASEDIR)/cross/$(TARGETSUFFIX)/bin/$(FULL_SOURCE))
  1773. endif
  1774. endif
  1775. else
  1776. CROSSBINDIR=
  1777. endif
  1778. BATCHEXT=.bat
  1779. LOADEREXT=.as
  1780. EXEEXT=.exe
  1781. PPLEXT=.ppl
  1782. PPUEXT=.ppu
  1783. OEXT=.o
  1784. ASMEXT=.s
  1785. SMARTEXT=.sl
  1786. STATICLIBEXT=.a
  1787. SHAREDLIBEXT=.so
  1788. SHAREDLIBPREFIX=libfp
  1789. STATICLIBPREFIX=libp
  1790. IMPORTLIBPREFIX=libimp
  1791. RSTEXT=.rst
  1792. EXEDBGEXT=.dbg
  1793. ifeq ($(OS_TARGET),go32v1)
  1794. STATICLIBPREFIX=
  1795. SHORTSUFFIX=v1
  1796. endif
  1797. ifeq ($(OS_TARGET),go32v2)
  1798. STATICLIBPREFIX=
  1799. SHORTSUFFIX=dos
  1800. IMPORTLIBPREFIX=
  1801. endif
  1802. ifeq ($(OS_TARGET),watcom)
  1803. STATICLIBPREFIX=
  1804. OEXT=.obj
  1805. ASMEXT=.asm
  1806. SHAREDLIBEXT=.dll
  1807. SHORTSUFFIX=wat
  1808. IMPORTLIBPREFIX=
  1809. endif
  1810. ifneq ($(CPU_TARGET),jvm)
  1811. ifeq ($(OS_TARGET),android)
  1812. BATCHEXT=.sh
  1813. EXEEXT=
  1814. HASSHAREDLIB=1
  1815. SHORTSUFFIX=lnx
  1816. endif
  1817. endif
  1818. ifeq ($(OS_TARGET),linux)
  1819. BATCHEXT=.sh
  1820. EXEEXT=
  1821. HASSHAREDLIB=1
  1822. SHORTSUFFIX=lnx
  1823. endif
  1824. ifeq ($(OS_TARGET),dragonfly)
  1825. BATCHEXT=.sh
  1826. EXEEXT=
  1827. HASSHAREDLIB=1
  1828. SHORTSUFFIX=df
  1829. endif
  1830. ifeq ($(OS_TARGET),freebsd)
  1831. BATCHEXT=.sh
  1832. EXEEXT=
  1833. HASSHAREDLIB=1
  1834. SHORTSUFFIX=fbs
  1835. endif
  1836. ifeq ($(OS_TARGET),netbsd)
  1837. BATCHEXT=.sh
  1838. EXEEXT=
  1839. HASSHAREDLIB=1
  1840. SHORTSUFFIX=nbs
  1841. endif
  1842. ifeq ($(OS_TARGET),openbsd)
  1843. BATCHEXT=.sh
  1844. EXEEXT=
  1845. HASSHAREDLIB=1
  1846. SHORTSUFFIX=obs
  1847. endif
  1848. ifeq ($(OS_TARGET),win32)
  1849. SHAREDLIBEXT=.dll
  1850. SHORTSUFFIX=w32
  1851. endif
  1852. ifeq ($(OS_TARGET),os2)
  1853. BATCHEXT=.cmd
  1854. AOUTEXT=.out
  1855. STATICLIBPREFIX=
  1856. SHAREDLIBEXT=.dll
  1857. SHORTSUFFIX=os2
  1858. ECHO=echo
  1859. IMPORTLIBPREFIX=
  1860. endif
  1861. ifeq ($(OS_TARGET),emx)
  1862. BATCHEXT=.cmd
  1863. AOUTEXT=.out
  1864. STATICLIBPREFIX=
  1865. SHAREDLIBEXT=.dll
  1866. SHORTSUFFIX=emx
  1867. ECHO=echo
  1868. IMPORTLIBPREFIX=
  1869. endif
  1870. ifeq ($(OS_TARGET),amiga)
  1871. EXEEXT=
  1872. SHAREDLIBEXT=.library
  1873. SHORTSUFFIX=amg
  1874. endif
  1875. ifeq ($(OS_TARGET),aros)
  1876. EXEEXT=
  1877. SHAREDLIBEXT=.library
  1878. SHORTSUFFIX=aros
  1879. endif
  1880. ifeq ($(OS_TARGET),morphos)
  1881. EXEEXT=
  1882. SHAREDLIBEXT=.library
  1883. SHORTSUFFIX=mos
  1884. endif
  1885. ifeq ($(OS_TARGET),atari)
  1886. EXEEXT=.ttp
  1887. SHORTSUFFIX=ata
  1888. endif
  1889. ifeq ($(OS_TARGET),beos)
  1890. BATCHEXT=.sh
  1891. EXEEXT=
  1892. SHORTSUFFIX=be
  1893. endif
  1894. ifeq ($(OS_TARGET),haiku)
  1895. BATCHEXT=.sh
  1896. EXEEXT=
  1897. SHORTSUFFIX=hai
  1898. endif
  1899. ifeq ($(OS_TARGET),solaris)
  1900. BATCHEXT=.sh
  1901. EXEEXT=
  1902. SHORTSUFFIX=sun
  1903. endif
  1904. ifeq ($(OS_TARGET),qnx)
  1905. BATCHEXT=.sh
  1906. EXEEXT=
  1907. SHORTSUFFIX=qnx
  1908. endif
  1909. ifeq ($(OS_TARGET),netware)
  1910. EXEEXT=.nlm
  1911. STATICLIBPREFIX=
  1912. SHORTSUFFIX=nw
  1913. IMPORTLIBPREFIX=imp
  1914. endif
  1915. ifeq ($(OS_TARGET),netwlibc)
  1916. EXEEXT=.nlm
  1917. STATICLIBPREFIX=
  1918. SHORTSUFFIX=nwl
  1919. IMPORTLIBPREFIX=imp
  1920. endif
  1921. ifeq ($(OS_TARGET),macos)
  1922. BATCHEXT=
  1923. EXEEXT=
  1924. DEBUGSYMEXT=.xcoff
  1925. SHORTSUFFIX=mac
  1926. IMPORTLIBPREFIX=imp
  1927. endif
  1928. ifneq ($(findstring $(OS_TARGET),darwin iphonesim),)
  1929. BATCHEXT=.sh
  1930. EXEEXT=
  1931. HASSHAREDLIB=1
  1932. SHORTSUFFIX=dwn
  1933. EXEDBGEXT=.dSYM
  1934. endif
  1935. ifeq ($(OS_TARGET),gba)
  1936. EXEEXT=.gba
  1937. SHAREDLIBEXT=.so
  1938. SHORTSUFFIX=gba
  1939. endif
  1940. ifeq ($(OS_TARGET),symbian)
  1941. SHAREDLIBEXT=.dll
  1942. SHORTSUFFIX=symbian
  1943. endif
  1944. ifeq ($(OS_TARGET),NativeNT)
  1945. SHAREDLIBEXT=.dll
  1946. SHORTSUFFIX=nativent
  1947. endif
  1948. ifeq ($(OS_TARGET),wii)
  1949. EXEEXT=.dol
  1950. SHAREDLIBEXT=.so
  1951. SHORTSUFFIX=wii
  1952. endif
  1953. ifeq ($(OS_TARGET),aix)
  1954. BATCHEXT=.sh
  1955. EXEEXT=
  1956. SHORTSUFFIX=aix
  1957. endif
  1958. ifeq ($(OS_TARGET),java)
  1959. OEXT=.class
  1960. ASMEXT=.j
  1961. SHAREDLIBEXT=.jar
  1962. SHORTSUFFIX=java
  1963. endif
  1964. ifeq ($(CPU_TARGET),jvm)
  1965. ifeq ($(OS_TARGET),android)
  1966. OEXT=.class
  1967. ASMEXT=.j
  1968. SHAREDLIBEXT=.jar
  1969. SHORTSUFFIX=android
  1970. endif
  1971. endif
  1972. ifeq ($(OS_TARGET),msdos)
  1973. STATICLIBPREFIX=
  1974. STATICLIBEXT=.a
  1975. SHORTSUFFIX=d16
  1976. endif
  1977. ifeq ($(OS_TARGET),embedded)
  1978. EXEEXT=.bin
  1979. SHORTSUFFIX=emb
  1980. endif
  1981. ifeq ($(OS_TARGET),win16)
  1982. STATICLIBPREFIX=
  1983. STATICLIBEXT=.a
  1984. SHAREDLIBEXT=.dll
  1985. SHORTSUFFIX=w16
  1986. endif
  1987. ifneq ($(findstring $(OS_SOURCE),$(LIMIT83fs)),)
  1988. FPCMADE=fpcmade.$(SHORTSUFFIX)
  1989. ZIPSUFFIX=$(SHORTSUFFIX)
  1990. ZIPCROSSPREFIX=
  1991. ZIPSOURCESUFFIX=src
  1992. ZIPEXAMPLESUFFIX=exm
  1993. else
  1994. FPCMADE=fpcmade.$(TARGETSUFFIX)
  1995. ZIPSOURCESUFFIX=.source
  1996. ZIPEXAMPLESUFFIX=.examples
  1997. ifdef CROSSCOMPILE
  1998. ZIPSUFFIX=.$(SOURCESUFFIX)
  1999. ZIPCROSSPREFIX=$(TARGETSUFFIX)-
  2000. else
  2001. ZIPSUFFIX=.$(TARGETSUFFIX)
  2002. ZIPCROSSPREFIX=
  2003. endif
  2004. endif
  2005. ifndef ECHO
  2006. ECHO:=$(strip $(wildcard $(addsuffix /gecho$(SRCEXEEXT),$(SEARCHPATH))))
  2007. ifeq ($(ECHO),)
  2008. ECHO:=$(strip $(wildcard $(addsuffix /echo$(SRCEXEEXT),$(SEARCHPATH))))
  2009. ifeq ($(ECHO),)
  2010. ECHO= __missing_command_ECHO
  2011. else
  2012. ECHO:=$(firstword $(ECHO))
  2013. endif
  2014. else
  2015. ECHO:=$(firstword $(ECHO))
  2016. endif
  2017. endif
  2018. export ECHO
  2019. ifndef DATE
  2020. DATE:=$(strip $(wildcard $(addsuffix /gdate$(SRCEXEEXT),$(SEARCHPATH))))
  2021. ifeq ($(DATE),)
  2022. DATE:=$(strip $(wildcard $(addsuffix /date$(SRCEXEEXT),$(SEARCHPATH))))
  2023. ifeq ($(DATE),)
  2024. DATE= __missing_command_DATE
  2025. else
  2026. DATE:=$(firstword $(DATE))
  2027. endif
  2028. else
  2029. DATE:=$(firstword $(DATE))
  2030. endif
  2031. endif
  2032. export DATE
  2033. ifndef GINSTALL
  2034. GINSTALL:=$(strip $(wildcard $(addsuffix /ginstall$(SRCEXEEXT),$(SEARCHPATH))))
  2035. ifeq ($(GINSTALL),)
  2036. GINSTALL:=$(strip $(wildcard $(addsuffix /install$(SRCEXEEXT),$(SEARCHPATH))))
  2037. ifeq ($(GINSTALL),)
  2038. GINSTALL= __missing_command_GINSTALL
  2039. else
  2040. GINSTALL:=$(firstword $(GINSTALL))
  2041. endif
  2042. else
  2043. GINSTALL:=$(firstword $(GINSTALL))
  2044. endif
  2045. endif
  2046. export GINSTALL
  2047. ifndef CPPROG
  2048. CPPROG:=$(strip $(wildcard $(addsuffix /cp$(SRCEXEEXT),$(SEARCHPATH))))
  2049. ifeq ($(CPPROG),)
  2050. CPPROG= __missing_command_CPPROG
  2051. else
  2052. CPPROG:=$(firstword $(CPPROG))
  2053. endif
  2054. endif
  2055. export CPPROG
  2056. ifndef RMPROG
  2057. RMPROG:=$(strip $(wildcard $(addsuffix /rm$(SRCEXEEXT),$(SEARCHPATH))))
  2058. ifeq ($(RMPROG),)
  2059. RMPROG= __missing_command_RMPROG
  2060. else
  2061. RMPROG:=$(firstword $(RMPROG))
  2062. endif
  2063. endif
  2064. export RMPROG
  2065. ifndef MVPROG
  2066. MVPROG:=$(strip $(wildcard $(addsuffix /mv$(SRCEXEEXT),$(SEARCHPATH))))
  2067. ifeq ($(MVPROG),)
  2068. MVPROG= __missing_command_MVPROG
  2069. else
  2070. MVPROG:=$(firstword $(MVPROG))
  2071. endif
  2072. endif
  2073. export MVPROG
  2074. ifndef MKDIRPROG
  2075. MKDIRPROG:=$(strip $(wildcard $(addsuffix /gmkdir$(SRCEXEEXT),$(SEARCHPATH))))
  2076. ifeq ($(MKDIRPROG),)
  2077. MKDIRPROG:=$(strip $(wildcard $(addsuffix /mkdir$(SRCEXEEXT),$(SEARCHPATH))))
  2078. ifeq ($(MKDIRPROG),)
  2079. MKDIRPROG= __missing_command_MKDIRPROG
  2080. else
  2081. MKDIRPROG:=$(firstword $(MKDIRPROG))
  2082. endif
  2083. else
  2084. MKDIRPROG:=$(firstword $(MKDIRPROG))
  2085. endif
  2086. endif
  2087. export MKDIRPROG
  2088. ifndef ECHOREDIR
  2089. ifndef inUnix
  2090. ECHOREDIR=echo
  2091. else
  2092. ECHOREDIR=$(ECHO)
  2093. endif
  2094. endif
  2095. ifndef COPY
  2096. COPY:=$(CPPROG) -fp
  2097. endif
  2098. ifndef COPYTREE
  2099. COPYTREE:=$(CPPROG) -Rfp
  2100. endif
  2101. ifndef MKDIRTREE
  2102. MKDIRTREE:=$(MKDIRPROG) -p
  2103. endif
  2104. ifndef MOVE
  2105. MOVE:=$(MVPROG) -f
  2106. endif
  2107. ifndef DEL
  2108. DEL:=$(RMPROG) -f
  2109. endif
  2110. ifndef DELTREE
  2111. DELTREE:=$(RMPROG) -rf
  2112. endif
  2113. ifndef INSTALL
  2114. ifdef inUnix
  2115. INSTALL:=$(GINSTALL) -c -m 644
  2116. else
  2117. INSTALL:=$(COPY)
  2118. endif
  2119. endif
  2120. ifndef INSTALLEXE
  2121. ifdef inUnix
  2122. INSTALLEXE:=$(GINSTALL) -c -m 755
  2123. else
  2124. INSTALLEXE:=$(COPY)
  2125. endif
  2126. endif
  2127. ifndef MKDIR
  2128. MKDIR:=$(GINSTALL) -m 755 -d
  2129. endif
  2130. export ECHOREDIR COPY COPYTREE MOVE DEL DELTREE INSTALL INSTALLEXE MKDIR
  2131. ifndef PPUMOVE
  2132. PPUMOVE:=$(strip $(wildcard $(addsuffix /ppumove$(SRCEXEEXT),$(SEARCHPATH))))
  2133. ifeq ($(PPUMOVE),)
  2134. PPUMOVE= __missing_command_PPUMOVE
  2135. else
  2136. PPUMOVE:=$(firstword $(PPUMOVE))
  2137. endif
  2138. endif
  2139. export PPUMOVE
  2140. ifndef FPCMAKE
  2141. FPCMAKE:=$(strip $(wildcard $(addsuffix /fpcmake$(SRCEXEEXT),$(SEARCHPATH))))
  2142. ifeq ($(FPCMAKE),)
  2143. FPCMAKE= __missing_command_FPCMAKE
  2144. else
  2145. FPCMAKE:=$(firstword $(FPCMAKE))
  2146. endif
  2147. endif
  2148. export FPCMAKE
  2149. ifndef ZIPPROG
  2150. ZIPPROG:=$(strip $(wildcard $(addsuffix /zip$(SRCEXEEXT),$(SEARCHPATH))))
  2151. ifeq ($(ZIPPROG),)
  2152. ZIPPROG= __missing_command_ZIPPROG
  2153. else
  2154. ZIPPROG:=$(firstword $(ZIPPROG))
  2155. endif
  2156. endif
  2157. export ZIPPROG
  2158. ifndef TARPROG
  2159. TARPROG:=$(strip $(wildcard $(addsuffix /gtar$(SRCEXEEXT),$(SEARCHPATH))))
  2160. ifeq ($(TARPROG),)
  2161. TARPROG:=$(strip $(wildcard $(addsuffix /tar$(SRCEXEEXT),$(SEARCHPATH))))
  2162. ifeq ($(TARPROG),)
  2163. TARPROG= __missing_command_TARPROG
  2164. else
  2165. TARPROG:=$(firstword $(TARPROG))
  2166. endif
  2167. else
  2168. TARPROG:=$(firstword $(TARPROG))
  2169. endif
  2170. endif
  2171. export TARPROG
  2172. ASNAME=$(BINUTILSPREFIX)as
  2173. LDNAME=$(BINUTILSPREFIX)ld
  2174. ARNAME=$(BINUTILSPREFIX)ar
  2175. RCNAME=$(BINUTILSPREFIX)rc
  2176. NASMNAME=$(BINUTILSPREFIX)nasm
  2177. ifndef ASPROG
  2178. ifdef CROSSBINDIR
  2179. ASPROG=$(CROSSBINDIR)/$(ASNAME)$(SRCEXEEXT)
  2180. else
  2181. ASPROG=$(ASNAME)
  2182. endif
  2183. endif
  2184. ifndef LDPROG
  2185. ifdef CROSSBINDIR
  2186. LDPROG=$(CROSSBINDIR)/$(LDNAME)$(SRCEXEEXT)
  2187. else
  2188. LDPROG=$(LDNAME)
  2189. endif
  2190. endif
  2191. ifndef RCPROG
  2192. ifdef CROSSBINDIR
  2193. RCPROG=$(CROSSBINDIR)/$(RCNAME)$(SRCEXEEXT)
  2194. else
  2195. RCPROG=$(RCNAME)
  2196. endif
  2197. endif
  2198. ifndef ARPROG
  2199. ifdef CROSSBINDIR
  2200. ARPROG=$(CROSSBINDIR)/$(ARNAME)$(SRCEXEEXT)
  2201. else
  2202. ARPROG=$(ARNAME)
  2203. endif
  2204. endif
  2205. ifndef NASMPROG
  2206. ifdef CROSSBINDIR
  2207. NASMPROG=$(CROSSBINDIR)/$(NASMNAME)$(SRCEXEEXT)
  2208. else
  2209. NASMPROG=$(NASMNAME)
  2210. endif
  2211. endif
  2212. AS=$(ASPROG)
  2213. LD=$(LDPROG)
  2214. RC=$(RCPROG)
  2215. AR=$(ARPROG)
  2216. NASM=$(NASMPROG)
  2217. ifdef inUnix
  2218. PPAS=./ppas$(SRCBATCHEXT)
  2219. else
  2220. PPAS=ppas$(SRCBATCHEXT)
  2221. endif
  2222. ifdef inUnix
  2223. LDCONFIG=ldconfig
  2224. else
  2225. LDCONFIG=
  2226. endif
  2227. ifdef DATE
  2228. DATESTR:=$(shell $(DATE) +%Y%m%d)
  2229. else
  2230. DATESTR=
  2231. endif
  2232. ZIPOPT=-9
  2233. ZIPEXT=.zip
  2234. ifeq ($(USETAR),bz2)
  2235. TAROPT=vj
  2236. TAREXT=.tar.bz2
  2237. else
  2238. TAROPT=vz
  2239. TAREXT=.tar.gz
  2240. endif
  2241. ifndef NOCPUDEF
  2242. override FPCOPTDEF=$(ARCH)
  2243. endif
  2244. ifneq ($(OS_TARGET),$(OS_SOURCE))
  2245. override FPCOPT+=-T$(OS_TARGET)
  2246. endif
  2247. ifneq ($(CPU_TARGET),$(CPU_SOURCE))
  2248. override FPCOPT+=-P$(ARCH)
  2249. endif
  2250. ifeq ($(OS_SOURCE),openbsd)
  2251. override FPCOPT+=-FD$(NEW_BINUTILS_PATH)
  2252. override FPCMAKEOPT+=-FD$(NEW_BINUTILS_PATH)
  2253. override FPMAKE_BUILD_OPT+=-FD$(NEW_BINUTILS_PATH)
  2254. endif
  2255. ifndef CROSSBOOTSTRAP
  2256. ifneq ($(BINUTILSPREFIX),)
  2257. override FPCOPT+=-XP$(BINUTILSPREFIX)
  2258. endif
  2259. ifneq ($(BINUTILSPREFIX),)
  2260. override FPCOPT+=-Xr$(RLINKPATH)
  2261. endif
  2262. endif
  2263. ifndef CROSSCOMPILE
  2264. ifneq ($(BINUTILSPREFIX),)
  2265. override FPCMAKEOPT+=-XP$(BINUTILSPREFIX)
  2266. override FPMAKE_BUILD_OPT+=-XP$(BINUTILSPREFIX)
  2267. endif
  2268. endif
  2269. ifdef UNITDIR
  2270. override FPCOPT+=$(addprefix -Fu,$(UNITDIR))
  2271. endif
  2272. ifdef LIBDIR
  2273. override FPCOPT+=$(addprefix -Fl,$(LIBDIR))
  2274. endif
  2275. ifdef OBJDIR
  2276. override FPCOPT+=$(addprefix -Fo,$(OBJDIR))
  2277. endif
  2278. ifdef INCDIR
  2279. override FPCOPT+=$(addprefix -Fi,$(INCDIR))
  2280. endif
  2281. ifdef LINKSMART
  2282. override FPCOPT+=-XX
  2283. endif
  2284. ifdef CREATESMART
  2285. override FPCOPT+=-CX
  2286. endif
  2287. ifdef DEBUG
  2288. override FPCOPT+=-gl
  2289. override FPCOPTDEF+=DEBUG
  2290. endif
  2291. ifdef RELEASE
  2292. ifneq ($(findstring 2.0.,$(FPC_VERSION)),)
  2293. ifeq ($(CPU_TARGET),i386)
  2294. FPCCPUOPT:=-OG2p3
  2295. endif
  2296. ifeq ($(CPU_TARGET),powerpc)
  2297. FPCCPUOPT:=-O1r
  2298. endif
  2299. else
  2300. FPCCPUOPT:=-O2
  2301. endif
  2302. override FPCOPT+=-Ur -Xs $(FPCCPUOPT) -n
  2303. override FPCOPTDEF+=RELEASE
  2304. endif
  2305. ifdef STRIP
  2306. override FPCOPT+=-Xs
  2307. endif
  2308. ifdef OPTIMIZE
  2309. override FPCOPT+=-O2
  2310. endif
  2311. ifdef VERBOSE
  2312. override FPCOPT+=-vwni
  2313. endif
  2314. ifdef COMPILER_OPTIONS
  2315. override FPCOPT+=$(COMPILER_OPTIONS)
  2316. endif
  2317. ifdef COMPILER_UNITDIR
  2318. override FPCOPT+=$(addprefix -Fu,$(COMPILER_UNITDIR))
  2319. endif
  2320. ifdef COMPILER_LIBRARYDIR
  2321. override FPCOPT+=$(addprefix -Fl,$(COMPILER_LIBRARYDIR))
  2322. endif
  2323. ifdef COMPILER_OBJECTDIR
  2324. override FPCOPT+=$(addprefix -Fo,$(COMPILER_OBJECTDIR))
  2325. endif
  2326. ifdef COMPILER_INCLUDEDIR
  2327. override FPCOPT+=$(addprefix -Fi,$(COMPILER_INCLUDEDIR))
  2328. endif
  2329. ifdef CROSSBINDIR
  2330. override FPCOPT+=-FD$(CROSSBINDIR)
  2331. endif
  2332. ifdef COMPILER_TARGETDIR
  2333. override FPCOPT+=-FE$(COMPILER_TARGETDIR)
  2334. ifeq ($(COMPILER_TARGETDIR),.)
  2335. override TARGETDIRPREFIX=
  2336. else
  2337. override TARGETDIRPREFIX=$(COMPILER_TARGETDIR)/
  2338. endif
  2339. endif
  2340. ifdef COMPILER_UNITTARGETDIR
  2341. override FPCOPT+=-FU$(COMPILER_UNITTARGETDIR)
  2342. ifeq ($(COMPILER_UNITTARGETDIR),.)
  2343. override UNITTARGETDIRPREFIX=
  2344. else
  2345. override UNITTARGETDIRPREFIX=$(COMPILER_UNITTARGETDIR)/
  2346. endif
  2347. else
  2348. ifdef COMPILER_TARGETDIR
  2349. override COMPILER_UNITTARGETDIR=$(COMPILER_TARGETDIR)
  2350. override UNITTARGETDIRPREFIX=$(TARGETDIRPREFIX)
  2351. endif
  2352. endif
  2353. ifdef CREATESHARED
  2354. override FPCOPT+=-Cg
  2355. endif
  2356. ifneq ($(findstring $(OS_TARGET),dragonfly freebsd openbsd netbsd linux solaris),)
  2357. ifneq ($(findstring $(CPU_TARGET),x86_64 mips mipsel),)
  2358. override FPCOPT+=-Cg
  2359. endif
  2360. endif
  2361. ifdef LINKSHARED
  2362. endif
  2363. ifdef OPT
  2364. override FPCOPT+=$(OPT)
  2365. endif
  2366. ifdef FPMAKEBUILDOPT
  2367. override FPMAKE_BUILD_OPT+=$(FPMAKEBUILDOPT)
  2368. endif
  2369. ifdef FPCOPTDEF
  2370. override FPCOPT+=$(addprefix -d,$(FPCOPTDEF))
  2371. endif
  2372. ifdef CFGFILE
  2373. override FPCOPT+=@$(CFGFILE)
  2374. endif
  2375. ifdef USEENV
  2376. override FPCEXTCMD:=$(FPCOPT)
  2377. override FPCOPT:=!FPCEXTCMD
  2378. export FPCEXTCMD
  2379. endif
  2380. override AFULL_TARGET=$(CPU_TARGET)-$(OS_TARGET)
  2381. override AFULL_SOURCE=$(CPU_SOURCE)-$(OS_SOURCE)
  2382. ifneq ($(AFULL_TARGET),$(AFULL_SOURCE))
  2383. override ACROSSCOMPILE=1
  2384. endif
  2385. ifdef ACROSSCOMPILE
  2386. override FPCOPT+=$(CROSSOPT)
  2387. endif
  2388. override COMPILER:=$(strip $(FPC) $(FPCOPT))
  2389. ifneq (,$(findstring -sh ,$(COMPILER)))
  2390. UseEXECPPAS=1
  2391. endif
  2392. ifneq (,$(findstring -s ,$(COMPILER)))
  2393. ifeq ($(FULL_SOURCE),$(FULL_TARGET))
  2394. UseEXECPPAS=1
  2395. endif
  2396. endif
  2397. ifneq ($(UseEXECPPAS),1)
  2398. EXECPPAS=
  2399. else
  2400. ifdef RUNBATCH
  2401. EXECPPAS:=@$(RUNBATCH) $(PPAS)
  2402. else
  2403. EXECPPAS:=@$(PPAS)
  2404. endif
  2405. endif
  2406. .PHONY: fpc_loaders
  2407. ifneq ($(TARGET_LOADERS),)
  2408. override ALLTARGET+=fpc_loaders
  2409. override CLEANTARGET+=fpc_loaders_clean
  2410. override INSTALLTARGET+=fpc_loaders_install
  2411. override LOADEROFILES:=$(addsuffix $(OEXT),$(TARGET_LOADERS))
  2412. endif
  2413. %$(OEXT): %$(LOADEREXT)
  2414. ifdef COMPILER_UNITTARGETDIR
  2415. $(AS) -o $(COMPILER_UNITTARGETDIR)/$*$(OEXT) $<
  2416. else
  2417. $(AS) -o $*$(OEXT) $<
  2418. endif
  2419. fpc_loaders: $(COMPILER_UNITTARGETDIR) $(LOADEROFILES)
  2420. fpc_loaders_clean:
  2421. ifdef COMPILER_UNITTARGETDIR
  2422. -$(DEL) $(addprefix $(COMPILER_UNITTARGETDIR)/,$(LOADEROFILES))
  2423. else
  2424. -$(DEL) $(LOADEROFILES)
  2425. endif
  2426. fpc_loaders_install:
  2427. $(MKDIR) $(INSTALL_UNITDIR)
  2428. ifdef COMPILER_UNITTARGETDIR
  2429. $(INSTALL) $(addprefix $(COMPILER_UNITTARGETDIR)/,$(LOADEROFILES)) $(INSTALL_UNITDIR)
  2430. else
  2431. $(INSTALL) $(LOADEROFILES) $(INSTALL_UNITDIR)
  2432. endif
  2433. .PHONY: fpc_units
  2434. ifneq ($(TARGET_UNITS)$(TARGET_IMPLICITUNITS),)
  2435. override ALLTARGET+=fpc_units
  2436. override UNITPPUFILES=$(addsuffix $(PPUEXT),$(TARGET_UNITS))
  2437. override IMPLICITUNITPPUFILES=$(addsuffix $(PPUEXT),$(TARGET_IMPLICITUNITS))
  2438. override INSTALLPPUFILES+=$(UNITPPUFILES) $(IMPLICITUNITPPUFILES)
  2439. override CLEANPPUFILES+=$(UNITPPUFILES) $(IMPLICITUNITPPUFILES)
  2440. endif
  2441. fpc_units: $(COMPILER_UNITTARGETDIR) $(UNITPPUFILES)
  2442. ifdef TARGET_RSTS
  2443. override RSTFILES=$(addsuffix $(RSTEXT),$(TARGET_RSTS))
  2444. override CLEANRSTFILES+=$(RSTFILES)
  2445. endif
  2446. .PHONY: fpc_all fpc_smart fpc_debug fpc_release fpc_shared
  2447. $(FPCMADE): $(ALLDEPENDENCIES) $(ALLTARGET)
  2448. @$(ECHOREDIR) Compiled > $(FPCMADE)
  2449. fpc_all: $(FPCMADE)
  2450. fpc_smart:
  2451. $(MAKE) all LINKSMART=1 CREATESMART=1
  2452. fpc_debug:
  2453. $(MAKE) all DEBUG=1
  2454. fpc_release:
  2455. $(MAKE) all RELEASE=1
  2456. .SUFFIXES: $(EXEEXT) $(PPUEXT) $(OEXT) .pas .lpr .dpr .pp .rc .res
  2457. $(COMPILER_UNITTARGETDIR):
  2458. $(MKDIRTREE) $(COMPILER_UNITTARGETDIR)
  2459. $(COMPILER_TARGETDIR):
  2460. $(MKDIRTREE) $(COMPILER_TARGETDIR)
  2461. %$(PPUEXT): %.pp
  2462. $(COMPILER) $<
  2463. $(EXECPPAS)
  2464. %$(PPUEXT): %.pas
  2465. $(COMPILER) $<
  2466. $(EXECPPAS)
  2467. %$(EXEEXT): %.pp
  2468. $(COMPILER) $<
  2469. $(EXECPPAS)
  2470. %$(EXEEXT): %.pas
  2471. $(COMPILER) $<
  2472. $(EXECPPAS)
  2473. %$(EXEEXT): %.lpr
  2474. $(COMPILER) $<
  2475. $(EXECPPAS)
  2476. %$(EXEEXT): %.dpr
  2477. $(COMPILER) $<
  2478. $(EXECPPAS)
  2479. %.res: %.rc
  2480. windres -i $< -o $@
  2481. vpath %.pp $(COMPILER_SOURCEDIR) $(COMPILER_INCLUDEDIR)
  2482. vpath %.pas $(COMPILER_SOURCEDIR) $(COMPILER_INCLUDEDIR)
  2483. vpath %.lpr $(COMPILER_SOURCEDIR) $(COMPILER_INCLUDEDIR)
  2484. vpath %.dpr $(COMPILER_SOURCEDIR) $(COMPILER_INCLUDEDIR)
  2485. vpath %.inc $(COMPILER_INCLUDEDIR)
  2486. vpath %$(OEXT) $(COMPILER_UNITTARGETDIR)
  2487. vpath %$(PPUEXT) $(COMPILER_UNITTARGETDIR)
  2488. .PHONY: fpc_shared
  2489. override INSTALLTARGET+=fpc_shared_install
  2490. ifndef SHARED_LIBVERSION
  2491. SHARED_LIBVERSION=$(FPC_VERSION)
  2492. endif
  2493. ifndef SHARED_LIBNAME
  2494. SHARED_LIBNAME=$(PACKAGE_NAME)
  2495. endif
  2496. ifndef SHARED_FULLNAME
  2497. SHARED_FULLNAME=$(SHAREDLIBPREFIX)$(SHARED_LIBNAME)-$(SHARED_LIBVERSION)$(SHAREDLIBEXT)
  2498. endif
  2499. ifndef SHARED_LIBUNITS
  2500. SHARED_LIBUNITS:=$(TARGET_UNITS) $(TARGET_IMPLICITUNITS)
  2501. override SHARED_LIBUNITS:=$(filter-out $(INSTALL_BUILDUNIT),$(SHARED_LIBUNITS))
  2502. endif
  2503. fpc_shared:
  2504. ifdef HASSHAREDLIB
  2505. $(MAKE) all CREATESHARED=1 LINKSHARED=1 CREATESMART=1
  2506. ifneq ($(SHARED_BUILD),n)
  2507. $(PPUMOVE) -q $(SHARED_LIBUNITS) -i$(COMPILER_UNITTARGETDIR) -o$(SHARED_FULLNAME) -d$(COMPILER_UNITTARGETDIR)
  2508. endif
  2509. else
  2510. @$(ECHO) Shared Libraries not supported
  2511. endif
  2512. fpc_shared_install:
  2513. ifneq ($(SHARED_BUILD),n)
  2514. ifneq ($(SHARED_LIBUNITS),)
  2515. ifneq ($(wildcard $(COMPILER_UNITTARGETDIR)/$(SHARED_FULLNAME)),)
  2516. $(INSTALL) $(COMPILER_UNITTARGETDIR)/$(SHARED_FULLNAME) $(INSTALL_SHAREDDIR)
  2517. endif
  2518. endif
  2519. endif
  2520. .PHONY: fpc_install fpc_sourceinstall fpc_exampleinstall
  2521. ifdef INSTALL_UNITS
  2522. override INSTALLPPUFILES+=$(addsuffix $(PPUEXT),$(INSTALL_UNITS))
  2523. endif
  2524. ifdef INSTALL_BUILDUNIT
  2525. override INSTALLPPUFILES:=$(filter-out $(INSTALL_BUILDUNIT)$(PPUEXT),$(INSTALLPPUFILES))
  2526. endif
  2527. ifdef INSTALLPPUFILES
  2528. override INSTALLPPULINKFILES:=$(subst $(PPUEXT),$(OEXT),$(INSTALLPPUFILES)) $(addprefix $(STATICLIBPREFIX),$(subst $(PPUEXT),$(STATICLIBEXT),$(INSTALLPPUFILES))) $(addprefix $(IMPORTLIBPREFIX),$(subst $(PPUEXT),$(STATICLIBEXT),$(INSTALLPPUFILES)))
  2529. ifneq ($(UNITTARGETDIRPREFIX),)
  2530. override INSTALLPPUFILES:=$(addprefix $(UNITTARGETDIRPREFIX),$(notdir $(INSTALLPPUFILES)))
  2531. override INSTALLPPULINKFILES:=$(wildcard $(addprefix $(UNITTARGETDIRPREFIX),$(notdir $(INSTALLPPULINKFILES))))
  2532. endif
  2533. override INSTALL_CREATEPACKAGEFPC=1
  2534. endif
  2535. ifdef INSTALLEXEFILES
  2536. ifneq ($(TARGETDIRPREFIX),)
  2537. override INSTALLEXEFILES:=$(addprefix $(TARGETDIRPREFIX),$(notdir $(INSTALLEXEFILES)))
  2538. endif
  2539. endif
  2540. fpc_install: all $(INSTALLTARGET)
  2541. ifdef INSTALLEXEFILES
  2542. $(MKDIR) $(INSTALL_BINDIR)
  2543. $(INSTALLEXE) $(INSTALLEXEFILES) $(INSTALL_BINDIR)
  2544. endif
  2545. ifdef INSTALL_CREATEPACKAGEFPC
  2546. ifdef FPCMAKE
  2547. ifdef PACKAGE_VERSION
  2548. ifneq ($(wildcard Makefile.fpc),)
  2549. $(FPCMAKE) -p -T$(CPU_TARGET)-$(OS_TARGET) Makefile.fpc
  2550. $(MKDIR) $(INSTALL_UNITDIR)
  2551. $(INSTALL) Package.fpc $(INSTALL_UNITDIR)
  2552. endif
  2553. endif
  2554. endif
  2555. endif
  2556. ifdef INSTALLPPUFILES
  2557. $(MKDIR) $(INSTALL_UNITDIR)
  2558. $(INSTALL) $(INSTALLPPUFILES) $(INSTALL_UNITDIR)
  2559. ifneq ($(INSTALLPPULINKFILES),)
  2560. $(INSTALL) $(INSTALLPPULINKFILES) $(INSTALL_UNITDIR)
  2561. endif
  2562. ifneq ($(wildcard $(LIB_FULLNAME)),)
  2563. $(MKDIR) $(INSTALL_LIBDIR)
  2564. $(INSTALL) $(LIB_FULLNAME) $(INSTALL_LIBDIR)
  2565. ifdef inUnix
  2566. ln -sf $(LIB_FULLNAME) $(INSTALL_LIBDIR)/$(LIB_NAME)
  2567. endif
  2568. endif
  2569. endif
  2570. ifdef INSTALL_FILES
  2571. $(MKDIR) $(INSTALL_DATADIR)
  2572. $(INSTALL) $(INSTALL_FILES) $(INSTALL_DATADIR)
  2573. endif
  2574. fpc_sourceinstall: distclean
  2575. $(MKDIR) $(INSTALL_SOURCEDIR)
  2576. $(COPYTREE) $(BASEDIR)/* $(INSTALL_SOURCEDIR)
  2577. fpc_exampleinstall: $(EXAMPLEINSTALLTARGET) $(addsuffix _distclean,$(TARGET_EXAMPLEDIRS))
  2578. ifdef HASEXAMPLES
  2579. $(MKDIR) $(INSTALL_EXAMPLEDIR)
  2580. endif
  2581. ifdef EXAMPLESOURCEFILES
  2582. $(COPY) $(EXAMPLESOURCEFILES) $(INSTALL_EXAMPLEDIR)
  2583. endif
  2584. ifdef TARGET_EXAMPLEDIRS
  2585. $(COPYTREE) $(addsuffix /*,$(TARGET_EXAMPLEDIRS)) $(INSTALL_EXAMPLEDIR)
  2586. endif
  2587. .PHONY: fpc_clean fpc_cleanall fpc_distclean
  2588. ifdef EXEFILES
  2589. override CLEANEXEFILES:=$(addprefix $(TARGETDIRPREFIX),$(CLEANEXEFILES))
  2590. override CLEANEXEDBGFILES:=$(addprefix $(TARGETDIRPREFIX),$(CLEANEXEDBGFILES))
  2591. endif
  2592. ifdef CLEAN_PROGRAMS
  2593. override CLEANEXEFILES+=$(addprefix $(TARGETDIRPREFIX),$(addsuffix $(EXEEXT), $(CLEAN_PROGRAMS)))
  2594. override CLEANEXEDBGFILES+=$(addprefix $(TARGETDIRPREFIX),$(addsuffix $(EXEDBGEXT), $(CLEAN_PROGRAMS)))
  2595. endif
  2596. ifdef CLEAN_UNITS
  2597. override CLEANPPUFILES+=$(addsuffix $(PPUEXT),$(CLEAN_UNITS))
  2598. endif
  2599. ifdef CLEANPPUFILES
  2600. override CLEANPPULINKFILES:=$(subst $(PPUEXT),$(OEXT),$(CLEANPPUFILES)) $(addprefix $(STATICLIBPREFIX),$(subst $(PPUEXT),$(STATICLIBEXT),$(CLEANPPUFILES))) $(addprefix $(IMPORTLIBPREFIX),$(subst $(PPUEXT),$(STATICLIBEXT),$(CLEANPPUFILES)))
  2601. ifdef DEBUGSYMEXT
  2602. override CLEANPPULINKFILES+=$(subst $(PPUEXT),$(DEBUGSYMEXT),$(CLEANPPUFILES))
  2603. endif
  2604. override CLEANPPUFILES:=$(addprefix $(UNITTARGETDIRPREFIX),$(CLEANPPUFILES))
  2605. override CLEANPPULINKFILES:=$(wildcard $(addprefix $(UNITTARGETDIRPREFIX),$(CLEANPPULINKFILES)))
  2606. endif
  2607. fpc_clean: $(CLEANTARGET)
  2608. ifdef CLEANEXEFILES
  2609. -$(DEL) $(CLEANEXEFILES)
  2610. endif
  2611. ifdef CLEANEXEDBGFILES
  2612. -$(DELTREE) $(CLEANEXEDBGFILES)
  2613. endif
  2614. ifdef CLEANPPUFILES
  2615. -$(DEL) $(CLEANPPUFILES)
  2616. endif
  2617. ifneq ($(CLEANPPULINKFILES),)
  2618. -$(DEL) $(CLEANPPULINKFILES)
  2619. endif
  2620. ifdef CLEANRSTFILES
  2621. -$(DEL) $(addprefix $(UNITTARGETDIRPREFIX),$(CLEANRSTFILES))
  2622. endif
  2623. ifdef CLEAN_FILES
  2624. -$(DEL) $(CLEAN_FILES)
  2625. endif
  2626. ifdef LIB_NAME
  2627. -$(DEL) $(LIB_NAME) $(LIB_FULLNAME)
  2628. endif
  2629. -$(DEL) $(FPCMADE) Package.fpc $(PPAS) script.res link.res $(FPCEXTFILE) $(REDIRFILE)
  2630. -$(DEL) *$(ASMEXT) *_ppas$(BATCHEXT)
  2631. fpc_cleanall: $(CLEANTARGET)
  2632. ifdef CLEANEXEFILES
  2633. -$(DEL) $(CLEANEXEFILES)
  2634. endif
  2635. ifdef COMPILER_UNITTARGETDIR
  2636. ifdef CLEANPPUFILES
  2637. -$(DEL) $(CLEANPPUFILES)
  2638. endif
  2639. ifneq ($(CLEANPPULINKFILES),)
  2640. -$(DEL) $(CLEANPPULINKFILES)
  2641. endif
  2642. ifdef CLEANRSTFILES
  2643. -$(DEL) $(addprefix $(UNITTARGETDIRPREFIX),$(CLEANRSTFILES))
  2644. endif
  2645. endif
  2646. ifdef CLEAN_FILES
  2647. -$(DEL) $(CLEAN_FILES)
  2648. endif
  2649. -$(DELTREE) units
  2650. -$(DEL) *$(OEXT) *$(PPUEXT) *$(RSTEXT) *$(ASMEXT) *$(STATICLIBEXT) *$(SHAREDLIBEXT) *$(PPLEXT)
  2651. ifneq ($(PPUEXT),.ppu)
  2652. -$(DEL) *.o *.ppu *.a
  2653. endif
  2654. -$(DELTREE) *$(SMARTEXT)
  2655. -$(DEL) fpcmade.* Package.fpc $(PPAS) script.res link.res $(FPCEXTFILE) $(REDIRFILE)
  2656. -$(DEL) *_ppas$(BATCHEXT)
  2657. ifdef AOUTEXT
  2658. -$(DEL) *$(AOUTEXT)
  2659. endif
  2660. ifdef DEBUGSYMEXT
  2661. -$(DEL) *$(DEBUGSYMEXT)
  2662. endif
  2663. ifdef LOCALFPMAKEBIN
  2664. -$(DEL) $(LOCALFPMAKEBIN)
  2665. -$(DEL) $(FPMAKEBINOBJ)
  2666. endif
  2667. fpc_distclean: cleanall
  2668. .PHONY: fpc_baseinfo
  2669. override INFORULES+=fpc_baseinfo
  2670. fpc_baseinfo:
  2671. @$(ECHO)
  2672. @$(ECHO) == Package info ==
  2673. @$(ECHO) Package Name..... $(PACKAGE_NAME)
  2674. @$(ECHO) Package Version.. $(PACKAGE_VERSION)
  2675. @$(ECHO)
  2676. @$(ECHO) == Configuration info ==
  2677. @$(ECHO)
  2678. @$(ECHO) FPC.......... $(FPC)
  2679. @$(ECHO) FPC Version.. $(FPC_VERSION)
  2680. @$(ECHO) Source CPU... $(CPU_SOURCE)
  2681. @$(ECHO) Target CPU... $(CPU_TARGET)
  2682. @$(ECHO) Source OS.... $(OS_SOURCE)
  2683. @$(ECHO) Target OS.... $(OS_TARGET)
  2684. @$(ECHO) Full Source.. $(FULL_SOURCE)
  2685. @$(ECHO) Full Target.. $(FULL_TARGET)
  2686. @$(ECHO) SourceSuffix. $(SOURCESUFFIX)
  2687. @$(ECHO) TargetSuffix. $(TARGETSUFFIX)
  2688. @$(ECHO) FPC fpmake... $(FPCFPMAKE)
  2689. @$(ECHO)
  2690. @$(ECHO) == Directory info ==
  2691. @$(ECHO)
  2692. @$(ECHO) Required pkgs... $(REQUIRE_PACKAGES)
  2693. @$(ECHO)
  2694. @$(ECHO) Basedir......... $(BASEDIR)
  2695. @$(ECHO) FPCDir.......... $(FPCDIR)
  2696. @$(ECHO) CrossBinDir..... $(CROSSBINDIR)
  2697. @$(ECHO) UnitsDir........ $(UNITSDIR)
  2698. @$(ECHO) PackagesDir..... $(PACKAGESDIR)
  2699. @$(ECHO)
  2700. @$(ECHO) GCC library..... $(GCCLIBDIR)
  2701. @$(ECHO) Other library... $(OTHERLIBDIR)
  2702. @$(ECHO)
  2703. @$(ECHO) == Tools info ==
  2704. @$(ECHO)
  2705. @$(ECHO) As........ $(AS)
  2706. @$(ECHO) Ld........ $(LD)
  2707. @$(ECHO) Ar........ $(AR)
  2708. @$(ECHO) Rc........ $(RC)
  2709. @$(ECHO)
  2710. @$(ECHO) Mv........ $(MVPROG)
  2711. @$(ECHO) Cp........ $(CPPROG)
  2712. @$(ECHO) Rm........ $(RMPROG)
  2713. @$(ECHO) GInstall.. $(GINSTALL)
  2714. @$(ECHO) Echo...... $(ECHO)
  2715. @$(ECHO) Shell..... $(SHELL)
  2716. @$(ECHO) Date...... $(DATE)
  2717. @$(ECHO) FPCMake... $(FPCMAKE)
  2718. @$(ECHO) PPUMove... $(PPUMOVE)
  2719. @$(ECHO) Zip....... $(ZIPPROG)
  2720. @$(ECHO)
  2721. @$(ECHO) == Object info ==
  2722. @$(ECHO)
  2723. @$(ECHO) Target Loaders........ $(TARGET_LOADERS)
  2724. @$(ECHO) Target Units.......... $(TARGET_UNITS)
  2725. @$(ECHO) Target Implicit Units. $(TARGET_IMPLICITUNITS)
  2726. @$(ECHO) Target Programs....... $(TARGET_PROGRAMS)
  2727. @$(ECHO) Target Dirs........... $(TARGET_DIRS)
  2728. @$(ECHO) Target Examples....... $(TARGET_EXAMPLES)
  2729. @$(ECHO) Target ExampleDirs.... $(TARGET_EXAMPLEDIRS)
  2730. @$(ECHO)
  2731. @$(ECHO) Clean Units......... $(CLEAN_UNITS)
  2732. @$(ECHO) Clean Files......... $(CLEAN_FILES)
  2733. @$(ECHO)
  2734. @$(ECHO) Install Units....... $(INSTALL_UNITS)
  2735. @$(ECHO) Install Files....... $(INSTALL_FILES)
  2736. @$(ECHO)
  2737. @$(ECHO) == Install info ==
  2738. @$(ECHO)
  2739. @$(ECHO) DateStr.............. $(DATESTR)
  2740. @$(ECHO) ZipName.............. $(ZIPNAME)
  2741. @$(ECHO) ZipPrefix............ $(ZIPPREFIX)
  2742. @$(ECHO) ZipCrossPrefix....... $(ZIPCROSSPREFIX)
  2743. @$(ECHO) ZipSuffix............ $(ZIPSUFFIX)
  2744. @$(ECHO) FullZipName.......... $(FULLZIPNAME)
  2745. @$(ECHO) Install FPC Package.. $(INSTALL_FPCPACKAGE)
  2746. @$(ECHO)
  2747. @$(ECHO) Install base dir..... $(INSTALL_BASEDIR)
  2748. @$(ECHO) Install binary dir... $(INSTALL_BINDIR)
  2749. @$(ECHO) Install library dir.. $(INSTALL_LIBDIR)
  2750. @$(ECHO) Install units dir.... $(INSTALL_UNITDIR)
  2751. @$(ECHO) Install source dir... $(INSTALL_SOURCEDIR)
  2752. @$(ECHO) Install doc dir...... $(INSTALL_DOCDIR)
  2753. @$(ECHO) Install example dir.. $(INSTALL_EXAMPLEDIR)
  2754. @$(ECHO) Install data dir..... $(INSTALL_DATADIR)
  2755. @$(ECHO)
  2756. @$(ECHO) Dist destination dir. $(DIST_DESTDIR)
  2757. @$(ECHO) Dist zip name........ $(DIST_ZIPNAME)
  2758. @$(ECHO)
  2759. .PHONY: fpc_info
  2760. fpc_info: $(INFORULES)
  2761. .PHONY: fpc_makefile fpc_makefiles fpc_makefile_sub1 fpc_makefile_sub2 \
  2762. fpc_makefile_dirs
  2763. fpc_makefile:
  2764. $(FPCMAKE) -w -T$(OS_TARGET) Makefile.fpc
  2765. fpc_makefile_sub1:
  2766. ifdef TARGET_DIRS
  2767. $(FPCMAKE) -w -T$(OS_TARGET) $(addsuffix /Makefile.fpc,$(TARGET_DIRS))
  2768. endif
  2769. ifdef TARGET_EXAMPLEDIRS
  2770. $(FPCMAKE) -w -T$(OS_TARGET) $(addsuffix /Makefile.fpc,$(TARGET_EXAMPLEDIRS))
  2771. endif
  2772. fpc_makefile_sub2: $(addsuffix _makefile_dirs,$(TARGET_DIRS) $(TARGET_EXAMPLEDIRS))
  2773. fpc_makefile_dirs: fpc_makefile_sub1 fpc_makefile_sub2
  2774. fpc_makefiles: fpc_makefile fpc_makefile_dirs
  2775. all: fpc_all
  2776. debug: fpc_debug
  2777. smart: fpc_smart
  2778. release: fpc_release
  2779. units: fpc_units
  2780. examples:
  2781. shared: fpc_shared
  2782. install: fpc_install
  2783. sourceinstall: fpc_sourceinstall
  2784. exampleinstall: fpc_exampleinstall
  2785. distinstall:
  2786. zipinstall:
  2787. zipsourceinstall:
  2788. zipexampleinstall:
  2789. zipdistinstall:
  2790. clean: fpc_clean
  2791. distclean: fpc_distclean
  2792. cleanall: fpc_cleanall
  2793. info: fpc_info
  2794. makefiles: fpc_makefiles
  2795. .PHONY: all debug smart release units examples shared install sourceinstall exampleinstall distinstall zipinstall zipsourceinstall zipexampleinstall zipdistinstall clean distclean cleanall info makefiles
  2796. ifneq ($(wildcard fpcmake.loc),)
  2797. include fpcmake.loc
  2798. endif
  2799. .NOTPARALLEL:
  2800. include $(INC)/makefile.inc
  2801. SYSINCDEPS=$(addprefix $(INC)/,$(SYSINCNAMES))
  2802. include $(PROCINC)/makefile.cpu
  2803. SYSCPUDEPS=$(addprefix $(PROCINC)/,$(CPUINCNAMES))
  2804. SYSDEPS=$(SYSINCDEPS) $(SYSCPUDEPS)
  2805. prt0$(OEXT) : prt0.as
  2806. $(AS) $(ASTARGET) -o $(UNITTARGETDIRPREFIX)prt0$(OEXT) prt0.as
  2807. cprt0$(OEXT) : cprt0.as
  2808. $(AS) $(ASTARGET) -o $(UNITTARGETDIRPREFIX)cprt0$(OEXT) cprt0.as
  2809. $(SYSTEMUNIT)$(PPUEXT) : $(SYSTEMUNIT).pp $(SYSDEPS) $(INC)/softfpu.pp
  2810. $(COMPILER) -Us -Sg $(SYSTEMUNIT).pp $(REDIR)
  2811. uuchar$(PPUEXT): $(SYSTEMUNIT)$(PPUEXT) $(INC)/uuchar.pp
  2812. $(COMPILER) $(INC)/uuchar.pp
  2813. objpas$(PPUEXT): $(OBJPASDIR)/objpas.pp $(INC)/except.inc $(SYSTEMUNIT)$(PPUEXT)
  2814. $(COMPILER) -I$(OBJPASDIR) $(OBJPASDIR)/objpas.pp $(REDIR)
  2815. strings$(PPUEXT) : $(INC)/strings.pp $(INC)/stringsi.inc \
  2816. $(PROCINC)/strings.inc $(PROCINC)/stringss.inc \
  2817. $(SYSTEMUNIT)$(PPUEXT)
  2818. $(COMPILER) $(INC)/strings.pp
  2819. iso7185$(PPUEXT) : $(INC)/iso7185.pp $(SYSTEMUNIT)$(PPUEXT)
  2820. $(COMPILER) $(INC)/iso7185.pp
  2821. dos$(PPUEXT) : dos.pp $(INC)/filerec.inc $(INC)/textrec.inc strings$(PPUEXT) \
  2822. $(SYSTEMUNIT)$(PPUEXT)
  2823. $(COMPILER) dos.pp
  2824. sysutils$(PPUEXT) : sysutils.pp $(wildcard $(OBJPASDIR)/sysutils/*.inc) \
  2825. objpas$(PPUEXT) dos$(PPUEXT) sysconst$(PPUEXT)
  2826. $(COMPILER) -Fi$(OBJPASDIR)/sysutils sysutils.pp
  2827. classes$(PPUEXT) : classes.pp $(wildcard $(OBJPASDIR)/classes/*.inc) \
  2828. sysutils$(PPUEXT) typinfo$(PPUEXT) rtlconsts$(PPUEXT) types$(PPUEXT) \
  2829. fgl$(PPUEXT)
  2830. $(COMPILER) -Fi$(OBJPASDIR)/classes classes.pp
  2831. typinfo$(PPUEXT): $(OBJPASDIR)/typinfo.pp objpas$(PPUEXT)
  2832. $(COMPILER) -Sg $(OBJPASDIR)/typinfo.pp $(REDIR)
  2833. math$(PPUEXT): $(OBJPASDIR)/math.pp objpas$(PPUEXT) sysutils$(PPUEXT)
  2834. $(COMPILER) $(OBJPASDIR)/math.pp $(REDIR)
  2835. types$(PPUEXT) : $(OBJPASDIR/types.pp objpas$(PPUEXT) $(SYSTEMUNIT)$(PPUEXT)
  2836. $(COMPILER) $(OBJPASDIR)/types.pp
  2837. rtlconsts$(PPUEXT) : $(OBJPASDIR)/rtlconsts.pp
  2838. $(COMPILER) $(OBJPASDIR)/rtlconsts.pp
  2839. sysconst$(PPUEXT) : $(OBJPASDIR)/sysconst.pp objpas$(PPUEXT) $(SYSTEMUNIT)$(PPUEXT)
  2840. $(COMPILER) $(OBJPASDIR)/sysconst.pp
  2841. fgl$(PPUEXT): $(OBJPASDIR)/fgl.pp objpas$(PPUEXT) types$(PPUEXT) system$(PPUEXT) sysutils$(PPUEXT)
  2842. $(COMPILER) -Sg $(OBJPASDIR)/fgl.pp $(REDIR)
  2843. macpas$(PPUEXT) : $(INC)/macpas.pp objpas$(PPUEXT) math$(PPUEXT)
  2844. $(COMPILER) $(INC)/macpas.pp $(REDIR)
  2845. getopts$(PPUEXT) : $(INC)/getopts.pp $(SYSTEMUNIT)$(PPUEXT)
  2846. $(COMPILER) $(INC)/getopts.pp
  2847. heaptrc$(PPUEXT) : $(INC)/heaptrc.pp $(SYSTEMUNIT)$(PPUEXT)
  2848. $(COMPILER) -Sg $(INC)/heaptrc.pp $(REDIR)
  2849. lineinfo$(PPUEXT) : $(INC)/lineinfo.pp $(SYSTEMUNIT)$(PPUEXT)
  2850. $(COMPILER) $(INC)/lineinfo.pp
  2851. charset$(PPUEXT) : $(INC)/charset.pp $(SYSTEMUNIT)$(PPUEXT)
  2852. $(COMPILER) $(INC)/charset.pp
  2853. cpall$(PPUEXT): $(RTL)/charmaps/cpall.pas system$(PPUEXT) charset$(PPUEXT)
  2854. $(COMPILER) -Fu$(INC) -Fi$(RTL)/charmaps $(RTL)/charmaps/cpall.pas
  2855. exec$(PPUEXT) : exec.pp execf.inc execd.inc
  2856. $(COMPILER) exec.pp
  2857. timer$(PPUEXT) : timer.pp timerd.inc timerf.inc
  2858. $(COMPILER) timer.pp
  2859. utility$(PPUEXT) : utility.pp exec$(PPUEXT) utilf.inc utild1.inc utild2.inc
  2860. $(COMPILER) utility.pp
  2861. doslib$(PPUEXT) : doslib.pp exec$(PPUEXT) timer$(PPUEXT) doslibd.inc doslibf.inc
  2862. $(COMPILER) doslib.pp
  2863. hardware$(PPUEXT): hardware.pas exec$(PPUEXT)
  2864. $(COMPILER) hardware.pas
  2865. inputevent$(PPUEXT): inputevent.pas exec$(PPUEXT) timer$(PPUEXT) utility$(PPUEXT)
  2866. $(COMPILER) inputevent.pas
  2867. graphics$(PPUEXT): graphics.pas exec$(PPUEXT) utility$(PPUEXT) hardware$(PPUEXT)
  2868. $(COMPILER) graphics.pas
  2869. layers$(PPUEXT) : layers.pas exec$(PPUEXT) graphics$(PPUEXT) utility$(PPUEXT)
  2870. $(COMPILER) layers.pas
  2871. intuition$(PPUEXT): intuition.pas exec$(PPUEXT) graphics$(PPUEXT) utility$(PPUEXT) \
  2872. inputevent$(PPUEXT) timer$(PPUEXT) layers$(PPUEXT)
  2873. $(COMPILER) intuition.pas
  2874. aboxlib$(PPUEXT): aboxlib.pas
  2875. $(COMPILER) aboxlib.pas
  2876. clipboard$(PPUEXT): clipboard.pas exec$(PPUEXT)
  2877. $(COMPILER) clipboard.pas
  2878. datatype$(PPUEXT): datatypes.pas exec$(PPUEXT) doslib$(PPUEXT) intuition$(PPUEXT) \
  2879. utility$(PPUEXT) graphics$(PPUEXT)
  2880. $(COMPILER) datatypes.pas
  2881. asl$(PPUEXT): asl.pas exec$(PPUEXT) graphics$(PPUEXT) utility$(PPUEXT)
  2882. $(COMPILER) asl.pas
  2883. ahi$(PPUEXT): ahi.pas exec$(PPUEXT) utility$(PPUEXT)
  2884. $(COMPILER) ahi.pas
  2885. mui$(PPUEXT): mui.pas exec$(PPUEXT) utility$(PPUEXT) intuition$(PPUEXT) graphics$(PPUEXT)
  2886. $(COMPILER) mui.pas
  2887. tinygl$(PPUEXT): tinygl.pp exec$(PPUEXT)
  2888. $(COMPILER) tinygl.pp
  2889. get9$(PPUEXT): get9.pas exec$(PPUEXT)
  2890. $(COMPILER) get9.pas
  2891. muihelper$(PPUEXT): muihelper.pas intuition$(PPUEXT) mui$(PPUEXT) doslib$(PPUEXT) utility$(PPUEXT)
  2892. $(COMPILER) muihelper.pas
  2893. ctypes$(PPUEXT) : $(INC)/ctypes.pp $(SYSTEMUNIT)$(PPUEXT)
  2894. $(COMPILER) $(INC)/ctypes.pp