Makefile 61 KB

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