Makefile 75 KB

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