Makefile 68 KB

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