Makefile 105 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650
  1. #
  2. # Don't edit, this file is generated by FPCMake Version 2.0.0
  3. #
  4. default: all
  5. MAKEFILETARGETS=i386-linux i386-go32v2 i386-win32 i386-os2 i386-freebsd i386-beos i386-haiku i386-netbsd i386-solaris i386-netware i386-openbsd i386-wdosx i386-darwin i386-emx i386-watcom i386-netwlibc i386-wince i386-embedded i386-symbian i386-nativent i386-iphonesim i386-android i386-aros m68k-linux m68k-netbsd m68k-amiga m68k-atari m68k-palmos m68k-macosclassic m68k-embedded m68k-sinclairql m68k-human68k powerpc-linux powerpc-netbsd powerpc-amiga powerpc-macosclassic powerpc-darwin powerpc-morphos powerpc-embedded powerpc-wii powerpc-aix sparc-linux sparc-netbsd sparc-solaris sparc-embedded x86_64-linux x86_64-freebsd x86_64-haiku x86_64-netbsd x86_64-solaris x86_64-openbsd x86_64-darwin x86_64-win64 x86_64-embedded x86_64-iphonesim x86_64-android x86_64-aros x86_64-dragonfly arm-linux arm-netbsd arm-palmos arm-wince arm-gba arm-nds arm-embedded arm-symbian arm-android arm-aros arm-freertos arm-ios powerpc64-linux powerpc64-darwin powerpc64-embedded powerpc64-aix avr-embedded armeb-linux armeb-embedded mips-linux mipsel-linux mipsel-embedded mipsel-android mips64-linux mips64el-linux jvm-java jvm-android i8086-embedded i8086-msdos i8086-win16 aarch64-linux aarch64-freebsd aarch64-darwin aarch64-win64 aarch64-embedded aarch64-iphonesim aarch64-android aarch64-ios wasm32-embedded wasm32-wasi sparc64-linux riscv32-linux riscv32-embedded riscv32-freertos riscv64-linux riscv64-embedded xtensa-linux xtensa-embedded xtensa-freertos z80-embedded z80-zxspectrum z80-msxdos z80-amstradcpc loongarch64-linux
  6. BSDs = freebsd netbsd openbsd darwin dragonfly
  7. UNIXs = linux $(BSDs) solaris qnx haiku aix
  8. LIMIT83fs = go32v2 os2 emx watcom msdos win16 atari human68k
  9. OSNeedsComspecToRunBatch = go32v2 watcom
  10. FORCE:
  11. .PHONY: FORCE
  12. lc = $(subst A,a,$(subst B,b,$(subst C,c,$(subst D,d,$(subst E,e,$(subst F,f,$(subst G,g,$(subst H,h,$(subst I,i,$(subst J,j,$(subst K,k,$(subst L,l,$(subst M,m,$(subst N,n,$(subst O,o,$(subst P,p,$(subst Q,q,$(subst R,r,$(subst S,s,$(subst T,t,$(subst U,u,$(subst V,v,$(subst W,w,$(subst X,x,$(subst Y,y,$(subst Z,z,$1))))))))))))))))))))))))))
  13. override PATH:=$(patsubst %/,%,$(subst \,/,$(PATH)))
  14. ifneq ($(findstring darwin,$(OSTYPE)),)
  15. inUnix=1 #darwin
  16. SEARCHPATH:=$(filter-out .,$(subst :, ,$(PATH)))
  17. else
  18. ifeq ($(findstring ;,$(PATH)),)
  19. inUnix=1
  20. SEARCHPATH:=$(filter-out .,$(subst :, ,$(PATH)))
  21. else
  22. SEARCHPATH:=$(subst ;, ,$(PATH))
  23. endif
  24. endif
  25. SEARCHPATH+=$(patsubst %/,%,$(subst \,/,$(dir $(MAKE))))
  26. PWD:=$(strip $(wildcard $(addsuffix /pwd.exe,$(SEARCHPATH))))
  27. ifeq ($(PWD),)
  28. PWD:=$(strip $(wildcard $(addsuffix /pwd,$(SEARCHPATH))))
  29. ifeq ($(PWD),)
  30. $(error You need the GNU utils package to use this Makefile)
  31. else
  32. PWD:=$(firstword $(PWD))
  33. SRCEXEEXT=
  34. endif
  35. else
  36. PWD:=$(firstword $(PWD))
  37. SRCEXEEXT=.exe
  38. endif
  39. ifndef inUnix
  40. ifeq ($(OS),Windows_NT)
  41. inWinNT=1
  42. else
  43. ifdef OS2_SHELL
  44. inOS2=1
  45. endif
  46. endif
  47. else
  48. ifneq ($(findstring cygdrive,$(PATH)),)
  49. inCygWin=1
  50. endif
  51. endif
  52. ifdef inUnix
  53. SRCBATCHEXT=.sh
  54. else
  55. ifdef inOS2
  56. SRCBATCHEXT=.cmd
  57. else
  58. SRCBATCHEXT=.bat
  59. endif
  60. endif
  61. ifdef COMSPEC
  62. ifneq ($(filter $(OS_SOURCE),$(OSNeedsComspecToRunBatch)),)
  63. ifndef RUNBATCH
  64. RUNBATCH=$(COMSPEC) /C
  65. endif
  66. endif
  67. endif
  68. ifdef inUnix
  69. PATHSEP=/
  70. else
  71. PATHSEP:=$(subst /,\,/)
  72. ifdef inCygWin
  73. PATHSEP=/
  74. endif
  75. endif
  76. ifdef PWD
  77. BASEDIR:=$(subst \,/,$(shell $(PWD)))
  78. ifdef inCygWin
  79. ifneq ($(findstring /cygdrive/,$(BASEDIR)),)
  80. BASENODIR:=$(patsubst /cygdrive%,%,$(BASEDIR))
  81. BASEDRIVE:=$(firstword $(subst /, ,$(BASENODIR)))
  82. BASEDIR:=$(subst /cygdrive/$(BASEDRIVE)/,$(BASEDRIVE):/,$(BASEDIR))
  83. endif
  84. endif
  85. else
  86. BASEDIR=.
  87. endif
  88. ifdef inOS2
  89. ifndef ECHO
  90. ECHO:=$(strip $(wildcard $(addsuffix /gecho$(SRCEXEEXT),$(SEARCHPATH))))
  91. ifeq ($(ECHO),)
  92. ECHO:=$(strip $(wildcard $(addsuffix /echo$(SRCEXEEXT),$(SEARCHPATH))))
  93. ifeq ($(ECHO),)
  94. ECHO=echo
  95. else
  96. ECHO:=$(firstword $(ECHO))
  97. endif
  98. else
  99. ECHO:=$(firstword $(ECHO))
  100. endif
  101. endif
  102. export ECHO
  103. endif
  104. override DEFAULT_FPCDIR=../../..
  105. ifndef FPC
  106. ifdef PP
  107. FPC=$(PP)
  108. endif
  109. endif
  110. ifndef FPC
  111. FPCPROG:=$(strip $(wildcard $(addsuffix /fpc$(SRCEXEEXT),$(SEARCHPATH))))
  112. ifneq ($(FPCPROG),)
  113. FPCPROG:=$(firstword $(FPCPROG))
  114. ifneq ($(CPU_TARGET),)
  115. FPC:=$(shell $(FPCPROG) -P$(CPU_TARGET) -PB)
  116. else
  117. FPC:=$(shell $(FPCPROG) -PB)
  118. endif
  119. ifneq ($(findstring Error,$(FPC)),)
  120. override FPC=$(firstword $(strip $(wildcard $(addsuffix /ppc386$(SRCEXEEXT),$(SEARCHPATH)))))
  121. else
  122. ifeq ($(strip $(wildcard $(FPC))),)
  123. FPC:=$(firstword $(FPCPROG))
  124. endif
  125. endif
  126. else
  127. override FPC=$(firstword $(strip $(wildcard $(addsuffix /ppc386$(SRCEXEEXT),$(SEARCHPATH)))))
  128. endif
  129. endif
  130. override FPC:=$(subst $(SRCEXEEXT),,$(FPC))
  131. override FPC:=$(subst \,/,$(FPC))$(SRCEXEEXT)
  132. FOUNDFPC:=$(strip $(wildcard $(FPC)))
  133. ifeq ($(FOUNDFPC),)
  134. FOUNDFPC=$(strip $(wildcard $(addsuffix /$(FPC),$(SEARCHPATH))))
  135. ifeq ($(FOUNDFPC),)
  136. $(error Compiler $(FPC) not found)
  137. endif
  138. endif
  139. ifndef FPC_COMPILERINFO
  140. FPC_COMPILERINFO:=$(shell $(FPC) -iVSPTPSOTO)
  141. endif
  142. ifndef FPC_VERSION
  143. FPC_VERSION:=$(word 1,$(FPC_COMPILERINFO))
  144. endif
  145. export FPC FPC_VERSION FPC_COMPILERINFO
  146. unexport CHECKDEPEND ALLDEPENDENCIES
  147. ifndef CPU_TARGET
  148. ifdef CPU_TARGET_DEFAULT
  149. CPU_TARGET=$(CPU_TARGET_DEFAULT)
  150. endif
  151. endif
  152. ifndef OS_TARGET
  153. ifdef OS_TARGET_DEFAULT
  154. OS_TARGET=$(OS_TARGET_DEFAULT)
  155. endif
  156. endif
  157. ifndef CPU_SOURCE
  158. CPU_SOURCE:=$(word 2,$(FPC_COMPILERINFO))
  159. endif
  160. ifndef CPU_TARGET
  161. CPU_TARGET:=$(word 3,$(FPC_COMPILERINFO))
  162. endif
  163. ifndef OS_SOURCE
  164. OS_SOURCE:=$(word 4,$(FPC_COMPILERINFO))
  165. endif
  166. ifndef OS_TARGET
  167. OS_TARGET:=$(word 5,$(FPC_COMPILERINFO))
  168. endif
  169. CPU_OS_TARGET=$(CPU_TARGET)-$(OS_TARGET)
  170. ifdef SUB_TARGET
  171. L_SUB_TARGET=$(call lc,$(SUB_TARGET))
  172. FULL_TARGET:=$(CPU_TARGET)-$(OS_TARGET)-$(L_SUB_TARGET)
  173. else
  174. FULL_TARGET:=$(CPU_TARGET)-$(OS_TARGET)
  175. endif
  176. CPU_OS_SOURCE=$(CPU_SOURCE)-$(OS_SOURCE)
  177. ifdef SUB_SOURCE
  178. L_SUB_SOURCE=$(call lc,$(SUB_SOURCE))
  179. FULL_SOURCE=$(CPU_SOURCE)-$(OS_SOURCE)-$(L_SUB_SOURCE)
  180. else
  181. FULL_SOURCE=$(CPU_SOURCE)-$(OS_SOURCE)
  182. endif
  183. ifeq ($(CPU_TARGET),armeb)
  184. ARCH=arm
  185. override FPCOPT+=-Cb
  186. else
  187. ifeq ($(CPU_TARGET),armel)
  188. ARCH=arm
  189. override FPCOPT+=-CaEABI
  190. else
  191. ARCH=$(CPU_TARGET)
  192. endif
  193. endif
  194. ifeq ($(CPU_OS_TARGET),aarch64-embedded)
  195. endif
  196. ifdef SUB_TARGET
  197. FPCOPT+=-t$(SUB_TARGET)
  198. FPMAKE_OPT+=--subtarget=$(SUB_TARGET)
  199. endif
  200. ifeq ($(CPU_OS_TARGET),arm-embedded)
  201. ifeq ($(SUBARCH),)
  202. $(error When compiling for arm-embedded, a sub-architecture (e.g. SUBARCH=armv4t or SUBARCH=armv7m) must be defined)
  203. endif
  204. override FPCOPT+=-Cp$(SUBARCH)
  205. endif
  206. ifeq ($(CPU_OS_TARGET),avr-embedded)
  207. ifeq ($(SUBARCH),)
  208. $(error When compiling for avr-embedded, a sub-architecture (e.g. SUBARCH=avr25 or SUBARCH=avr35) must be defined)
  209. endif
  210. override FPCOPT+=-Cp$(SUBARCH)
  211. endif
  212. ifeq ($(CPU_OS_TARGET),mipsel-embedded)
  213. ifeq ($(SUBARCH),)
  214. $(error When compiling for mipsel-embedded, a sub-architecture (e.g. SUBARCH=pic32mx) must be defined)
  215. endif
  216. override FPCOPT+=-Cp$(SUBARCH)
  217. endif
  218. ifeq ($(CPU_OS_TARGET),xtensa-embedded)
  219. ifeq ($(SUBARCH),)
  220. $(error When compiling for xtensa-embedded, a sub-architecture (e.g. SUBARCH=lx106 or SUBARCH=lx6) must be defined)
  221. endif
  222. override FPCOPT+=-Cp$(SUBARCH)
  223. endif
  224. ifeq ($(CPU_OS_TARGET),xtensa-freertos)
  225. ifeq ($(SUBARCH),)
  226. $(error When compiling for xtensa-freertos, a sub-architecture (e.g. SUBARCH=lx106 or SUBARCH=lx6) must be defined)
  227. endif
  228. override FPCOPT+=-Cp$(SUBARCH)
  229. endif
  230. ifeq ($(CPU_OS_TARGET),arm-freertos)
  231. ifeq ($(SUBARCH),)
  232. $(error When compiling for arm-freertos, a sub-architecture (e.g. SUBARCH=armv6m or SUBARCH=armv7em) must be defined)
  233. endif
  234. override FPCOPT+=-Cp$(SUBARCH)
  235. endif
  236. ifneq ($(filter $(OS_SOURCE),$(LIMIT83fs)),)
  237. TARGETSUFFIX=$(OS_TARGET)
  238. SOURCESUFFIX=$(OS_SOURCE)
  239. else
  240. ifneq ($(filter $(OS_TARGET),$(LIMIT83fs)),)
  241. TARGETSUFFIX=$(OS_TARGET)
  242. else
  243. TARGETSUFFIX=$(FULL_TARGET)
  244. endif
  245. SOURCESUFFIX=$(FULL_SOURCE)
  246. endif
  247. ifneq ($(CPU_OS_TARGET),$(CPU_OS_SOURCE))
  248. CROSSCOMPILE=1
  249. endif
  250. ifeq ($(findstring makefile,$(MAKECMDGOALS)),)
  251. ifeq ($(filter $(CPU_OS_TARGET),$(MAKEFILETARGETS)),)
  252. $(error The Makefile doesn't support target $(FULL_TARGET), please run fpcmake first)
  253. endif
  254. endif
  255. ifneq ($(filter $(OS_TARGET),$(BSDs)),)
  256. BSDhier=1
  257. endif
  258. ifeq ($(OS_TARGET),linux)
  259. linuxHier=1
  260. endif
  261. ifndef CROSSCOMPILE
  262. BUILDFULLNATIVE=1
  263. export BUILDFULLNATIVE
  264. endif
  265. ifdef BUILDFULLNATIVE
  266. BUILDNATIVE=1
  267. export BUILDNATIVE
  268. endif
  269. export OS_TARGET OS_SOURCE ARCH CPU_TARGET CPU_SOURCE SUB_TARGET SUB_SOURCE FULL_TARGET FULL_SOURCE TARGETSUFFIX SOURCESUFFIX CROSSCOMPILE CPU_OS_TARGET CPU_OS_SOURCE
  270. ifdef FPCDIR
  271. override FPCDIR:=$(subst \,/,$(FPCDIR))
  272. ifeq ($(wildcard $(addprefix $(FPCDIR)/,rtl)),)
  273. override FPCDIR=wrong
  274. endif
  275. else
  276. override FPCDIR=wrong
  277. endif
  278. ifdef DEFAULT_FPCDIR
  279. ifeq ($(FPCDIR),wrong)
  280. override FPCDIR:=$(subst \,/,$(DEFAULT_FPCDIR))
  281. ifeq ($(wildcard $(addprefix $(FPCDIR)/,rtl)),)
  282. override FPCDIR=wrong
  283. endif
  284. endif
  285. endif
  286. ifeq ($(FPCDIR),wrong)
  287. ifdef inUnix
  288. override FPCDIR=/usr/local/lib/fpc/$(FPC_VERSION)
  289. ifeq ($(wildcard $(FPCDIR)/units),)
  290. override FPCDIR=/usr/lib/fpc/$(FPC_VERSION)
  291. endif
  292. else
  293. override FPCDIR:=$(subst /$(FPC),,$(firstword $(strip $(wildcard $(addsuffix /$(FPC),$(SEARCHPATH))))))
  294. override FPCDIR:=$(FPCDIR)/..
  295. ifeq ($(wildcard $(addprefix $(FPCDIR)/,rtl)),)
  296. override FPCDIR:=$(FPCDIR)/..
  297. ifeq ($(wildcard $(addprefix $(FPCDIR)/,rtl)),)
  298. override FPCDIR:=$(BASEDIR)
  299. ifeq ($(wildcard $(addprefix $(FPCDIR)/,rtl)),)
  300. override FPCDIR=c:/pp
  301. endif
  302. endif
  303. endif
  304. endif
  305. endif
  306. ifndef CROSSBINDIR
  307. CROSSBINDIR:=$(wildcard $(FPCDIR)/bin/$(TARGETSUFFIX))
  308. endif
  309. ifneq ($(filter $(OS_TARGET),darwin iphonesim ios),)
  310. ifneq ($(filter $(OS_SOURCE),darwin ios),)
  311. DARWIN2DARWIN=1
  312. endif
  313. endif
  314. ifndef BINUTILSPREFIX
  315. ifndef CROSSBINDIR
  316. ifdef CROSSCOMPILE
  317. ifneq ($(OS_TARGET),msdos)
  318. ifndef DARWIN2DARWIN
  319. ifneq ($(CPU_TARGET),jvm)
  320. BINUTILSPREFIX=$(CPU_TARGET)-$(OS_TARGET)-
  321. ifeq ($(OS_TARGET),android)
  322. ifeq ($(CPU_TARGET),arm)
  323. BINUTILSPREFIX=arm-linux-androideabi-
  324. else
  325. ifeq ($(CPU_TARGET),i386)
  326. BINUTILSPREFIX=i686-linux-android-
  327. else
  328. BINUTILSPREFIX=$(CPU_TARGET)-linux-android-
  329. endif
  330. endif
  331. endif
  332. endif
  333. endif
  334. else
  335. BINUTILSPREFIX=$(OS_TARGET)-
  336. endif
  337. endif
  338. endif
  339. endif
  340. UNITSDIR:=$(wildcard $(FPCDIR)/units/$(TARGETSUFFIX))
  341. ifeq ($(UNITSDIR),)
  342. UNITSDIR:=$(wildcard $(FPCDIR)/units/$(OS_TARGET))
  343. endif
  344. PACKAGESDIR:=$(wildcard $(FPCDIR) $(FPCDIR)/packages)
  345. ifndef FPCFPMAKE
  346. ifdef CROSSCOMPILE
  347. ifeq ($(strip $(wildcard $(addsuffix /compiler/ppc$(SRCEXEEXT),$(FPCDIR)))),)
  348. FPCPROG:=$(strip $(wildcard $(addsuffix /fpc$(SRCEXEEXT),$(SEARCHPATH))))
  349. ifneq ($(FPCPROG),)
  350. FPCPROG:=$(firstword $(FPCPROG))
  351. FPCFPMAKE:=$(shell $(FPCPROG) -PB)
  352. ifeq ($(strip $(wildcard $(FPCFPMAKE))),)
  353. FPCFPMAKE:=$(firstword $(FPCPROG))
  354. endif
  355. else
  356. override FPCFPMAKE=$(firstword $(strip $(wildcard $(addsuffix /ppc386$(SRCEXEEXT),$(SEARCHPATH)))))
  357. endif
  358. else
  359. FPCFPMAKE=$(strip $(wildcard $(addsuffix /compiler/ppc$(SRCEXEEXT),$(FPCDIR))))
  360. FPMAKE_SKIP_CONFIG=-n
  361. export FPCFPMAKE
  362. export FPMAKE_SKIP_CONFIG
  363. endif
  364. else
  365. FPMAKE_SKIP_CONFIG=-n
  366. FPCFPMAKE=$(FPC)
  367. endif
  368. endif
  369. override PACKAGE_NAME=ide
  370. PACKAGEDIR_MAIN:=$(firstword $(subst /Makefile.fpc,,$(strip $(wildcard $(addsuffix /ide/Makefile.fpc,$(PACKAGESDIR))))))
  371. COMPILERDIR=$(FPCDIR)/compiler
  372. ifneq ($(findstring 1.0.2,$(FPC_VERSION)),)
  373. override FPCOPT+=-Ca
  374. endif
  375. ifneq ($(findstring 1.0.4,$(FPC_VERSION)),)
  376. override FPCOPT+=-Ca
  377. endif
  378. ifndef PPC_TARGET
  379. PPC_TARGET=$(CPU_TARGET)
  380. endif
  381. override NOCPUDEF=1
  382. override FPCOPT+= -d$(PPC_TARGET)
  383. override FPCOPT+=-dBrowserCol -dGDB
  384. ifeq ($(PPC_TARGET),i386)
  385. override FPCOPT+= -Fu$(COMPILERDIR)/x86
  386. endif
  387. ifeq ($(PPC_TARGET),x86_64)
  388. override FPCOPT+= -Fu$(COMPILERDIR)/x86 -dNOOPT
  389. endif
  390. ifeq ($(PPC_TARGET),i8086)
  391. override FPCOPT+= -Fu$(COMPILERDIR)/x86
  392. endif
  393. ifeq ($(PPC_TARGET),powerpc)
  394. override FPCOPT+= -Fu$(COMPILERDIR)/ppcgen
  395. endif
  396. ifeq ($(PPC_TARGET),powerpc64)
  397. override FPCOPT+= -Fu$(COMPILERDIR)/ppcgen
  398. endif
  399. ifeq ($(PPC_TARGET),mipsel)
  400. override FPCOPT+= -Fu$(COMPILERDIR)/mips
  401. endif
  402. ifeq ($(PPC_TARGET),sparc)
  403. override FPCOPT+= -Fu$(COMPILERDIR)/sparcgen -Fi$(COMPILERDIR)/sparcgen
  404. endif
  405. ifeq ($(PPC_TARGET),sparc64)
  406. override FPCOPT+= -Fu$(COMPILERDIR)/sparcgen -Fi$(COMPILERDIR)/sparcgen
  407. endif
  408. ifeq ($(PPC_TARGET),wasm32)
  409. override FPCOPT+= -dNOOPT
  410. endif
  411. ifeq ($(PPC_TARGET),riscv32)
  412. override LOCALOPT+=-Furiscv
  413. endif
  414. ifeq ($(PPC_TARGET),riscv64)
  415. override LOCALOPT+=-Furiscv
  416. endif
  417. ifeq ($(CPU_OS_TARGET),i386-linux)
  418. override TARGET_UNITS+=compunit
  419. endif
  420. ifeq ($(CPU_OS_TARGET),i386-go32v2)
  421. override TARGET_UNITS+=compunit
  422. endif
  423. ifeq ($(CPU_OS_TARGET),i386-win32)
  424. override TARGET_UNITS+=compunit
  425. endif
  426. ifeq ($(CPU_OS_TARGET),i386-os2)
  427. override TARGET_UNITS+=compunit
  428. endif
  429. ifeq ($(CPU_OS_TARGET),i386-freebsd)
  430. override TARGET_UNITS+=compunit
  431. endif
  432. ifeq ($(CPU_OS_TARGET),i386-beos)
  433. override TARGET_UNITS+=compunit
  434. endif
  435. ifeq ($(CPU_OS_TARGET),i386-haiku)
  436. override TARGET_UNITS+=compunit
  437. endif
  438. ifeq ($(CPU_OS_TARGET),i386-netbsd)
  439. override TARGET_UNITS+=compunit
  440. endif
  441. ifeq ($(CPU_OS_TARGET),i386-solaris)
  442. override TARGET_UNITS+=compunit
  443. endif
  444. ifeq ($(CPU_OS_TARGET),i386-netware)
  445. override TARGET_UNITS+=compunit
  446. endif
  447. ifeq ($(CPU_OS_TARGET),i386-openbsd)
  448. override TARGET_UNITS+=compunit
  449. endif
  450. ifeq ($(CPU_OS_TARGET),i386-wdosx)
  451. override TARGET_UNITS+=compunit
  452. endif
  453. ifeq ($(CPU_OS_TARGET),i386-darwin)
  454. override TARGET_UNITS+=compunit
  455. endif
  456. ifeq ($(CPU_OS_TARGET),i386-emx)
  457. override TARGET_UNITS+=compunit
  458. endif
  459. ifeq ($(CPU_OS_TARGET),i386-watcom)
  460. override TARGET_UNITS+=compunit
  461. endif
  462. ifeq ($(CPU_OS_TARGET),i386-netwlibc)
  463. override TARGET_UNITS+=compunit
  464. endif
  465. ifeq ($(CPU_OS_TARGET),i386-wince)
  466. override TARGET_UNITS+=compunit
  467. endif
  468. ifeq ($(CPU_OS_TARGET),i386-embedded)
  469. override TARGET_UNITS+=compunit
  470. endif
  471. ifeq ($(CPU_OS_TARGET),i386-symbian)
  472. override TARGET_UNITS+=compunit
  473. endif
  474. ifeq ($(CPU_OS_TARGET),i386-nativent)
  475. override TARGET_UNITS+=compunit
  476. endif
  477. ifeq ($(CPU_OS_TARGET),i386-iphonesim)
  478. override TARGET_UNITS+=compunit
  479. endif
  480. ifeq ($(CPU_OS_TARGET),i386-android)
  481. override TARGET_UNITS+=compunit
  482. endif
  483. ifeq ($(CPU_OS_TARGET),i386-aros)
  484. override TARGET_UNITS+=compunit
  485. endif
  486. ifeq ($(CPU_OS_TARGET),m68k-linux)
  487. override TARGET_UNITS+=compunit
  488. endif
  489. ifeq ($(CPU_OS_TARGET),m68k-netbsd)
  490. override TARGET_UNITS+=compunit
  491. endif
  492. ifeq ($(CPU_OS_TARGET),m68k-amiga)
  493. override TARGET_UNITS+=compunit
  494. endif
  495. ifeq ($(CPU_OS_TARGET),m68k-atari)
  496. override TARGET_UNITS+=compunit
  497. endif
  498. ifeq ($(CPU_OS_TARGET),m68k-palmos)
  499. override TARGET_UNITS+=compunit
  500. endif
  501. ifeq ($(CPU_OS_TARGET),m68k-macosclassic)
  502. override TARGET_UNITS+=compunit
  503. endif
  504. ifeq ($(CPU_OS_TARGET),m68k-embedded)
  505. override TARGET_UNITS+=compunit
  506. endif
  507. ifeq ($(CPU_OS_TARGET),m68k-sinclairql)
  508. override TARGET_UNITS+=compunit
  509. endif
  510. ifeq ($(CPU_OS_TARGET),m68k-human68k)
  511. override TARGET_UNITS+=compunit
  512. endif
  513. ifeq ($(CPU_OS_TARGET),powerpc-linux)
  514. override TARGET_UNITS+=compunit
  515. endif
  516. ifeq ($(CPU_OS_TARGET),powerpc-netbsd)
  517. override TARGET_UNITS+=compunit
  518. endif
  519. ifeq ($(CPU_OS_TARGET),powerpc-amiga)
  520. override TARGET_UNITS+=compunit
  521. endif
  522. ifeq ($(CPU_OS_TARGET),powerpc-macosclassic)
  523. override TARGET_UNITS+=compunit
  524. endif
  525. ifeq ($(CPU_OS_TARGET),powerpc-darwin)
  526. override TARGET_UNITS+=compunit
  527. endif
  528. ifeq ($(CPU_OS_TARGET),powerpc-morphos)
  529. override TARGET_UNITS+=compunit
  530. endif
  531. ifeq ($(CPU_OS_TARGET),powerpc-embedded)
  532. override TARGET_UNITS+=compunit
  533. endif
  534. ifeq ($(CPU_OS_TARGET),powerpc-wii)
  535. override TARGET_UNITS+=compunit
  536. endif
  537. ifeq ($(CPU_OS_TARGET),powerpc-aix)
  538. override TARGET_UNITS+=compunit
  539. endif
  540. ifeq ($(CPU_OS_TARGET),sparc-linux)
  541. override TARGET_UNITS+=compunit
  542. endif
  543. ifeq ($(CPU_OS_TARGET),sparc-netbsd)
  544. override TARGET_UNITS+=compunit
  545. endif
  546. ifeq ($(CPU_OS_TARGET),sparc-solaris)
  547. override TARGET_UNITS+=compunit
  548. endif
  549. ifeq ($(CPU_OS_TARGET),sparc-embedded)
  550. override TARGET_UNITS+=compunit
  551. endif
  552. ifeq ($(CPU_OS_TARGET),x86_64-linux)
  553. override TARGET_UNITS+=compunit
  554. endif
  555. ifeq ($(CPU_OS_TARGET),x86_64-freebsd)
  556. override TARGET_UNITS+=compunit
  557. endif
  558. ifeq ($(CPU_OS_TARGET),x86_64-haiku)
  559. override TARGET_UNITS+=compunit
  560. endif
  561. ifeq ($(CPU_OS_TARGET),x86_64-netbsd)
  562. override TARGET_UNITS+=compunit
  563. endif
  564. ifeq ($(CPU_OS_TARGET),x86_64-solaris)
  565. override TARGET_UNITS+=compunit
  566. endif
  567. ifeq ($(CPU_OS_TARGET),x86_64-openbsd)
  568. override TARGET_UNITS+=compunit
  569. endif
  570. ifeq ($(CPU_OS_TARGET),x86_64-darwin)
  571. override TARGET_UNITS+=compunit
  572. endif
  573. ifeq ($(CPU_OS_TARGET),x86_64-win64)
  574. override TARGET_UNITS+=compunit
  575. endif
  576. ifeq ($(CPU_OS_TARGET),x86_64-embedded)
  577. override TARGET_UNITS+=compunit
  578. endif
  579. ifeq ($(CPU_OS_TARGET),x86_64-iphonesim)
  580. override TARGET_UNITS+=compunit
  581. endif
  582. ifeq ($(CPU_OS_TARGET),x86_64-android)
  583. override TARGET_UNITS+=compunit
  584. endif
  585. ifeq ($(CPU_OS_TARGET),x86_64-aros)
  586. override TARGET_UNITS+=compunit
  587. endif
  588. ifeq ($(CPU_OS_TARGET),x86_64-dragonfly)
  589. override TARGET_UNITS+=compunit
  590. endif
  591. ifeq ($(CPU_OS_TARGET),arm-linux)
  592. override TARGET_UNITS+=compunit
  593. endif
  594. ifeq ($(CPU_OS_TARGET),arm-netbsd)
  595. override TARGET_UNITS+=compunit
  596. endif
  597. ifeq ($(CPU_OS_TARGET),arm-palmos)
  598. override TARGET_UNITS+=compunit
  599. endif
  600. ifeq ($(CPU_OS_TARGET),arm-wince)
  601. override TARGET_UNITS+=compunit
  602. endif
  603. ifeq ($(CPU_OS_TARGET),arm-gba)
  604. override TARGET_UNITS+=compunit
  605. endif
  606. ifeq ($(CPU_OS_TARGET),arm-nds)
  607. override TARGET_UNITS+=compunit
  608. endif
  609. ifeq ($(CPU_OS_TARGET),arm-embedded)
  610. override TARGET_UNITS+=compunit
  611. endif
  612. ifeq ($(CPU_OS_TARGET),arm-symbian)
  613. override TARGET_UNITS+=compunit
  614. endif
  615. ifeq ($(CPU_OS_TARGET),arm-android)
  616. override TARGET_UNITS+=compunit
  617. endif
  618. ifeq ($(CPU_OS_TARGET),arm-aros)
  619. override TARGET_UNITS+=compunit
  620. endif
  621. ifeq ($(CPU_OS_TARGET),arm-freertos)
  622. override TARGET_UNITS+=compunit
  623. endif
  624. ifeq ($(CPU_OS_TARGET),arm-ios)
  625. override TARGET_UNITS+=compunit
  626. endif
  627. ifeq ($(CPU_OS_TARGET),powerpc64-linux)
  628. override TARGET_UNITS+=compunit
  629. endif
  630. ifeq ($(CPU_OS_TARGET),powerpc64-darwin)
  631. override TARGET_UNITS+=compunit
  632. endif
  633. ifeq ($(CPU_OS_TARGET),powerpc64-embedded)
  634. override TARGET_UNITS+=compunit
  635. endif
  636. ifeq ($(CPU_OS_TARGET),powerpc64-aix)
  637. override TARGET_UNITS+=compunit
  638. endif
  639. ifeq ($(CPU_OS_TARGET),avr-embedded)
  640. override TARGET_UNITS+=compunit
  641. endif
  642. ifeq ($(CPU_OS_TARGET),armeb-linux)
  643. override TARGET_UNITS+=compunit
  644. endif
  645. ifeq ($(CPU_OS_TARGET),armeb-embedded)
  646. override TARGET_UNITS+=compunit
  647. endif
  648. ifeq ($(CPU_OS_TARGET),mips-linux)
  649. override TARGET_UNITS+=compunit
  650. endif
  651. ifeq ($(CPU_OS_TARGET),mipsel-linux)
  652. override TARGET_UNITS+=compunit
  653. endif
  654. ifeq ($(CPU_OS_TARGET),mipsel-embedded)
  655. override TARGET_UNITS+=compunit
  656. endif
  657. ifeq ($(CPU_OS_TARGET),mipsel-android)
  658. override TARGET_UNITS+=compunit
  659. endif
  660. ifeq ($(CPU_OS_TARGET),mips64-linux)
  661. override TARGET_UNITS+=compunit
  662. endif
  663. ifeq ($(CPU_OS_TARGET),mips64el-linux)
  664. override TARGET_UNITS+=compunit
  665. endif
  666. ifeq ($(CPU_OS_TARGET),jvm-java)
  667. override TARGET_UNITS+=compunit
  668. endif
  669. ifeq ($(CPU_OS_TARGET),jvm-android)
  670. override TARGET_UNITS+=compunit
  671. endif
  672. ifeq ($(CPU_OS_TARGET),i8086-embedded)
  673. override TARGET_UNITS+=compunit
  674. endif
  675. ifeq ($(CPU_OS_TARGET),i8086-msdos)
  676. override TARGET_UNITS+=compunit
  677. endif
  678. ifeq ($(CPU_OS_TARGET),i8086-win16)
  679. override TARGET_UNITS+=compunit
  680. endif
  681. ifeq ($(CPU_OS_TARGET),aarch64-linux)
  682. override TARGET_UNITS+=compunit
  683. endif
  684. ifeq ($(CPU_OS_TARGET),aarch64-freebsd)
  685. override TARGET_UNITS+=compunit
  686. endif
  687. ifeq ($(CPU_OS_TARGET),aarch64-darwin)
  688. override TARGET_UNITS+=compunit
  689. endif
  690. ifeq ($(CPU_OS_TARGET),aarch64-win64)
  691. override TARGET_UNITS+=compunit
  692. endif
  693. ifeq ($(CPU_OS_TARGET),aarch64-embedded)
  694. override TARGET_UNITS+=compunit
  695. endif
  696. ifeq ($(CPU_OS_TARGET),aarch64-iphonesim)
  697. override TARGET_UNITS+=compunit
  698. endif
  699. ifeq ($(CPU_OS_TARGET),aarch64-android)
  700. override TARGET_UNITS+=compunit
  701. endif
  702. ifeq ($(CPU_OS_TARGET),aarch64-ios)
  703. override TARGET_UNITS+=compunit
  704. endif
  705. ifeq ($(CPU_OS_TARGET),wasm32-embedded)
  706. override TARGET_UNITS+=compunit
  707. endif
  708. ifeq ($(CPU_OS_TARGET),wasm32-wasi)
  709. override TARGET_UNITS+=compunit
  710. endif
  711. ifeq ($(CPU_OS_TARGET),sparc64-linux)
  712. override TARGET_UNITS+=compunit
  713. endif
  714. ifeq ($(CPU_OS_TARGET),riscv32-linux)
  715. override TARGET_UNITS+=compunit
  716. endif
  717. ifeq ($(CPU_OS_TARGET),riscv32-embedded)
  718. override TARGET_UNITS+=compunit
  719. endif
  720. ifeq ($(CPU_OS_TARGET),riscv32-freertos)
  721. override TARGET_UNITS+=compunit
  722. endif
  723. ifeq ($(CPU_OS_TARGET),riscv64-linux)
  724. override TARGET_UNITS+=compunit
  725. endif
  726. ifeq ($(CPU_OS_TARGET),riscv64-embedded)
  727. override TARGET_UNITS+=compunit
  728. endif
  729. ifeq ($(CPU_OS_TARGET),xtensa-linux)
  730. override TARGET_UNITS+=compunit
  731. endif
  732. ifeq ($(CPU_OS_TARGET),xtensa-embedded)
  733. override TARGET_UNITS+=compunit
  734. endif
  735. ifeq ($(CPU_OS_TARGET),xtensa-freertos)
  736. override TARGET_UNITS+=compunit
  737. endif
  738. ifeq ($(CPU_OS_TARGET),z80-embedded)
  739. override TARGET_UNITS+=compunit
  740. endif
  741. ifeq ($(CPU_OS_TARGET),z80-zxspectrum)
  742. override TARGET_UNITS+=compunit
  743. endif
  744. ifeq ($(CPU_OS_TARGET),z80-msxdos)
  745. override TARGET_UNITS+=compunit
  746. endif
  747. ifeq ($(CPU_OS_TARGET),z80-amstradcpc)
  748. override TARGET_UNITS+=compunit
  749. endif
  750. ifeq ($(CPU_OS_TARGET),loongarch64-linux)
  751. override TARGET_UNITS+=compunit
  752. endif
  753. override INSTALL_FPCPACKAGE=y
  754. ifeq ($(CPU_OS_TARGET),i386-linux)
  755. override COMPILER_OPTIONS+=-Ur -dNOCATCH
  756. endif
  757. ifeq ($(CPU_OS_TARGET),i386-go32v2)
  758. override COMPILER_OPTIONS+=-Ur -dNOCATCH
  759. endif
  760. ifeq ($(CPU_OS_TARGET),i386-win32)
  761. override COMPILER_OPTIONS+=-Ur -dNOCATCH
  762. endif
  763. ifeq ($(CPU_OS_TARGET),i386-os2)
  764. override COMPILER_OPTIONS+=-Ur -dNOCATCH
  765. endif
  766. ifeq ($(CPU_OS_TARGET),i386-freebsd)
  767. override COMPILER_OPTIONS+=-Ur -dNOCATCH
  768. endif
  769. ifeq ($(CPU_OS_TARGET),i386-beos)
  770. override COMPILER_OPTIONS+=-Ur -dNOCATCH
  771. endif
  772. ifeq ($(CPU_OS_TARGET),i386-haiku)
  773. override COMPILER_OPTIONS+=-Ur -dNOCATCH
  774. endif
  775. ifeq ($(CPU_OS_TARGET),i386-netbsd)
  776. override COMPILER_OPTIONS+=-Ur -dNOCATCH
  777. endif
  778. ifeq ($(CPU_OS_TARGET),i386-solaris)
  779. override COMPILER_OPTIONS+=-Ur -dNOCATCH
  780. endif
  781. ifeq ($(CPU_OS_TARGET),i386-netware)
  782. override COMPILER_OPTIONS+=-Ur -dNOCATCH
  783. endif
  784. ifeq ($(CPU_OS_TARGET),i386-openbsd)
  785. override COMPILER_OPTIONS+=-Ur -dNOCATCH
  786. endif
  787. ifeq ($(CPU_OS_TARGET),i386-wdosx)
  788. override COMPILER_OPTIONS+=-Ur -dNOCATCH
  789. endif
  790. ifeq ($(CPU_OS_TARGET),i386-darwin)
  791. override COMPILER_OPTIONS+=-Ur -dNOCATCH
  792. endif
  793. ifeq ($(CPU_OS_TARGET),i386-emx)
  794. override COMPILER_OPTIONS+=-Ur -dNOCATCH
  795. endif
  796. ifeq ($(CPU_OS_TARGET),i386-watcom)
  797. override COMPILER_OPTIONS+=-Ur -dNOCATCH
  798. endif
  799. ifeq ($(CPU_OS_TARGET),i386-netwlibc)
  800. override COMPILER_OPTIONS+=-Ur -dNOCATCH
  801. endif
  802. ifeq ($(CPU_OS_TARGET),i386-wince)
  803. override COMPILER_OPTIONS+=-Ur -dNOCATCH
  804. endif
  805. ifeq ($(CPU_OS_TARGET),i386-embedded)
  806. override COMPILER_OPTIONS+=-Ur -dNOCATCH
  807. endif
  808. ifeq ($(CPU_OS_TARGET),i386-symbian)
  809. override COMPILER_OPTIONS+=-Ur -dNOCATCH
  810. endif
  811. ifeq ($(CPU_OS_TARGET),i386-nativent)
  812. override COMPILER_OPTIONS+=-Ur -dNOCATCH
  813. endif
  814. ifeq ($(CPU_OS_TARGET),i386-iphonesim)
  815. override COMPILER_OPTIONS+=-Ur -dNOCATCH
  816. endif
  817. ifeq ($(CPU_OS_TARGET),i386-android)
  818. override COMPILER_OPTIONS+=-Ur -dNOCATCH
  819. endif
  820. ifeq ($(CPU_OS_TARGET),i386-aros)
  821. override COMPILER_OPTIONS+=-Ur -dNOCATCH
  822. endif
  823. ifeq ($(CPU_OS_TARGET),m68k-linux)
  824. override COMPILER_OPTIONS+=-Ur -dNOCATCH
  825. endif
  826. ifeq ($(CPU_OS_TARGET),m68k-netbsd)
  827. override COMPILER_OPTIONS+=-Ur -dNOCATCH
  828. endif
  829. ifeq ($(CPU_OS_TARGET),m68k-amiga)
  830. override COMPILER_OPTIONS+=-Ur -dNOCATCH
  831. endif
  832. ifeq ($(CPU_OS_TARGET),m68k-atari)
  833. override COMPILER_OPTIONS+=-Ur -dNOCATCH
  834. endif
  835. ifeq ($(CPU_OS_TARGET),m68k-palmos)
  836. override COMPILER_OPTIONS+=-Ur -dNOCATCH
  837. endif
  838. ifeq ($(CPU_OS_TARGET),m68k-macosclassic)
  839. override COMPILER_OPTIONS+=-Ur -dNOCATCH
  840. endif
  841. ifeq ($(CPU_OS_TARGET),m68k-embedded)
  842. override COMPILER_OPTIONS+=-Ur -dNOCATCH
  843. endif
  844. ifeq ($(CPU_OS_TARGET),m68k-sinclairql)
  845. override COMPILER_OPTIONS+=-Ur -dNOCATCH
  846. endif
  847. ifeq ($(CPU_OS_TARGET),m68k-human68k)
  848. override COMPILER_OPTIONS+=-Ur -dNOCATCH
  849. endif
  850. ifeq ($(CPU_OS_TARGET),powerpc-linux)
  851. override COMPILER_OPTIONS+=-Ur -dNOCATCH
  852. endif
  853. ifeq ($(CPU_OS_TARGET),powerpc-netbsd)
  854. override COMPILER_OPTIONS+=-Ur -dNOCATCH
  855. endif
  856. ifeq ($(CPU_OS_TARGET),powerpc-amiga)
  857. override COMPILER_OPTIONS+=-Ur -dNOCATCH
  858. endif
  859. ifeq ($(CPU_OS_TARGET),powerpc-macosclassic)
  860. override COMPILER_OPTIONS+=-Ur -dNOCATCH
  861. endif
  862. ifeq ($(CPU_OS_TARGET),powerpc-darwin)
  863. override COMPILER_OPTIONS+=-Ur -dNOCATCH
  864. endif
  865. ifeq ($(CPU_OS_TARGET),powerpc-morphos)
  866. override COMPILER_OPTIONS+=-Ur -dNOCATCH
  867. endif
  868. ifeq ($(CPU_OS_TARGET),powerpc-embedded)
  869. override COMPILER_OPTIONS+=-Ur -dNOCATCH
  870. endif
  871. ifeq ($(CPU_OS_TARGET),powerpc-wii)
  872. override COMPILER_OPTIONS+=-Ur -dNOCATCH
  873. endif
  874. ifeq ($(CPU_OS_TARGET),powerpc-aix)
  875. override COMPILER_OPTIONS+=-Ur -dNOCATCH
  876. endif
  877. ifeq ($(CPU_OS_TARGET),sparc-linux)
  878. override COMPILER_OPTIONS+=-Ur -dNOCATCH
  879. endif
  880. ifeq ($(CPU_OS_TARGET),sparc-netbsd)
  881. override COMPILER_OPTIONS+=-Ur -dNOCATCH
  882. endif
  883. ifeq ($(CPU_OS_TARGET),sparc-solaris)
  884. override COMPILER_OPTIONS+=-Ur -dNOCATCH
  885. endif
  886. ifeq ($(CPU_OS_TARGET),sparc-embedded)
  887. override COMPILER_OPTIONS+=-Ur -dNOCATCH
  888. endif
  889. ifeq ($(CPU_OS_TARGET),x86_64-linux)
  890. override COMPILER_OPTIONS+=-Ur -dNOCATCH
  891. endif
  892. ifeq ($(CPU_OS_TARGET),x86_64-freebsd)
  893. override COMPILER_OPTIONS+=-Ur -dNOCATCH
  894. endif
  895. ifeq ($(CPU_OS_TARGET),x86_64-haiku)
  896. override COMPILER_OPTIONS+=-Ur -dNOCATCH
  897. endif
  898. ifeq ($(CPU_OS_TARGET),x86_64-netbsd)
  899. override COMPILER_OPTIONS+=-Ur -dNOCATCH
  900. endif
  901. ifeq ($(CPU_OS_TARGET),x86_64-solaris)
  902. override COMPILER_OPTIONS+=-Ur -dNOCATCH
  903. endif
  904. ifeq ($(CPU_OS_TARGET),x86_64-openbsd)
  905. override COMPILER_OPTIONS+=-Ur -dNOCATCH
  906. endif
  907. ifeq ($(CPU_OS_TARGET),x86_64-darwin)
  908. override COMPILER_OPTIONS+=-Ur -dNOCATCH
  909. endif
  910. ifeq ($(CPU_OS_TARGET),x86_64-win64)
  911. override COMPILER_OPTIONS+=-Ur -dNOCATCH
  912. endif
  913. ifeq ($(CPU_OS_TARGET),x86_64-embedded)
  914. override COMPILER_OPTIONS+=-Ur -dNOCATCH
  915. endif
  916. ifeq ($(CPU_OS_TARGET),x86_64-iphonesim)
  917. override COMPILER_OPTIONS+=-Ur -dNOCATCH
  918. endif
  919. ifeq ($(CPU_OS_TARGET),x86_64-android)
  920. override COMPILER_OPTIONS+=-Ur -dNOCATCH
  921. endif
  922. ifeq ($(CPU_OS_TARGET),x86_64-aros)
  923. override COMPILER_OPTIONS+=-Ur -dNOCATCH
  924. endif
  925. ifeq ($(CPU_OS_TARGET),x86_64-dragonfly)
  926. override COMPILER_OPTIONS+=-Ur -dNOCATCH
  927. endif
  928. ifeq ($(CPU_OS_TARGET),arm-linux)
  929. override COMPILER_OPTIONS+=-Ur -dNOCATCH
  930. endif
  931. ifeq ($(CPU_OS_TARGET),arm-netbsd)
  932. override COMPILER_OPTIONS+=-Ur -dNOCATCH
  933. endif
  934. ifeq ($(CPU_OS_TARGET),arm-palmos)
  935. override COMPILER_OPTIONS+=-Ur -dNOCATCH
  936. endif
  937. ifeq ($(CPU_OS_TARGET),arm-wince)
  938. override COMPILER_OPTIONS+=-Ur -dNOCATCH
  939. endif
  940. ifeq ($(CPU_OS_TARGET),arm-gba)
  941. override COMPILER_OPTIONS+=-Ur -dNOCATCH
  942. endif
  943. ifeq ($(CPU_OS_TARGET),arm-nds)
  944. override COMPILER_OPTIONS+=-Ur -dNOCATCH
  945. endif
  946. ifeq ($(CPU_OS_TARGET),arm-embedded)
  947. override COMPILER_OPTIONS+=-Ur -dNOCATCH
  948. endif
  949. ifeq ($(CPU_OS_TARGET),arm-symbian)
  950. override COMPILER_OPTIONS+=-Ur -dNOCATCH
  951. endif
  952. ifeq ($(CPU_OS_TARGET),arm-android)
  953. override COMPILER_OPTIONS+=-Ur -dNOCATCH
  954. endif
  955. ifeq ($(CPU_OS_TARGET),arm-aros)
  956. override COMPILER_OPTIONS+=-Ur -dNOCATCH
  957. endif
  958. ifeq ($(CPU_OS_TARGET),arm-freertos)
  959. override COMPILER_OPTIONS+=-Ur -dNOCATCH
  960. endif
  961. ifeq ($(CPU_OS_TARGET),arm-ios)
  962. override COMPILER_OPTIONS+=-Ur -dNOCATCH
  963. endif
  964. ifeq ($(CPU_OS_TARGET),powerpc64-linux)
  965. override COMPILER_OPTIONS+=-Ur -dNOCATCH
  966. endif
  967. ifeq ($(CPU_OS_TARGET),powerpc64-darwin)
  968. override COMPILER_OPTIONS+=-Ur -dNOCATCH
  969. endif
  970. ifeq ($(CPU_OS_TARGET),powerpc64-embedded)
  971. override COMPILER_OPTIONS+=-Ur -dNOCATCH
  972. endif
  973. ifeq ($(CPU_OS_TARGET),powerpc64-aix)
  974. override COMPILER_OPTIONS+=-Ur -dNOCATCH
  975. endif
  976. ifeq ($(CPU_OS_TARGET),avr-embedded)
  977. override COMPILER_OPTIONS+=-Ur -dNOCATCH
  978. endif
  979. ifeq ($(CPU_OS_TARGET),armeb-linux)
  980. override COMPILER_OPTIONS+=-Ur -dNOCATCH
  981. endif
  982. ifeq ($(CPU_OS_TARGET),armeb-embedded)
  983. override COMPILER_OPTIONS+=-Ur -dNOCATCH
  984. endif
  985. ifeq ($(CPU_OS_TARGET),mips-linux)
  986. override COMPILER_OPTIONS+=-Ur -dNOCATCH
  987. endif
  988. ifeq ($(CPU_OS_TARGET),mipsel-linux)
  989. override COMPILER_OPTIONS+=-Ur -dNOCATCH
  990. endif
  991. ifeq ($(CPU_OS_TARGET),mipsel-embedded)
  992. override COMPILER_OPTIONS+=-Ur -dNOCATCH
  993. endif
  994. ifeq ($(CPU_OS_TARGET),mipsel-android)
  995. override COMPILER_OPTIONS+=-Ur -dNOCATCH
  996. endif
  997. ifeq ($(CPU_OS_TARGET),mips64-linux)
  998. override COMPILER_OPTIONS+=-Ur -dNOCATCH
  999. endif
  1000. ifeq ($(CPU_OS_TARGET),mips64el-linux)
  1001. override COMPILER_OPTIONS+=-Ur -dNOCATCH
  1002. endif
  1003. ifeq ($(CPU_OS_TARGET),jvm-java)
  1004. override COMPILER_OPTIONS+=-Ur -dNOCATCH
  1005. endif
  1006. ifeq ($(CPU_OS_TARGET),jvm-android)
  1007. override COMPILER_OPTIONS+=-Ur -dNOCATCH
  1008. endif
  1009. ifeq ($(CPU_OS_TARGET),i8086-embedded)
  1010. override COMPILER_OPTIONS+=-Ur -dNOCATCH
  1011. endif
  1012. ifeq ($(CPU_OS_TARGET),i8086-msdos)
  1013. override COMPILER_OPTIONS+=-Ur -dNOCATCH
  1014. endif
  1015. ifeq ($(CPU_OS_TARGET),i8086-win16)
  1016. override COMPILER_OPTIONS+=-Ur -dNOCATCH
  1017. endif
  1018. ifeq ($(CPU_OS_TARGET),aarch64-linux)
  1019. override COMPILER_OPTIONS+=-Ur -dNOCATCH
  1020. endif
  1021. ifeq ($(CPU_OS_TARGET),aarch64-freebsd)
  1022. override COMPILER_OPTIONS+=-Ur -dNOCATCH
  1023. endif
  1024. ifeq ($(CPU_OS_TARGET),aarch64-darwin)
  1025. override COMPILER_OPTIONS+=-Ur -dNOCATCH
  1026. endif
  1027. ifeq ($(CPU_OS_TARGET),aarch64-win64)
  1028. override COMPILER_OPTIONS+=-Ur -dNOCATCH
  1029. endif
  1030. ifeq ($(CPU_OS_TARGET),aarch64-embedded)
  1031. override COMPILER_OPTIONS+=-Ur -dNOCATCH
  1032. endif
  1033. ifeq ($(CPU_OS_TARGET),aarch64-iphonesim)
  1034. override COMPILER_OPTIONS+=-Ur -dNOCATCH
  1035. endif
  1036. ifeq ($(CPU_OS_TARGET),aarch64-android)
  1037. override COMPILER_OPTIONS+=-Ur -dNOCATCH
  1038. endif
  1039. ifeq ($(CPU_OS_TARGET),aarch64-ios)
  1040. override COMPILER_OPTIONS+=-Ur -dNOCATCH
  1041. endif
  1042. ifeq ($(CPU_OS_TARGET),wasm32-embedded)
  1043. override COMPILER_OPTIONS+=-Ur -dNOCATCH
  1044. endif
  1045. ifeq ($(CPU_OS_TARGET),wasm32-wasi)
  1046. override COMPILER_OPTIONS+=-Ur -dNOCATCH
  1047. endif
  1048. ifeq ($(CPU_OS_TARGET),sparc64-linux)
  1049. override COMPILER_OPTIONS+=-Ur -dNOCATCH
  1050. endif
  1051. ifeq ($(CPU_OS_TARGET),riscv32-linux)
  1052. override COMPILER_OPTIONS+=-Ur -dNOCATCH
  1053. endif
  1054. ifeq ($(CPU_OS_TARGET),riscv32-embedded)
  1055. override COMPILER_OPTIONS+=-Ur -dNOCATCH
  1056. endif
  1057. ifeq ($(CPU_OS_TARGET),riscv32-freertos)
  1058. override COMPILER_OPTIONS+=-Ur -dNOCATCH
  1059. endif
  1060. ifeq ($(CPU_OS_TARGET),riscv64-linux)
  1061. override COMPILER_OPTIONS+=-Ur -dNOCATCH
  1062. endif
  1063. ifeq ($(CPU_OS_TARGET),riscv64-embedded)
  1064. override COMPILER_OPTIONS+=-Ur -dNOCATCH
  1065. endif
  1066. ifeq ($(CPU_OS_TARGET),xtensa-linux)
  1067. override COMPILER_OPTIONS+=-Ur -dNOCATCH
  1068. endif
  1069. ifeq ($(CPU_OS_TARGET),xtensa-embedded)
  1070. override COMPILER_OPTIONS+=-Ur -dNOCATCH
  1071. endif
  1072. ifeq ($(CPU_OS_TARGET),xtensa-freertos)
  1073. override COMPILER_OPTIONS+=-Ur -dNOCATCH
  1074. endif
  1075. ifeq ($(CPU_OS_TARGET),z80-embedded)
  1076. override COMPILER_OPTIONS+=-Ur -dNOCATCH
  1077. endif
  1078. ifeq ($(CPU_OS_TARGET),z80-zxspectrum)
  1079. override COMPILER_OPTIONS+=-Ur -dNOCATCH
  1080. endif
  1081. ifeq ($(CPU_OS_TARGET),z80-msxdos)
  1082. override COMPILER_OPTIONS+=-Ur -dNOCATCH
  1083. endif
  1084. ifeq ($(CPU_OS_TARGET),z80-amstradcpc)
  1085. override COMPILER_OPTIONS+=-Ur -dNOCATCH
  1086. endif
  1087. ifeq ($(CPU_OS_TARGET),loongarch64-linux)
  1088. override COMPILER_OPTIONS+=-Ur -dNOCATCH
  1089. endif
  1090. ifeq ($(CPU_OS_TARGET),i386-linux)
  1091. override COMPILER_INCLUDEDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET)
  1092. endif
  1093. ifeq ($(CPU_OS_TARGET),i386-go32v2)
  1094. override COMPILER_INCLUDEDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET)
  1095. endif
  1096. ifeq ($(CPU_OS_TARGET),i386-win32)
  1097. override COMPILER_INCLUDEDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET)
  1098. endif
  1099. ifeq ($(CPU_OS_TARGET),i386-os2)
  1100. override COMPILER_INCLUDEDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET)
  1101. endif
  1102. ifeq ($(CPU_OS_TARGET),i386-freebsd)
  1103. override COMPILER_INCLUDEDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET)
  1104. endif
  1105. ifeq ($(CPU_OS_TARGET),i386-beos)
  1106. override COMPILER_INCLUDEDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET)
  1107. endif
  1108. ifeq ($(CPU_OS_TARGET),i386-haiku)
  1109. override COMPILER_INCLUDEDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET)
  1110. endif
  1111. ifeq ($(CPU_OS_TARGET),i386-netbsd)
  1112. override COMPILER_INCLUDEDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET)
  1113. endif
  1114. ifeq ($(CPU_OS_TARGET),i386-solaris)
  1115. override COMPILER_INCLUDEDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET)
  1116. endif
  1117. ifeq ($(CPU_OS_TARGET),i386-netware)
  1118. override COMPILER_INCLUDEDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET)
  1119. endif
  1120. ifeq ($(CPU_OS_TARGET),i386-openbsd)
  1121. override COMPILER_INCLUDEDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET)
  1122. endif
  1123. ifeq ($(CPU_OS_TARGET),i386-wdosx)
  1124. override COMPILER_INCLUDEDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET)
  1125. endif
  1126. ifeq ($(CPU_OS_TARGET),i386-darwin)
  1127. override COMPILER_INCLUDEDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET)
  1128. endif
  1129. ifeq ($(CPU_OS_TARGET),i386-emx)
  1130. override COMPILER_INCLUDEDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET)
  1131. endif
  1132. ifeq ($(CPU_OS_TARGET),i386-watcom)
  1133. override COMPILER_INCLUDEDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET)
  1134. endif
  1135. ifeq ($(CPU_OS_TARGET),i386-netwlibc)
  1136. override COMPILER_INCLUDEDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET)
  1137. endif
  1138. ifeq ($(CPU_OS_TARGET),i386-wince)
  1139. override COMPILER_INCLUDEDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET)
  1140. endif
  1141. ifeq ($(CPU_OS_TARGET),i386-embedded)
  1142. override COMPILER_INCLUDEDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET)
  1143. endif
  1144. ifeq ($(CPU_OS_TARGET),i386-symbian)
  1145. override COMPILER_INCLUDEDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET)
  1146. endif
  1147. ifeq ($(CPU_OS_TARGET),i386-nativent)
  1148. override COMPILER_INCLUDEDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET)
  1149. endif
  1150. ifeq ($(CPU_OS_TARGET),i386-iphonesim)
  1151. override COMPILER_INCLUDEDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET)
  1152. endif
  1153. ifeq ($(CPU_OS_TARGET),i386-android)
  1154. override COMPILER_INCLUDEDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET)
  1155. endif
  1156. ifeq ($(CPU_OS_TARGET),i386-aros)
  1157. override COMPILER_INCLUDEDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET)
  1158. endif
  1159. ifeq ($(CPU_OS_TARGET),m68k-linux)
  1160. override COMPILER_INCLUDEDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET)
  1161. endif
  1162. ifeq ($(CPU_OS_TARGET),m68k-netbsd)
  1163. override COMPILER_INCLUDEDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET)
  1164. endif
  1165. ifeq ($(CPU_OS_TARGET),m68k-amiga)
  1166. override COMPILER_INCLUDEDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET)
  1167. endif
  1168. ifeq ($(CPU_OS_TARGET),m68k-atari)
  1169. override COMPILER_INCLUDEDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET)
  1170. endif
  1171. ifeq ($(CPU_OS_TARGET),m68k-palmos)
  1172. override COMPILER_INCLUDEDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET)
  1173. endif
  1174. ifeq ($(CPU_OS_TARGET),m68k-macosclassic)
  1175. override COMPILER_INCLUDEDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET)
  1176. endif
  1177. ifeq ($(CPU_OS_TARGET),m68k-embedded)
  1178. override COMPILER_INCLUDEDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET)
  1179. endif
  1180. ifeq ($(CPU_OS_TARGET),m68k-sinclairql)
  1181. override COMPILER_INCLUDEDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET)
  1182. endif
  1183. ifeq ($(CPU_OS_TARGET),m68k-human68k)
  1184. override COMPILER_INCLUDEDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET)
  1185. endif
  1186. ifeq ($(CPU_OS_TARGET),powerpc-linux)
  1187. override COMPILER_INCLUDEDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET)
  1188. endif
  1189. ifeq ($(CPU_OS_TARGET),powerpc-netbsd)
  1190. override COMPILER_INCLUDEDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET)
  1191. endif
  1192. ifeq ($(CPU_OS_TARGET),powerpc-amiga)
  1193. override COMPILER_INCLUDEDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET)
  1194. endif
  1195. ifeq ($(CPU_OS_TARGET),powerpc-macosclassic)
  1196. override COMPILER_INCLUDEDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET)
  1197. endif
  1198. ifeq ($(CPU_OS_TARGET),powerpc-darwin)
  1199. override COMPILER_INCLUDEDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET)
  1200. endif
  1201. ifeq ($(CPU_OS_TARGET),powerpc-morphos)
  1202. override COMPILER_INCLUDEDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET)
  1203. endif
  1204. ifeq ($(CPU_OS_TARGET),powerpc-embedded)
  1205. override COMPILER_INCLUDEDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET)
  1206. endif
  1207. ifeq ($(CPU_OS_TARGET),powerpc-wii)
  1208. override COMPILER_INCLUDEDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET)
  1209. endif
  1210. ifeq ($(CPU_OS_TARGET),powerpc-aix)
  1211. override COMPILER_INCLUDEDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET)
  1212. endif
  1213. ifeq ($(CPU_OS_TARGET),sparc-linux)
  1214. override COMPILER_INCLUDEDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET)
  1215. endif
  1216. ifeq ($(CPU_OS_TARGET),sparc-netbsd)
  1217. override COMPILER_INCLUDEDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET)
  1218. endif
  1219. ifeq ($(CPU_OS_TARGET),sparc-solaris)
  1220. override COMPILER_INCLUDEDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET)
  1221. endif
  1222. ifeq ($(CPU_OS_TARGET),sparc-embedded)
  1223. override COMPILER_INCLUDEDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET)
  1224. endif
  1225. ifeq ($(CPU_OS_TARGET),x86_64-linux)
  1226. override COMPILER_INCLUDEDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET)
  1227. endif
  1228. ifeq ($(CPU_OS_TARGET),x86_64-freebsd)
  1229. override COMPILER_INCLUDEDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET)
  1230. endif
  1231. ifeq ($(CPU_OS_TARGET),x86_64-haiku)
  1232. override COMPILER_INCLUDEDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET)
  1233. endif
  1234. ifeq ($(CPU_OS_TARGET),x86_64-netbsd)
  1235. override COMPILER_INCLUDEDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET)
  1236. endif
  1237. ifeq ($(CPU_OS_TARGET),x86_64-solaris)
  1238. override COMPILER_INCLUDEDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET)
  1239. endif
  1240. ifeq ($(CPU_OS_TARGET),x86_64-openbsd)
  1241. override COMPILER_INCLUDEDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET)
  1242. endif
  1243. ifeq ($(CPU_OS_TARGET),x86_64-darwin)
  1244. override COMPILER_INCLUDEDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET)
  1245. endif
  1246. ifeq ($(CPU_OS_TARGET),x86_64-win64)
  1247. override COMPILER_INCLUDEDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET)
  1248. endif
  1249. ifeq ($(CPU_OS_TARGET),x86_64-embedded)
  1250. override COMPILER_INCLUDEDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET)
  1251. endif
  1252. ifeq ($(CPU_OS_TARGET),x86_64-iphonesim)
  1253. override COMPILER_INCLUDEDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET)
  1254. endif
  1255. ifeq ($(CPU_OS_TARGET),x86_64-android)
  1256. override COMPILER_INCLUDEDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET)
  1257. endif
  1258. ifeq ($(CPU_OS_TARGET),x86_64-aros)
  1259. override COMPILER_INCLUDEDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET)
  1260. endif
  1261. ifeq ($(CPU_OS_TARGET),x86_64-dragonfly)
  1262. override COMPILER_INCLUDEDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET)
  1263. endif
  1264. ifeq ($(CPU_OS_TARGET),arm-linux)
  1265. override COMPILER_INCLUDEDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET)
  1266. endif
  1267. ifeq ($(CPU_OS_TARGET),arm-netbsd)
  1268. override COMPILER_INCLUDEDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET)
  1269. endif
  1270. ifeq ($(CPU_OS_TARGET),arm-palmos)
  1271. override COMPILER_INCLUDEDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET)
  1272. endif
  1273. ifeq ($(CPU_OS_TARGET),arm-wince)
  1274. override COMPILER_INCLUDEDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET)
  1275. endif
  1276. ifeq ($(CPU_OS_TARGET),arm-gba)
  1277. override COMPILER_INCLUDEDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET)
  1278. endif
  1279. ifeq ($(CPU_OS_TARGET),arm-nds)
  1280. override COMPILER_INCLUDEDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET)
  1281. endif
  1282. ifeq ($(CPU_OS_TARGET),arm-embedded)
  1283. override COMPILER_INCLUDEDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET)
  1284. endif
  1285. ifeq ($(CPU_OS_TARGET),arm-symbian)
  1286. override COMPILER_INCLUDEDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET)
  1287. endif
  1288. ifeq ($(CPU_OS_TARGET),arm-android)
  1289. override COMPILER_INCLUDEDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET)
  1290. endif
  1291. ifeq ($(CPU_OS_TARGET),arm-aros)
  1292. override COMPILER_INCLUDEDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET)
  1293. endif
  1294. ifeq ($(CPU_OS_TARGET),arm-freertos)
  1295. override COMPILER_INCLUDEDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET)
  1296. endif
  1297. ifeq ($(CPU_OS_TARGET),arm-ios)
  1298. override COMPILER_INCLUDEDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET)
  1299. endif
  1300. ifeq ($(CPU_OS_TARGET),powerpc64-linux)
  1301. override COMPILER_INCLUDEDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET)
  1302. endif
  1303. ifeq ($(CPU_OS_TARGET),powerpc64-darwin)
  1304. override COMPILER_INCLUDEDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET)
  1305. endif
  1306. ifeq ($(CPU_OS_TARGET),powerpc64-embedded)
  1307. override COMPILER_INCLUDEDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET)
  1308. endif
  1309. ifeq ($(CPU_OS_TARGET),powerpc64-aix)
  1310. override COMPILER_INCLUDEDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET)
  1311. endif
  1312. ifeq ($(CPU_OS_TARGET),avr-embedded)
  1313. override COMPILER_INCLUDEDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET)
  1314. endif
  1315. ifeq ($(CPU_OS_TARGET),armeb-linux)
  1316. override COMPILER_INCLUDEDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET)
  1317. endif
  1318. ifeq ($(CPU_OS_TARGET),armeb-embedded)
  1319. override COMPILER_INCLUDEDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET)
  1320. endif
  1321. ifeq ($(CPU_OS_TARGET),mips-linux)
  1322. override COMPILER_INCLUDEDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET)
  1323. endif
  1324. ifeq ($(CPU_OS_TARGET),mipsel-linux)
  1325. override COMPILER_INCLUDEDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET)
  1326. endif
  1327. ifeq ($(CPU_OS_TARGET),mipsel-embedded)
  1328. override COMPILER_INCLUDEDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET)
  1329. endif
  1330. ifeq ($(CPU_OS_TARGET),mipsel-android)
  1331. override COMPILER_INCLUDEDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET)
  1332. endif
  1333. ifeq ($(CPU_OS_TARGET),mips64-linux)
  1334. override COMPILER_INCLUDEDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET)
  1335. endif
  1336. ifeq ($(CPU_OS_TARGET),mips64el-linux)
  1337. override COMPILER_INCLUDEDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET)
  1338. endif
  1339. ifeq ($(CPU_OS_TARGET),jvm-java)
  1340. override COMPILER_INCLUDEDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET)
  1341. endif
  1342. ifeq ($(CPU_OS_TARGET),jvm-android)
  1343. override COMPILER_INCLUDEDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET)
  1344. endif
  1345. ifeq ($(CPU_OS_TARGET),i8086-embedded)
  1346. override COMPILER_INCLUDEDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET)
  1347. endif
  1348. ifeq ($(CPU_OS_TARGET),i8086-msdos)
  1349. override COMPILER_INCLUDEDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET)
  1350. endif
  1351. ifeq ($(CPU_OS_TARGET),i8086-win16)
  1352. override COMPILER_INCLUDEDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET)
  1353. endif
  1354. ifeq ($(CPU_OS_TARGET),aarch64-linux)
  1355. override COMPILER_INCLUDEDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET)
  1356. endif
  1357. ifeq ($(CPU_OS_TARGET),aarch64-freebsd)
  1358. override COMPILER_INCLUDEDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET)
  1359. endif
  1360. ifeq ($(CPU_OS_TARGET),aarch64-darwin)
  1361. override COMPILER_INCLUDEDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET)
  1362. endif
  1363. ifeq ($(CPU_OS_TARGET),aarch64-win64)
  1364. override COMPILER_INCLUDEDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET)
  1365. endif
  1366. ifeq ($(CPU_OS_TARGET),aarch64-embedded)
  1367. override COMPILER_INCLUDEDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET)
  1368. endif
  1369. ifeq ($(CPU_OS_TARGET),aarch64-iphonesim)
  1370. override COMPILER_INCLUDEDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET)
  1371. endif
  1372. ifeq ($(CPU_OS_TARGET),aarch64-android)
  1373. override COMPILER_INCLUDEDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET)
  1374. endif
  1375. ifeq ($(CPU_OS_TARGET),aarch64-ios)
  1376. override COMPILER_INCLUDEDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET)
  1377. endif
  1378. ifeq ($(CPU_OS_TARGET),wasm32-embedded)
  1379. override COMPILER_INCLUDEDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET)
  1380. endif
  1381. ifeq ($(CPU_OS_TARGET),wasm32-wasi)
  1382. override COMPILER_INCLUDEDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET)
  1383. endif
  1384. ifeq ($(CPU_OS_TARGET),sparc64-linux)
  1385. override COMPILER_INCLUDEDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET)
  1386. endif
  1387. ifeq ($(CPU_OS_TARGET),riscv32-linux)
  1388. override COMPILER_INCLUDEDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET)
  1389. endif
  1390. ifeq ($(CPU_OS_TARGET),riscv32-embedded)
  1391. override COMPILER_INCLUDEDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET)
  1392. endif
  1393. ifeq ($(CPU_OS_TARGET),riscv32-freertos)
  1394. override COMPILER_INCLUDEDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET)
  1395. endif
  1396. ifeq ($(CPU_OS_TARGET),riscv64-linux)
  1397. override COMPILER_INCLUDEDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET)
  1398. endif
  1399. ifeq ($(CPU_OS_TARGET),riscv64-embedded)
  1400. override COMPILER_INCLUDEDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET)
  1401. endif
  1402. ifeq ($(CPU_OS_TARGET),xtensa-linux)
  1403. override COMPILER_INCLUDEDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET)
  1404. endif
  1405. ifeq ($(CPU_OS_TARGET),xtensa-embedded)
  1406. override COMPILER_INCLUDEDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET)
  1407. endif
  1408. ifeq ($(CPU_OS_TARGET),xtensa-freertos)
  1409. override COMPILER_INCLUDEDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET)
  1410. endif
  1411. ifeq ($(CPU_OS_TARGET),z80-embedded)
  1412. override COMPILER_INCLUDEDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET)
  1413. endif
  1414. ifeq ($(CPU_OS_TARGET),z80-zxspectrum)
  1415. override COMPILER_INCLUDEDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET)
  1416. endif
  1417. ifeq ($(CPU_OS_TARGET),z80-msxdos)
  1418. override COMPILER_INCLUDEDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET)
  1419. endif
  1420. ifeq ($(CPU_OS_TARGET),z80-amstradcpc)
  1421. override COMPILER_INCLUDEDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET)
  1422. endif
  1423. ifeq ($(CPU_OS_TARGET),loongarch64-linux)
  1424. override COMPILER_INCLUDEDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET)
  1425. endif
  1426. ifeq ($(CPU_OS_TARGET),i386-linux)
  1427. override COMPILER_UNITDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET) $(COMPILERDIR)/targets $(COMPILERDIR)/systems
  1428. endif
  1429. ifeq ($(CPU_OS_TARGET),i386-go32v2)
  1430. override COMPILER_UNITDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET) $(COMPILERDIR)/targets $(COMPILERDIR)/systems
  1431. endif
  1432. ifeq ($(CPU_OS_TARGET),i386-win32)
  1433. override COMPILER_UNITDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET) $(COMPILERDIR)/targets $(COMPILERDIR)/systems
  1434. endif
  1435. ifeq ($(CPU_OS_TARGET),i386-os2)
  1436. override COMPILER_UNITDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET) $(COMPILERDIR)/targets $(COMPILERDIR)/systems
  1437. endif
  1438. ifeq ($(CPU_OS_TARGET),i386-freebsd)
  1439. override COMPILER_UNITDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET) $(COMPILERDIR)/targets $(COMPILERDIR)/systems
  1440. endif
  1441. ifeq ($(CPU_OS_TARGET),i386-beos)
  1442. override COMPILER_UNITDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET) $(COMPILERDIR)/targets $(COMPILERDIR)/systems
  1443. endif
  1444. ifeq ($(CPU_OS_TARGET),i386-haiku)
  1445. override COMPILER_UNITDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET) $(COMPILERDIR)/targets $(COMPILERDIR)/systems
  1446. endif
  1447. ifeq ($(CPU_OS_TARGET),i386-netbsd)
  1448. override COMPILER_UNITDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET) $(COMPILERDIR)/targets $(COMPILERDIR)/systems
  1449. endif
  1450. ifeq ($(CPU_OS_TARGET),i386-solaris)
  1451. override COMPILER_UNITDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET) $(COMPILERDIR)/targets $(COMPILERDIR)/systems
  1452. endif
  1453. ifeq ($(CPU_OS_TARGET),i386-netware)
  1454. override COMPILER_UNITDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET) $(COMPILERDIR)/targets $(COMPILERDIR)/systems
  1455. endif
  1456. ifeq ($(CPU_OS_TARGET),i386-openbsd)
  1457. override COMPILER_UNITDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET) $(COMPILERDIR)/targets $(COMPILERDIR)/systems
  1458. endif
  1459. ifeq ($(CPU_OS_TARGET),i386-wdosx)
  1460. override COMPILER_UNITDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET) $(COMPILERDIR)/targets $(COMPILERDIR)/systems
  1461. endif
  1462. ifeq ($(CPU_OS_TARGET),i386-darwin)
  1463. override COMPILER_UNITDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET) $(COMPILERDIR)/targets $(COMPILERDIR)/systems
  1464. endif
  1465. ifeq ($(CPU_OS_TARGET),i386-emx)
  1466. override COMPILER_UNITDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET) $(COMPILERDIR)/targets $(COMPILERDIR)/systems
  1467. endif
  1468. ifeq ($(CPU_OS_TARGET),i386-watcom)
  1469. override COMPILER_UNITDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET) $(COMPILERDIR)/targets $(COMPILERDIR)/systems
  1470. endif
  1471. ifeq ($(CPU_OS_TARGET),i386-netwlibc)
  1472. override COMPILER_UNITDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET) $(COMPILERDIR)/targets $(COMPILERDIR)/systems
  1473. endif
  1474. ifeq ($(CPU_OS_TARGET),i386-wince)
  1475. override COMPILER_UNITDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET) $(COMPILERDIR)/targets $(COMPILERDIR)/systems
  1476. endif
  1477. ifeq ($(CPU_OS_TARGET),i386-embedded)
  1478. override COMPILER_UNITDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET) $(COMPILERDIR)/targets $(COMPILERDIR)/systems
  1479. endif
  1480. ifeq ($(CPU_OS_TARGET),i386-symbian)
  1481. override COMPILER_UNITDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET) $(COMPILERDIR)/targets $(COMPILERDIR)/systems
  1482. endif
  1483. ifeq ($(CPU_OS_TARGET),i386-nativent)
  1484. override COMPILER_UNITDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET) $(COMPILERDIR)/targets $(COMPILERDIR)/systems
  1485. endif
  1486. ifeq ($(CPU_OS_TARGET),i386-iphonesim)
  1487. override COMPILER_UNITDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET) $(COMPILERDIR)/targets $(COMPILERDIR)/systems
  1488. endif
  1489. ifeq ($(CPU_OS_TARGET),i386-android)
  1490. override COMPILER_UNITDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET) $(COMPILERDIR)/targets $(COMPILERDIR)/systems
  1491. endif
  1492. ifeq ($(CPU_OS_TARGET),i386-aros)
  1493. override COMPILER_UNITDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET) $(COMPILERDIR)/targets $(COMPILERDIR)/systems
  1494. endif
  1495. ifeq ($(CPU_OS_TARGET),m68k-linux)
  1496. override COMPILER_UNITDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET) $(COMPILERDIR)/targets $(COMPILERDIR)/systems
  1497. endif
  1498. ifeq ($(CPU_OS_TARGET),m68k-netbsd)
  1499. override COMPILER_UNITDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET) $(COMPILERDIR)/targets $(COMPILERDIR)/systems
  1500. endif
  1501. ifeq ($(CPU_OS_TARGET),m68k-amiga)
  1502. override COMPILER_UNITDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET) $(COMPILERDIR)/targets $(COMPILERDIR)/systems
  1503. endif
  1504. ifeq ($(CPU_OS_TARGET),m68k-atari)
  1505. override COMPILER_UNITDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET) $(COMPILERDIR)/targets $(COMPILERDIR)/systems
  1506. endif
  1507. ifeq ($(CPU_OS_TARGET),m68k-palmos)
  1508. override COMPILER_UNITDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET) $(COMPILERDIR)/targets $(COMPILERDIR)/systems
  1509. endif
  1510. ifeq ($(CPU_OS_TARGET),m68k-macosclassic)
  1511. override COMPILER_UNITDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET) $(COMPILERDIR)/targets $(COMPILERDIR)/systems
  1512. endif
  1513. ifeq ($(CPU_OS_TARGET),m68k-embedded)
  1514. override COMPILER_UNITDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET) $(COMPILERDIR)/targets $(COMPILERDIR)/systems
  1515. endif
  1516. ifeq ($(CPU_OS_TARGET),m68k-sinclairql)
  1517. override COMPILER_UNITDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET) $(COMPILERDIR)/targets $(COMPILERDIR)/systems
  1518. endif
  1519. ifeq ($(CPU_OS_TARGET),m68k-human68k)
  1520. override COMPILER_UNITDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET) $(COMPILERDIR)/targets $(COMPILERDIR)/systems
  1521. endif
  1522. ifeq ($(CPU_OS_TARGET),powerpc-linux)
  1523. override COMPILER_UNITDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET) $(COMPILERDIR)/targets $(COMPILERDIR)/systems
  1524. endif
  1525. ifeq ($(CPU_OS_TARGET),powerpc-netbsd)
  1526. override COMPILER_UNITDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET) $(COMPILERDIR)/targets $(COMPILERDIR)/systems
  1527. endif
  1528. ifeq ($(CPU_OS_TARGET),powerpc-amiga)
  1529. override COMPILER_UNITDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET) $(COMPILERDIR)/targets $(COMPILERDIR)/systems
  1530. endif
  1531. ifeq ($(CPU_OS_TARGET),powerpc-macosclassic)
  1532. override COMPILER_UNITDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET) $(COMPILERDIR)/targets $(COMPILERDIR)/systems
  1533. endif
  1534. ifeq ($(CPU_OS_TARGET),powerpc-darwin)
  1535. override COMPILER_UNITDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET) $(COMPILERDIR)/targets $(COMPILERDIR)/systems
  1536. endif
  1537. ifeq ($(CPU_OS_TARGET),powerpc-morphos)
  1538. override COMPILER_UNITDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET) $(COMPILERDIR)/targets $(COMPILERDIR)/systems
  1539. endif
  1540. ifeq ($(CPU_OS_TARGET),powerpc-embedded)
  1541. override COMPILER_UNITDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET) $(COMPILERDIR)/targets $(COMPILERDIR)/systems
  1542. endif
  1543. ifeq ($(CPU_OS_TARGET),powerpc-wii)
  1544. override COMPILER_UNITDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET) $(COMPILERDIR)/targets $(COMPILERDIR)/systems
  1545. endif
  1546. ifeq ($(CPU_OS_TARGET),powerpc-aix)
  1547. override COMPILER_UNITDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET) $(COMPILERDIR)/targets $(COMPILERDIR)/systems
  1548. endif
  1549. ifeq ($(CPU_OS_TARGET),sparc-linux)
  1550. override COMPILER_UNITDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET) $(COMPILERDIR)/targets $(COMPILERDIR)/systems
  1551. endif
  1552. ifeq ($(CPU_OS_TARGET),sparc-netbsd)
  1553. override COMPILER_UNITDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET) $(COMPILERDIR)/targets $(COMPILERDIR)/systems
  1554. endif
  1555. ifeq ($(CPU_OS_TARGET),sparc-solaris)
  1556. override COMPILER_UNITDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET) $(COMPILERDIR)/targets $(COMPILERDIR)/systems
  1557. endif
  1558. ifeq ($(CPU_OS_TARGET),sparc-embedded)
  1559. override COMPILER_UNITDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET) $(COMPILERDIR)/targets $(COMPILERDIR)/systems
  1560. endif
  1561. ifeq ($(CPU_OS_TARGET),x86_64-linux)
  1562. override COMPILER_UNITDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET) $(COMPILERDIR)/targets $(COMPILERDIR)/systems
  1563. endif
  1564. ifeq ($(CPU_OS_TARGET),x86_64-freebsd)
  1565. override COMPILER_UNITDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET) $(COMPILERDIR)/targets $(COMPILERDIR)/systems
  1566. endif
  1567. ifeq ($(CPU_OS_TARGET),x86_64-haiku)
  1568. override COMPILER_UNITDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET) $(COMPILERDIR)/targets $(COMPILERDIR)/systems
  1569. endif
  1570. ifeq ($(CPU_OS_TARGET),x86_64-netbsd)
  1571. override COMPILER_UNITDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET) $(COMPILERDIR)/targets $(COMPILERDIR)/systems
  1572. endif
  1573. ifeq ($(CPU_OS_TARGET),x86_64-solaris)
  1574. override COMPILER_UNITDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET) $(COMPILERDIR)/targets $(COMPILERDIR)/systems
  1575. endif
  1576. ifeq ($(CPU_OS_TARGET),x86_64-openbsd)
  1577. override COMPILER_UNITDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET) $(COMPILERDIR)/targets $(COMPILERDIR)/systems
  1578. endif
  1579. ifeq ($(CPU_OS_TARGET),x86_64-darwin)
  1580. override COMPILER_UNITDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET) $(COMPILERDIR)/targets $(COMPILERDIR)/systems
  1581. endif
  1582. ifeq ($(CPU_OS_TARGET),x86_64-win64)
  1583. override COMPILER_UNITDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET) $(COMPILERDIR)/targets $(COMPILERDIR)/systems
  1584. endif
  1585. ifeq ($(CPU_OS_TARGET),x86_64-embedded)
  1586. override COMPILER_UNITDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET) $(COMPILERDIR)/targets $(COMPILERDIR)/systems
  1587. endif
  1588. ifeq ($(CPU_OS_TARGET),x86_64-iphonesim)
  1589. override COMPILER_UNITDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET) $(COMPILERDIR)/targets $(COMPILERDIR)/systems
  1590. endif
  1591. ifeq ($(CPU_OS_TARGET),x86_64-android)
  1592. override COMPILER_UNITDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET) $(COMPILERDIR)/targets $(COMPILERDIR)/systems
  1593. endif
  1594. ifeq ($(CPU_OS_TARGET),x86_64-aros)
  1595. override COMPILER_UNITDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET) $(COMPILERDIR)/targets $(COMPILERDIR)/systems
  1596. endif
  1597. ifeq ($(CPU_OS_TARGET),x86_64-dragonfly)
  1598. override COMPILER_UNITDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET) $(COMPILERDIR)/targets $(COMPILERDIR)/systems
  1599. endif
  1600. ifeq ($(CPU_OS_TARGET),arm-linux)
  1601. override COMPILER_UNITDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET) $(COMPILERDIR)/targets $(COMPILERDIR)/systems
  1602. endif
  1603. ifeq ($(CPU_OS_TARGET),arm-netbsd)
  1604. override COMPILER_UNITDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET) $(COMPILERDIR)/targets $(COMPILERDIR)/systems
  1605. endif
  1606. ifeq ($(CPU_OS_TARGET),arm-palmos)
  1607. override COMPILER_UNITDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET) $(COMPILERDIR)/targets $(COMPILERDIR)/systems
  1608. endif
  1609. ifeq ($(CPU_OS_TARGET),arm-wince)
  1610. override COMPILER_UNITDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET) $(COMPILERDIR)/targets $(COMPILERDIR)/systems
  1611. endif
  1612. ifeq ($(CPU_OS_TARGET),arm-gba)
  1613. override COMPILER_UNITDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET) $(COMPILERDIR)/targets $(COMPILERDIR)/systems
  1614. endif
  1615. ifeq ($(CPU_OS_TARGET),arm-nds)
  1616. override COMPILER_UNITDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET) $(COMPILERDIR)/targets $(COMPILERDIR)/systems
  1617. endif
  1618. ifeq ($(CPU_OS_TARGET),arm-embedded)
  1619. override COMPILER_UNITDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET) $(COMPILERDIR)/targets $(COMPILERDIR)/systems
  1620. endif
  1621. ifeq ($(CPU_OS_TARGET),arm-symbian)
  1622. override COMPILER_UNITDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET) $(COMPILERDIR)/targets $(COMPILERDIR)/systems
  1623. endif
  1624. ifeq ($(CPU_OS_TARGET),arm-android)
  1625. override COMPILER_UNITDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET) $(COMPILERDIR)/targets $(COMPILERDIR)/systems
  1626. endif
  1627. ifeq ($(CPU_OS_TARGET),arm-aros)
  1628. override COMPILER_UNITDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET) $(COMPILERDIR)/targets $(COMPILERDIR)/systems
  1629. endif
  1630. ifeq ($(CPU_OS_TARGET),arm-freertos)
  1631. override COMPILER_UNITDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET) $(COMPILERDIR)/targets $(COMPILERDIR)/systems
  1632. endif
  1633. ifeq ($(CPU_OS_TARGET),arm-ios)
  1634. override COMPILER_UNITDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET) $(COMPILERDIR)/targets $(COMPILERDIR)/systems
  1635. endif
  1636. ifeq ($(CPU_OS_TARGET),powerpc64-linux)
  1637. override COMPILER_UNITDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET) $(COMPILERDIR)/targets $(COMPILERDIR)/systems
  1638. endif
  1639. ifeq ($(CPU_OS_TARGET),powerpc64-darwin)
  1640. override COMPILER_UNITDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET) $(COMPILERDIR)/targets $(COMPILERDIR)/systems
  1641. endif
  1642. ifeq ($(CPU_OS_TARGET),powerpc64-embedded)
  1643. override COMPILER_UNITDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET) $(COMPILERDIR)/targets $(COMPILERDIR)/systems
  1644. endif
  1645. ifeq ($(CPU_OS_TARGET),powerpc64-aix)
  1646. override COMPILER_UNITDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET) $(COMPILERDIR)/targets $(COMPILERDIR)/systems
  1647. endif
  1648. ifeq ($(CPU_OS_TARGET),avr-embedded)
  1649. override COMPILER_UNITDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET) $(COMPILERDIR)/targets $(COMPILERDIR)/systems
  1650. endif
  1651. ifeq ($(CPU_OS_TARGET),armeb-linux)
  1652. override COMPILER_UNITDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET) $(COMPILERDIR)/targets $(COMPILERDIR)/systems
  1653. endif
  1654. ifeq ($(CPU_OS_TARGET),armeb-embedded)
  1655. override COMPILER_UNITDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET) $(COMPILERDIR)/targets $(COMPILERDIR)/systems
  1656. endif
  1657. ifeq ($(CPU_OS_TARGET),mips-linux)
  1658. override COMPILER_UNITDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET) $(COMPILERDIR)/targets $(COMPILERDIR)/systems
  1659. endif
  1660. ifeq ($(CPU_OS_TARGET),mipsel-linux)
  1661. override COMPILER_UNITDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET) $(COMPILERDIR)/targets $(COMPILERDIR)/systems
  1662. endif
  1663. ifeq ($(CPU_OS_TARGET),mipsel-embedded)
  1664. override COMPILER_UNITDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET) $(COMPILERDIR)/targets $(COMPILERDIR)/systems
  1665. endif
  1666. ifeq ($(CPU_OS_TARGET),mipsel-android)
  1667. override COMPILER_UNITDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET) $(COMPILERDIR)/targets $(COMPILERDIR)/systems
  1668. endif
  1669. ifeq ($(CPU_OS_TARGET),mips64-linux)
  1670. override COMPILER_UNITDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET) $(COMPILERDIR)/targets $(COMPILERDIR)/systems
  1671. endif
  1672. ifeq ($(CPU_OS_TARGET),mips64el-linux)
  1673. override COMPILER_UNITDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET) $(COMPILERDIR)/targets $(COMPILERDIR)/systems
  1674. endif
  1675. ifeq ($(CPU_OS_TARGET),jvm-java)
  1676. override COMPILER_UNITDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET) $(COMPILERDIR)/targets $(COMPILERDIR)/systems
  1677. endif
  1678. ifeq ($(CPU_OS_TARGET),jvm-android)
  1679. override COMPILER_UNITDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET) $(COMPILERDIR)/targets $(COMPILERDIR)/systems
  1680. endif
  1681. ifeq ($(CPU_OS_TARGET),i8086-embedded)
  1682. override COMPILER_UNITDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET) $(COMPILERDIR)/targets $(COMPILERDIR)/systems
  1683. endif
  1684. ifeq ($(CPU_OS_TARGET),i8086-msdos)
  1685. override COMPILER_UNITDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET) $(COMPILERDIR)/targets $(COMPILERDIR)/systems
  1686. endif
  1687. ifeq ($(CPU_OS_TARGET),i8086-win16)
  1688. override COMPILER_UNITDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET) $(COMPILERDIR)/targets $(COMPILERDIR)/systems
  1689. endif
  1690. ifeq ($(CPU_OS_TARGET),aarch64-linux)
  1691. override COMPILER_UNITDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET) $(COMPILERDIR)/targets $(COMPILERDIR)/systems
  1692. endif
  1693. ifeq ($(CPU_OS_TARGET),aarch64-freebsd)
  1694. override COMPILER_UNITDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET) $(COMPILERDIR)/targets $(COMPILERDIR)/systems
  1695. endif
  1696. ifeq ($(CPU_OS_TARGET),aarch64-darwin)
  1697. override COMPILER_UNITDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET) $(COMPILERDIR)/targets $(COMPILERDIR)/systems
  1698. endif
  1699. ifeq ($(CPU_OS_TARGET),aarch64-win64)
  1700. override COMPILER_UNITDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET) $(COMPILERDIR)/targets $(COMPILERDIR)/systems
  1701. endif
  1702. ifeq ($(CPU_OS_TARGET),aarch64-embedded)
  1703. override COMPILER_UNITDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET) $(COMPILERDIR)/targets $(COMPILERDIR)/systems
  1704. endif
  1705. ifeq ($(CPU_OS_TARGET),aarch64-iphonesim)
  1706. override COMPILER_UNITDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET) $(COMPILERDIR)/targets $(COMPILERDIR)/systems
  1707. endif
  1708. ifeq ($(CPU_OS_TARGET),aarch64-android)
  1709. override COMPILER_UNITDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET) $(COMPILERDIR)/targets $(COMPILERDIR)/systems
  1710. endif
  1711. ifeq ($(CPU_OS_TARGET),aarch64-ios)
  1712. override COMPILER_UNITDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET) $(COMPILERDIR)/targets $(COMPILERDIR)/systems
  1713. endif
  1714. ifeq ($(CPU_OS_TARGET),wasm32-embedded)
  1715. override COMPILER_UNITDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET) $(COMPILERDIR)/targets $(COMPILERDIR)/systems
  1716. endif
  1717. ifeq ($(CPU_OS_TARGET),wasm32-wasi)
  1718. override COMPILER_UNITDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET) $(COMPILERDIR)/targets $(COMPILERDIR)/systems
  1719. endif
  1720. ifeq ($(CPU_OS_TARGET),sparc64-linux)
  1721. override COMPILER_UNITDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET) $(COMPILERDIR)/targets $(COMPILERDIR)/systems
  1722. endif
  1723. ifeq ($(CPU_OS_TARGET),riscv32-linux)
  1724. override COMPILER_UNITDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET) $(COMPILERDIR)/targets $(COMPILERDIR)/systems
  1725. endif
  1726. ifeq ($(CPU_OS_TARGET),riscv32-embedded)
  1727. override COMPILER_UNITDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET) $(COMPILERDIR)/targets $(COMPILERDIR)/systems
  1728. endif
  1729. ifeq ($(CPU_OS_TARGET),riscv32-freertos)
  1730. override COMPILER_UNITDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET) $(COMPILERDIR)/targets $(COMPILERDIR)/systems
  1731. endif
  1732. ifeq ($(CPU_OS_TARGET),riscv64-linux)
  1733. override COMPILER_UNITDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET) $(COMPILERDIR)/targets $(COMPILERDIR)/systems
  1734. endif
  1735. ifeq ($(CPU_OS_TARGET),riscv64-embedded)
  1736. override COMPILER_UNITDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET) $(COMPILERDIR)/targets $(COMPILERDIR)/systems
  1737. endif
  1738. ifeq ($(CPU_OS_TARGET),xtensa-linux)
  1739. override COMPILER_UNITDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET) $(COMPILERDIR)/targets $(COMPILERDIR)/systems
  1740. endif
  1741. ifeq ($(CPU_OS_TARGET),xtensa-embedded)
  1742. override COMPILER_UNITDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET) $(COMPILERDIR)/targets $(COMPILERDIR)/systems
  1743. endif
  1744. ifeq ($(CPU_OS_TARGET),xtensa-freertos)
  1745. override COMPILER_UNITDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET) $(COMPILERDIR)/targets $(COMPILERDIR)/systems
  1746. endif
  1747. ifeq ($(CPU_OS_TARGET),z80-embedded)
  1748. override COMPILER_UNITDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET) $(COMPILERDIR)/targets $(COMPILERDIR)/systems
  1749. endif
  1750. ifeq ($(CPU_OS_TARGET),z80-zxspectrum)
  1751. override COMPILER_UNITDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET) $(COMPILERDIR)/targets $(COMPILERDIR)/systems
  1752. endif
  1753. ifeq ($(CPU_OS_TARGET),z80-msxdos)
  1754. override COMPILER_UNITDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET) $(COMPILERDIR)/targets $(COMPILERDIR)/systems
  1755. endif
  1756. ifeq ($(CPU_OS_TARGET),z80-amstradcpc)
  1757. override COMPILER_UNITDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET) $(COMPILERDIR)/targets $(COMPILERDIR)/systems
  1758. endif
  1759. ifeq ($(CPU_OS_TARGET),loongarch64-linux)
  1760. override COMPILER_UNITDIR+=$(COMPILERDIR) $(COMPILERDIR)/$(PPC_TARGET) $(COMPILERDIR)/targets $(COMPILERDIR)/systems
  1761. endif
  1762. ifdef REQUIRE_UNITSDIR
  1763. override UNITSDIR+=$(REQUIRE_UNITSDIR)
  1764. endif
  1765. ifdef REQUIRE_PACKAGESDIR
  1766. override PACKAGESDIR+=$(REQUIRE_PACKAGESDIR)
  1767. endif
  1768. ifdef ZIPINSTALL
  1769. ifneq ($(filter $(OS_TARGET),$(UNIXs)),)
  1770. UNIXHier=1
  1771. endif
  1772. else
  1773. ifneq ($(filter $(OS_SOURCE),$(UNIXs)),)
  1774. UNIXHier=1
  1775. endif
  1776. endif
  1777. ifndef INSTALL_PREFIX
  1778. ifdef PREFIX
  1779. INSTALL_PREFIX=$(PREFIX)
  1780. endif
  1781. endif
  1782. ifndef INSTALL_PREFIX
  1783. ifdef UNIXHier
  1784. INSTALL_PREFIX=/usr/local
  1785. else
  1786. ifdef INSTALL_FPCPACKAGE
  1787. INSTALL_BASEDIR:=/pp
  1788. else
  1789. INSTALL_BASEDIR:=/$(PACKAGE_NAME)
  1790. endif
  1791. endif
  1792. endif
  1793. export INSTALL_PREFIX
  1794. ifdef INSTALL_FPCSUBDIR
  1795. export INSTALL_FPCSUBDIR
  1796. endif
  1797. ifndef DIST_DESTDIR
  1798. DIST_DESTDIR:=$(BASEDIR)
  1799. endif
  1800. export DIST_DESTDIR
  1801. ifndef COMPILER_UNITTARGETDIR
  1802. ifdef PACKAGEDIR_MAIN
  1803. COMPILER_UNITTARGETDIR=$(PACKAGEDIR_MAIN)/units/$(TARGETSUFFIX)
  1804. else
  1805. COMPILER_UNITTARGETDIR=units/$(TARGETSUFFIX)
  1806. endif
  1807. endif
  1808. ifndef COMPILER_TARGETDIR
  1809. COMPILER_TARGETDIR=.
  1810. endif
  1811. ifndef INSTALL_BASEDIR
  1812. ifdef UNIXHier
  1813. ifdef INSTALL_FPCPACKAGE
  1814. INSTALL_BASEDIR:=$(INSTALL_PREFIX)/lib/fpc/$(FPC_VERSION)
  1815. else
  1816. INSTALL_BASEDIR:=$(INSTALL_PREFIX)/lib/$(PACKAGE_NAME)
  1817. endif
  1818. else
  1819. INSTALL_BASEDIR:=$(INSTALL_PREFIX)
  1820. endif
  1821. endif
  1822. ifndef INSTALL_BINDIR
  1823. ifdef UNIXHier
  1824. INSTALL_BINDIR:=$(INSTALL_PREFIX)/bin
  1825. else
  1826. INSTALL_BINDIR:=$(INSTALL_BASEDIR)/bin
  1827. ifdef INSTALL_FPCPACKAGE
  1828. ifdef CROSSCOMPILE
  1829. ifdef CROSSINSTALL
  1830. INSTALL_BINDIR:=$(INSTALL_BINDIR)/$(SOURCESUFFIX)
  1831. else
  1832. INSTALL_BINDIR:=$(INSTALL_BINDIR)/$(TARGETSUFFIX)
  1833. endif
  1834. else
  1835. INSTALL_BINDIR:=$(INSTALL_BINDIR)/$(TARGETSUFFIX)
  1836. endif
  1837. endif
  1838. endif
  1839. endif
  1840. ifndef INSTALL_UNITDIR
  1841. INSTALL_UNITDIR:=$(INSTALL_BASEDIR)/units/$(TARGETSUFFIX)
  1842. ifdef INSTALL_FPCPACKAGE
  1843. ifdef PACKAGE_NAME
  1844. INSTALL_UNITDIR:=$(INSTALL_UNITDIR)/$(PACKAGE_NAME)
  1845. endif
  1846. endif
  1847. endif
  1848. ifndef INSTALL_LIBDIR
  1849. ifdef UNIXHier
  1850. INSTALL_LIBDIR:=$(INSTALL_PREFIX)/lib
  1851. else
  1852. INSTALL_LIBDIR:=$(INSTALL_UNITDIR)
  1853. endif
  1854. endif
  1855. ifndef INSTALL_SOURCEDIR
  1856. ifdef UNIXHier
  1857. ifdef BSDhier
  1858. SRCPREFIXDIR=share/src
  1859. else
  1860. ifdef linuxHier
  1861. SRCPREFIXDIR=share/src
  1862. else
  1863. SRCPREFIXDIR=src
  1864. endif
  1865. endif
  1866. ifdef INSTALL_FPCPACKAGE
  1867. ifdef INSTALL_FPCSUBDIR
  1868. INSTALL_SOURCEDIR:=$(INSTALL_PREFIX)/$(SRCPREFIXDIR)/fpc-$(FPC_VERSION)/$(INSTALL_FPCSUBDIR)/$(PACKAGE_NAME)
  1869. else
  1870. INSTALL_SOURCEDIR:=$(INSTALL_PREFIX)/$(SRCPREFIXDIR)/fpc-$(FPC_VERSION)/$(PACKAGE_NAME)
  1871. endif
  1872. else
  1873. INSTALL_SOURCEDIR:=$(INSTALL_PREFIX)/$(SRCPREFIXDIR)/$(PACKAGE_NAME)-$(PACKAGE_VERSION)
  1874. endif
  1875. else
  1876. ifdef INSTALL_FPCPACKAGE
  1877. ifdef INSTALL_FPCSUBDIR
  1878. INSTALL_SOURCEDIR:=$(INSTALL_BASEDIR)/source/$(INSTALL_FPCSUBDIR)/$(PACKAGE_NAME)
  1879. else
  1880. INSTALL_SOURCEDIR:=$(INSTALL_BASEDIR)/source/$(PACKAGE_NAME)
  1881. endif
  1882. else
  1883. INSTALL_SOURCEDIR:=$(INSTALL_BASEDIR)/source
  1884. endif
  1885. endif
  1886. endif
  1887. ifndef INSTALL_DOCDIR
  1888. ifdef UNIXHier
  1889. ifdef BSDhier
  1890. DOCPREFIXDIR=share/doc
  1891. else
  1892. ifdef linuxHier
  1893. DOCPREFIXDIR=share/doc
  1894. else
  1895. DOCPREFIXDIR=doc
  1896. endif
  1897. endif
  1898. ifdef INSTALL_FPCPACKAGE
  1899. INSTALL_DOCDIR:=$(INSTALL_PREFIX)/$(DOCPREFIXDIR)/fpc-$(FPC_VERSION)/$(PACKAGE_NAME)
  1900. else
  1901. INSTALL_DOCDIR:=$(INSTALL_PREFIX)/$(DOCPREFIXDIR)/$(PACKAGE_NAME)-$(PACKAGE_VERSION)
  1902. endif
  1903. else
  1904. ifdef INSTALL_FPCPACKAGE
  1905. INSTALL_DOCDIR:=$(INSTALL_BASEDIR)/doc/$(PACKAGE_NAME)
  1906. else
  1907. INSTALL_DOCDIR:=$(INSTALL_BASEDIR)/doc
  1908. endif
  1909. endif
  1910. endif
  1911. ifndef INSTALL_EXAMPLEDIR
  1912. ifdef UNIXHier
  1913. ifdef INSTALL_FPCPACKAGE
  1914. ifdef BSDhier
  1915. INSTALL_EXAMPLEDIR:=$(INSTALL_PREFIX)/share/examples/fpc-$(FPC_VERSION)/$(PACKAGE_NAME)
  1916. else
  1917. ifdef linuxHier
  1918. INSTALL_EXAMPLEDIR:=$(INSTALL_DOCDIR)/examples
  1919. else
  1920. INSTALL_EXAMPLEDIR:=$(INSTALL_PREFIX)/doc/fpc-$(FPC_VERSION)/examples/$(PACKAGE_NAME)
  1921. endif
  1922. endif
  1923. else
  1924. ifdef BSDhier
  1925. INSTALL_EXAMPLEDIR:=$(INSTALL_PREFIX)/share/examples/$(PACKAGE_NAME)-$(PACKAGE_VERSION)
  1926. else
  1927. ifdef linuxHier
  1928. INSTALL_EXAMPLEDIR:=$(INSTALL_DOCDIR)/examples/$(PACKAGE_NAME)-$(PACKAGE_VERSION)
  1929. else
  1930. INSTALL_EXAMPLEDIR:=$(INSTALL_PREFIX)/doc/$(PACKAGE_NAME)-$(PACKAGE_VERSION)
  1931. endif
  1932. endif
  1933. endif
  1934. else
  1935. ifdef INSTALL_FPCPACKAGE
  1936. INSTALL_EXAMPLEDIR:=$(INSTALL_BASEDIR)/examples/$(PACKAGE_NAME)
  1937. else
  1938. INSTALL_EXAMPLEDIR:=$(INSTALL_BASEDIR)/examples
  1939. endif
  1940. endif
  1941. endif
  1942. ifndef INSTALL_DATADIR
  1943. INSTALL_DATADIR=$(INSTALL_BASEDIR)
  1944. endif
  1945. ifndef INSTALL_SHAREDDIR
  1946. INSTALL_SHAREDDIR=$(INSTALL_PREFIX)/lib
  1947. endif
  1948. ifdef CROSSCOMPILE
  1949. ifndef CROSSBINDIR
  1950. CROSSBINDIR:=$(wildcard $(CROSSTARGETDIR)/bin/$(SOURCESUFFIX))
  1951. ifeq ($(CROSSBINDIR),)
  1952. CROSSBINDIR:=$(wildcard $(INSTALL_BASEDIR)/cross/$(TARGETSUFFIX)/bin/$(FULL_SOURCE))
  1953. endif
  1954. endif
  1955. else
  1956. CROSSBINDIR=
  1957. endif
  1958. ifeq ($(OS_SOURCE),linux)
  1959. ifndef GCCLIBDIR
  1960. ifeq ($(CPU_TARGET),i386)
  1961. ifneq ($(filter x86_64,$(shell uname -a)),)
  1962. ifeq ($(BINUTILSPREFIX),)
  1963. GCCLIBDIR:=$(shell dirname `gcc -m32 -print-libgcc-file-name`)
  1964. else
  1965. CROSSGCCOPT=-m32
  1966. endif
  1967. endif
  1968. endif
  1969. ifeq ($(CPU_TARGET),powerpc)
  1970. ifeq ($(BINUTILSPREFIX),)
  1971. GCCLIBDIR:=$(shell dirname `gcc -m32 -print-libgcc-file-name`)
  1972. else
  1973. CROSSGCCOPT=-m32
  1974. endif
  1975. endif
  1976. ifeq ($(CPU_TARGET),powerpc64)
  1977. ifeq ($(BINUTILSPREFIX),)
  1978. GCCLIBDIR:=$(shell dirname `gcc -m64 -print-libgcc-file-name`)
  1979. else
  1980. CROSSGCCOPT=-m64
  1981. endif
  1982. endif
  1983. ifeq ($(CPU_TARGET),sparc)
  1984. ifneq ($(filter sparc64,$(shell uname -a)),)
  1985. ifeq ($(BINUTILSPREFIX),)
  1986. GCCLIBDIR:=$(shell dirname `gcc -m32 -print-libgcc-file-name`)
  1987. else
  1988. CROSSGCCOPT=-m32
  1989. endif
  1990. endif
  1991. endif
  1992. ifneq ($(filter $(CPU_TARGET),mips64 mipsel64),)
  1993. ifeq ($(BINUTILSPREFIX),)
  1994. GCCLIBDIR:=$(shell dirname `gcc -mabi=64 -print-libgcc-file-name`)
  1995. else
  1996. CROSSGCCOPT=-mabi=64
  1997. endif
  1998. endif
  1999. ifneq ($(filter $(CPU_TARGET),mips mipsel),)
  2000. ifeq ($(BINUTILSPREFIX),)
  2001. GCCLIBDIR:=$(shell dirname `gcc -mabi=32 -print-libgcc-file-name`)
  2002. else
  2003. CROSSGCCOPT=-mabi=32
  2004. endif
  2005. endif
  2006. ifeq ($(BINUTILSPREFIX),)
  2007. ifeq ($(GCCLIBDIR),)
  2008. GCCLIBDIR:=$(shell dirname `gcc -print-libgcc-file-name`)
  2009. endif
  2010. else
  2011. ifeq ($(CROSSGCCOPT),)
  2012. CROSSGCCOPT=-g
  2013. endif
  2014. endif
  2015. endif
  2016. ifdef FPCFPMAKE
  2017. FPCFPMAKE_CPU_TARGET=$(shell $(FPCFPMAKE) -iTP)
  2018. ifeq ($(CPU_TARGET),$(FPCFPMAKE_CPU_TARGET))
  2019. FPCMAKEGCCLIBDIR:=$(GCCLIBDIR)
  2020. else
  2021. ifneq ($(filter $(FPCFPMAKE_CPU_TARGET),aarch64 powerpc64 riscv64 sparc64 x86_64 loongarch64),)
  2022. FPCMAKE_CROSSGCCOPT=-m64
  2023. else
  2024. ifneq ($(filter $(FPCFPMAKE_CPU_TARGET),mips64 mips64el),)
  2025. FPCMAKE_CROSSGCCOPT=-mabi=64
  2026. else
  2027. ifneq ($(filter $(FPCFPMAKE_CPU_TARGET),mips mipsel),)
  2028. FPCMAKE_CROSSGCCOPT=-mabi=32
  2029. else
  2030. ifeq ($(FPCFPMAKE_CPU_TARGET),riscv64)
  2031. FPCMAKE_CROSSGCCOPT=-mabi=lp64
  2032. else
  2033. ifeq ($(FPCFPMAKE_CPU_TARGET),riscv32)
  2034. FPCMAKE_CROSSGCCOPT=-mabi=ilp32
  2035. else
  2036. ifeq ($(FPCFPMAKE_CPU_TARGET),loongarch64)
  2037. FPCMAKE_CROSSGCCOPT=-mabi=lp64d
  2038. else
  2039. FPCMAKE_CROSSGCCOPT=-m32
  2040. endif
  2041. endif
  2042. endif
  2043. endif
  2044. endif
  2045. endif
  2046. FPCMAKEGCCLIBDIR:=$(shell dirname `gcc $(FPCMAKE_CROSSGCCOPT) -print-libgcc-file-name`)
  2047. endif
  2048. endif
  2049. ifndef FPCMAKEGCCLIBDIR
  2050. FPCMAKEGCCLIBDIR:=$(shell dirname `gcc -print-libgcc-file-name`)
  2051. endif
  2052. ifndef GCCLIBDIR
  2053. CROSSGCC=$(strip $(wildcard $(addsuffix /$(BINUTILSPREFIX)gcc$(SRCEXEEXT),$(SEARCHPATH))))
  2054. ifneq ($(CROSSGCC),)
  2055. GCCLIBDIR:=$(shell dirname `$(CROSSGCC) $(CROSSGCCOPT) -print-libgcc-file-name`)
  2056. endif
  2057. endif
  2058. endif
  2059. ifdef inUnix
  2060. ifeq ($(OS_SOURCE),netbsd)
  2061. OTHERLIBDIR:=/usr/pkg/lib
  2062. endif
  2063. export GCCLIBDIR FPCMAKEGCCLIBDIR OTHERLIBDIR
  2064. endif
  2065. BATCHEXT=.bat
  2066. LOADEREXT=.as
  2067. EXEEXT=.exe
  2068. PPLEXT=.ppl
  2069. PPUEXT=.ppu
  2070. OEXT=.o
  2071. LTOEXT=.bc
  2072. ASMEXT=.s
  2073. SMARTEXT=.sl
  2074. STATICLIBEXT=.a
  2075. SHAREDLIBEXT=.so
  2076. SHAREDLIBPREFIX=libfp
  2077. STATICLIBPREFIX=libp
  2078. IMPORTLIBPREFIX=libimp
  2079. RSTEXT=.rst
  2080. EXEDBGEXT=.dbg
  2081. ifeq ($(OS_TARGET),go32v1)
  2082. STATICLIBPREFIX=
  2083. SHORTSUFFIX=v1
  2084. endif
  2085. ifeq ($(OS_TARGET),go32v2)
  2086. STATICLIBPREFIX=
  2087. SHORTSUFFIX=dos
  2088. IMPORTLIBPREFIX=
  2089. endif
  2090. ifeq ($(OS_TARGET),watcom)
  2091. STATICLIBPREFIX=
  2092. OEXT=.obj
  2093. ASMEXT=.asm
  2094. SHAREDLIBEXT=.dll
  2095. SHORTSUFFIX=wat
  2096. IMPORTLIBPREFIX=
  2097. endif
  2098. ifneq ($(CPU_TARGET),jvm)
  2099. ifeq ($(OS_TARGET),android)
  2100. BATCHEXT=.sh
  2101. EXEEXT=
  2102. HASSHAREDLIB=1
  2103. SHORTSUFFIX=lnx
  2104. endif
  2105. endif
  2106. ifeq ($(OS_TARGET),linux)
  2107. BATCHEXT=.sh
  2108. EXEEXT=
  2109. HASSHAREDLIB=1
  2110. SHORTSUFFIX=lnx
  2111. endif
  2112. ifeq ($(OS_TARGET),dragonfly)
  2113. BATCHEXT=.sh
  2114. EXEEXT=
  2115. HASSHAREDLIB=1
  2116. SHORTSUFFIX=df
  2117. endif
  2118. ifeq ($(OS_TARGET),freebsd)
  2119. BATCHEXT=.sh
  2120. EXEEXT=
  2121. HASSHAREDLIB=1
  2122. SHORTSUFFIX=fbs
  2123. endif
  2124. ifeq ($(OS_TARGET),netbsd)
  2125. BATCHEXT=.sh
  2126. EXEEXT=
  2127. HASSHAREDLIB=1
  2128. SHORTSUFFIX=nbs
  2129. endif
  2130. ifeq ($(OS_TARGET),openbsd)
  2131. BATCHEXT=.sh
  2132. EXEEXT=
  2133. HASSHAREDLIB=1
  2134. SHORTSUFFIX=obs
  2135. endif
  2136. ifeq ($(OS_TARGET),win32)
  2137. SHAREDLIBEXT=.dll
  2138. SHORTSUFFIX=w32
  2139. endif
  2140. ifeq ($(OS_TARGET),os2)
  2141. BATCHEXT=.cmd
  2142. AOUTEXT=.out
  2143. STATICLIBPREFIX=
  2144. SHAREDLIBEXT=.dll
  2145. SHORTSUFFIX=os2
  2146. ECHO=echo
  2147. IMPORTLIBPREFIX=
  2148. endif
  2149. ifeq ($(OS_TARGET),emx)
  2150. BATCHEXT=.cmd
  2151. AOUTEXT=.out
  2152. STATICLIBPREFIX=
  2153. SHAREDLIBEXT=.dll
  2154. SHORTSUFFIX=emx
  2155. ECHO=echo
  2156. IMPORTLIBPREFIX=
  2157. endif
  2158. ifeq ($(OS_TARGET),amiga)
  2159. EXEEXT=
  2160. SHAREDLIBEXT=.library
  2161. SHORTSUFFIX=amg
  2162. endif
  2163. ifeq ($(OS_TARGET),aros)
  2164. EXEEXT=
  2165. SHAREDLIBEXT=.library
  2166. SHORTSUFFIX=aros
  2167. endif
  2168. ifeq ($(OS_TARGET),morphos)
  2169. EXEEXT=
  2170. SHAREDLIBEXT=.library
  2171. SHORTSUFFIX=mos
  2172. endif
  2173. ifeq ($(OS_TARGET),atari)
  2174. EXEEXT=.ttp
  2175. SHORTSUFFIX=ata
  2176. endif
  2177. ifeq ($(OS_TARGET),beos)
  2178. BATCHEXT=.sh
  2179. EXEEXT=
  2180. SHORTSUFFIX=be
  2181. endif
  2182. ifeq ($(OS_TARGET),haiku)
  2183. BATCHEXT=.sh
  2184. EXEEXT=
  2185. SHORTSUFFIX=hai
  2186. endif
  2187. ifeq ($(OS_TARGET),solaris)
  2188. BATCHEXT=.sh
  2189. EXEEXT=
  2190. SHORTSUFFIX=sun
  2191. endif
  2192. ifeq ($(OS_TARGET),qnx)
  2193. BATCHEXT=.sh
  2194. EXEEXT=
  2195. SHORTSUFFIX=qnx
  2196. endif
  2197. ifeq ($(OS_TARGET),netware)
  2198. EXEEXT=.nlm
  2199. STATICLIBPREFIX=
  2200. SHORTSUFFIX=nw
  2201. IMPORTLIBPREFIX=imp
  2202. endif
  2203. ifeq ($(OS_TARGET),netwlibc)
  2204. EXEEXT=.nlm
  2205. STATICLIBPREFIX=
  2206. SHORTSUFFIX=nwl
  2207. IMPORTLIBPREFIX=imp
  2208. endif
  2209. ifeq ($(OS_TARGET),macosclassic)
  2210. BATCHEXT=
  2211. EXEEXT=
  2212. DEBUGSYMEXT=.xcoff
  2213. SHORTSUFFIX=mac
  2214. IMPORTLIBPREFIX=imp
  2215. endif
  2216. ifneq ($(filter $(OS_TARGET),darwin iphonesim ios),)
  2217. BATCHEXT=.sh
  2218. EXEEXT=
  2219. HASSHAREDLIB=1
  2220. SHORTSUFFIX=dwn
  2221. EXEDBGEXT=.dSYM
  2222. endif
  2223. ifeq ($(OS_TARGET),gba)
  2224. EXEEXT=.gba
  2225. SHAREDLIBEXT=.so
  2226. SHORTSUFFIX=gba
  2227. endif
  2228. ifeq ($(OS_TARGET),symbian)
  2229. SHAREDLIBEXT=.dll
  2230. SHORTSUFFIX=symbian
  2231. endif
  2232. ifeq ($(OS_TARGET),NativeNT)
  2233. SHAREDLIBEXT=.dll
  2234. SHORTSUFFIX=nativent
  2235. endif
  2236. ifeq ($(OS_TARGET),wii)
  2237. EXEEXT=.dol
  2238. SHAREDLIBEXT=.so
  2239. SHORTSUFFIX=wii
  2240. endif
  2241. ifeq ($(OS_TARGET),aix)
  2242. BATCHEXT=.sh
  2243. EXEEXT=
  2244. SHAREDLIBEXT=.a
  2245. SHORTSUFFIX=aix
  2246. endif
  2247. ifeq ($(OS_TARGET),java)
  2248. OEXT=.class
  2249. ASMEXT=.j
  2250. SHAREDLIBEXT=.jar
  2251. SHORTSUFFIX=java
  2252. endif
  2253. ifeq ($(CPU_TARGET),jvm)
  2254. ifeq ($(OS_TARGET),android)
  2255. OEXT=.class
  2256. ASMEXT=.j
  2257. SHAREDLIBEXT=.jar
  2258. SHORTSUFFIX=android
  2259. endif
  2260. endif
  2261. ifeq ($(OS_TARGET),msdos)
  2262. STATICLIBPREFIX=
  2263. STATICLIBEXT=.a
  2264. SHORTSUFFIX=d16
  2265. endif
  2266. ifeq ($(OS_TARGET),msxdos)
  2267. STATICLIBPREFIX=
  2268. STATICLIBEXT=.a
  2269. SHORTSUFFIX=msd
  2270. endif
  2271. ifeq ($(OS_TARGET),embedded)
  2272. ifeq ($(CPU_TARGET),i8086)
  2273. STATICLIBPREFIX=
  2274. STATICLIBEXT=.a
  2275. else
  2276. EXEEXT=.bin
  2277. endif
  2278. ifeq ($(CPU_TARGET),z80)
  2279. OEXT=.rel
  2280. endif
  2281. SHORTSUFFIX=emb
  2282. endif
  2283. ifeq ($(OS_TARGET),win16)
  2284. STATICLIBPREFIX=
  2285. STATICLIBEXT=.a
  2286. SHAREDLIBEXT=.dll
  2287. SHORTSUFFIX=w16
  2288. endif
  2289. ifeq ($(OS_TARGET),zxspectrum)
  2290. OEXT=.rel
  2291. endif
  2292. ifeq ($(OS_TARGET),wasi)
  2293. EXEEXT=.wasm
  2294. endif
  2295. ifneq ($(filter $(OS_SOURCE),$(LIMIT83fs)),)
  2296. FPCMADE=fpcmade.$(SHORTSUFFIX)
  2297. ZIPSUFFIX=$(SHORTSUFFIX)
  2298. ZIPCROSSPREFIX=
  2299. ZIPSOURCESUFFIX=src
  2300. ZIPEXAMPLESUFFIX=exm
  2301. else
  2302. FPCMADE=fpcmade.$(TARGETSUFFIX)
  2303. ZIPSOURCESUFFIX=.source
  2304. ZIPEXAMPLESUFFIX=.examples
  2305. ifdef CROSSCOMPILE
  2306. ZIPSUFFIX=.$(SOURCESUFFIX)
  2307. ZIPCROSSPREFIX=$(TARGETSUFFIX)-
  2308. else
  2309. ZIPSUFFIX=.$(TARGETSUFFIX)
  2310. ZIPCROSSPREFIX=
  2311. endif
  2312. endif
  2313. ifndef ECHO
  2314. ECHO:=$(strip $(wildcard $(addsuffix /gecho$(SRCEXEEXT),$(SEARCHPATH))))
  2315. ifeq ($(ECHO),)
  2316. ECHO:=$(strip $(wildcard $(addsuffix /echo$(SRCEXEEXT),$(SEARCHPATH))))
  2317. ifeq ($(ECHO),)
  2318. ECHO= __missing_command_ECHO
  2319. else
  2320. ECHO:=$(firstword $(ECHO))
  2321. endif
  2322. else
  2323. ECHO:=$(firstword $(ECHO))
  2324. endif
  2325. endif
  2326. export ECHO
  2327. ifndef DATE
  2328. DATE:=$(strip $(wildcard $(addsuffix /gdate$(SRCEXEEXT),$(SEARCHPATH))))
  2329. ifeq ($(DATE),)
  2330. DATE:=$(strip $(wildcard $(addsuffix /date$(SRCEXEEXT),$(SEARCHPATH))))
  2331. ifeq ($(DATE),)
  2332. DATE= __missing_command_DATE
  2333. else
  2334. DATE:=$(firstword $(DATE))
  2335. endif
  2336. else
  2337. DATE:=$(firstword $(DATE))
  2338. endif
  2339. endif
  2340. export DATE
  2341. ifndef GINSTALL
  2342. GINSTALL:=$(strip $(wildcard $(addsuffix /ginstall$(SRCEXEEXT),$(SEARCHPATH))))
  2343. ifeq ($(GINSTALL),)
  2344. GINSTALL:=$(strip $(wildcard $(addsuffix /install$(SRCEXEEXT),$(SEARCHPATH))))
  2345. ifeq ($(GINSTALL),)
  2346. GINSTALL= __missing_command_GINSTALL
  2347. else
  2348. GINSTALL:=$(firstword $(GINSTALL))
  2349. endif
  2350. else
  2351. GINSTALL:=$(firstword $(GINSTALL))
  2352. endif
  2353. endif
  2354. export GINSTALL
  2355. ifndef CPPROG
  2356. CPPROG:=$(strip $(wildcard $(addsuffix /cp$(SRCEXEEXT),$(SEARCHPATH))))
  2357. ifeq ($(CPPROG),)
  2358. CPPROG= __missing_command_CPPROG
  2359. else
  2360. CPPROG:=$(firstword $(CPPROG))
  2361. endif
  2362. endif
  2363. export CPPROG
  2364. ifndef RMPROG
  2365. RMPROG:=$(strip $(wildcard $(addsuffix /rm$(SRCEXEEXT),$(SEARCHPATH))))
  2366. ifeq ($(RMPROG),)
  2367. RMPROG= __missing_command_RMPROG
  2368. else
  2369. RMPROG:=$(firstword $(RMPROG))
  2370. endif
  2371. endif
  2372. export RMPROG
  2373. ifndef MVPROG
  2374. MVPROG:=$(strip $(wildcard $(addsuffix /mv$(SRCEXEEXT),$(SEARCHPATH))))
  2375. ifeq ($(MVPROG),)
  2376. MVPROG= __missing_command_MVPROG
  2377. else
  2378. MVPROG:=$(firstword $(MVPROG))
  2379. endif
  2380. endif
  2381. export MVPROG
  2382. ifndef MKDIRPROG
  2383. MKDIRPROG:=$(strip $(wildcard $(addsuffix /gmkdir$(SRCEXEEXT),$(SEARCHPATH))))
  2384. ifeq ($(MKDIRPROG),)
  2385. MKDIRPROG:=$(strip $(wildcard $(addsuffix /mkdir$(SRCEXEEXT),$(SEARCHPATH))))
  2386. ifeq ($(MKDIRPROG),)
  2387. MKDIRPROG= __missing_command_MKDIRPROG
  2388. else
  2389. MKDIRPROG:=$(firstword $(MKDIRPROG))
  2390. endif
  2391. else
  2392. MKDIRPROG:=$(firstword $(MKDIRPROG))
  2393. endif
  2394. endif
  2395. export MKDIRPROG
  2396. ifndef ECHOREDIR
  2397. ifndef inUnix
  2398. ECHOREDIR=echo
  2399. else
  2400. ECHOREDIR=$(ECHO)
  2401. endif
  2402. endif
  2403. ifndef COPY
  2404. COPY:=$(CPPROG) -fp
  2405. endif
  2406. ifndef COPYTREE
  2407. COPYTREE:=$(CPPROG) -Rfp
  2408. endif
  2409. ifndef MKDIRTREE
  2410. MKDIRTREE:=$(MKDIRPROG) -p
  2411. endif
  2412. ifndef MOVE
  2413. MOVE:=$(MVPROG) -f
  2414. endif
  2415. ifndef DEL
  2416. DEL:=$(RMPROG) -f
  2417. endif
  2418. ifndef DELTREE
  2419. DELTREE:=$(RMPROG) -rf
  2420. endif
  2421. ifndef INSTALL
  2422. ifdef inUnix
  2423. INSTALL:=$(GINSTALL) -c -m 644
  2424. else
  2425. INSTALL:=$(COPY)
  2426. endif
  2427. endif
  2428. ifndef INSTALLEXE
  2429. ifdef inUnix
  2430. INSTALLEXE:=$(GINSTALL) -c -m 755
  2431. else
  2432. INSTALLEXE:=$(COPY)
  2433. endif
  2434. endif
  2435. ifndef MKDIR
  2436. MKDIR:=$(GINSTALL) -m 755 -d
  2437. endif
  2438. export ECHOREDIR COPY COPYTREE MOVE DEL DELTREE INSTALL INSTALLEXE MKDIR
  2439. ifndef PPUMOVE
  2440. PPUMOVE:=$(strip $(wildcard $(addsuffix /ppumove$(SRCEXEEXT),$(SEARCHPATH))))
  2441. ifeq ($(PPUMOVE),)
  2442. PPUMOVE= __missing_command_PPUMOVE
  2443. else
  2444. PPUMOVE:=$(firstword $(PPUMOVE))
  2445. endif
  2446. endif
  2447. export PPUMOVE
  2448. ifndef FPCMAKE
  2449. FPCMAKE:=$(strip $(wildcard $(addsuffix /fpcmake$(SRCEXEEXT),$(SEARCHPATH))))
  2450. ifeq ($(FPCMAKE),)
  2451. FPCMAKE= __missing_command_FPCMAKE
  2452. else
  2453. FPCMAKE:=$(firstword $(FPCMAKE))
  2454. endif
  2455. endif
  2456. export FPCMAKE
  2457. ifndef ZIPPROG
  2458. ZIPPROG:=$(strip $(wildcard $(addsuffix /zip$(SRCEXEEXT),$(SEARCHPATH))))
  2459. ifeq ($(ZIPPROG),)
  2460. ZIPPROG= __missing_command_ZIPPROG
  2461. else
  2462. ZIPPROG:=$(firstword $(ZIPPROG))
  2463. endif
  2464. endif
  2465. export ZIPPROG
  2466. ifndef TARPROG
  2467. TARPROG:=$(strip $(wildcard $(addsuffix /gtar$(SRCEXEEXT),$(SEARCHPATH))))
  2468. ifeq ($(TARPROG),)
  2469. TARPROG:=$(strip $(wildcard $(addsuffix /tar$(SRCEXEEXT),$(SEARCHPATH))))
  2470. ifeq ($(TARPROG),)
  2471. TARPROG= __missing_command_TARPROG
  2472. else
  2473. TARPROG:=$(firstword $(TARPROG))
  2474. endif
  2475. else
  2476. TARPROG:=$(firstword $(TARPROG))
  2477. endif
  2478. endif
  2479. export TARPROG
  2480. ASNAME=$(BINUTILSPREFIX)as
  2481. LDNAME=$(BINUTILSPREFIX)ld
  2482. ARNAME=$(BINUTILSPREFIX)ar
  2483. RCNAME=$(BINUTILSPREFIX)rc
  2484. NASMNAME=$(BINUTILSPREFIX)nasm
  2485. ifndef ASPROG
  2486. ifdef CROSSBINDIR
  2487. ASPROG=$(CROSSBINDIR)/$(ASNAME)$(SRCEXEEXT)
  2488. else
  2489. ASPROG=$(ASNAME)
  2490. endif
  2491. endif
  2492. ifndef LDPROG
  2493. ifdef CROSSBINDIR
  2494. LDPROG=$(CROSSBINDIR)/$(LDNAME)$(SRCEXEEXT)
  2495. else
  2496. LDPROG=$(LDNAME)
  2497. endif
  2498. endif
  2499. ifndef RCPROG
  2500. ifdef CROSSBINDIR
  2501. RCPROG=$(CROSSBINDIR)/$(RCNAME)$(SRCEXEEXT)
  2502. else
  2503. RCPROG=$(RCNAME)
  2504. endif
  2505. endif
  2506. ifndef ARPROG
  2507. ifdef CROSSBINDIR
  2508. ARPROG=$(CROSSBINDIR)/$(ARNAME)$(SRCEXEEXT)
  2509. else
  2510. ARPROG=$(ARNAME)
  2511. endif
  2512. endif
  2513. ifndef NASMPROG
  2514. ifdef CROSSBINDIR
  2515. NASMPROG=$(CROSSBINDIR)/$(NASMNAME)$(SRCEXEEXT)
  2516. else
  2517. NASMPROG=$(NASMNAME)
  2518. endif
  2519. endif
  2520. AS=$(ASPROG)
  2521. LD=$(LDPROG)
  2522. RC=$(RCPROG)
  2523. AR=$(ARPROG)
  2524. NASM=$(NASMPROG)
  2525. ifdef inUnix
  2526. PPAS=./ppas$(SRCBATCHEXT)
  2527. else
  2528. PPAS=ppas$(SRCBATCHEXT)
  2529. endif
  2530. ifdef inUnix
  2531. LDCONFIG=ldconfig
  2532. else
  2533. LDCONFIG=
  2534. endif
  2535. ifdef DATE
  2536. DATESTR:=$(shell $(DATE) +%Y%m%d)
  2537. else
  2538. DATESTR=
  2539. endif
  2540. ZIPOPT=-9
  2541. ZIPEXT=.zip
  2542. ifeq ($(USETAR),bz2)
  2543. TAROPT=vj
  2544. TAREXT=.tar.bz2
  2545. else
  2546. TAROPT=vz
  2547. TAREXT=.tar.gz
  2548. endif
  2549. override REQUIRE_PACKAGES=rtl rtl rtl-extra
  2550. ifeq ($(CPU_OS_TARGET),i386-linux)
  2551. REQUIRE_PACKAGES_RTL=1
  2552. REQUIRE_PACKAGES_RTL-EXTRA=1
  2553. endif
  2554. ifeq ($(CPU_OS_TARGET),i386-go32v2)
  2555. REQUIRE_PACKAGES_RTL=1
  2556. REQUIRE_PACKAGES_RTL-EXTRA=1
  2557. endif
  2558. ifeq ($(CPU_OS_TARGET),i386-win32)
  2559. REQUIRE_PACKAGES_RTL=1
  2560. REQUIRE_PACKAGES_RTL-EXTRA=1
  2561. endif
  2562. ifeq ($(CPU_OS_TARGET),i386-os2)
  2563. REQUIRE_PACKAGES_RTL=1
  2564. REQUIRE_PACKAGES_RTL-EXTRA=1
  2565. endif
  2566. ifeq ($(CPU_OS_TARGET),i386-freebsd)
  2567. REQUIRE_PACKAGES_RTL=1
  2568. REQUIRE_PACKAGES_RTL-EXTRA=1
  2569. endif
  2570. ifeq ($(CPU_OS_TARGET),i386-beos)
  2571. REQUIRE_PACKAGES_RTL=1
  2572. REQUIRE_PACKAGES_RTL-EXTRA=1
  2573. endif
  2574. ifeq ($(CPU_OS_TARGET),i386-haiku)
  2575. REQUIRE_PACKAGES_RTL=1
  2576. REQUIRE_PACKAGES_RTL-EXTRA=1
  2577. endif
  2578. ifeq ($(CPU_OS_TARGET),i386-netbsd)
  2579. REQUIRE_PACKAGES_RTL=1
  2580. REQUIRE_PACKAGES_RTL-EXTRA=1
  2581. endif
  2582. ifeq ($(CPU_OS_TARGET),i386-solaris)
  2583. REQUIRE_PACKAGES_RTL=1
  2584. REQUIRE_PACKAGES_RTL-EXTRA=1
  2585. endif
  2586. ifeq ($(CPU_OS_TARGET),i386-netware)
  2587. REQUIRE_PACKAGES_RTL=1
  2588. REQUIRE_PACKAGES_RTL-EXTRA=1
  2589. endif
  2590. ifeq ($(CPU_OS_TARGET),i386-openbsd)
  2591. REQUIRE_PACKAGES_RTL=1
  2592. REQUIRE_PACKAGES_RTL-EXTRA=1
  2593. endif
  2594. ifeq ($(CPU_OS_TARGET),i386-wdosx)
  2595. REQUIRE_PACKAGES_RTL=1
  2596. REQUIRE_PACKAGES_RTL-EXTRA=1
  2597. endif
  2598. ifeq ($(CPU_OS_TARGET),i386-darwin)
  2599. REQUIRE_PACKAGES_RTL=1
  2600. REQUIRE_PACKAGES_RTL-EXTRA=1
  2601. endif
  2602. ifeq ($(CPU_OS_TARGET),i386-emx)
  2603. REQUIRE_PACKAGES_RTL=1
  2604. REQUIRE_PACKAGES_RTL-EXTRA=1
  2605. endif
  2606. ifeq ($(CPU_OS_TARGET),i386-watcom)
  2607. REQUIRE_PACKAGES_RTL=1
  2608. REQUIRE_PACKAGES_RTL-EXTRA=1
  2609. endif
  2610. ifeq ($(CPU_OS_TARGET),i386-netwlibc)
  2611. REQUIRE_PACKAGES_RTL=1
  2612. REQUIRE_PACKAGES_RTL-EXTRA=1
  2613. endif
  2614. ifeq ($(CPU_OS_TARGET),i386-wince)
  2615. REQUIRE_PACKAGES_RTL=1
  2616. REQUIRE_PACKAGES_RTL-EXTRA=1
  2617. endif
  2618. ifeq ($(CPU_OS_TARGET),i386-embedded)
  2619. REQUIRE_PACKAGES_RTL=1
  2620. REQUIRE_PACKAGES_RTL-EXTRA=1
  2621. endif
  2622. ifeq ($(CPU_OS_TARGET),i386-symbian)
  2623. REQUIRE_PACKAGES_RTL=1
  2624. REQUIRE_PACKAGES_RTL-EXTRA=1
  2625. endif
  2626. ifeq ($(CPU_OS_TARGET),i386-nativent)
  2627. REQUIRE_PACKAGES_RTL=1
  2628. REQUIRE_PACKAGES_RTL-EXTRA=1
  2629. endif
  2630. ifeq ($(CPU_OS_TARGET),i386-iphonesim)
  2631. REQUIRE_PACKAGES_RTL=1
  2632. REQUIRE_PACKAGES_RTL-EXTRA=1
  2633. endif
  2634. ifeq ($(CPU_OS_TARGET),i386-android)
  2635. REQUIRE_PACKAGES_RTL=1
  2636. REQUIRE_PACKAGES_RTL-EXTRA=1
  2637. endif
  2638. ifeq ($(CPU_OS_TARGET),i386-aros)
  2639. REQUIRE_PACKAGES_RTL=1
  2640. REQUIRE_PACKAGES_RTL-EXTRA=1
  2641. endif
  2642. ifeq ($(CPU_OS_TARGET),m68k-linux)
  2643. REQUIRE_PACKAGES_RTL=1
  2644. REQUIRE_PACKAGES_RTL-EXTRA=1
  2645. endif
  2646. ifeq ($(CPU_OS_TARGET),m68k-netbsd)
  2647. REQUIRE_PACKAGES_RTL=1
  2648. REQUIRE_PACKAGES_RTL-EXTRA=1
  2649. endif
  2650. ifeq ($(CPU_OS_TARGET),m68k-amiga)
  2651. REQUIRE_PACKAGES_RTL=1
  2652. REQUIRE_PACKAGES_RTL-EXTRA=1
  2653. endif
  2654. ifeq ($(CPU_OS_TARGET),m68k-atari)
  2655. REQUIRE_PACKAGES_RTL=1
  2656. REQUIRE_PACKAGES_RTL-EXTRA=1
  2657. endif
  2658. ifeq ($(CPU_OS_TARGET),m68k-palmos)
  2659. REQUIRE_PACKAGES_RTL=1
  2660. REQUIRE_PACKAGES_RTL-EXTRA=1
  2661. endif
  2662. ifeq ($(CPU_OS_TARGET),m68k-macosclassic)
  2663. REQUIRE_PACKAGES_RTL=1
  2664. REQUIRE_PACKAGES_RTL-EXTRA=1
  2665. endif
  2666. ifeq ($(CPU_OS_TARGET),m68k-embedded)
  2667. REQUIRE_PACKAGES_RTL=1
  2668. REQUIRE_PACKAGES_RTL-EXTRA=1
  2669. endif
  2670. ifeq ($(CPU_OS_TARGET),m68k-sinclairql)
  2671. REQUIRE_PACKAGES_RTL=1
  2672. REQUIRE_PACKAGES_RTL-EXTRA=1
  2673. endif
  2674. ifeq ($(CPU_OS_TARGET),m68k-human68k)
  2675. REQUIRE_PACKAGES_RTL=1
  2676. REQUIRE_PACKAGES_RTL-EXTRA=1
  2677. endif
  2678. ifeq ($(CPU_OS_TARGET),powerpc-linux)
  2679. REQUIRE_PACKAGES_RTL=1
  2680. REQUIRE_PACKAGES_RTL-EXTRA=1
  2681. endif
  2682. ifeq ($(CPU_OS_TARGET),powerpc-netbsd)
  2683. REQUIRE_PACKAGES_RTL=1
  2684. REQUIRE_PACKAGES_RTL-EXTRA=1
  2685. endif
  2686. ifeq ($(CPU_OS_TARGET),powerpc-amiga)
  2687. REQUIRE_PACKAGES_RTL=1
  2688. REQUIRE_PACKAGES_RTL-EXTRA=1
  2689. endif
  2690. ifeq ($(CPU_OS_TARGET),powerpc-macosclassic)
  2691. REQUIRE_PACKAGES_RTL=1
  2692. REQUIRE_PACKAGES_RTL-EXTRA=1
  2693. endif
  2694. ifeq ($(CPU_OS_TARGET),powerpc-darwin)
  2695. REQUIRE_PACKAGES_RTL=1
  2696. REQUIRE_PACKAGES_RTL-EXTRA=1
  2697. endif
  2698. ifeq ($(CPU_OS_TARGET),powerpc-morphos)
  2699. REQUIRE_PACKAGES_RTL=1
  2700. REQUIRE_PACKAGES_RTL-EXTRA=1
  2701. endif
  2702. ifeq ($(CPU_OS_TARGET),powerpc-embedded)
  2703. REQUIRE_PACKAGES_RTL=1
  2704. REQUIRE_PACKAGES_RTL-EXTRA=1
  2705. endif
  2706. ifeq ($(CPU_OS_TARGET),powerpc-wii)
  2707. REQUIRE_PACKAGES_RTL=1
  2708. REQUIRE_PACKAGES_RTL-EXTRA=1
  2709. endif
  2710. ifeq ($(CPU_OS_TARGET),powerpc-aix)
  2711. REQUIRE_PACKAGES_RTL=1
  2712. REQUIRE_PACKAGES_RTL-EXTRA=1
  2713. endif
  2714. ifeq ($(CPU_OS_TARGET),sparc-linux)
  2715. REQUIRE_PACKAGES_RTL=1
  2716. REQUIRE_PACKAGES_RTL-EXTRA=1
  2717. endif
  2718. ifeq ($(CPU_OS_TARGET),sparc-netbsd)
  2719. REQUIRE_PACKAGES_RTL=1
  2720. REQUIRE_PACKAGES_RTL-EXTRA=1
  2721. endif
  2722. ifeq ($(CPU_OS_TARGET),sparc-solaris)
  2723. REQUIRE_PACKAGES_RTL=1
  2724. REQUIRE_PACKAGES_RTL-EXTRA=1
  2725. endif
  2726. ifeq ($(CPU_OS_TARGET),sparc-embedded)
  2727. REQUIRE_PACKAGES_RTL=1
  2728. REQUIRE_PACKAGES_RTL-EXTRA=1
  2729. endif
  2730. ifeq ($(CPU_OS_TARGET),x86_64-linux)
  2731. REQUIRE_PACKAGES_RTL=1
  2732. REQUIRE_PACKAGES_RTL-EXTRA=1
  2733. endif
  2734. ifeq ($(CPU_OS_TARGET),x86_64-freebsd)
  2735. REQUIRE_PACKAGES_RTL=1
  2736. REQUIRE_PACKAGES_RTL-EXTRA=1
  2737. endif
  2738. ifeq ($(CPU_OS_TARGET),x86_64-haiku)
  2739. REQUIRE_PACKAGES_RTL=1
  2740. REQUIRE_PACKAGES_RTL-EXTRA=1
  2741. endif
  2742. ifeq ($(CPU_OS_TARGET),x86_64-netbsd)
  2743. REQUIRE_PACKAGES_RTL=1
  2744. REQUIRE_PACKAGES_RTL-EXTRA=1
  2745. endif
  2746. ifeq ($(CPU_OS_TARGET),x86_64-solaris)
  2747. REQUIRE_PACKAGES_RTL=1
  2748. REQUIRE_PACKAGES_RTL-EXTRA=1
  2749. endif
  2750. ifeq ($(CPU_OS_TARGET),x86_64-openbsd)
  2751. REQUIRE_PACKAGES_RTL=1
  2752. REQUIRE_PACKAGES_RTL-EXTRA=1
  2753. endif
  2754. ifeq ($(CPU_OS_TARGET),x86_64-darwin)
  2755. REQUIRE_PACKAGES_RTL=1
  2756. REQUIRE_PACKAGES_RTL-EXTRA=1
  2757. endif
  2758. ifeq ($(CPU_OS_TARGET),x86_64-win64)
  2759. REQUIRE_PACKAGES_RTL=1
  2760. REQUIRE_PACKAGES_RTL-EXTRA=1
  2761. endif
  2762. ifeq ($(CPU_OS_TARGET),x86_64-embedded)
  2763. REQUIRE_PACKAGES_RTL=1
  2764. REQUIRE_PACKAGES_RTL-EXTRA=1
  2765. endif
  2766. ifeq ($(CPU_OS_TARGET),x86_64-iphonesim)
  2767. REQUIRE_PACKAGES_RTL=1
  2768. REQUIRE_PACKAGES_RTL-EXTRA=1
  2769. endif
  2770. ifeq ($(CPU_OS_TARGET),x86_64-android)
  2771. REQUIRE_PACKAGES_RTL=1
  2772. REQUIRE_PACKAGES_RTL-EXTRA=1
  2773. endif
  2774. ifeq ($(CPU_OS_TARGET),x86_64-aros)
  2775. REQUIRE_PACKAGES_RTL=1
  2776. REQUIRE_PACKAGES_RTL-EXTRA=1
  2777. endif
  2778. ifeq ($(CPU_OS_TARGET),x86_64-dragonfly)
  2779. REQUIRE_PACKAGES_RTL=1
  2780. REQUIRE_PACKAGES_RTL-EXTRA=1
  2781. endif
  2782. ifeq ($(CPU_OS_TARGET),arm-linux)
  2783. REQUIRE_PACKAGES_RTL=1
  2784. REQUIRE_PACKAGES_RTL-EXTRA=1
  2785. endif
  2786. ifeq ($(CPU_OS_TARGET),arm-netbsd)
  2787. REQUIRE_PACKAGES_RTL=1
  2788. REQUIRE_PACKAGES_RTL-EXTRA=1
  2789. endif
  2790. ifeq ($(CPU_OS_TARGET),arm-palmos)
  2791. REQUIRE_PACKAGES_RTL=1
  2792. REQUIRE_PACKAGES_RTL-EXTRA=1
  2793. endif
  2794. ifeq ($(CPU_OS_TARGET),arm-wince)
  2795. REQUIRE_PACKAGES_RTL=1
  2796. REQUIRE_PACKAGES_RTL-EXTRA=1
  2797. endif
  2798. ifeq ($(CPU_OS_TARGET),arm-gba)
  2799. REQUIRE_PACKAGES_RTL=1
  2800. REQUIRE_PACKAGES_RTL-EXTRA=1
  2801. endif
  2802. ifeq ($(CPU_OS_TARGET),arm-nds)
  2803. REQUIRE_PACKAGES_RTL=1
  2804. REQUIRE_PACKAGES_RTL-EXTRA=1
  2805. endif
  2806. ifeq ($(CPU_OS_TARGET),arm-embedded)
  2807. REQUIRE_PACKAGES_RTL=1
  2808. REQUIRE_PACKAGES_RTL-EXTRA=1
  2809. endif
  2810. ifeq ($(CPU_OS_TARGET),arm-symbian)
  2811. REQUIRE_PACKAGES_RTL=1
  2812. REQUIRE_PACKAGES_RTL-EXTRA=1
  2813. endif
  2814. ifeq ($(CPU_OS_TARGET),arm-android)
  2815. REQUIRE_PACKAGES_RTL=1
  2816. REQUIRE_PACKAGES_RTL-EXTRA=1
  2817. endif
  2818. ifeq ($(CPU_OS_TARGET),arm-aros)
  2819. REQUIRE_PACKAGES_RTL=1
  2820. REQUIRE_PACKAGES_RTL-EXTRA=1
  2821. endif
  2822. ifeq ($(CPU_OS_TARGET),arm-freertos)
  2823. REQUIRE_PACKAGES_RTL=1
  2824. REQUIRE_PACKAGES_RTL-EXTRA=1
  2825. endif
  2826. ifeq ($(CPU_OS_TARGET),arm-ios)
  2827. REQUIRE_PACKAGES_RTL=1
  2828. REQUIRE_PACKAGES_RTL-EXTRA=1
  2829. endif
  2830. ifeq ($(CPU_OS_TARGET),powerpc64-linux)
  2831. REQUIRE_PACKAGES_RTL=1
  2832. REQUIRE_PACKAGES_RTL-EXTRA=1
  2833. endif
  2834. ifeq ($(CPU_OS_TARGET),powerpc64-darwin)
  2835. REQUIRE_PACKAGES_RTL=1
  2836. REQUIRE_PACKAGES_RTL-EXTRA=1
  2837. endif
  2838. ifeq ($(CPU_OS_TARGET),powerpc64-embedded)
  2839. REQUIRE_PACKAGES_RTL=1
  2840. REQUIRE_PACKAGES_RTL-EXTRA=1
  2841. endif
  2842. ifeq ($(CPU_OS_TARGET),powerpc64-aix)
  2843. REQUIRE_PACKAGES_RTL=1
  2844. REQUIRE_PACKAGES_RTL-EXTRA=1
  2845. endif
  2846. ifeq ($(CPU_OS_TARGET),avr-embedded)
  2847. REQUIRE_PACKAGES_RTL=1
  2848. REQUIRE_PACKAGES_RTL-EXTRA=1
  2849. endif
  2850. ifeq ($(CPU_OS_TARGET),armeb-linux)
  2851. REQUIRE_PACKAGES_RTL=1
  2852. REQUIRE_PACKAGES_RTL-EXTRA=1
  2853. endif
  2854. ifeq ($(CPU_OS_TARGET),armeb-embedded)
  2855. REQUIRE_PACKAGES_RTL=1
  2856. REQUIRE_PACKAGES_RTL-EXTRA=1
  2857. endif
  2858. ifeq ($(CPU_OS_TARGET),mips-linux)
  2859. REQUIRE_PACKAGES_RTL=1
  2860. REQUIRE_PACKAGES_RTL-EXTRA=1
  2861. endif
  2862. ifeq ($(CPU_OS_TARGET),mipsel-linux)
  2863. REQUIRE_PACKAGES_RTL=1
  2864. REQUIRE_PACKAGES_RTL-EXTRA=1
  2865. endif
  2866. ifeq ($(CPU_OS_TARGET),mipsel-embedded)
  2867. REQUIRE_PACKAGES_RTL=1
  2868. REQUIRE_PACKAGES_RTL-EXTRA=1
  2869. endif
  2870. ifeq ($(CPU_OS_TARGET),mipsel-android)
  2871. REQUIRE_PACKAGES_RTL=1
  2872. REQUIRE_PACKAGES_RTL-EXTRA=1
  2873. endif
  2874. ifeq ($(CPU_OS_TARGET),mips64-linux)
  2875. REQUIRE_PACKAGES_RTL=1
  2876. REQUIRE_PACKAGES_RTL-EXTRA=1
  2877. endif
  2878. ifeq ($(CPU_OS_TARGET),mips64el-linux)
  2879. REQUIRE_PACKAGES_RTL=1
  2880. REQUIRE_PACKAGES_RTL-EXTRA=1
  2881. endif
  2882. ifeq ($(CPU_OS_TARGET),jvm-java)
  2883. REQUIRE_PACKAGES_RTL=1
  2884. REQUIRE_PACKAGES_RTL-EXTRA=1
  2885. endif
  2886. ifeq ($(CPU_OS_TARGET),jvm-android)
  2887. REQUIRE_PACKAGES_RTL=1
  2888. REQUIRE_PACKAGES_RTL-EXTRA=1
  2889. endif
  2890. ifeq ($(CPU_OS_TARGET),i8086-embedded)
  2891. REQUIRE_PACKAGES_RTL=1
  2892. REQUIRE_PACKAGES_RTL-EXTRA=1
  2893. endif
  2894. ifeq ($(CPU_OS_TARGET),i8086-msdos)
  2895. REQUIRE_PACKAGES_RTL=1
  2896. REQUIRE_PACKAGES_RTL-EXTRA=1
  2897. endif
  2898. ifeq ($(CPU_OS_TARGET),i8086-win16)
  2899. REQUIRE_PACKAGES_RTL=1
  2900. REQUIRE_PACKAGES_RTL-EXTRA=1
  2901. endif
  2902. ifeq ($(CPU_OS_TARGET),aarch64-linux)
  2903. REQUIRE_PACKAGES_RTL=1
  2904. REQUIRE_PACKAGES_RTL-EXTRA=1
  2905. endif
  2906. ifeq ($(CPU_OS_TARGET),aarch64-freebsd)
  2907. REQUIRE_PACKAGES_RTL=1
  2908. REQUIRE_PACKAGES_RTL-EXTRA=1
  2909. endif
  2910. ifeq ($(CPU_OS_TARGET),aarch64-darwin)
  2911. REQUIRE_PACKAGES_RTL=1
  2912. REQUIRE_PACKAGES_RTL-EXTRA=1
  2913. endif
  2914. ifeq ($(CPU_OS_TARGET),aarch64-win64)
  2915. REQUIRE_PACKAGES_RTL=1
  2916. REQUIRE_PACKAGES_RTL-EXTRA=1
  2917. endif
  2918. ifeq ($(CPU_OS_TARGET),aarch64-embedded)
  2919. REQUIRE_PACKAGES_RTL=1
  2920. REQUIRE_PACKAGES_RTL-EXTRA=1
  2921. endif
  2922. ifeq ($(CPU_OS_TARGET),aarch64-iphonesim)
  2923. REQUIRE_PACKAGES_RTL=1
  2924. REQUIRE_PACKAGES_RTL-EXTRA=1
  2925. endif
  2926. ifeq ($(CPU_OS_TARGET),aarch64-android)
  2927. REQUIRE_PACKAGES_RTL=1
  2928. REQUIRE_PACKAGES_RTL-EXTRA=1
  2929. endif
  2930. ifeq ($(CPU_OS_TARGET),aarch64-ios)
  2931. REQUIRE_PACKAGES_RTL=1
  2932. REQUIRE_PACKAGES_RTL-EXTRA=1
  2933. endif
  2934. ifeq ($(CPU_OS_TARGET),wasm32-embedded)
  2935. REQUIRE_PACKAGES_RTL=1
  2936. REQUIRE_PACKAGES_RTL-EXTRA=1
  2937. endif
  2938. ifeq ($(CPU_OS_TARGET),wasm32-wasi)
  2939. REQUIRE_PACKAGES_RTL=1
  2940. REQUIRE_PACKAGES_RTL-EXTRA=1
  2941. endif
  2942. ifeq ($(CPU_OS_TARGET),sparc64-linux)
  2943. REQUIRE_PACKAGES_RTL=1
  2944. REQUIRE_PACKAGES_RTL-EXTRA=1
  2945. endif
  2946. ifeq ($(CPU_OS_TARGET),riscv32-linux)
  2947. REQUIRE_PACKAGES_RTL=1
  2948. REQUIRE_PACKAGES_RTL-EXTRA=1
  2949. endif
  2950. ifeq ($(CPU_OS_TARGET),riscv32-embedded)
  2951. REQUIRE_PACKAGES_RTL=1
  2952. REQUIRE_PACKAGES_RTL-EXTRA=1
  2953. endif
  2954. ifeq ($(CPU_OS_TARGET),riscv32-freertos)
  2955. REQUIRE_PACKAGES_RTL=1
  2956. REQUIRE_PACKAGES_RTL-EXTRA=1
  2957. endif
  2958. ifeq ($(CPU_OS_TARGET),riscv64-linux)
  2959. REQUIRE_PACKAGES_RTL=1
  2960. REQUIRE_PACKAGES_RTL-EXTRA=1
  2961. endif
  2962. ifeq ($(CPU_OS_TARGET),riscv64-embedded)
  2963. REQUIRE_PACKAGES_RTL=1
  2964. REQUIRE_PACKAGES_RTL-EXTRA=1
  2965. endif
  2966. ifeq ($(CPU_OS_TARGET),xtensa-linux)
  2967. REQUIRE_PACKAGES_RTL=1
  2968. REQUIRE_PACKAGES_RTL-EXTRA=1
  2969. endif
  2970. ifeq ($(CPU_OS_TARGET),xtensa-embedded)
  2971. REQUIRE_PACKAGES_RTL=1
  2972. REQUIRE_PACKAGES_RTL-EXTRA=1
  2973. endif
  2974. ifeq ($(CPU_OS_TARGET),xtensa-freertos)
  2975. REQUIRE_PACKAGES_RTL=1
  2976. REQUIRE_PACKAGES_RTL-EXTRA=1
  2977. endif
  2978. ifeq ($(CPU_OS_TARGET),z80-embedded)
  2979. REQUIRE_PACKAGES_RTL=1
  2980. REQUIRE_PACKAGES_RTL-EXTRA=1
  2981. endif
  2982. ifeq ($(CPU_OS_TARGET),z80-zxspectrum)
  2983. REQUIRE_PACKAGES_RTL=1
  2984. REQUIRE_PACKAGES_RTL-EXTRA=1
  2985. endif
  2986. ifeq ($(CPU_OS_TARGET),z80-msxdos)
  2987. REQUIRE_PACKAGES_RTL=1
  2988. REQUIRE_PACKAGES_RTL-EXTRA=1
  2989. endif
  2990. ifeq ($(CPU_OS_TARGET),z80-amstradcpc)
  2991. REQUIRE_PACKAGES_RTL=1
  2992. REQUIRE_PACKAGES_RTL-EXTRA=1
  2993. endif
  2994. ifeq ($(CPU_OS_TARGET),loongarch64-linux)
  2995. REQUIRE_PACKAGES_RTL=1
  2996. REQUIRE_PACKAGES_RTL-EXTRA=1
  2997. endif
  2998. ifdef REQUIRE_PACKAGES_RTL
  2999. PACKAGEDIR_RTL:=$(firstword $(subst /Makefile.fpc,,$(strip $(wildcard $(addsuffix /rtl/Makefile.fpc,$(PACKAGESDIR))))))
  3000. ifeq ($(PACKAGEDIR_RTL),)
  3001. PACKAGEDIR_RTL:=$(firstword $(subst /Makefile,,$(strip $(wildcard $(addsuffix /rtl/Makefile,$(PACKAGESDIR))))))
  3002. ifneq ($(PACKAGEDIR_RTL),)
  3003. PACKAGEDIR_RTL:=$(firstword $(subst /fpmake.pp,,$(strip $(wildcard $(addsuffix /rtl/fpmake.pp,$(PACKAGESDIR))))))
  3004. endif
  3005. endif
  3006. ifneq ($(PACKAGEDIR_RTL),)
  3007. ifneq ($(wildcard $(PACKAGEDIR_RTL)/units/$(TARGETSUFFIX)),)
  3008. UNITDIR_RTL=$(PACKAGEDIR_RTL)/units/$(TARGETSUFFIX)
  3009. else
  3010. UNITDIR_RTL=$(PACKAGEDIR_RTL)
  3011. endif
  3012. ifneq ($(wildcard $(PACKAGEDIR_RTL)/units/$(SOURCESUFFIX)),)
  3013. UNITDIR_FPMAKE_RTL=$(PACKAGEDIR_RTL)/units/$(SOURCESUFFIX)
  3014. else
  3015. ifneq ($(wildcard $(PACKAGEDIR_RTL)/units_bs/$(SOURCESUFFIX)),)
  3016. UNITDIR_FPMAKE_RTL=$(PACKAGEDIR_RTL)/units_bs/$(SOURCESUFFIX)
  3017. else
  3018. UNITDIR_FPMAKE_RTL=$(PACKAGEDIR_RTL)
  3019. endif
  3020. endif
  3021. ifdef CHECKDEPEND
  3022. $(PACKAGEDIR_RTL)/$(OS_TARGET)/$(FPCMADE):
  3023. $(MAKE) -C $(PACKAGEDIR_RTL)/$(OS_TARGET) $(FPCMADE)
  3024. override ALLDEPENDENCIES+=$(PACKAGEDIR_RTL)/$(OS_TARGET)/$(FPCMADE)
  3025. endif
  3026. else
  3027. PACKAGEDIR_RTL=
  3028. UNITDIR_RTL:=$(subst /Package.fpc,,$(strip $(wildcard $(addsuffix /rtl/Package.fpc,$(UNITSDIR)))))
  3029. ifneq ($(UNITDIR_RTL),)
  3030. UNITDIR_RTL:=$(firstword $(UNITDIR_RTL))
  3031. else
  3032. UNITDIR_RTL=
  3033. endif
  3034. endif
  3035. ifdef UNITDIR_RTL
  3036. override COMPILER_UNITDIR+=$(UNITDIR_RTL)
  3037. endif
  3038. ifdef UNITDIR_FPMAKE_RTL
  3039. override COMPILER_FPMAKE_UNITDIR+=$(UNITDIR_FPMAKE_RTL)
  3040. endif
  3041. endif
  3042. ifdef REQUIRE_PACKAGES_RTL-EXTRA
  3043. PACKAGEDIR_RTL-EXTRA:=$(firstword $(subst /Makefile.fpc,,$(strip $(wildcard $(addsuffix /rtl-extra/Makefile.fpc,$(PACKAGESDIR))))))
  3044. ifeq ($(PACKAGEDIR_RTL-EXTRA),)
  3045. PACKAGEDIR_RTL-EXTRA:=$(firstword $(subst /Makefile,,$(strip $(wildcard $(addsuffix /rtl-extra/Makefile,$(PACKAGESDIR))))))
  3046. ifneq ($(PACKAGEDIR_RTL-EXTRA),)
  3047. PACKAGEDIR_RTL-EXTRA:=$(firstword $(subst /fpmake.pp,,$(strip $(wildcard $(addsuffix /rtl-extra/fpmake.pp,$(PACKAGESDIR))))))
  3048. endif
  3049. endif
  3050. ifneq ($(PACKAGEDIR_RTL-EXTRA),)
  3051. ifneq ($(wildcard $(PACKAGEDIR_RTL-EXTRA)/units/$(TARGETSUFFIX)),)
  3052. UNITDIR_RTL-EXTRA=$(PACKAGEDIR_RTL-EXTRA)/units/$(TARGETSUFFIX)
  3053. else
  3054. UNITDIR_RTL-EXTRA=$(PACKAGEDIR_RTL-EXTRA)
  3055. endif
  3056. ifneq ($(wildcard $(PACKAGEDIR_RTL-EXTRA)/units/$(SOURCESUFFIX)),)
  3057. UNITDIR_FPMAKE_RTL-EXTRA=$(PACKAGEDIR_RTL-EXTRA)/units/$(SOURCESUFFIX)
  3058. else
  3059. ifneq ($(wildcard $(PACKAGEDIR_RTL-EXTRA)/units_bs/$(SOURCESUFFIX)),)
  3060. UNITDIR_FPMAKE_RTL-EXTRA=$(PACKAGEDIR_RTL-EXTRA)/units_bs/$(SOURCESUFFIX)
  3061. else
  3062. UNITDIR_FPMAKE_RTL-EXTRA=$(PACKAGEDIR_RTL-EXTRA)
  3063. endif
  3064. endif
  3065. ifdef CHECKDEPEND
  3066. $(PACKAGEDIR_RTL-EXTRA)/$(FPCMADE):
  3067. $(MAKE) -C $(PACKAGEDIR_RTL-EXTRA) $(FPCMADE)
  3068. override ALLDEPENDENCIES+=$(PACKAGEDIR_RTL-EXTRA)/$(FPCMADE)
  3069. endif
  3070. else
  3071. PACKAGEDIR_RTL-EXTRA=
  3072. UNITDIR_RTL-EXTRA:=$(subst /Package.fpc,,$(strip $(wildcard $(addsuffix /rtl-extra/Package.fpc,$(UNITSDIR)))))
  3073. ifneq ($(UNITDIR_RTL-EXTRA),)
  3074. UNITDIR_RTL-EXTRA:=$(firstword $(UNITDIR_RTL-EXTRA))
  3075. else
  3076. UNITDIR_RTL-EXTRA=
  3077. endif
  3078. endif
  3079. ifdef UNITDIR_RTL-EXTRA
  3080. override COMPILER_UNITDIR+=$(UNITDIR_RTL-EXTRA)
  3081. endif
  3082. ifdef UNITDIR_FPMAKE_RTL-EXTRA
  3083. override COMPILER_FPMAKE_UNITDIR+=$(UNITDIR_FPMAKE_RTL-EXTRA)
  3084. endif
  3085. endif
  3086. ifndef NOCPUDEF
  3087. override FPCOPTDEF=$(ARCH)
  3088. endif
  3089. ifneq ($(OS_TARGET),$(OS_SOURCE))
  3090. override FPCOPT+=-T$(OS_TARGET)
  3091. endif
  3092. ifneq ($(CPU_TARGET),$(CPU_SOURCE))
  3093. override FPCOPT+=-P$(ARCH)
  3094. endif
  3095. ifeq ($(OS_SOURCE),openbsd)
  3096. override FPCOPT+=-FD$(NEW_BINUTILS_PATH)
  3097. override FPCMAKEOPT+=-FD$(NEW_BINUTILS_PATH)
  3098. override FPMAKE_BUILD_OPT+=-FD$(NEW_BINUTILS_PATH)
  3099. endif
  3100. ifndef CROSSBOOTSTRAP
  3101. ifneq ($(BINUTILSPREFIX),)
  3102. override FPCOPT+=-XP$(BINUTILSPREFIX)
  3103. ifneq ($(RLINKPATH),)
  3104. override FPCOPT+=-Xr$(RLINKPATH)
  3105. endif
  3106. endif
  3107. endif
  3108. ifndef CROSSCOMPILE
  3109. ifneq ($(BINUTILSPREFIX),)
  3110. override FPCMAKEOPT+=-XP$(BINUTILSPREFIX)
  3111. override FPMAKE_BUILD_OPT+=-XP$(BINUTILSPREFIX)
  3112. endif
  3113. endif
  3114. ifdef UNITDIR
  3115. override FPCOPT+=$(addprefix -Fu,$(UNITDIR))
  3116. endif
  3117. ifdef LIBDIR
  3118. override FPCOPT+=$(addprefix -Fl,$(LIBDIR))
  3119. endif
  3120. ifdef OBJDIR
  3121. override FPCOPT+=$(addprefix -Fo,$(OBJDIR))
  3122. endif
  3123. ifdef INCDIR
  3124. override FPCOPT+=$(addprefix -Fi,$(INCDIR))
  3125. endif
  3126. ifdef LINKSMART
  3127. override FPCOPT+=-XX
  3128. endif
  3129. ifdef CREATESMART
  3130. override FPCOPT+=-CX
  3131. endif
  3132. ifdef DEBUG
  3133. override FPCOPT+=-gl
  3134. override FPCOPTDEF+=DEBUG
  3135. endif
  3136. ifdef RELEASE
  3137. FPCCPUOPT:=-O2
  3138. override FPCOPT+=-Ur -Xs $(FPCCPUOPT) -n
  3139. override FPCOPTDEF+=RELEASE
  3140. endif
  3141. ifdef STRIP
  3142. override FPCOPT+=-Xs
  3143. endif
  3144. ifdef OPTIMIZE
  3145. override FPCOPT+=-O2
  3146. endif
  3147. ifdef VERBOSE
  3148. override FPCOPT+=-vwni
  3149. endif
  3150. ifdef COMPILER_OPTIONS
  3151. override FPCOPT+=$(COMPILER_OPTIONS)
  3152. endif
  3153. ifdef COMPILER_UNITDIR
  3154. override FPCOPT+=$(addprefix -Fu,$(COMPILER_UNITDIR))
  3155. endif
  3156. ifdef COMPILER_LIBRARYDIR
  3157. override FPCOPT+=$(addprefix -Fl,$(COMPILER_LIBRARYDIR))
  3158. endif
  3159. ifdef COMPILER_OBJECTDIR
  3160. override FPCOPT+=$(addprefix -Fo,$(COMPILER_OBJECTDIR))
  3161. endif
  3162. ifdef COMPILER_INCLUDEDIR
  3163. override FPCOPT+=$(addprefix -Fi,$(COMPILER_INCLUDEDIR))
  3164. endif
  3165. ifdef CROSSBINDIR
  3166. override FPCOPT+=-FD$(CROSSBINDIR)
  3167. endif
  3168. ifdef COMPILER_TARGETDIR
  3169. override FPCOPT+=-FE$(COMPILER_TARGETDIR)
  3170. ifeq ($(COMPILER_TARGETDIR),.)
  3171. override TARGETDIRPREFIX=
  3172. else
  3173. override TARGETDIRPREFIX=$(COMPILER_TARGETDIR)/
  3174. endif
  3175. endif
  3176. ifdef COMPILER_UNITTARGETDIR
  3177. override FPCOPT+=-FU$(COMPILER_UNITTARGETDIR)
  3178. ifeq ($(COMPILER_UNITTARGETDIR),.)
  3179. override UNITTARGETDIRPREFIX=
  3180. else
  3181. override UNITTARGETDIRPREFIX=$(COMPILER_UNITTARGETDIR)/
  3182. endif
  3183. else
  3184. ifdef COMPILER_TARGETDIR
  3185. override COMPILER_UNITTARGETDIR=$(COMPILER_TARGETDIR)
  3186. override UNITTARGETDIRPREFIX=$(TARGETDIRPREFIX)
  3187. endif
  3188. endif
  3189. ifdef SYSROOTPATH
  3190. override FPCOPT+=-XR$(SYSROOTPATH)
  3191. else
  3192. ifeq ($(OS_TARGET),$(OS_SOURCE))
  3193. ifeq ($(OS_TARGET),darwin)
  3194. ifeq ($(CPU_TARGET),aarch64)
  3195. ifneq ($(wildcard /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk),)
  3196. override FPCOPT+=-XR/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk
  3197. endif
  3198. endif
  3199. endif
  3200. endif
  3201. endif
  3202. ifdef CREATESHARED
  3203. override FPCOPT+=-Cg
  3204. endif
  3205. ifneq ($(filter $(OS_TARGET),dragonfly freebsd openbsd netbsd linux solaris),)
  3206. ifneq ($(filter $(CPU_TARGET),x86_64 mips mipsel mips64 mips64el riscv64 powerpc64),)
  3207. override FPCOPT+=-Cg
  3208. endif
  3209. endif
  3210. ifneq ($(filter $(CPU_TARGET),z80),)
  3211. override FPCOPT+=-CX -XX
  3212. endif
  3213. ifdef LINKSHARED
  3214. endif
  3215. ifdef GCCLIBDIR
  3216. override FPCOPT+=-Fl$(GCCLIBDIR)
  3217. ifdef FPCMAKEGCCLIBDIR
  3218. override FPCMAKEOPT+=-Fl$(FPCMAKEGCCLIBDIR)
  3219. else
  3220. override FPCMAKEOPT+=-Fl$(GCCLIBDIR)
  3221. endif
  3222. endif
  3223. ifdef OTHERLIBDIR
  3224. override FPCOPT+=$(addprefix -Fl,$(OTHERLIBDIR))
  3225. endif
  3226. ifdef OPT
  3227. override FPCOPT+=$(OPT)
  3228. endif
  3229. ifdef FPMAKEBUILDOPT
  3230. override FPMAKE_BUILD_OPT+=$(FPMAKEBUILDOPT)
  3231. endif
  3232. ifdef FPCOPTDEF
  3233. override FPCOPT+=$(addprefix -d,$(FPCOPTDEF))
  3234. endif
  3235. ifdef CFGFILE
  3236. override FPCOPT+=@$(CFGFILE)
  3237. endif
  3238. ifdef USEENV
  3239. override FPCEXTCMD:=$(FPCOPT)
  3240. override FPCOPT:=!FPCEXTCMD
  3241. export FPCEXTCMD
  3242. endif
  3243. override AFULL_TARGET=$(CPU_TARGET)-$(OS_TARGET)
  3244. override AFULL_SOURCE=$(CPU_SOURCE)-$(OS_SOURCE)
  3245. ifneq ($(AFULL_TARGET),$(AFULL_SOURCE))
  3246. override ACROSSCOMPILE=1
  3247. endif
  3248. ifdef ACROSSCOMPILE
  3249. override FPCOPT+=$(CROSSOPT)
  3250. endif
  3251. override COMPILER:=$(strip $(FPC) $(FPCOPT))
  3252. ifneq (,$(filter -sh,$(COMPILER)))
  3253. UseEXECPPAS=1
  3254. endif
  3255. ifneq (,$(filter -s,$(COMPILER)))
  3256. ifeq ($(FULL_SOURCE),$(FULL_TARGET))
  3257. UseEXECPPAS=1
  3258. endif
  3259. endif
  3260. ifneq ($(UseEXECPPAS),1)
  3261. EXECPPAS=
  3262. else
  3263. ifdef RUNBATCH
  3264. EXECPPAS:=@$(RUNBATCH) $(PPAS)
  3265. else
  3266. EXECPPAS:=@$(PPAS)
  3267. endif
  3268. endif
  3269. .PHONY: fpc_units
  3270. ifneq ($(TARGET_UNITS)$(TARGET_IMPLICITUNITS),)
  3271. override ALLTARGET+=fpc_units
  3272. override UNITPPUFILES=$(addsuffix $(PPUEXT),$(TARGET_UNITS))
  3273. override IMPLICITUNITPPUFILES=$(addsuffix $(PPUEXT),$(TARGET_IMPLICITUNITS))
  3274. override INSTALLPPUFILES+=$(UNITPPUFILES) $(IMPLICITUNITPPUFILES)
  3275. override CLEANPPUFILES+=$(UNITPPUFILES) $(IMPLICITUNITPPUFILES)
  3276. endif
  3277. fpc_units: $(COMPILER_UNITTARGETDIR) $(UNITPPUFILES)
  3278. ifdef TARGET_RSTS
  3279. override RSTFILES=$(addsuffix $(RSTEXT),$(TARGET_RSTS))
  3280. override CLEANRSTFILES+=$(RSTFILES)
  3281. endif
  3282. .PHONY: fpc_all fpc_smart fpc_debug fpc_release fpc_shared
  3283. $(FPCMADE): $(ALLDEPENDENCIES) $(ALLTARGET)
  3284. @$(ECHOREDIR) Compiled > $(FPCMADE)
  3285. fpc_all: $(FPCMADE)
  3286. fpc_smart:
  3287. $(MAKE) all LINKSMART=1 CREATESMART=1
  3288. fpc_debug:
  3289. $(MAKE) all DEBUG=1
  3290. fpc_release:
  3291. $(MAKE) all RELEASE=1
  3292. .SUFFIXES: $(EXEEXT) $(PPUEXT) $(OEXT) $(LTOEXT) .pas .lpr .dpr .pp .rc .res
  3293. $(COMPILER_UNITTARGETDIR):
  3294. $(MKDIRTREE) $(COMPILER_UNITTARGETDIR)
  3295. $(COMPILER_TARGETDIR):
  3296. $(MKDIRTREE) $(COMPILER_TARGETDIR)
  3297. %$(PPUEXT): %.pp
  3298. $(COMPILER) $<
  3299. $(EXECPPAS)
  3300. %$(PPUEXT): %.pas
  3301. $(COMPILER) $<
  3302. $(EXECPPAS)
  3303. %$(EXEEXT): %.pp
  3304. $(COMPILER) $<
  3305. $(EXECPPAS)
  3306. %$(EXEEXT): %.pas
  3307. $(COMPILER) $<
  3308. $(EXECPPAS)
  3309. %$(EXEEXT): %.lpr
  3310. $(COMPILER) $<
  3311. $(EXECPPAS)
  3312. %$(EXEEXT): %.dpr
  3313. $(COMPILER) $<
  3314. $(EXECPPAS)
  3315. %.res: %.rc
  3316. windres -i $< -o $@
  3317. vpath %.pp $(COMPILER_SOURCEDIR) $(COMPILER_INCLUDEDIR)
  3318. vpath %.pas $(COMPILER_SOURCEDIR) $(COMPILER_INCLUDEDIR)
  3319. vpath %.lpr $(COMPILER_SOURCEDIR) $(COMPILER_INCLUDEDIR)
  3320. vpath %.dpr $(COMPILER_SOURCEDIR) $(COMPILER_INCLUDEDIR)
  3321. vpath %.inc $(COMPILER_INCLUDEDIR)
  3322. vpath %$(OEXT) $(COMPILER_UNITTARGETDIR)
  3323. vpath %$(LTOEXT) $(COMPILER_UNITTARGETDIR)
  3324. vpath %$(PPUEXT) $(COMPILER_UNITTARGETDIR)
  3325. .PHONY: fpc_shared
  3326. override INSTALLTARGET+=fpc_shared_install
  3327. ifndef SHARED_LIBVERSION
  3328. SHARED_LIBVERSION=$(FPC_VERSION)
  3329. endif
  3330. ifndef SHARED_LIBNAME
  3331. SHARED_LIBNAME=$(PACKAGE_NAME)
  3332. endif
  3333. ifndef SHARED_FULLNAME
  3334. SHARED_FULLNAME=$(SHAREDLIBPREFIX)$(SHARED_LIBNAME)-$(SHARED_LIBVERSION)$(SHAREDLIBEXT)
  3335. endif
  3336. ifndef SHARED_LIBUNITS
  3337. SHARED_LIBUNITS:=$(TARGET_UNITS) $(TARGET_IMPLICITUNITS)
  3338. override SHARED_LIBUNITS:=$(filter-out $(INSTALL_BUILDUNIT),$(SHARED_LIBUNITS))
  3339. endif
  3340. fpc_shared:
  3341. ifdef HASSHAREDLIB
  3342. $(MAKE) all CREATESHARED=1 LINKSHARED=1 CREATESMART=1
  3343. ifneq ($(SHARED_BUILD),n)
  3344. $(PPUMOVE) -q $(SHARED_LIBUNITS) -i$(COMPILER_UNITTARGETDIR) -o$(SHARED_FULLNAME) -d$(COMPILER_UNITTARGETDIR) -P$(BINUTILSPREFIX)
  3345. endif
  3346. else
  3347. @$(ECHO) Shared Libraries not supported
  3348. endif
  3349. fpc_shared_install:
  3350. ifneq ($(SHARED_BUILD),n)
  3351. ifneq ($(SHARED_LIBUNITS),)
  3352. ifneq ($(wildcard $(COMPILER_UNITTARGETDIR)/$(SHARED_FULLNAME)),)
  3353. $(INSTALL) $(COMPILER_UNITTARGETDIR)/$(SHARED_FULLNAME) $(INSTALL_SHAREDDIR)
  3354. endif
  3355. endif
  3356. endif
  3357. .PHONY: fpc_install fpc_sourceinstall fpc_exampleinstall
  3358. ifdef INSTALL_UNITS
  3359. override INSTALLPPUFILES+=$(addsuffix $(PPUEXT),$(INSTALL_UNITS))
  3360. endif
  3361. ifdef INSTALL_BUILDUNIT
  3362. override INSTALLPPUFILES:=$(filter-out $(INSTALL_BUILDUNIT)$(PPUEXT),$(INSTALLPPUFILES))
  3363. endif
  3364. ifdef INSTALLPPUFILES
  3365. ifneq ($(IMPORTLIBPREFIX)-$(STATICLIBEXT),$(STATICLIBPREFIX)-$(STATICLIBEXT))
  3366. override INSTALLPPULINKFILES:=$(subst $(PPUEXT),$(OEXT),$(INSTALLPPUFILES)) $(subst $(PPUEXT),$(LTOEXT),$(INSTALLPPUFILES)) $(addprefix $(STATICLIBPREFIX),$(subst $(PPUEXT),$(STATICLIBEXT),$(INSTALLPPUFILES))) $(addprefix $(IMPORTLIBPREFIX),$(subst $(PPUEXT),$(STATICLIBEXT),$(INSTALLPPUFILES)))
  3367. else
  3368. override INSTALLPPULINKFILES:=$(subst $(PPUEXT),$(OEXT),$(INSTALLPPUFILES)) $(subst $(PPUEXT),$(LTOEXT),$(INSTALLPPUFILES)) $(addprefix $(STATICLIBPREFIX),$(subst $(PPUEXT),$(STATICLIBEXT),$(INSTALLPPUFILES)))
  3369. endif
  3370. ifneq ($(UNITTARGETDIRPREFIX),)
  3371. override INSTALLPPUFILENAMES:=$(notdir $(INSTALLPPUFILES))
  3372. override INSTALLPPULINKFILENAMES:=$(notdir $(INSTALLPPULINKFILES))
  3373. override INSTALLPPUFILES=$(addprefix $(UNITTARGETDIRPREFIX),$(INSTALLPPUFILENAMES))
  3374. override INSTALLPPULINKFILES=$(wildcard $(addprefix $(UNITTARGETDIRPREFIX),$(INSTALLPPULINKFILENAMES)))
  3375. endif
  3376. override INSTALL_CREATEPACKAGEFPC=1
  3377. endif
  3378. ifdef INSTALLEXEFILES
  3379. ifneq ($(TARGETDIRPREFIX),)
  3380. override INSTALLEXEFILES:=$(addprefix $(TARGETDIRPREFIX),$(notdir $(INSTALLEXEFILES)))
  3381. endif
  3382. endif
  3383. fpc_install: all $(INSTALLTARGET)
  3384. ifdef INSTALLEXEFILES
  3385. $(MKDIR) $(INSTALL_BINDIR)
  3386. $(INSTALLEXE) $(INSTALLEXEFILES) $(INSTALL_BINDIR)
  3387. endif
  3388. ifdef INSTALL_CREATEPACKAGEFPC
  3389. ifdef FPCMAKE
  3390. ifdef PACKAGE_VERSION
  3391. ifneq ($(wildcard Makefile.fpc),)
  3392. $(FPCMAKE) -p -T$(CPU_TARGET)-$(OS_TARGET) Makefile.fpc
  3393. $(MKDIR) $(INSTALL_UNITDIR)
  3394. $(INSTALL) Package.fpc $(INSTALL_UNITDIR)
  3395. endif
  3396. endif
  3397. endif
  3398. endif
  3399. ifdef INSTALLPPUFILES
  3400. $(MKDIR) $(INSTALL_UNITDIR)
  3401. $(INSTALL) $(INSTALLPPUFILES) $(INSTALL_UNITDIR)
  3402. ifneq ($(INSTALLPPULINKFILES),)
  3403. $(INSTALL) $(INSTALLPPULINKFILES) $(INSTALL_UNITDIR)
  3404. endif
  3405. ifneq ($(wildcard $(LIB_FULLNAME)),)
  3406. $(MKDIR) $(INSTALL_LIBDIR)
  3407. $(INSTALL) $(LIB_FULLNAME) $(INSTALL_LIBDIR)
  3408. ifdef inUnix
  3409. ln -sf $(LIB_FULLNAME) $(INSTALL_LIBDIR)/$(LIB_NAME)
  3410. endif
  3411. endif
  3412. endif
  3413. ifdef INSTALL_FILES
  3414. $(MKDIR) $(INSTALL_DATADIR)
  3415. $(INSTALL) $(INSTALL_FILES) $(INSTALL_DATADIR)
  3416. endif
  3417. fpc_sourceinstall: distclean
  3418. $(MKDIR) $(INSTALL_SOURCEDIR)
  3419. $(COPYTREE) $(BASEDIR)/* $(INSTALL_SOURCEDIR)
  3420. fpc_exampleinstall: $(EXAMPLEINSTALLTARGET) $(addsuffix _distclean,$(TARGET_EXAMPLEDIRS))
  3421. ifdef HASEXAMPLES
  3422. $(MKDIR) $(INSTALL_EXAMPLEDIR)
  3423. endif
  3424. ifdef EXAMPLESOURCEFILES
  3425. $(COPY) $(EXAMPLESOURCEFILES) $(INSTALL_EXAMPLEDIR)
  3426. endif
  3427. ifdef TARGET_EXAMPLEDIRS
  3428. $(COPYTREE) $(addsuffix /*,$(TARGET_EXAMPLEDIRS)) $(INSTALL_EXAMPLEDIR)
  3429. endif
  3430. .PHONY: fpc_clean fpc_cleanall fpc_distclean
  3431. ifdef EXEFILES
  3432. override CLEANEXEFILES:=$(addprefix $(TARGETDIRPREFIX),$(CLEANEXEFILES))
  3433. override CLEANEXEDBGFILES:=$(addprefix $(TARGETDIRPREFIX),$(CLEANEXEDBGFILES))
  3434. endif
  3435. ifdef CLEAN_PROGRAMS
  3436. override CLEANEXEFILES+=$(addprefix $(TARGETDIRPREFIX),$(addsuffix $(EXEEXT), $(CLEAN_PROGRAMS)))
  3437. override CLEANEXEDBGFILES+=$(addprefix $(TARGETDIRPREFIX),$(addsuffix $(EXEDBGEXT), $(CLEAN_PROGRAMS)))
  3438. endif
  3439. ifdef CLEAN_UNITS
  3440. override CLEANPPUFILES+=$(addsuffix $(PPUEXT),$(CLEAN_UNITS))
  3441. endif
  3442. ifdef CLEANPPUFILES
  3443. override CLEANPPULINKFILES:=$(subst $(PPUEXT),$(OEXT),$(CLEANPPUFILES)) $(subst $(PPUEXT),$(LTOEXT),$(CLEANPPUFILES)) $(addprefix $(STATICLIBPREFIX),$(subst $(PPUEXT),$(STATICLIBEXT),$(CLEANPPUFILES))) $(addprefix $(IMPORTLIBPREFIX),$(subst $(PPUEXT),$(STATICLIBEXT),$(CLEANPPUFILES)))
  3444. ifdef DEBUGSYMEXT
  3445. override CLEANPPULINKFILES+=$(subst $(PPUEXT),$(DEBUGSYMEXT),$(CLEANPPUFILES))
  3446. endif
  3447. override CLEANPPUFILENAMES:=$(CLEANPPUFILES)
  3448. override CLEANPPUFILES=$(addprefix $(UNITTARGETDIRPREFIX),$(CLEANPPUFILENAMES))
  3449. override CLEANPPULINKFILENAMES:=$(CLEANPPULINKFILES)
  3450. override CLEANPPULINKFILES=$(wildcard $(addprefix $(UNITTARGETDIRPREFIX),$(CLEANPPULINKFILENAMES)))
  3451. endif
  3452. fpc_clean: $(CLEANTARGET)
  3453. ifdef CLEANEXEFILES
  3454. -$(DEL) $(CLEANEXEFILES)
  3455. endif
  3456. ifdef CLEANEXEDBGFILES
  3457. -$(DELTREE) $(CLEANEXEDBGFILES)
  3458. endif
  3459. ifdef CLEANPPUFILES
  3460. -$(DEL) $(CLEANPPUFILES)
  3461. endif
  3462. ifneq ($(CLEANPPULINKFILES),)
  3463. -$(DEL) $(CLEANPPULINKFILES)
  3464. endif
  3465. ifdef CLEANRSTFILES
  3466. -$(DEL) $(addprefix $(UNITTARGETDIRPREFIX),$(CLEANRSTFILES))
  3467. endif
  3468. ifdef CLEAN_FILES
  3469. -$(DEL) $(CLEAN_FILES)
  3470. endif
  3471. ifdef LIB_NAME
  3472. -$(DEL) $(LIB_NAME) $(LIB_FULLNAME)
  3473. endif
  3474. -$(DEL) $(FPCMADE) *$(FULL_TARGET).fpm Package.fpc *$(ASMEXT)
  3475. -$(DEL) $(FPCEXTFILE) $(REDIRFILE) script*.res link*.res *_script.res *_link.res
  3476. -$(DEL) $(PPAS) *_ppas$(BATCHEXT) ppas$(BATCHEXT) ppaslink$(BATCHEXT)
  3477. fpc_cleanall: $(CLEANTARGET)
  3478. ifdef CLEANEXEFILES
  3479. -$(DEL) $(CLEANEXEFILES)
  3480. endif
  3481. ifdef COMPILER_UNITTARGETDIR
  3482. ifdef CLEANPPUFILES
  3483. -$(DEL) $(CLEANPPUFILES)
  3484. endif
  3485. ifneq ($(CLEANPPULINKFILES),)
  3486. -$(DEL) $(CLEANPPULINKFILES)
  3487. endif
  3488. ifdef CLEANRSTFILES
  3489. -$(DEL) $(addprefix $(UNITTARGETDIRPREFIX),$(CLEANRSTFILES))
  3490. endif
  3491. endif
  3492. ifdef CLEAN_FILES
  3493. -$(DEL) $(CLEAN_FILES)
  3494. endif
  3495. -$(DELTREE) units
  3496. -$(DELTREE) bin
  3497. -$(DEL) *$(OEXT) *$(LTOEXT) *$(PPUEXT) *$(RSTEXT) *$(ASMEXT) *$(STATICLIBEXT) *$(SHAREDLIBEXT) *$(PPLEXT)
  3498. ifneq ($(PPUEXT),.ppu)
  3499. -$(DEL) *.o *.ppu *.a
  3500. endif
  3501. -$(DELTREE) *$(SMARTEXT)
  3502. -$(DEL) fpcmade.* Package.fpc *.fpm
  3503. -$(DEL) $(FPCEXTFILE) $(REDIRFILE) script*.res link*.res *_script.res *_link.res
  3504. -$(DEL) $(PPAS) *_ppas$(BATCHEXT) ppas$(BATCHEXT) ppaslink$(BATCHEXT)
  3505. ifdef AOUTEXT
  3506. -$(DEL) *$(AOUTEXT)
  3507. endif
  3508. ifdef DEBUGSYMEXT
  3509. -$(DEL) *$(DEBUGSYMEXT)
  3510. endif
  3511. ifdef LOCALFPMAKEBIN
  3512. -$(DEL) $(LOCALFPMAKEBIN)
  3513. -$(DEL) $(FPMAKEBINOBJ)
  3514. endif
  3515. fpc_distclean: cleanall
  3516. .PHONY: fpc_baseinfo
  3517. override INFORULES+=fpc_baseinfo
  3518. fpc_baseinfo:
  3519. @$(ECHO)
  3520. @$(ECHO) == Package info ==
  3521. @$(ECHO) Package Name..... $(PACKAGE_NAME)
  3522. @$(ECHO) Package Version.. $(PACKAGE_VERSION)
  3523. @$(ECHO)
  3524. @$(ECHO) == Configuration info ==
  3525. @$(ECHO)
  3526. @$(ECHO) FPC.......... $(FPC)
  3527. @$(ECHO) FPC Version.. $(FPC_VERSION)
  3528. @$(ECHO) Source CPU... $(CPU_SOURCE)
  3529. @$(ECHO) Target CPU... $(CPU_TARGET)
  3530. @$(ECHO) Source OS.... $(OS_SOURCE)
  3531. @$(ECHO) Target OS.... $(OS_TARGET)
  3532. @$(ECHO) Full Source.. $(FULL_SOURCE)
  3533. @$(ECHO) Full Target.. $(FULL_TARGET)
  3534. @$(ECHO) SourceSuffix. $(SOURCESUFFIX)
  3535. @$(ECHO) TargetSuffix. $(TARGETSUFFIX)
  3536. @$(ECHO) FPC fpmake... $(FPCFPMAKE)
  3537. @$(ECHO)
  3538. @$(ECHO) == Directory info ==
  3539. @$(ECHO)
  3540. @$(ECHO) Required pkgs... $(REQUIRE_PACKAGES)
  3541. @$(ECHO)
  3542. @$(ECHO) Basedir......... $(BASEDIR)
  3543. @$(ECHO) FPCDir.......... $(FPCDIR)
  3544. @$(ECHO) CrossBinDir..... $(CROSSBINDIR)
  3545. @$(ECHO) UnitsDir........ $(UNITSDIR)
  3546. @$(ECHO) PackagesDir..... $(PACKAGESDIR)
  3547. @$(ECHO)
  3548. @$(ECHO) GCC library..... $(GCCLIBDIR)
  3549. @$(ECHO) Other library... $(OTHERLIBDIR)
  3550. @$(ECHO)
  3551. @$(ECHO) == Tools info ==
  3552. @$(ECHO)
  3553. @$(ECHO) As........ $(AS)
  3554. @$(ECHO) Ld........ $(LD)
  3555. @$(ECHO) Ar........ $(AR)
  3556. @$(ECHO) Rc........ $(RC)
  3557. @$(ECHO)
  3558. @$(ECHO) Mv........ $(MVPROG)
  3559. @$(ECHO) Cp........ $(CPPROG)
  3560. @$(ECHO) Rm........ $(RMPROG)
  3561. @$(ECHO) GInstall.. $(GINSTALL)
  3562. @$(ECHO) Echo...... $(ECHO)
  3563. @$(ECHO) Shell..... $(SHELL)
  3564. @$(ECHO) Date...... $(DATE)
  3565. @$(ECHO) FPCMake... $(FPCMAKE)
  3566. @$(ECHO) PPUMove... $(PPUMOVE)
  3567. @$(ECHO) Zip....... $(ZIPPROG)
  3568. @$(ECHO)
  3569. @$(ECHO) == Object info ==
  3570. @$(ECHO)
  3571. @$(ECHO) Target Loaders........ $(TARGET_LOADERS)
  3572. @$(ECHO) Target Units.......... $(TARGET_UNITS)
  3573. @$(ECHO) Target Implicit Units. $(TARGET_IMPLICITUNITS)
  3574. @$(ECHO) Target Programs....... $(TARGET_PROGRAMS)
  3575. @$(ECHO) Target Dirs........... $(TARGET_DIRS)
  3576. @$(ECHO) Target Examples....... $(TARGET_EXAMPLES)
  3577. @$(ECHO) Target ExampleDirs.... $(TARGET_EXAMPLEDIRS)
  3578. @$(ECHO)
  3579. @$(ECHO) Clean Units......... $(CLEAN_UNITS)
  3580. @$(ECHO) Clean Files......... $(CLEAN_FILES)
  3581. @$(ECHO)
  3582. @$(ECHO) Install Units....... $(INSTALL_UNITS)
  3583. @$(ECHO) Install Files....... $(INSTALL_FILES)
  3584. @$(ECHO)
  3585. @$(ECHO) == Install info ==
  3586. @$(ECHO)
  3587. @$(ECHO) DateStr.............. $(DATESTR)
  3588. @$(ECHO) ZipName.............. $(ZIPNAME)
  3589. @$(ECHO) ZipPrefix............ $(ZIPPREFIX)
  3590. @$(ECHO) ZipCrossPrefix....... $(ZIPCROSSPREFIX)
  3591. @$(ECHO) ZipSuffix............ $(ZIPSUFFIX)
  3592. @$(ECHO) FullZipName.......... $(FULLZIPNAME)
  3593. @$(ECHO) Install FPC Package.. $(INSTALL_FPCPACKAGE)
  3594. @$(ECHO)
  3595. @$(ECHO) Install base dir..... $(INSTALL_BASEDIR)
  3596. @$(ECHO) Install binary dir... $(INSTALL_BINDIR)
  3597. @$(ECHO) Install library dir.. $(INSTALL_LIBDIR)
  3598. @$(ECHO) Install units dir.... $(INSTALL_UNITDIR)
  3599. @$(ECHO) Install source dir... $(INSTALL_SOURCEDIR)
  3600. @$(ECHO) Install doc dir...... $(INSTALL_DOCDIR)
  3601. @$(ECHO) Install example dir.. $(INSTALL_EXAMPLEDIR)
  3602. @$(ECHO) Install data dir..... $(INSTALL_DATADIR)
  3603. @$(ECHO)
  3604. @$(ECHO) Dist destination dir. $(DIST_DESTDIR)
  3605. @$(ECHO) Dist zip name........ $(DIST_ZIPNAME)
  3606. @$(ECHO)
  3607. .PHONY: fpc_info
  3608. fpc_info: $(INFORULES)
  3609. .PHONY: fpc_makefile fpc_makefiles fpc_makefile_sub1 fpc_makefile_sub2 \
  3610. fpc_makefile_dirs
  3611. fpc_makefile:
  3612. $(FPCMAKE) -w -T$(OS_TARGET) Makefile.fpc
  3613. fpc_makefile_sub1:
  3614. ifdef TARGET_DIRS
  3615. $(FPCMAKE) -w -T$(OS_TARGET) $(addsuffix /Makefile.fpc,$(TARGET_DIRS))
  3616. endif
  3617. ifdef TARGET_EXAMPLEDIRS
  3618. $(FPCMAKE) -w -T$(OS_TARGET) $(addsuffix /Makefile.fpc,$(TARGET_EXAMPLEDIRS))
  3619. endif
  3620. fpc_makefile_sub2: $(addsuffix _makefile_dirs,$(TARGET_DIRS) $(TARGET_EXAMPLEDIRS))
  3621. fpc_makefile_dirs: fpc_makefile_sub1 fpc_makefile_sub2
  3622. fpc_makefiles: fpc_makefile fpc_makefile_dirs
  3623. debug: fpc_debug
  3624. smart: fpc_smart
  3625. release: fpc_release
  3626. units: fpc_units
  3627. examples:
  3628. shared: fpc_shared
  3629. sourceinstall: fpc_sourceinstall
  3630. exampleinstall: fpc_exampleinstall
  3631. distinstall:
  3632. zipinstall:
  3633. zipsourceinstall:
  3634. zipexampleinstall:
  3635. zipdistinstall:
  3636. distclean: fpc_distclean
  3637. cleanall: fpc_cleanall
  3638. info: fpc_info
  3639. makefiles: fpc_makefiles
  3640. .PHONY: debug smart release units examples shared sourceinstall exampleinstall distinstall zipinstall zipsourceinstall zipexampleinstall zipdistinstall distclean cleanall info makefiles
  3641. ifneq ($(wildcard fpcmake.loc),)
  3642. include fpcmake.loc
  3643. endif
  3644. .NOTPARALLEL:
  3645. .PHONY: compiler_ppuclean all clean install
  3646. compiler_ppuclean:
  3647. $(MAKE) -C $(COMPILERDIR) ppuclean
  3648. all: compiler_ppuclean fpc_all
  3649. clean: cleanall
  3650. install: