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