Makefile 107 KB

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