Makefile 102 KB

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