Makefile 60 KB

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