Makefile 60 KB

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