Makefile 91 KB

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