Makefile 107 KB

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