Makefile 67 KB

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