Makefile 58 KB

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