Makefile 60 KB

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