Makefile 88 KB

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