Makefile 95 KB

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