1#
2# Don't edit, this file is generated by FPCMake Version 2.0.0 [2015-08-12 rev 31317]
3#
4default: all
5MAKEFILETARGETS=i386-linux i386-go32v2 i386-win32 i386-os2 i386-freebsd i386-beos i386-haiku i386-netbsd i386-solaris i386-qnx i386-netware i386-openbsd i386-wdosx i386-darwin i386-emx i386-watcom i386-netwlibc i386-wince i386-embedded i386-symbian i386-nativent i386-iphonesim i386-android i386-aros m68k-linux m68k-freebsd m68k-netbsd m68k-amiga m68k-atari m68k-openbsd m68k-palmos m68k-embedded powerpc-linux powerpc-netbsd powerpc-amiga powerpc-macos powerpc-darwin powerpc-morphos powerpc-embedded powerpc-wii powerpc-aix sparc-linux sparc-netbsd sparc-solaris sparc-embedded x86_64-linux x86_64-freebsd x86_64-netbsd x86_64-solaris x86_64-openbsd x86_64-darwin x86_64-win64 x86_64-embedded x86_64-iphonesim x86_64-aros x86_64-dragonfly arm-linux arm-palmos arm-darwin arm-wince arm-gba arm-nds arm-embedded arm-symbian arm-android 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-msdos aarch64-linux aarch64-darwin
6BSDs = freebsd netbsd openbsd darwin dragonfly
7UNIXs = linux $(BSDs) solaris qnx haiku aix
8LIMIT83fs = go32v2 os2 emx watcom msdos
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 units)),)
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 units)),)
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 units)),)
258override FPCDIR:=$(FPCDIR)/..
259ifeq ($(wildcard $(addprefix $(FPCDIR)/,rtl units)),)
260override FPCDIR:=$(BASEDIR)
261ifeq ($(wildcard $(addprefix $(FPCDIR)/,rtl units)),)
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
290ifeq ($(CPU_TARGET),mipsel)
291BINUTILSPREFIX=mipsel-linux-android-
292endif
293endif
294endif
295endif
296endif
297endif
298else
299BINUTILSPREFIX=$(OS_TARGET)-
300endif
301endif
302endif
303endif
304UNITSDIR:=$(wildcard $(FPCDIR)/units/$(TARGETSUFFIX))
305ifeq ($(UNITSDIR),)
306UNITSDIR:=$(wildcard $(FPCDIR)/units/$(OS_TARGET))
307endif
308PACKAGESDIR:=$(wildcard $(FPCDIR) $(FPCDIR)/packages $(FPCDIR)/packages/base $(FPCDIR)/packages/extra)
309ifndef FPCFPMAKE
310ifdef CROSSCOMPILE
311ifeq ($(strip $(wildcard $(addsuffix /compiler/ppc$(SRCEXEEXT),$(FPCDIR)))),)
312FPCPROG:=$(strip $(wildcard $(addsuffix /fpc$(SRCEXEEXT),$(SEARCHPATH))))
313ifneq ($(FPCPROG),)
314FPCPROG:=$(firstword $(FPCPROG))
315FPCFPMAKE:=$(shell $(FPCPROG) -PB)
316ifeq ($(strip $(wildcard $(FPCFPMAKE))),)
317FPCFPMAKE:=$(firstword $(FPCPROG))
318endif
319else
320override FPCFPMAKE=$(firstword $(strip $(wildcard $(addsuffix /ppc386$(SRCEXEEXT),$(SEARCHPATH)))))
321endif
322else
323FPCFPMAKE=$(strip $(wildcard $(addsuffix /compiler/ppc$(SRCEXEEXT),$(FPCDIR))))
324FPMAKE_SKIP_CONFIG=-n
325export FPCFPMAKE
326export FPMAKE_SKIP_CONFIG
327endif
328else
329FPMAKE_SKIP_CONFIG=-n
330FPCFPMAKE=$(FPC)
331endif
332endif
333override PACKAGE_NAME=lcl
334PACKAGEDIR_MAIN:=$(firstword $(subst /Makefile.fpc,,$(strip $(wildcard $(addsuffix /lcl/Makefile.fpc,$(PACKAGESDIR))))))
335DBG_OPTIONS=
336ifeq ($(OS_TARGET),darwin)
337DBG_OPTIONS=-gw
338endif
339ifeq ($(FULL_TARGET),i386-linux)
340override TARGET_UNITS+=lcl.pas
341endif
342ifeq ($(FULL_TARGET),i386-go32v2)
343override TARGET_UNITS+=lcl.pas
344endif
345ifeq ($(FULL_TARGET),i386-win32)
346override TARGET_UNITS+=lcl.pas
347endif
348ifeq ($(FULL_TARGET),i386-os2)
349override TARGET_UNITS+=lcl.pas
350endif
351ifeq ($(FULL_TARGET),i386-freebsd)
352override TARGET_UNITS+=lcl.pas
353endif
354ifeq ($(FULL_TARGET),i386-beos)
355override TARGET_UNITS+=lcl.pas
356endif
357ifeq ($(FULL_TARGET),i386-haiku)
358override TARGET_UNITS+=lcl.pas
359endif
360ifeq ($(FULL_TARGET),i386-netbsd)
361override TARGET_UNITS+=lcl.pas
362endif
363ifeq ($(FULL_TARGET),i386-solaris)
364override TARGET_UNITS+=lcl.pas
365endif
366ifeq ($(FULL_TARGET),i386-qnx)
367override TARGET_UNITS+=lcl.pas
368endif
369ifeq ($(FULL_TARGET),i386-netware)
370override TARGET_UNITS+=lcl.pas
371endif
372ifeq ($(FULL_TARGET),i386-openbsd)
373override TARGET_UNITS+=lcl.pas
374endif
375ifeq ($(FULL_TARGET),i386-wdosx)
376override TARGET_UNITS+=lcl.pas
377endif
378ifeq ($(FULL_TARGET),i386-darwin)
379override TARGET_UNITS+=lcl.pas
380endif
381ifeq ($(FULL_TARGET),i386-emx)
382override TARGET_UNITS+=lcl.pas
383endif
384ifeq ($(FULL_TARGET),i386-watcom)
385override TARGET_UNITS+=lcl.pas
386endif
387ifeq ($(FULL_TARGET),i386-netwlibc)
388override TARGET_UNITS+=lcl.pas
389endif
390ifeq ($(FULL_TARGET),i386-wince)
391override TARGET_UNITS+=lcl.pas
392endif
393ifeq ($(FULL_TARGET),i386-embedded)
394override TARGET_UNITS+=lcl.pas
395endif
396ifeq ($(FULL_TARGET),i386-symbian)
397override TARGET_UNITS+=lcl.pas
398endif
399ifeq ($(FULL_TARGET),i386-nativent)
400override TARGET_UNITS+=lcl.pas
401endif
402ifeq ($(FULL_TARGET),i386-iphonesim)
403override TARGET_UNITS+=lcl.pas
404endif
405ifeq ($(FULL_TARGET),i386-android)
406override TARGET_UNITS+=lcl.pas
407endif
408ifeq ($(FULL_TARGET),i386-aros)
409override TARGET_UNITS+=lcl.pas
410endif
411ifeq ($(FULL_TARGET),m68k-linux)
412override TARGET_UNITS+=lcl.pas
413endif
414ifeq ($(FULL_TARGET),m68k-freebsd)
415override TARGET_UNITS+=lcl.pas
416endif
417ifeq ($(FULL_TARGET),m68k-netbsd)
418override TARGET_UNITS+=lcl.pas
419endif
420ifeq ($(FULL_TARGET),m68k-amiga)
421override TARGET_UNITS+=lcl.pas
422endif
423ifeq ($(FULL_TARGET),m68k-atari)
424override TARGET_UNITS+=lcl.pas
425endif
426ifeq ($(FULL_TARGET),m68k-openbsd)
427override TARGET_UNITS+=lcl.pas
428endif
429ifeq ($(FULL_TARGET),m68k-palmos)
430override TARGET_UNITS+=lcl.pas
431endif
432ifeq ($(FULL_TARGET),m68k-embedded)
433override TARGET_UNITS+=lcl.pas
434endif
435ifeq ($(FULL_TARGET),powerpc-linux)
436override TARGET_UNITS+=lcl.pas
437endif
438ifeq ($(FULL_TARGET),powerpc-netbsd)
439override TARGET_UNITS+=lcl.pas
440endif
441ifeq ($(FULL_TARGET),powerpc-amiga)
442override TARGET_UNITS+=lcl.pas
443endif
444ifeq ($(FULL_TARGET),powerpc-macos)
445override TARGET_UNITS+=lcl.pas
446endif
447ifeq ($(FULL_TARGET),powerpc-darwin)
448override TARGET_UNITS+=lcl.pas
449endif
450ifeq ($(FULL_TARGET),powerpc-morphos)
451override TARGET_UNITS+=lcl.pas
452endif
453ifeq ($(FULL_TARGET),powerpc-embedded)
454override TARGET_UNITS+=lcl.pas
455endif
456ifeq ($(FULL_TARGET),powerpc-wii)
457override TARGET_UNITS+=lcl.pas
458endif
459ifeq ($(FULL_TARGET),powerpc-aix)
460override TARGET_UNITS+=lcl.pas
461endif
462ifeq ($(FULL_TARGET),sparc-linux)
463override TARGET_UNITS+=lcl.pas
464endif
465ifeq ($(FULL_TARGET),sparc-netbsd)
466override TARGET_UNITS+=lcl.pas
467endif
468ifeq ($(FULL_TARGET),sparc-solaris)
469override TARGET_UNITS+=lcl.pas
470endif
471ifeq ($(FULL_TARGET),sparc-embedded)
472override TARGET_UNITS+=lcl.pas
473endif
474ifeq ($(FULL_TARGET),x86_64-linux)
475override TARGET_UNITS+=lcl.pas
476endif
477ifeq ($(FULL_TARGET),x86_64-freebsd)
478override TARGET_UNITS+=lcl.pas
479endif
480ifeq ($(FULL_TARGET),x86_64-netbsd)
481override TARGET_UNITS+=lcl.pas
482endif
483ifeq ($(FULL_TARGET),x86_64-solaris)
484override TARGET_UNITS+=lcl.pas
485endif
486ifeq ($(FULL_TARGET),x86_64-openbsd)
487override TARGET_UNITS+=lcl.pas
488endif
489ifeq ($(FULL_TARGET),x86_64-darwin)
490override TARGET_UNITS+=lcl.pas
491endif
492ifeq ($(FULL_TARGET),x86_64-win64)
493override TARGET_UNITS+=lcl.pas
494endif
495ifeq ($(FULL_TARGET),x86_64-embedded)
496override TARGET_UNITS+=lcl.pas
497endif
498ifeq ($(FULL_TARGET),x86_64-iphonesim)
499override TARGET_UNITS+=lcl.pas
500endif
501ifeq ($(FULL_TARGET),x86_64-aros)
502override TARGET_UNITS+=lcl.pas
503endif
504ifeq ($(FULL_TARGET),x86_64-dragonfly)
505override TARGET_UNITS+=lcl.pas
506endif
507ifeq ($(FULL_TARGET),arm-linux)
508override TARGET_UNITS+=lcl.pas
509endif
510ifeq ($(FULL_TARGET),arm-palmos)
511override TARGET_UNITS+=lcl.pas
512endif
513ifeq ($(FULL_TARGET),arm-darwin)
514override TARGET_UNITS+=lcl.pas
515endif
516ifeq ($(FULL_TARGET),arm-wince)
517override TARGET_UNITS+=lcl.pas
518endif
519ifeq ($(FULL_TARGET),arm-gba)
520override TARGET_UNITS+=lcl.pas
521endif
522ifeq ($(FULL_TARGET),arm-nds)
523override TARGET_UNITS+=lcl.pas
524endif
525ifeq ($(FULL_TARGET),arm-embedded)
526override TARGET_UNITS+=lcl.pas
527endif
528ifeq ($(FULL_TARGET),arm-symbian)
529override TARGET_UNITS+=lcl.pas
530endif
531ifeq ($(FULL_TARGET),arm-android)
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-msdos)
574override TARGET_UNITS+=lcl.pas
575endif
576ifeq ($(FULL_TARGET),aarch64-linux)
577override TARGET_UNITS+=lcl.pas
578endif
579ifeq ($(FULL_TARGET),aarch64-darwin)
580override TARGET_UNITS+=lcl.pas
581endif
582ifeq ($(FULL_TARGET),i386-linux)
583override CLEAN_FILES+=$(wildcard $(COMPILER_UNITTARGETDIR)/*$(OEXT)) $(wildcard $(COMPILER_UNITTARGETDIR)/*$(PPUEXT)) $(wildcard $(COMPILER_UNITTARGETDIR)/*$(RSTEXT)) $(wildcard $(COMPILER_UNITTARGETDIR)/*.lfm) $(wildcard $(COMPILER_UNITTARGETDIR)/*.res) $(wildcard $(COMPILER_UNITTARGETDIR)/*.compiled) $(wildcard *$(OEXT)) $(wildcard *$(PPUEXT)) $(wildcard *$(RSTEXT))
584endif
585ifeq ($(FULL_TARGET),i386-go32v2)
586override CLEAN_FILES+=$(wildcard $(COMPILER_UNITTARGETDIR)/*$(OEXT)) $(wildcard $(COMPILER_UNITTARGETDIR)/*$(PPUEXT)) $(wildcard $(COMPILER_UNITTARGETDIR)/*$(RSTEXT)) $(wildcard $(COMPILER_UNITTARGETDIR)/*.lfm) $(wildcard $(COMPILER_UNITTARGETDIR)/*.res) $(wildcard $(COMPILER_UNITTARGETDIR)/*.compiled) $(wildcard *$(OEXT)) $(wildcard *$(PPUEXT)) $(wildcard *$(RSTEXT))
587endif
588ifeq ($(FULL_TARGET),i386-win32)
589override CLEAN_FILES+=$(wildcard $(COMPILER_UNITTARGETDIR)/*$(OEXT)) $(wildcard $(COMPILER_UNITTARGETDIR)/*$(PPUEXT)) $(wildcard $(COMPILER_UNITTARGETDIR)/*$(RSTEXT)) $(wildcard $(COMPILER_UNITTARGETDIR)/*.lfm) $(wildcard $(COMPILER_UNITTARGETDIR)/*.res) $(wildcard $(COMPILER_UNITTARGETDIR)/*.compiled) $(wildcard *$(OEXT)) $(wildcard *$(PPUEXT)) $(wildcard *$(RSTEXT))
590endif
591ifeq ($(FULL_TARGET),i386-os2)
592override CLEAN_FILES+=$(wildcard $(COMPILER_UNITTARGETDIR)/*$(OEXT)) $(wildcard $(COMPILER_UNITTARGETDIR)/*$(PPUEXT)) $(wildcard $(COMPILER_UNITTARGETDIR)/*$(RSTEXT)) $(wildcard $(COMPILER_UNITTARGETDIR)/*.lfm) $(wildcard $(COMPILER_UNITTARGETDIR)/*.res) $(wildcard $(COMPILER_UNITTARGETDIR)/*.compiled) $(wildcard *$(OEXT)) $(wildcard *$(PPUEXT)) $(wildcard *$(RSTEXT))
593endif
594ifeq ($(FULL_TARGET),i386-freebsd)
595override CLEAN_FILES+=$(wildcard $(COMPILER_UNITTARGETDIR)/*$(OEXT)) $(wildcard $(COMPILER_UNITTARGETDIR)/*$(PPUEXT)) $(wildcard $(COMPILER_UNITTARGETDIR)/*$(RSTEXT)) $(wildcard $(COMPILER_UNITTARGETDIR)/*.lfm) $(wildcard $(COMPILER_UNITTARGETDIR)/*.res) $(wildcard $(COMPILER_UNITTARGETDIR)/*.compiled) $(wildcard *$(OEXT)) $(wildcard *$(PPUEXT)) $(wildcard *$(RSTEXT))
596endif
597ifeq ($(FULL_TARGET),i386-beos)
598override CLEAN_FILES+=$(wildcard $(COMPILER_UNITTARGETDIR)/*$(OEXT)) $(wildcard $(COMPILER_UNITTARGETDIR)/*$(PPUEXT)) $(wildcard $(COMPILER_UNITTARGETDIR)/*$(RSTEXT)) $(wildcard $(COMPILER_UNITTARGETDIR)/*.lfm) $(wildcard $(COMPILER_UNITTARGETDIR)/*.res) $(wildcard $(COMPILER_UNITTARGETDIR)/*.compiled) $(wildcard *$(OEXT)) $(wildcard *$(PPUEXT)) $(wildcard *$(RSTEXT))
599endif
600ifeq ($(FULL_TARGET),i386-haiku)
601override CLEAN_FILES+=$(wildcard $(COMPILER_UNITTARGETDIR)/*$(OEXT)) $(wildcard $(COMPILER_UNITTARGETDIR)/*$(PPUEXT)) $(wildcard $(COMPILER_UNITTARGETDIR)/*$(RSTEXT)) $(wildcard $(COMPILER_UNITTARGETDIR)/*.lfm) $(wildcard $(COMPILER_UNITTARGETDIR)/*.res) $(wildcard $(COMPILER_UNITTARGETDIR)/*.compiled) $(wildcard *$(OEXT)) $(wildcard *$(PPUEXT)) $(wildcard *$(RSTEXT))
602endif
603ifeq ($(FULL_TARGET),i386-netbsd)
604override CLEAN_FILES+=$(wildcard $(COMPILER_UNITTARGETDIR)/*$(OEXT)) $(wildcard $(COMPILER_UNITTARGETDIR)/*$(PPUEXT)) $(wildcard $(COMPILER_UNITTARGETDIR)/*$(RSTEXT)) $(wildcard $(COMPILER_UNITTARGETDIR)/*.lfm) $(wildcard $(COMPILER_UNITTARGETDIR)/*.res) $(wildcard $(COMPILER_UNITTARGETDIR)/*.compiled) $(wildcard *$(OEXT)) $(wildcard *$(PPUEXT)) $(wildcard *$(RSTEXT))
605endif
606ifeq ($(FULL_TARGET),i386-solaris)
607override CLEAN_FILES+=$(wildcard $(COMPILER_UNITTARGETDIR)/*$(OEXT)) $(wildcard $(COMPILER_UNITTARGETDIR)/*$(PPUEXT)) $(wildcard $(COMPILER_UNITTARGETDIR)/*$(RSTEXT)) $(wildcard $(COMPILER_UNITTARGETDIR)/*.lfm) $(wildcard $(COMPILER_UNITTARGETDIR)/*.res) $(wildcard $(COMPILER_UNITTARGETDIR)/*.compiled) $(wildcard *$(OEXT)) $(wildcard *$(PPUEXT)) $(wildcard *$(RSTEXT))
608endif
609ifeq ($(FULL_TARGET),i386-qnx)
610override CLEAN_FILES+=$(wildcard $(COMPILER_UNITTARGETDIR)/*$(OEXT)) $(wildcard $(COMPILER_UNITTARGETDIR)/*$(PPUEXT)) $(wildcard $(COMPILER_UNITTARGETDIR)/*$(RSTEXT)) $(wildcard $(COMPILER_UNITTARGETDIR)/*.lfm) $(wildcard $(COMPILER_UNITTARGETDIR)/*.res) $(wildcard $(COMPILER_UNITTARGETDIR)/*.compiled) $(wildcard *$(OEXT)) $(wildcard *$(PPUEXT)) $(wildcard *$(RSTEXT))
611endif
612ifeq ($(FULL_TARGET),i386-netware)
613override CLEAN_FILES+=$(wildcard $(COMPILER_UNITTARGETDIR)/*$(OEXT)) $(wildcard $(COMPILER_UNITTARGETDIR)/*$(PPUEXT)) $(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-openbsd)
616override CLEAN_FILES+=$(wildcard $(COMPILER_UNITTARGETDIR)/*$(OEXT)) $(wildcard $(COMPILER_UNITTARGETDIR)/*$(PPUEXT)) $(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-wdosx)
619override CLEAN_FILES+=$(wildcard $(COMPILER_UNITTARGETDIR)/*$(OEXT)) $(wildcard $(COMPILER_UNITTARGETDIR)/*$(PPUEXT)) $(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-darwin)
622override CLEAN_FILES+=$(wildcard $(COMPILER_UNITTARGETDIR)/*$(OEXT)) $(wildcard $(COMPILER_UNITTARGETDIR)/*$(PPUEXT)) $(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-emx)
625override CLEAN_FILES+=$(wildcard $(COMPILER_UNITTARGETDIR)/*$(OEXT)) $(wildcard $(COMPILER_UNITTARGETDIR)/*$(PPUEXT)) $(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-watcom)
628override CLEAN_FILES+=$(wildcard $(COMPILER_UNITTARGETDIR)/*$(OEXT)) $(wildcard $(COMPILER_UNITTARGETDIR)/*$(PPUEXT)) $(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-netwlibc)
631override CLEAN_FILES+=$(wildcard $(COMPILER_UNITTARGETDIR)/*$(OEXT)) $(wildcard $(COMPILER_UNITTARGETDIR)/*$(PPUEXT)) $(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-wince)
634override CLEAN_FILES+=$(wildcard $(COMPILER_UNITTARGETDIR)/*$(OEXT)) $(wildcard $(COMPILER_UNITTARGETDIR)/*$(PPUEXT)) $(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-embedded)
637override CLEAN_FILES+=$(wildcard $(COMPILER_UNITTARGETDIR)/*$(OEXT)) $(wildcard $(COMPILER_UNITTARGETDIR)/*$(PPUEXT)) $(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-symbian)
640override CLEAN_FILES+=$(wildcard $(COMPILER_UNITTARGETDIR)/*$(OEXT)) $(wildcard $(COMPILER_UNITTARGETDIR)/*$(PPUEXT)) $(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-nativent)
643override CLEAN_FILES+=$(wildcard $(COMPILER_UNITTARGETDIR)/*$(OEXT)) $(wildcard $(COMPILER_UNITTARGETDIR)/*$(PPUEXT)) $(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-iphonesim)
646override CLEAN_FILES+=$(wildcard $(COMPILER_UNITTARGETDIR)/*$(OEXT)) $(wildcard $(COMPILER_UNITTARGETDIR)/*$(PPUEXT)) $(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-android)
649override CLEAN_FILES+=$(wildcard $(COMPILER_UNITTARGETDIR)/*$(OEXT)) $(wildcard $(COMPILER_UNITTARGETDIR)/*$(PPUEXT)) $(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-aros)
652override CLEAN_FILES+=$(wildcard $(COMPILER_UNITTARGETDIR)/*$(OEXT)) $(wildcard $(COMPILER_UNITTARGETDIR)/*$(PPUEXT)) $(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),m68k-linux)
655override CLEAN_FILES+=$(wildcard $(COMPILER_UNITTARGETDIR)/*$(OEXT)) $(wildcard $(COMPILER_UNITTARGETDIR)/*$(PPUEXT)) $(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),m68k-freebsd)
658override CLEAN_FILES+=$(wildcard $(COMPILER_UNITTARGETDIR)/*$(OEXT)) $(wildcard $(COMPILER_UNITTARGETDIR)/*$(PPUEXT)) $(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),m68k-netbsd)
661override CLEAN_FILES+=$(wildcard $(COMPILER_UNITTARGETDIR)/*$(OEXT)) $(wildcard $(COMPILER_UNITTARGETDIR)/*$(PPUEXT)) $(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),m68k-amiga)
664override CLEAN_FILES+=$(wildcard $(COMPILER_UNITTARGETDIR)/*$(OEXT)) $(wildcard $(COMPILER_UNITTARGETDIR)/*$(PPUEXT)) $(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),m68k-atari)
667override CLEAN_FILES+=$(wildcard $(COMPILER_UNITTARGETDIR)/*$(OEXT)) $(wildcard $(COMPILER_UNITTARGETDIR)/*$(PPUEXT)) $(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),m68k-openbsd)
670override CLEAN_FILES+=$(wildcard $(COMPILER_UNITTARGETDIR)/*$(OEXT)) $(wildcard $(COMPILER_UNITTARGETDIR)/*$(PPUEXT)) $(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),m68k-palmos)
673override CLEAN_FILES+=$(wildcard $(COMPILER_UNITTARGETDIR)/*$(OEXT)) $(wildcard $(COMPILER_UNITTARGETDIR)/*$(PPUEXT)) $(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),m68k-embedded)
676override CLEAN_FILES+=$(wildcard $(COMPILER_UNITTARGETDIR)/*$(OEXT)) $(wildcard $(COMPILER_UNITTARGETDIR)/*$(PPUEXT)) $(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),powerpc-linux)
679override CLEAN_FILES+=$(wildcard $(COMPILER_UNITTARGETDIR)/*$(OEXT)) $(wildcard $(COMPILER_UNITTARGETDIR)/*$(PPUEXT)) $(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),powerpc-netbsd)
682override CLEAN_FILES+=$(wildcard $(COMPILER_UNITTARGETDIR)/*$(OEXT)) $(wildcard $(COMPILER_UNITTARGETDIR)/*$(PPUEXT)) $(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),powerpc-amiga)
685override CLEAN_FILES+=$(wildcard $(COMPILER_UNITTARGETDIR)/*$(OEXT)) $(wildcard $(COMPILER_UNITTARGETDIR)/*$(PPUEXT)) $(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),powerpc-macos)
688override CLEAN_FILES+=$(wildcard $(COMPILER_UNITTARGETDIR)/*$(OEXT)) $(wildcard $(COMPILER_UNITTARGETDIR)/*$(PPUEXT)) $(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),powerpc-darwin)
691override CLEAN_FILES+=$(wildcard $(COMPILER_UNITTARGETDIR)/*$(OEXT)) $(wildcard $(COMPILER_UNITTARGETDIR)/*$(PPUEXT)) $(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),powerpc-morphos)
694override CLEAN_FILES+=$(wildcard $(COMPILER_UNITTARGETDIR)/*$(OEXT)) $(wildcard $(COMPILER_UNITTARGETDIR)/*$(PPUEXT)) $(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),powerpc-embedded)
697override CLEAN_FILES+=$(wildcard $(COMPILER_UNITTARGETDIR)/*$(OEXT)) $(wildcard $(COMPILER_UNITTARGETDIR)/*$(PPUEXT)) $(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),powerpc-wii)
700override CLEAN_FILES+=$(wildcard $(COMPILER_UNITTARGETDIR)/*$(OEXT)) $(wildcard $(COMPILER_UNITTARGETDIR)/*$(PPUEXT)) $(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-aix)
703override CLEAN_FILES+=$(wildcard $(COMPILER_UNITTARGETDIR)/*$(OEXT)) $(wildcard $(COMPILER_UNITTARGETDIR)/*$(PPUEXT)) $(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),sparc-linux)
706override CLEAN_FILES+=$(wildcard $(COMPILER_UNITTARGETDIR)/*$(OEXT)) $(wildcard $(COMPILER_UNITTARGETDIR)/*$(PPUEXT)) $(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),sparc-netbsd)
709override CLEAN_FILES+=$(wildcard $(COMPILER_UNITTARGETDIR)/*$(OEXT)) $(wildcard $(COMPILER_UNITTARGETDIR)/*$(PPUEXT)) $(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),sparc-solaris)
712override CLEAN_FILES+=$(wildcard $(COMPILER_UNITTARGETDIR)/*$(OEXT)) $(wildcard $(COMPILER_UNITTARGETDIR)/*$(PPUEXT)) $(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),sparc-embedded)
715override CLEAN_FILES+=$(wildcard $(COMPILER_UNITTARGETDIR)/*$(OEXT)) $(wildcard $(COMPILER_UNITTARGETDIR)/*$(PPUEXT)) $(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),x86_64-linux)
718override CLEAN_FILES+=$(wildcard $(COMPILER_UNITTARGETDIR)/*$(OEXT)) $(wildcard $(COMPILER_UNITTARGETDIR)/*$(PPUEXT)) $(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),x86_64-freebsd)
721override CLEAN_FILES+=$(wildcard $(COMPILER_UNITTARGETDIR)/*$(OEXT)) $(wildcard $(COMPILER_UNITTARGETDIR)/*$(PPUEXT)) $(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),x86_64-netbsd)
724override CLEAN_FILES+=$(wildcard $(COMPILER_UNITTARGETDIR)/*$(OEXT)) $(wildcard $(COMPILER_UNITTARGETDIR)/*$(PPUEXT)) $(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),x86_64-solaris)
727override CLEAN_FILES+=$(wildcard $(COMPILER_UNITTARGETDIR)/*$(OEXT)) $(wildcard $(COMPILER_UNITTARGETDIR)/*$(PPUEXT)) $(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),x86_64-openbsd)
730override CLEAN_FILES+=$(wildcard $(COMPILER_UNITTARGETDIR)/*$(OEXT)) $(wildcard $(COMPILER_UNITTARGETDIR)/*$(PPUEXT)) $(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),x86_64-darwin)
733override CLEAN_FILES+=$(wildcard $(COMPILER_UNITTARGETDIR)/*$(OEXT)) $(wildcard $(COMPILER_UNITTARGETDIR)/*$(PPUEXT)) $(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),x86_64-win64)
736override CLEAN_FILES+=$(wildcard $(COMPILER_UNITTARGETDIR)/*$(OEXT)) $(wildcard $(COMPILER_UNITTARGETDIR)/*$(PPUEXT)) $(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),x86_64-embedded)
739override CLEAN_FILES+=$(wildcard $(COMPILER_UNITTARGETDIR)/*$(OEXT)) $(wildcard $(COMPILER_UNITTARGETDIR)/*$(PPUEXT)) $(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-iphonesim)
742override CLEAN_FILES+=$(wildcard $(COMPILER_UNITTARGETDIR)/*$(OEXT)) $(wildcard $(COMPILER_UNITTARGETDIR)/*$(PPUEXT)) $(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-aros)
745override CLEAN_FILES+=$(wildcard $(COMPILER_UNITTARGETDIR)/*$(OEXT)) $(wildcard $(COMPILER_UNITTARGETDIR)/*$(PPUEXT)) $(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-dragonfly)
748override CLEAN_FILES+=$(wildcard $(COMPILER_UNITTARGETDIR)/*$(OEXT)) $(wildcard $(COMPILER_UNITTARGETDIR)/*$(PPUEXT)) $(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),arm-linux)
751override CLEAN_FILES+=$(wildcard $(COMPILER_UNITTARGETDIR)/*$(OEXT)) $(wildcard $(COMPILER_UNITTARGETDIR)/*$(PPUEXT)) $(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),arm-palmos)
754override CLEAN_FILES+=$(wildcard $(COMPILER_UNITTARGETDIR)/*$(OEXT)) $(wildcard $(COMPILER_UNITTARGETDIR)/*$(PPUEXT)) $(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),arm-darwin)
757override CLEAN_FILES+=$(wildcard $(COMPILER_UNITTARGETDIR)/*$(OEXT)) $(wildcard $(COMPILER_UNITTARGETDIR)/*$(PPUEXT)) $(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),arm-wince)
760override CLEAN_FILES+=$(wildcard $(COMPILER_UNITTARGETDIR)/*$(OEXT)) $(wildcard $(COMPILER_UNITTARGETDIR)/*$(PPUEXT)) $(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),arm-gba)
763override CLEAN_FILES+=$(wildcard $(COMPILER_UNITTARGETDIR)/*$(OEXT)) $(wildcard $(COMPILER_UNITTARGETDIR)/*$(PPUEXT)) $(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),arm-nds)
766override CLEAN_FILES+=$(wildcard $(COMPILER_UNITTARGETDIR)/*$(OEXT)) $(wildcard $(COMPILER_UNITTARGETDIR)/*$(PPUEXT)) $(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),arm-embedded)
769override CLEAN_FILES+=$(wildcard $(COMPILER_UNITTARGETDIR)/*$(OEXT)) $(wildcard $(COMPILER_UNITTARGETDIR)/*$(PPUEXT)) $(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),arm-symbian)
772override CLEAN_FILES+=$(wildcard $(COMPILER_UNITTARGETDIR)/*$(OEXT)) $(wildcard $(COMPILER_UNITTARGETDIR)/*$(PPUEXT)) $(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),arm-android)
775override CLEAN_FILES+=$(wildcard $(COMPILER_UNITTARGETDIR)/*$(OEXT)) $(wildcard $(COMPILER_UNITTARGETDIR)/*$(PPUEXT)) $(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),powerpc64-linux)
778override CLEAN_FILES+=$(wildcard $(COMPILER_UNITTARGETDIR)/*$(OEXT)) $(wildcard $(COMPILER_UNITTARGETDIR)/*$(PPUEXT)) $(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),powerpc64-darwin)
781override CLEAN_FILES+=$(wildcard $(COMPILER_UNITTARGETDIR)/*$(OEXT)) $(wildcard $(COMPILER_UNITTARGETDIR)/*$(PPUEXT)) $(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),powerpc64-embedded)
784override CLEAN_FILES+=$(wildcard $(COMPILER_UNITTARGETDIR)/*$(OEXT)) $(wildcard $(COMPILER_UNITTARGETDIR)/*$(PPUEXT)) $(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),powerpc64-aix)
787override CLEAN_FILES+=$(wildcard $(COMPILER_UNITTARGETDIR)/*$(OEXT)) $(wildcard $(COMPILER_UNITTARGETDIR)/*$(PPUEXT)) $(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),avr-embedded)
790override CLEAN_FILES+=$(wildcard $(COMPILER_UNITTARGETDIR)/*$(OEXT)) $(wildcard $(COMPILER_UNITTARGETDIR)/*$(PPUEXT)) $(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),armeb-linux)
793override CLEAN_FILES+=$(wildcard $(COMPILER_UNITTARGETDIR)/*$(OEXT)) $(wildcard $(COMPILER_UNITTARGETDIR)/*$(PPUEXT)) $(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),armeb-embedded)
796override CLEAN_FILES+=$(wildcard $(COMPILER_UNITTARGETDIR)/*$(OEXT)) $(wildcard $(COMPILER_UNITTARGETDIR)/*$(PPUEXT)) $(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),mips-linux)
799override CLEAN_FILES+=$(wildcard $(COMPILER_UNITTARGETDIR)/*$(OEXT)) $(wildcard $(COMPILER_UNITTARGETDIR)/*$(PPUEXT)) $(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),mipsel-linux)
802override CLEAN_FILES+=$(wildcard $(COMPILER_UNITTARGETDIR)/*$(OEXT)) $(wildcard $(COMPILER_UNITTARGETDIR)/*$(PPUEXT)) $(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),mipsel-embedded)
805override CLEAN_FILES+=$(wildcard $(COMPILER_UNITTARGETDIR)/*$(OEXT)) $(wildcard $(COMPILER_UNITTARGETDIR)/*$(PPUEXT)) $(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),mipsel-android)
808override CLEAN_FILES+=$(wildcard $(COMPILER_UNITTARGETDIR)/*$(OEXT)) $(wildcard $(COMPILER_UNITTARGETDIR)/*$(PPUEXT)) $(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),jvm-java)
811override CLEAN_FILES+=$(wildcard $(COMPILER_UNITTARGETDIR)/*$(OEXT)) $(wildcard $(COMPILER_UNITTARGETDIR)/*$(PPUEXT)) $(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),jvm-android)
814override CLEAN_FILES+=$(wildcard $(COMPILER_UNITTARGETDIR)/*$(OEXT)) $(wildcard $(COMPILER_UNITTARGETDIR)/*$(PPUEXT)) $(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),i8086-msdos)
817override CLEAN_FILES+=$(wildcard $(COMPILER_UNITTARGETDIR)/*$(OEXT)) $(wildcard $(COMPILER_UNITTARGETDIR)/*$(PPUEXT)) $(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),aarch64-linux)
820override CLEAN_FILES+=$(wildcard $(COMPILER_UNITTARGETDIR)/*$(OEXT)) $(wildcard $(COMPILER_UNITTARGETDIR)/*$(PPUEXT)) $(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),aarch64-darwin)
823override CLEAN_FILES+=$(wildcard $(COMPILER_UNITTARGETDIR)/*$(OEXT)) $(wildcard $(COMPILER_UNITTARGETDIR)/*$(PPUEXT)) $(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),i386-linux)
826override COMPILER_OPTIONS+=-gl -dqt $(DBG_OPTIONS)
827endif
828ifeq ($(FULL_TARGET),i386-go32v2)
829override COMPILER_OPTIONS+=-gl -dqt $(DBG_OPTIONS)
830endif
831ifeq ($(FULL_TARGET),i386-win32)
832override COMPILER_OPTIONS+=-gl -dqt $(DBG_OPTIONS)
833endif
834ifeq ($(FULL_TARGET),i386-os2)
835override COMPILER_OPTIONS+=-gl -dqt $(DBG_OPTIONS)
836endif
837ifeq ($(FULL_TARGET),i386-freebsd)
838override COMPILER_OPTIONS+=-gl -dqt $(DBG_OPTIONS)
839endif
840ifeq ($(FULL_TARGET),i386-beos)
841override COMPILER_OPTIONS+=-gl -dqt $(DBG_OPTIONS)
842endif
843ifeq ($(FULL_TARGET),i386-haiku)
844override COMPILER_OPTIONS+=-gl -dqt $(DBG_OPTIONS)
845endif
846ifeq ($(FULL_TARGET),i386-netbsd)
847override COMPILER_OPTIONS+=-gl -dqt $(DBG_OPTIONS)
848endif
849ifeq ($(FULL_TARGET),i386-solaris)
850override COMPILER_OPTIONS+=-gl -dqt $(DBG_OPTIONS)
851endif
852ifeq ($(FULL_TARGET),i386-qnx)
853override COMPILER_OPTIONS+=-gl -dqt $(DBG_OPTIONS)
854endif
855ifeq ($(FULL_TARGET),i386-netware)
856override COMPILER_OPTIONS+=-gl -dqt $(DBG_OPTIONS)
857endif
858ifeq ($(FULL_TARGET),i386-openbsd)
859override COMPILER_OPTIONS+=-gl -dqt $(DBG_OPTIONS)
860endif
861ifeq ($(FULL_TARGET),i386-wdosx)
862override COMPILER_OPTIONS+=-gl -dqt $(DBG_OPTIONS)
863endif
864ifeq ($(FULL_TARGET),i386-darwin)
865override COMPILER_OPTIONS+=-gl -dqt $(DBG_OPTIONS)
866endif
867ifeq ($(FULL_TARGET),i386-emx)
868override COMPILER_OPTIONS+=-gl -dqt $(DBG_OPTIONS)
869endif
870ifeq ($(FULL_TARGET),i386-watcom)
871override COMPILER_OPTIONS+=-gl -dqt $(DBG_OPTIONS)
872endif
873ifeq ($(FULL_TARGET),i386-netwlibc)
874override COMPILER_OPTIONS+=-gl -dqt $(DBG_OPTIONS)
875endif
876ifeq ($(FULL_TARGET),i386-wince)
877override COMPILER_OPTIONS+=-gl -dqt $(DBG_OPTIONS)
878endif
879ifeq ($(FULL_TARGET),i386-embedded)
880override COMPILER_OPTIONS+=-gl -dqt $(DBG_OPTIONS)
881endif
882ifeq ($(FULL_TARGET),i386-symbian)
883override COMPILER_OPTIONS+=-gl -dqt $(DBG_OPTIONS)
884endif
885ifeq ($(FULL_TARGET),i386-nativent)
886override COMPILER_OPTIONS+=-gl -dqt $(DBG_OPTIONS)
887endif
888ifeq ($(FULL_TARGET),i386-iphonesim)
889override COMPILER_OPTIONS+=-gl -dqt $(DBG_OPTIONS)
890endif
891ifeq ($(FULL_TARGET),i386-android)
892override COMPILER_OPTIONS+=-gl -dqt $(DBG_OPTIONS)
893endif
894ifeq ($(FULL_TARGET),i386-aros)
895override COMPILER_OPTIONS+=-gl -dqt $(DBG_OPTIONS)
896endif
897ifeq ($(FULL_TARGET),m68k-linux)
898override COMPILER_OPTIONS+=-gl -dqt $(DBG_OPTIONS)
899endif
900ifeq ($(FULL_TARGET),m68k-freebsd)
901override COMPILER_OPTIONS+=-gl -dqt $(DBG_OPTIONS)
902endif
903ifeq ($(FULL_TARGET),m68k-netbsd)
904override COMPILER_OPTIONS+=-gl -dqt $(DBG_OPTIONS)
905endif
906ifeq ($(FULL_TARGET),m68k-amiga)
907override COMPILER_OPTIONS+=-gl -dqt $(DBG_OPTIONS)
908endif
909ifeq ($(FULL_TARGET),m68k-atari)
910override COMPILER_OPTIONS+=-gl -dqt $(DBG_OPTIONS)
911endif
912ifeq ($(FULL_TARGET),m68k-openbsd)
913override COMPILER_OPTIONS+=-gl -dqt $(DBG_OPTIONS)
914endif
915ifeq ($(FULL_TARGET),m68k-palmos)
916override COMPILER_OPTIONS+=-gl -dqt $(DBG_OPTIONS)
917endif
918ifeq ($(FULL_TARGET),m68k-embedded)
919override COMPILER_OPTIONS+=-gl -dqt $(DBG_OPTIONS)
920endif
921ifeq ($(FULL_TARGET),powerpc-linux)
922override COMPILER_OPTIONS+=-gl -dqt $(DBG_OPTIONS)
923endif
924ifeq ($(FULL_TARGET),powerpc-netbsd)
925override COMPILER_OPTIONS+=-gl -dqt $(DBG_OPTIONS)
926endif
927ifeq ($(FULL_TARGET),powerpc-amiga)
928override COMPILER_OPTIONS+=-gl -dqt $(DBG_OPTIONS)
929endif
930ifeq ($(FULL_TARGET),powerpc-macos)
931override COMPILER_OPTIONS+=-gl -dqt $(DBG_OPTIONS)
932endif
933ifeq ($(FULL_TARGET),powerpc-darwin)
934override COMPILER_OPTIONS+=-gl -dqt $(DBG_OPTIONS)
935endif
936ifeq ($(FULL_TARGET),powerpc-morphos)
937override COMPILER_OPTIONS+=-gl -dqt $(DBG_OPTIONS)
938endif
939ifeq ($(FULL_TARGET),powerpc-embedded)
940override COMPILER_OPTIONS+=-gl -dqt $(DBG_OPTIONS)
941endif
942ifeq ($(FULL_TARGET),powerpc-wii)
943override COMPILER_OPTIONS+=-gl -dqt $(DBG_OPTIONS)
944endif
945ifeq ($(FULL_TARGET),powerpc-aix)
946override COMPILER_OPTIONS+=-gl -dqt $(DBG_OPTIONS)
947endif
948ifeq ($(FULL_TARGET),sparc-linux)
949override COMPILER_OPTIONS+=-gl -dqt $(DBG_OPTIONS)
950endif
951ifeq ($(FULL_TARGET),sparc-netbsd)
952override COMPILER_OPTIONS+=-gl -dqt $(DBG_OPTIONS)
953endif
954ifeq ($(FULL_TARGET),sparc-solaris)
955override COMPILER_OPTIONS+=-gl -dqt $(DBG_OPTIONS)
956endif
957ifeq ($(FULL_TARGET),sparc-embedded)
958override COMPILER_OPTIONS+=-gl -dqt $(DBG_OPTIONS)
959endif
960ifeq ($(FULL_TARGET),x86_64-linux)
961override COMPILER_OPTIONS+=-gl -dqt $(DBG_OPTIONS)
962endif
963ifeq ($(FULL_TARGET),x86_64-freebsd)
964override COMPILER_OPTIONS+=-gl -dqt $(DBG_OPTIONS)
965endif
966ifeq ($(FULL_TARGET),x86_64-netbsd)
967override COMPILER_OPTIONS+=-gl -dqt $(DBG_OPTIONS)
968endif
969ifeq ($(FULL_TARGET),x86_64-solaris)
970override COMPILER_OPTIONS+=-gl -dqt $(DBG_OPTIONS)
971endif
972ifeq ($(FULL_TARGET),x86_64-openbsd)
973override COMPILER_OPTIONS+=-gl -dqt $(DBG_OPTIONS)
974endif
975ifeq ($(FULL_TARGET),x86_64-darwin)
976override COMPILER_OPTIONS+=-gl -dqt $(DBG_OPTIONS)
977endif
978ifeq ($(FULL_TARGET),x86_64-win64)
979override COMPILER_OPTIONS+=-gl -dqt $(DBG_OPTIONS)
980endif
981ifeq ($(FULL_TARGET),x86_64-embedded)
982override COMPILER_OPTIONS+=-gl -dqt $(DBG_OPTIONS)
983endif
984ifeq ($(FULL_TARGET),x86_64-iphonesim)
985override COMPILER_OPTIONS+=-gl -dqt $(DBG_OPTIONS)
986endif
987ifeq ($(FULL_TARGET),x86_64-aros)
988override COMPILER_OPTIONS+=-gl -dqt $(DBG_OPTIONS)
989endif
990ifeq ($(FULL_TARGET),x86_64-dragonfly)
991override COMPILER_OPTIONS+=-gl -dqt $(DBG_OPTIONS)
992endif
993ifeq ($(FULL_TARGET),arm-linux)
994override COMPILER_OPTIONS+=-gl -dqt $(DBG_OPTIONS)
995endif
996ifeq ($(FULL_TARGET),arm-palmos)
997override COMPILER_OPTIONS+=-gl -dqt $(DBG_OPTIONS)
998endif
999ifeq ($(FULL_TARGET),arm-darwin)
1000override COMPILER_OPTIONS+=-gl -dqt $(DBG_OPTIONS)
1001endif
1002ifeq ($(FULL_TARGET),arm-wince)
1003override COMPILER_OPTIONS+=-gl -dqt $(DBG_OPTIONS)
1004endif
1005ifeq ($(FULL_TARGET),arm-gba)
1006override COMPILER_OPTIONS+=-gl -dqt $(DBG_OPTIONS)
1007endif
1008ifeq ($(FULL_TARGET),arm-nds)
1009override COMPILER_OPTIONS+=-gl -dqt $(DBG_OPTIONS)
1010endif
1011ifeq ($(FULL_TARGET),arm-embedded)
1012override COMPILER_OPTIONS+=-gl -dqt $(DBG_OPTIONS)
1013endif
1014ifeq ($(FULL_TARGET),arm-symbian)
1015override COMPILER_OPTIONS+=-gl -dqt $(DBG_OPTIONS)
1016endif
1017ifeq ($(FULL_TARGET),arm-android)
1018override COMPILER_OPTIONS+=-gl -dqt $(DBG_OPTIONS)
1019endif
1020ifeq ($(FULL_TARGET),powerpc64-linux)
1021override COMPILER_OPTIONS+=-gl -dqt $(DBG_OPTIONS)
1022endif
1023ifeq ($(FULL_TARGET),powerpc64-darwin)
1024override COMPILER_OPTIONS+=-gl -dqt $(DBG_OPTIONS)
1025endif
1026ifeq ($(FULL_TARGET),powerpc64-embedded)
1027override COMPILER_OPTIONS+=-gl -dqt $(DBG_OPTIONS)
1028endif
1029ifeq ($(FULL_TARGET),powerpc64-aix)
1030override COMPILER_OPTIONS+=-gl -dqt $(DBG_OPTIONS)
1031endif
1032ifeq ($(FULL_TARGET),avr-embedded)
1033override COMPILER_OPTIONS+=-gl -dqt $(DBG_OPTIONS)
1034endif
1035ifeq ($(FULL_TARGET),armeb-linux)
1036override COMPILER_OPTIONS+=-gl -dqt $(DBG_OPTIONS)
1037endif
1038ifeq ($(FULL_TARGET),armeb-embedded)
1039override COMPILER_OPTIONS+=-gl -dqt $(DBG_OPTIONS)
1040endif
1041ifeq ($(FULL_TARGET),mips-linux)
1042override COMPILER_OPTIONS+=-gl -dqt $(DBG_OPTIONS)
1043endif
1044ifeq ($(FULL_TARGET),mipsel-linux)
1045override COMPILER_OPTIONS+=-gl -dqt $(DBG_OPTIONS)
1046endif
1047ifeq ($(FULL_TARGET),mipsel-embedded)
1048override COMPILER_OPTIONS+=-gl -dqt $(DBG_OPTIONS)
1049endif
1050ifeq ($(FULL_TARGET),mipsel-android)
1051override COMPILER_OPTIONS+=-gl -dqt $(DBG_OPTIONS)
1052endif
1053ifeq ($(FULL_TARGET),jvm-java)
1054override COMPILER_OPTIONS+=-gl -dqt $(DBG_OPTIONS)
1055endif
1056ifeq ($(FULL_TARGET),jvm-android)
1057override COMPILER_OPTIONS+=-gl -dqt $(DBG_OPTIONS)
1058endif
1059ifeq ($(FULL_TARGET),i8086-msdos)
1060override COMPILER_OPTIONS+=-gl -dqt $(DBG_OPTIONS)
1061endif
1062ifeq ($(FULL_TARGET),aarch64-linux)
1063override COMPILER_OPTIONS+=-gl -dqt $(DBG_OPTIONS)
1064endif
1065ifeq ($(FULL_TARGET),aarch64-darwin)
1066override COMPILER_OPTIONS+=-gl -dqt $(DBG_OPTIONS)
1067endif
1068ifeq ($(FULL_TARGET),i386-linux)
1069override COMPILER_UNITDIR+=../../units/$(CPU_TARGET)-$(OS_TARGET) ../../../packager/units/$(CPU_TARGET)-$(OS_TARGET) ../../../components/lazutils/lib/$(CPU_TARGET)-$(OS_TARGET) .. .
1070endif
1071ifeq ($(FULL_TARGET),i386-go32v2)
1072override COMPILER_UNITDIR+=../../units/$(CPU_TARGET)-$(OS_TARGET) ../../../packager/units/$(CPU_TARGET)-$(OS_TARGET) ../../../components/lazutils/lib/$(CPU_TARGET)-$(OS_TARGET) .. .
1073endif
1074ifeq ($(FULL_TARGET),i386-win32)
1075override COMPILER_UNITDIR+=../../units/$(CPU_TARGET)-$(OS_TARGET) ../../../packager/units/$(CPU_TARGET)-$(OS_TARGET) ../../../components/lazutils/lib/$(CPU_TARGET)-$(OS_TARGET) .. .
1076endif
1077ifeq ($(FULL_TARGET),i386-os2)
1078override COMPILER_UNITDIR+=../../units/$(CPU_TARGET)-$(OS_TARGET) ../../../packager/units/$(CPU_TARGET)-$(OS_TARGET) ../../../components/lazutils/lib/$(CPU_TARGET)-$(OS_TARGET) .. .
1079endif
1080ifeq ($(FULL_TARGET),i386-freebsd)
1081override COMPILER_UNITDIR+=../../units/$(CPU_TARGET)-$(OS_TARGET) ../../../packager/units/$(CPU_TARGET)-$(OS_TARGET) ../../../components/lazutils/lib/$(CPU_TARGET)-$(OS_TARGET) .. .
1082endif
1083ifeq ($(FULL_TARGET),i386-beos)
1084override COMPILER_UNITDIR+=../../units/$(CPU_TARGET)-$(OS_TARGET) ../../../packager/units/$(CPU_TARGET)-$(OS_TARGET) ../../../components/lazutils/lib/$(CPU_TARGET)-$(OS_TARGET) .. .
1085endif
1086ifeq ($(FULL_TARGET),i386-haiku)
1087override COMPILER_UNITDIR+=../../units/$(CPU_TARGET)-$(OS_TARGET) ../../../packager/units/$(CPU_TARGET)-$(OS_TARGET) ../../../components/lazutils/lib/$(CPU_TARGET)-$(OS_TARGET) .. .
1088endif
1089ifeq ($(FULL_TARGET),i386-netbsd)
1090override COMPILER_UNITDIR+=../../units/$(CPU_TARGET)-$(OS_TARGET) ../../../packager/units/$(CPU_TARGET)-$(OS_TARGET) ../../../components/lazutils/lib/$(CPU_TARGET)-$(OS_TARGET) .. .
1091endif
1092ifeq ($(FULL_TARGET),i386-solaris)
1093override COMPILER_UNITDIR+=../../units/$(CPU_TARGET)-$(OS_TARGET) ../../../packager/units/$(CPU_TARGET)-$(OS_TARGET) ../../../components/lazutils/lib/$(CPU_TARGET)-$(OS_TARGET) .. .
1094endif
1095ifeq ($(FULL_TARGET),i386-qnx)
1096override COMPILER_UNITDIR+=../../units/$(CPU_TARGET)-$(OS_TARGET) ../../../packager/units/$(CPU_TARGET)-$(OS_TARGET) ../../../components/lazutils/lib/$(CPU_TARGET)-$(OS_TARGET) .. .
1097endif
1098ifeq ($(FULL_TARGET),i386-netware)
1099override COMPILER_UNITDIR+=../../units/$(CPU_TARGET)-$(OS_TARGET) ../../../packager/units/$(CPU_TARGET)-$(OS_TARGET) ../../../components/lazutils/lib/$(CPU_TARGET)-$(OS_TARGET) .. .
1100endif
1101ifeq ($(FULL_TARGET),i386-openbsd)
1102override COMPILER_UNITDIR+=../../units/$(CPU_TARGET)-$(OS_TARGET) ../../../packager/units/$(CPU_TARGET)-$(OS_TARGET) ../../../components/lazutils/lib/$(CPU_TARGET)-$(OS_TARGET) .. .
1103endif
1104ifeq ($(FULL_TARGET),i386-wdosx)
1105override COMPILER_UNITDIR+=../../units/$(CPU_TARGET)-$(OS_TARGET) ../../../packager/units/$(CPU_TARGET)-$(OS_TARGET) ../../../components/lazutils/lib/$(CPU_TARGET)-$(OS_TARGET) .. .
1106endif
1107ifeq ($(FULL_TARGET),i386-darwin)
1108override COMPILER_UNITDIR+=../../units/$(CPU_TARGET)-$(OS_TARGET) ../../../packager/units/$(CPU_TARGET)-$(OS_TARGET) ../../../components/lazutils/lib/$(CPU_TARGET)-$(OS_TARGET) .. .
1109endif
1110ifeq ($(FULL_TARGET),i386-emx)
1111override COMPILER_UNITDIR+=../../units/$(CPU_TARGET)-$(OS_TARGET) ../../../packager/units/$(CPU_TARGET)-$(OS_TARGET) ../../../components/lazutils/lib/$(CPU_TARGET)-$(OS_TARGET) .. .
1112endif
1113ifeq ($(FULL_TARGET),i386-watcom)
1114override COMPILER_UNITDIR+=../../units/$(CPU_TARGET)-$(OS_TARGET) ../../../packager/units/$(CPU_TARGET)-$(OS_TARGET) ../../../components/lazutils/lib/$(CPU_TARGET)-$(OS_TARGET) .. .
1115endif
1116ifeq ($(FULL_TARGET),i386-netwlibc)
1117override COMPILER_UNITDIR+=../../units/$(CPU_TARGET)-$(OS_TARGET) ../../../packager/units/$(CPU_TARGET)-$(OS_TARGET) ../../../components/lazutils/lib/$(CPU_TARGET)-$(OS_TARGET) .. .
1118endif
1119ifeq ($(FULL_TARGET),i386-wince)
1120override COMPILER_UNITDIR+=../../units/$(CPU_TARGET)-$(OS_TARGET) ../../../packager/units/$(CPU_TARGET)-$(OS_TARGET) ../../../components/lazutils/lib/$(CPU_TARGET)-$(OS_TARGET) .. .
1121endif
1122ifeq ($(FULL_TARGET),i386-embedded)
1123override COMPILER_UNITDIR+=../../units/$(CPU_TARGET)-$(OS_TARGET) ../../../packager/units/$(CPU_TARGET)-$(OS_TARGET) ../../../components/lazutils/lib/$(CPU_TARGET)-$(OS_TARGET) .. .
1124endif
1125ifeq ($(FULL_TARGET),i386-symbian)
1126override COMPILER_UNITDIR+=../../units/$(CPU_TARGET)-$(OS_TARGET) ../../../packager/units/$(CPU_TARGET)-$(OS_TARGET) ../../../components/lazutils/lib/$(CPU_TARGET)-$(OS_TARGET) .. .
1127endif
1128ifeq ($(FULL_TARGET),i386-nativent)
1129override COMPILER_UNITDIR+=../../units/$(CPU_TARGET)-$(OS_TARGET) ../../../packager/units/$(CPU_TARGET)-$(OS_TARGET) ../../../components/lazutils/lib/$(CPU_TARGET)-$(OS_TARGET) .. .
1130endif
1131ifeq ($(FULL_TARGET),i386-iphonesim)
1132override COMPILER_UNITDIR+=../../units/$(CPU_TARGET)-$(OS_TARGET) ../../../packager/units/$(CPU_TARGET)-$(OS_TARGET) ../../../components/lazutils/lib/$(CPU_TARGET)-$(OS_TARGET) .. .
1133endif
1134ifeq ($(FULL_TARGET),i386-android)
1135override COMPILER_UNITDIR+=../../units/$(CPU_TARGET)-$(OS_TARGET) ../../../packager/units/$(CPU_TARGET)-$(OS_TARGET) ../../../components/lazutils/lib/$(CPU_TARGET)-$(OS_TARGET) .. .
1136endif
1137ifeq ($(FULL_TARGET),i386-aros)
1138override COMPILER_UNITDIR+=../../units/$(CPU_TARGET)-$(OS_TARGET) ../../../packager/units/$(CPU_TARGET)-$(OS_TARGET) ../../../components/lazutils/lib/$(CPU_TARGET)-$(OS_TARGET) .. .
1139endif
1140ifeq ($(FULL_TARGET),m68k-linux)
1141override COMPILER_UNITDIR+=../../units/$(CPU_TARGET)-$(OS_TARGET) ../../../packager/units/$(CPU_TARGET)-$(OS_TARGET) ../../../components/lazutils/lib/$(CPU_TARGET)-$(OS_TARGET) .. .
1142endif
1143ifeq ($(FULL_TARGET),m68k-freebsd)
1144override COMPILER_UNITDIR+=../../units/$(CPU_TARGET)-$(OS_TARGET) ../../../packager/units/$(CPU_TARGET)-$(OS_TARGET) ../../../components/lazutils/lib/$(CPU_TARGET)-$(OS_TARGET) .. .
1145endif
1146ifeq ($(FULL_TARGET),m68k-netbsd)
1147override COMPILER_UNITDIR+=../../units/$(CPU_TARGET)-$(OS_TARGET) ../../../packager/units/$(CPU_TARGET)-$(OS_TARGET) ../../../components/lazutils/lib/$(CPU_TARGET)-$(OS_TARGET) .. .
1148endif
1149ifeq ($(FULL_TARGET),m68k-amiga)
1150override COMPILER_UNITDIR+=../../units/$(CPU_TARGET)-$(OS_TARGET) ../../../packager/units/$(CPU_TARGET)-$(OS_TARGET) ../../../components/lazutils/lib/$(CPU_TARGET)-$(OS_TARGET) .. .
1151endif
1152ifeq ($(FULL_TARGET),m68k-atari)
1153override COMPILER_UNITDIR+=../../units/$(CPU_TARGET)-$(OS_TARGET) ../../../packager/units/$(CPU_TARGET)-$(OS_TARGET) ../../../components/lazutils/lib/$(CPU_TARGET)-$(OS_TARGET) .. .
1154endif
1155ifeq ($(FULL_TARGET),m68k-openbsd)
1156override COMPILER_UNITDIR+=../../units/$(CPU_TARGET)-$(OS_TARGET) ../../../packager/units/$(CPU_TARGET)-$(OS_TARGET) ../../../components/lazutils/lib/$(CPU_TARGET)-$(OS_TARGET) .. .
1157endif
1158ifeq ($(FULL_TARGET),m68k-palmos)
1159override COMPILER_UNITDIR+=../../units/$(CPU_TARGET)-$(OS_TARGET) ../../../packager/units/$(CPU_TARGET)-$(OS_TARGET) ../../../components/lazutils/lib/$(CPU_TARGET)-$(OS_TARGET) .. .
1160endif
1161ifeq ($(FULL_TARGET),m68k-embedded)
1162override COMPILER_UNITDIR+=../../units/$(CPU_TARGET)-$(OS_TARGET) ../../../packager/units/$(CPU_TARGET)-$(OS_TARGET) ../../../components/lazutils/lib/$(CPU_TARGET)-$(OS_TARGET) .. .
1163endif
1164ifeq ($(FULL_TARGET),powerpc-linux)
1165override COMPILER_UNITDIR+=../../units/$(CPU_TARGET)-$(OS_TARGET) ../../../packager/units/$(CPU_TARGET)-$(OS_TARGET) ../../../components/lazutils/lib/$(CPU_TARGET)-$(OS_TARGET) .. .
1166endif
1167ifeq ($(FULL_TARGET),powerpc-netbsd)
1168override COMPILER_UNITDIR+=../../units/$(CPU_TARGET)-$(OS_TARGET) ../../../packager/units/$(CPU_TARGET)-$(OS_TARGET) ../../../components/lazutils/lib/$(CPU_TARGET)-$(OS_TARGET) .. .
1169endif
1170ifeq ($(FULL_TARGET),powerpc-amiga)
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),powerpc-macos)
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),powerpc-darwin)
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),powerpc-morphos)
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),powerpc-embedded)
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),powerpc-wii)
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),powerpc-aix)
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),sparc-linux)
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),sparc-netbsd)
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),sparc-solaris)
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),sparc-embedded)
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),x86_64-linux)
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),x86_64-freebsd)
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),x86_64-netbsd)
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),x86_64-solaris)
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),x86_64-openbsd)
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),x86_64-darwin)
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),x86_64-win64)
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),x86_64-embedded)
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),x86_64-iphonesim)
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),x86_64-aros)
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),x86_64-dragonfly)
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),arm-linux)
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),arm-palmos)
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),arm-darwin)
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),arm-wince)
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),arm-gba)
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),arm-nds)
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),arm-embedded)
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),arm-symbian)
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),arm-android)
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),powerpc64-linux)
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),powerpc64-darwin)
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),powerpc64-embedded)
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),powerpc64-aix)
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),avr-embedded)
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),armeb-linux)
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),armeb-embedded)
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),mips-linux)
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),mipsel-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),mipsel-embedded)
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),mipsel-android)
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),jvm-java)
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),jvm-android)
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),i8086-msdos)
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),aarch64-linux)
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),aarch64-darwin)
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),i386-linux)
1312override COMPILER_UNITTARGETDIR+=../../units/$(CPU_TARGET)-$(OS_TARGET)/qt
1313endif
1314ifeq ($(FULL_TARGET),i386-go32v2)
1315override COMPILER_UNITTARGETDIR+=../../units/$(CPU_TARGET)-$(OS_TARGET)/qt
1316endif
1317ifeq ($(FULL_TARGET),i386-win32)
1318override COMPILER_UNITTARGETDIR+=../../units/$(CPU_TARGET)-$(OS_TARGET)/qt
1319endif
1320ifeq ($(FULL_TARGET),i386-os2)
1321override COMPILER_UNITTARGETDIR+=../../units/$(CPU_TARGET)-$(OS_TARGET)/qt
1322endif
1323ifeq ($(FULL_TARGET),i386-freebsd)
1324override COMPILER_UNITTARGETDIR+=../../units/$(CPU_TARGET)-$(OS_TARGET)/qt
1325endif
1326ifeq ($(FULL_TARGET),i386-beos)
1327override COMPILER_UNITTARGETDIR+=../../units/$(CPU_TARGET)-$(OS_TARGET)/qt
1328endif
1329ifeq ($(FULL_TARGET),i386-haiku)
1330override COMPILER_UNITTARGETDIR+=../../units/$(CPU_TARGET)-$(OS_TARGET)/qt
1331endif
1332ifeq ($(FULL_TARGET),i386-netbsd)
1333override COMPILER_UNITTARGETDIR+=../../units/$(CPU_TARGET)-$(OS_TARGET)/qt
1334endif
1335ifeq ($(FULL_TARGET),i386-solaris)
1336override COMPILER_UNITTARGETDIR+=../../units/$(CPU_TARGET)-$(OS_TARGET)/qt
1337endif
1338ifeq ($(FULL_TARGET),i386-qnx)
1339override COMPILER_UNITTARGETDIR+=../../units/$(CPU_TARGET)-$(OS_TARGET)/qt
1340endif
1341ifeq ($(FULL_TARGET),i386-netware)
1342override COMPILER_UNITTARGETDIR+=../../units/$(CPU_TARGET)-$(OS_TARGET)/qt
1343endif
1344ifeq ($(FULL_TARGET),i386-openbsd)
1345override COMPILER_UNITTARGETDIR+=../../units/$(CPU_TARGET)-$(OS_TARGET)/qt
1346endif
1347ifeq ($(FULL_TARGET),i386-wdosx)
1348override COMPILER_UNITTARGETDIR+=../../units/$(CPU_TARGET)-$(OS_TARGET)/qt
1349endif
1350ifeq ($(FULL_TARGET),i386-darwin)
1351override COMPILER_UNITTARGETDIR+=../../units/$(CPU_TARGET)-$(OS_TARGET)/qt
1352endif
1353ifeq ($(FULL_TARGET),i386-emx)
1354override COMPILER_UNITTARGETDIR+=../../units/$(CPU_TARGET)-$(OS_TARGET)/qt
1355endif
1356ifeq ($(FULL_TARGET),i386-watcom)
1357override COMPILER_UNITTARGETDIR+=../../units/$(CPU_TARGET)-$(OS_TARGET)/qt
1358endif
1359ifeq ($(FULL_TARGET),i386-netwlibc)
1360override COMPILER_UNITTARGETDIR+=../../units/$(CPU_TARGET)-$(OS_TARGET)/qt
1361endif
1362ifeq ($(FULL_TARGET),i386-wince)
1363override COMPILER_UNITTARGETDIR+=../../units/$(CPU_TARGET)-$(OS_TARGET)/qt
1364endif
1365ifeq ($(FULL_TARGET),i386-embedded)
1366override COMPILER_UNITTARGETDIR+=../../units/$(CPU_TARGET)-$(OS_TARGET)/qt
1367endif
1368ifeq ($(FULL_TARGET),i386-symbian)
1369override COMPILER_UNITTARGETDIR+=../../units/$(CPU_TARGET)-$(OS_TARGET)/qt
1370endif
1371ifeq ($(FULL_TARGET),i386-nativent)
1372override COMPILER_UNITTARGETDIR+=../../units/$(CPU_TARGET)-$(OS_TARGET)/qt
1373endif
1374ifeq ($(FULL_TARGET),i386-iphonesim)
1375override COMPILER_UNITTARGETDIR+=../../units/$(CPU_TARGET)-$(OS_TARGET)/qt
1376endif
1377ifeq ($(FULL_TARGET),i386-android)
1378override COMPILER_UNITTARGETDIR+=../../units/$(CPU_TARGET)-$(OS_TARGET)/qt
1379endif
1380ifeq ($(FULL_TARGET),i386-aros)
1381override COMPILER_UNITTARGETDIR+=../../units/$(CPU_TARGET)-$(OS_TARGET)/qt
1382endif
1383ifeq ($(FULL_TARGET),m68k-linux)
1384override COMPILER_UNITTARGETDIR+=../../units/$(CPU_TARGET)-$(OS_TARGET)/qt
1385endif
1386ifeq ($(FULL_TARGET),m68k-freebsd)
1387override COMPILER_UNITTARGETDIR+=../../units/$(CPU_TARGET)-$(OS_TARGET)/qt
1388endif
1389ifeq ($(FULL_TARGET),m68k-netbsd)
1390override COMPILER_UNITTARGETDIR+=../../units/$(CPU_TARGET)-$(OS_TARGET)/qt
1391endif
1392ifeq ($(FULL_TARGET),m68k-amiga)
1393override COMPILER_UNITTARGETDIR+=../../units/$(CPU_TARGET)-$(OS_TARGET)/qt
1394endif
1395ifeq ($(FULL_TARGET),m68k-atari)
1396override COMPILER_UNITTARGETDIR+=../../units/$(CPU_TARGET)-$(OS_TARGET)/qt
1397endif
1398ifeq ($(FULL_TARGET),m68k-openbsd)
1399override COMPILER_UNITTARGETDIR+=../../units/$(CPU_TARGET)-$(OS_TARGET)/qt
1400endif
1401ifeq ($(FULL_TARGET),m68k-palmos)
1402override COMPILER_UNITTARGETDIR+=../../units/$(CPU_TARGET)-$(OS_TARGET)/qt
1403endif
1404ifeq ($(FULL_TARGET),m68k-embedded)
1405override COMPILER_UNITTARGETDIR+=../../units/$(CPU_TARGET)-$(OS_TARGET)/qt
1406endif
1407ifeq ($(FULL_TARGET),powerpc-linux)
1408override COMPILER_UNITTARGETDIR+=../../units/$(CPU_TARGET)-$(OS_TARGET)/qt
1409endif
1410ifeq ($(FULL_TARGET),powerpc-netbsd)
1411override COMPILER_UNITTARGETDIR+=../../units/$(CPU_TARGET)-$(OS_TARGET)/qt
1412endif
1413ifeq ($(FULL_TARGET),powerpc-amiga)
1414override COMPILER_UNITTARGETDIR+=../../units/$(CPU_TARGET)-$(OS_TARGET)/qt
1415endif
1416ifeq ($(FULL_TARGET),powerpc-macos)
1417override COMPILER_UNITTARGETDIR+=../../units/$(CPU_TARGET)-$(OS_TARGET)/qt
1418endif
1419ifeq ($(FULL_TARGET),powerpc-darwin)
1420override COMPILER_UNITTARGETDIR+=../../units/$(CPU_TARGET)-$(OS_TARGET)/qt
1421endif
1422ifeq ($(FULL_TARGET),powerpc-morphos)
1423override COMPILER_UNITTARGETDIR+=../../units/$(CPU_TARGET)-$(OS_TARGET)/qt
1424endif
1425ifeq ($(FULL_TARGET),powerpc-embedded)
1426override COMPILER_UNITTARGETDIR+=../../units/$(CPU_TARGET)-$(OS_TARGET)/qt
1427endif
1428ifeq ($(FULL_TARGET),powerpc-wii)
1429override COMPILER_UNITTARGETDIR+=../../units/$(CPU_TARGET)-$(OS_TARGET)/qt
1430endif
1431ifeq ($(FULL_TARGET),powerpc-aix)
1432override COMPILER_UNITTARGETDIR+=../../units/$(CPU_TARGET)-$(OS_TARGET)/qt
1433endif
1434ifeq ($(FULL_TARGET),sparc-linux)
1435override COMPILER_UNITTARGETDIR+=../../units/$(CPU_TARGET)-$(OS_TARGET)/qt
1436endif
1437ifeq ($(FULL_TARGET),sparc-netbsd)
1438override COMPILER_UNITTARGETDIR+=../../units/$(CPU_TARGET)-$(OS_TARGET)/qt
1439endif
1440ifeq ($(FULL_TARGET),sparc-solaris)
1441override COMPILER_UNITTARGETDIR+=../../units/$(CPU_TARGET)-$(OS_TARGET)/qt
1442endif
1443ifeq ($(FULL_TARGET),sparc-embedded)
1444override COMPILER_UNITTARGETDIR+=../../units/$(CPU_TARGET)-$(OS_TARGET)/qt
1445endif
1446ifeq ($(FULL_TARGET),x86_64-linux)
1447override COMPILER_UNITTARGETDIR+=../../units/$(CPU_TARGET)-$(OS_TARGET)/qt
1448endif
1449ifeq ($(FULL_TARGET),x86_64-freebsd)
1450override COMPILER_UNITTARGETDIR+=../../units/$(CPU_TARGET)-$(OS_TARGET)/qt
1451endif
1452ifeq ($(FULL_TARGET),x86_64-netbsd)
1453override COMPILER_UNITTARGETDIR+=../../units/$(CPU_TARGET)-$(OS_TARGET)/qt
1454endif
1455ifeq ($(FULL_TARGET),x86_64-solaris)
1456override COMPILER_UNITTARGETDIR+=../../units/$(CPU_TARGET)-$(OS_TARGET)/qt
1457endif
1458ifeq ($(FULL_TARGET),x86_64-openbsd)
1459override COMPILER_UNITTARGETDIR+=../../units/$(CPU_TARGET)-$(OS_TARGET)/qt
1460endif
1461ifeq ($(FULL_TARGET),x86_64-darwin)
1462override COMPILER_UNITTARGETDIR+=../../units/$(CPU_TARGET)-$(OS_TARGET)/qt
1463endif
1464ifeq ($(FULL_TARGET),x86_64-win64)
1465override COMPILER_UNITTARGETDIR+=../../units/$(CPU_TARGET)-$(OS_TARGET)/qt
1466endif
1467ifeq ($(FULL_TARGET),x86_64-embedded)
1468override COMPILER_UNITTARGETDIR+=../../units/$(CPU_TARGET)-$(OS_TARGET)/qt
1469endif
1470ifeq ($(FULL_TARGET),x86_64-iphonesim)
1471override COMPILER_UNITTARGETDIR+=../../units/$(CPU_TARGET)-$(OS_TARGET)/qt
1472endif
1473ifeq ($(FULL_TARGET),x86_64-aros)
1474override COMPILER_UNITTARGETDIR+=../../units/$(CPU_TARGET)-$(OS_TARGET)/qt
1475endif
1476ifeq ($(FULL_TARGET),x86_64-dragonfly)
1477override COMPILER_UNITTARGETDIR+=../../units/$(CPU_TARGET)-$(OS_TARGET)/qt
1478endif
1479ifeq ($(FULL_TARGET),arm-linux)
1480override COMPILER_UNITTARGETDIR+=../../units/$(CPU_TARGET)-$(OS_TARGET)/qt
1481endif
1482ifeq ($(FULL_TARGET),arm-palmos)
1483override COMPILER_UNITTARGETDIR+=../../units/$(CPU_TARGET)-$(OS_TARGET)/qt
1484endif
1485ifeq ($(FULL_TARGET),arm-darwin)
1486override COMPILER_UNITTARGETDIR+=../../units/$(CPU_TARGET)-$(OS_TARGET)/qt
1487endif
1488ifeq ($(FULL_TARGET),arm-wince)
1489override COMPILER_UNITTARGETDIR+=../../units/$(CPU_TARGET)-$(OS_TARGET)/qt
1490endif
1491ifeq ($(FULL_TARGET),arm-gba)
1492override COMPILER_UNITTARGETDIR+=../../units/$(CPU_TARGET)-$(OS_TARGET)/qt
1493endif
1494ifeq ($(FULL_TARGET),arm-nds)
1495override COMPILER_UNITTARGETDIR+=../../units/$(CPU_TARGET)-$(OS_TARGET)/qt
1496endif
1497ifeq ($(FULL_TARGET),arm-embedded)
1498override COMPILER_UNITTARGETDIR+=../../units/$(CPU_TARGET)-$(OS_TARGET)/qt
1499endif
1500ifeq ($(FULL_TARGET),arm-symbian)
1501override COMPILER_UNITTARGETDIR+=../../units/$(CPU_TARGET)-$(OS_TARGET)/qt
1502endif
1503ifeq ($(FULL_TARGET),arm-android)
1504override COMPILER_UNITTARGETDIR+=../../units/$(CPU_TARGET)-$(OS_TARGET)/qt
1505endif
1506ifeq ($(FULL_TARGET),powerpc64-linux)
1507override COMPILER_UNITTARGETDIR+=../../units/$(CPU_TARGET)-$(OS_TARGET)/qt
1508endif
1509ifeq ($(FULL_TARGET),powerpc64-darwin)
1510override COMPILER_UNITTARGETDIR+=../../units/$(CPU_TARGET)-$(OS_TARGET)/qt
1511endif
1512ifeq ($(FULL_TARGET),powerpc64-embedded)
1513override COMPILER_UNITTARGETDIR+=../../units/$(CPU_TARGET)-$(OS_TARGET)/qt
1514endif
1515ifeq ($(FULL_TARGET),powerpc64-aix)
1516override COMPILER_UNITTARGETDIR+=../../units/$(CPU_TARGET)-$(OS_TARGET)/qt
1517endif
1518ifeq ($(FULL_TARGET),avr-embedded)
1519override COMPILER_UNITTARGETDIR+=../../units/$(CPU_TARGET)-$(OS_TARGET)/qt
1520endif
1521ifeq ($(FULL_TARGET),armeb-linux)
1522override COMPILER_UNITTARGETDIR+=../../units/$(CPU_TARGET)-$(OS_TARGET)/qt
1523endif
1524ifeq ($(FULL_TARGET),armeb-embedded)
1525override COMPILER_UNITTARGETDIR+=../../units/$(CPU_TARGET)-$(OS_TARGET)/qt
1526endif
1527ifeq ($(FULL_TARGET),mips-linux)
1528override COMPILER_UNITTARGETDIR+=../../units/$(CPU_TARGET)-$(OS_TARGET)/qt
1529endif
1530ifeq ($(FULL_TARGET),mipsel-linux)
1531override COMPILER_UNITTARGETDIR+=../../units/$(CPU_TARGET)-$(OS_TARGET)/qt
1532endif
1533ifeq ($(FULL_TARGET),mipsel-embedded)
1534override COMPILER_UNITTARGETDIR+=../../units/$(CPU_TARGET)-$(OS_TARGET)/qt
1535endif
1536ifeq ($(FULL_TARGET),mipsel-android)
1537override COMPILER_UNITTARGETDIR+=../../units/$(CPU_TARGET)-$(OS_TARGET)/qt
1538endif
1539ifeq ($(FULL_TARGET),jvm-java)
1540override COMPILER_UNITTARGETDIR+=../../units/$(CPU_TARGET)-$(OS_TARGET)/qt
1541endif
1542ifeq ($(FULL_TARGET),jvm-android)
1543override COMPILER_UNITTARGETDIR+=../../units/$(CPU_TARGET)-$(OS_TARGET)/qt
1544endif
1545ifeq ($(FULL_TARGET),i8086-msdos)
1546override COMPILER_UNITTARGETDIR+=../../units/$(CPU_TARGET)-$(OS_TARGET)/qt
1547endif
1548ifeq ($(FULL_TARGET),aarch64-linux)
1549override COMPILER_UNITTARGETDIR+=../../units/$(CPU_TARGET)-$(OS_TARGET)/qt
1550endif
1551ifeq ($(FULL_TARGET),aarch64-darwin)
1552override COMPILER_UNITTARGETDIR+=../../units/$(CPU_TARGET)-$(OS_TARGET)/qt
1553endif
1554ifdef REQUIRE_UNITSDIR
1555override UNITSDIR+=$(REQUIRE_UNITSDIR)
1556endif
1557ifdef REQUIRE_PACKAGESDIR
1558override PACKAGESDIR+=$(REQUIRE_PACKAGESDIR)
1559endif
1560ifdef ZIPINSTALL
1561ifneq ($(findstring $(OS_TARGET),$(UNIXs)),)
1562UNIXHier=1
1563endif
1564else
1565ifneq ($(findstring $(OS_SOURCE),$(UNIXs)),)
1566UNIXHier=1
1567endif
1568endif
1569ifndef INSTALL_PREFIX
1570ifdef PREFIX
1571INSTALL_PREFIX=$(PREFIX)
1572endif
1573endif
1574ifndef INSTALL_PREFIX
1575ifdef UNIXHier
1576INSTALL_PREFIX=/usr/local
1577else
1578ifdef INSTALL_FPCPACKAGE
1579INSTALL_BASEDIR:=/pp
1580else
1581INSTALL_BASEDIR:=/$(PACKAGE_NAME)
1582endif
1583endif
1584endif
1585export INSTALL_PREFIX
1586ifdef INSTALL_FPCSUBDIR
1587export INSTALL_FPCSUBDIR
1588endif
1589ifndef DIST_DESTDIR
1590DIST_DESTDIR:=$(BASEDIR)
1591endif
1592export DIST_DESTDIR
1593ifndef COMPILER_UNITTARGETDIR
1594ifdef PACKAGEDIR_MAIN
1595COMPILER_UNITTARGETDIR=$(PACKAGEDIR_MAIN)/units/$(TARGETSUFFIX)
1596else
1597COMPILER_UNITTARGETDIR=units/$(TARGETSUFFIX)
1598endif
1599endif
1600ifndef COMPILER_TARGETDIR
1601COMPILER_TARGETDIR=.
1602endif
1603ifndef INSTALL_BASEDIR
1604ifdef UNIXHier
1605ifdef INSTALL_FPCPACKAGE
1606INSTALL_BASEDIR:=$(INSTALL_PREFIX)/lib/fpc/$(FPC_VERSION)
1607else
1608INSTALL_BASEDIR:=$(INSTALL_PREFIX)/lib/$(PACKAGE_NAME)
1609endif
1610else
1611INSTALL_BASEDIR:=$(INSTALL_PREFIX)
1612endif
1613endif
1614ifndef INSTALL_BINDIR
1615ifdef UNIXHier
1616INSTALL_BINDIR:=$(INSTALL_PREFIX)/bin
1617else
1618INSTALL_BINDIR:=$(INSTALL_BASEDIR)/bin
1619ifdef INSTALL_FPCPACKAGE
1620ifdef CROSSCOMPILE
1621ifdef CROSSINSTALL
1622INSTALL_BINDIR:=$(INSTALL_BINDIR)/$(SOURCESUFFIX)
1623else
1624INSTALL_BINDIR:=$(INSTALL_BINDIR)/$(TARGETSUFFIX)
1625endif
1626else
1627INSTALL_BINDIR:=$(INSTALL_BINDIR)/$(TARGETSUFFIX)
1628endif
1629endif
1630endif
1631endif
1632ifndef INSTALL_UNITDIR
1633INSTALL_UNITDIR:=$(INSTALL_BASEDIR)/units/$(TARGETSUFFIX)
1634ifdef INSTALL_FPCPACKAGE
1635ifdef PACKAGE_NAME
1636INSTALL_UNITDIR:=$(INSTALL_UNITDIR)/$(PACKAGE_NAME)
1637endif
1638endif
1639endif
1640ifndef INSTALL_LIBDIR
1641ifdef UNIXHier
1642INSTALL_LIBDIR:=$(INSTALL_PREFIX)/lib
1643else
1644INSTALL_LIBDIR:=$(INSTALL_UNITDIR)
1645endif
1646endif
1647ifndef INSTALL_SOURCEDIR
1648ifdef UNIXHier
1649ifdef BSDhier
1650SRCPREFIXDIR=share/src
1651else
1652ifdef linuxHier
1653SRCPREFIXDIR=share/src
1654else
1655SRCPREFIXDIR=src
1656endif
1657endif
1658ifdef INSTALL_FPCPACKAGE
1659ifdef INSTALL_FPCSUBDIR
1660INSTALL_SOURCEDIR:=$(INSTALL_PREFIX)/$(SRCPREFIXDIR)/fpc-$(FPC_VERSION)/$(INSTALL_FPCSUBDIR)/$(PACKAGE_NAME)
1661else
1662INSTALL_SOURCEDIR:=$(INSTALL_PREFIX)/$(SRCPREFIXDIR)/fpc-$(FPC_VERSION)/$(PACKAGE_NAME)
1663endif
1664else
1665INSTALL_SOURCEDIR:=$(INSTALL_PREFIX)/$(SRCPREFIXDIR)/$(PACKAGE_NAME)-$(PACKAGE_VERSION)
1666endif
1667else
1668ifdef INSTALL_FPCPACKAGE
1669ifdef INSTALL_FPCSUBDIR
1670INSTALL_SOURCEDIR:=$(INSTALL_BASEDIR)/source/$(INSTALL_FPCSUBDIR)/$(PACKAGE_NAME)
1671else
1672INSTALL_SOURCEDIR:=$(INSTALL_BASEDIR)/source/$(PACKAGE_NAME)
1673endif
1674else
1675INSTALL_SOURCEDIR:=$(INSTALL_BASEDIR)/source
1676endif
1677endif
1678endif
1679ifndef INSTALL_DOCDIR
1680ifdef UNIXHier
1681ifdef BSDhier
1682DOCPREFIXDIR=share/doc
1683else
1684ifdef linuxHier
1685DOCPREFIXDIR=share/doc
1686else
1687DOCPREFIXDIR=doc
1688endif
1689endif
1690ifdef INSTALL_FPCPACKAGE
1691INSTALL_DOCDIR:=$(INSTALL_PREFIX)/$(DOCPREFIXDIR)/fpc-$(FPC_VERSION)/$(PACKAGE_NAME)
1692else
1693INSTALL_DOCDIR:=$(INSTALL_PREFIX)/$(DOCPREFIXDIR)/$(PACKAGE_NAME)-$(PACKAGE_VERSION)
1694endif
1695else
1696ifdef INSTALL_FPCPACKAGE
1697INSTALL_DOCDIR:=$(INSTALL_BASEDIR)/doc/$(PACKAGE_NAME)
1698else
1699INSTALL_DOCDIR:=$(INSTALL_BASEDIR)/doc
1700endif
1701endif
1702endif
1703ifndef INSTALL_EXAMPLEDIR
1704ifdef UNIXHier
1705ifdef INSTALL_FPCPACKAGE
1706ifdef BSDhier
1707INSTALL_EXAMPLEDIR:=$(INSTALL_PREFIX)/share/examples/fpc-$(FPC_VERSION)/$(PACKAGE_NAME)
1708else
1709ifdef linuxHier
1710INSTALL_EXAMPLEDIR:=$(INSTALL_DOCDIR)/examples
1711else
1712INSTALL_EXAMPLEDIR:=$(INSTALL_PREFIX)/doc/fpc-$(FPC_VERSION)/examples/$(PACKAGE_NAME)
1713endif
1714endif
1715else
1716ifdef BSDhier
1717INSTALL_EXAMPLEDIR:=$(INSTALL_PREFIX)/share/examples/$(PACKAGE_NAME)-$(PACKAGE_VERSION)
1718else
1719ifdef linuxHier
1720INSTALL_EXAMPLEDIR:=$(INSTALL_DOCDIR)/examples/$(PACKAGE_NAME)-$(PACKAGE_VERSION)
1721else
1722INSTALL_EXAMPLEDIR:=$(INSTALL_PREFIX)/doc/$(PACKAGE_NAME)-$(PACKAGE_VERSION)
1723endif
1724endif
1725endif
1726else
1727ifdef INSTALL_FPCPACKAGE
1728INSTALL_EXAMPLEDIR:=$(INSTALL_BASEDIR)/examples/$(PACKAGE_NAME)
1729else
1730INSTALL_EXAMPLEDIR:=$(INSTALL_BASEDIR)/examples
1731endif
1732endif
1733endif
1734ifndef INSTALL_DATADIR
1735INSTALL_DATADIR=$(INSTALL_BASEDIR)
1736endif
1737ifndef INSTALL_SHAREDDIR
1738INSTALL_SHAREDDIR=$(INSTALL_PREFIX)/lib
1739endif
1740ifdef CROSSCOMPILE
1741ifndef CROSSBINDIR
1742CROSSBINDIR:=$(wildcard $(CROSSTARGETDIR)/bin/$(SOURCESUFFIX))
1743ifeq ($(CROSSBINDIR),)
1744CROSSBINDIR:=$(wildcard $(INSTALL_BASEDIR)/cross/$(TARGETSUFFIX)/bin/$(FULL_SOURCE))
1745endif
1746endif
1747else
1748CROSSBINDIR=
1749endif
1750BATCHEXT=.bat
1751LOADEREXT=.as
1752EXEEXT=.exe
1753PPLEXT=.ppl
1754PPUEXT=.ppu
1755OEXT=.o
1756ASMEXT=.s
1757SMARTEXT=.sl
1758STATICLIBEXT=.a
1759SHAREDLIBEXT=.so
1760SHAREDLIBPREFIX=libfp
1761STATICLIBPREFIX=libp
1762IMPORTLIBPREFIX=libimp
1763RSTEXT=.rst
1764EXEDBGEXT=.dbg
1765ifeq ($(OS_TARGET),go32v1)
1766STATICLIBPREFIX=
1767SHORTSUFFIX=v1
1768endif
1769ifeq ($(OS_TARGET),go32v2)
1770STATICLIBPREFIX=
1771SHORTSUFFIX=dos
1772IMPORTLIBPREFIX=
1773endif
1774ifeq ($(OS_TARGET),watcom)
1775STATICLIBPREFIX=
1776OEXT=.obj
1777ASMEXT=.asm
1778SHAREDLIBEXT=.dll
1779SHORTSUFFIX=wat
1780IMPORTLIBPREFIX=
1781endif
1782ifneq ($(CPU_TARGET),jvm)
1783ifeq ($(OS_TARGET),android)
1784BATCHEXT=.sh
1785EXEEXT=
1786HASSHAREDLIB=1
1787SHORTSUFFIX=lnx
1788endif
1789endif
1790ifeq ($(OS_TARGET),linux)
1791BATCHEXT=.sh
1792EXEEXT=
1793HASSHAREDLIB=1
1794SHORTSUFFIX=lnx
1795endif
1796ifeq ($(OS_TARGET),dragonfly)
1797BATCHEXT=.sh
1798EXEEXT=
1799HASSHAREDLIB=1
1800SHORTSUFFIX=df
1801endif
1802ifeq ($(OS_TARGET),freebsd)
1803BATCHEXT=.sh
1804EXEEXT=
1805HASSHAREDLIB=1
1806SHORTSUFFIX=fbs
1807endif
1808ifeq ($(OS_TARGET),netbsd)
1809BATCHEXT=.sh
1810EXEEXT=
1811HASSHAREDLIB=1
1812SHORTSUFFIX=nbs
1813endif
1814ifeq ($(OS_TARGET),openbsd)
1815BATCHEXT=.sh
1816EXEEXT=
1817HASSHAREDLIB=1
1818SHORTSUFFIX=obs
1819endif
1820ifeq ($(OS_TARGET),win32)
1821SHAREDLIBEXT=.dll
1822SHORTSUFFIX=w32
1823endif
1824ifeq ($(OS_TARGET),os2)
1825BATCHEXT=.cmd
1826AOUTEXT=.out
1827STATICLIBPREFIX=
1828SHAREDLIBEXT=.dll
1829SHORTSUFFIX=os2
1830ECHO=echo
1831IMPORTLIBPREFIX=
1832endif
1833ifeq ($(OS_TARGET),emx)
1834BATCHEXT=.cmd
1835AOUTEXT=.out
1836STATICLIBPREFIX=
1837SHAREDLIBEXT=.dll
1838SHORTSUFFIX=emx
1839ECHO=echo
1840IMPORTLIBPREFIX=
1841endif
1842ifeq ($(OS_TARGET),amiga)
1843EXEEXT=
1844SHAREDLIBEXT=.library
1845SHORTSUFFIX=amg
1846endif
1847ifeq ($(OS_TARGET),aros)
1848EXEEXT=
1849SHAREDLIBEXT=.library
1850SHORTSUFFIX=aros
1851endif
1852ifeq ($(OS_TARGET),morphos)
1853EXEEXT=
1854SHAREDLIBEXT=.library
1855SHORTSUFFIX=mos
1856endif
1857ifeq ($(OS_TARGET),atari)
1858EXEEXT=.ttp
1859SHORTSUFFIX=ata
1860endif
1861ifeq ($(OS_TARGET),beos)
1862BATCHEXT=.sh
1863EXEEXT=
1864SHORTSUFFIX=be
1865endif
1866ifeq ($(OS_TARGET),haiku)
1867BATCHEXT=.sh
1868EXEEXT=
1869SHORTSUFFIX=hai
1870endif
1871ifeq ($(OS_TARGET),solaris)
1872BATCHEXT=.sh
1873EXEEXT=
1874SHORTSUFFIX=sun
1875endif
1876ifeq ($(OS_TARGET),qnx)
1877BATCHEXT=.sh
1878EXEEXT=
1879SHORTSUFFIX=qnx
1880endif
1881ifeq ($(OS_TARGET),netware)
1882EXEEXT=.nlm
1883STATICLIBPREFIX=
1884SHORTSUFFIX=nw
1885IMPORTLIBPREFIX=imp
1886endif
1887ifeq ($(OS_TARGET),netwlibc)
1888EXEEXT=.nlm
1889STATICLIBPREFIX=
1890SHORTSUFFIX=nwl
1891IMPORTLIBPREFIX=imp
1892endif
1893ifeq ($(OS_TARGET),macos)
1894BATCHEXT=
1895EXEEXT=
1896DEBUGSYMEXT=.xcoff
1897SHORTSUFFIX=mac
1898IMPORTLIBPREFIX=imp
1899endif
1900ifneq ($(findstring $(OS_TARGET),darwin iphonesim),)
1901BATCHEXT=.sh
1902EXEEXT=
1903HASSHAREDLIB=1
1904SHORTSUFFIX=dwn
1905EXEDBGEXT=.dSYM
1906endif
1907ifeq ($(OS_TARGET),gba)
1908EXEEXT=.gba
1909SHAREDLIBEXT=.so
1910SHORTSUFFIX=gba
1911endif
1912ifeq ($(OS_TARGET),symbian)
1913SHAREDLIBEXT=.dll
1914SHORTSUFFIX=symbian
1915endif
1916ifeq ($(OS_TARGET),NativeNT)
1917SHAREDLIBEXT=.dll
1918SHORTSUFFIX=nativent
1919endif
1920ifeq ($(OS_TARGET),wii)
1921EXEEXT=.dol
1922SHAREDLIBEXT=.so
1923SHORTSUFFIX=wii
1924endif
1925ifeq ($(OS_TARGET),aix)
1926BATCHEXT=.sh
1927EXEEXT=
1928SHORTSUFFIX=aix
1929endif
1930ifeq ($(OS_TARGET),java)
1931OEXT=.class
1932ASMEXT=.j
1933SHAREDLIBEXT=.jar
1934SHORTSUFFIX=java
1935endif
1936ifeq ($(CPU_TARGET),jvm)
1937ifeq ($(OS_TARGET),android)
1938OEXT=.class
1939ASMEXT=.j
1940SHAREDLIBEXT=.jar
1941SHORTSUFFIX=android
1942endif
1943endif
1944ifeq ($(OS_TARGET),msdos)
1945STATICLIBPREFIX=
1946STATICLIBEXT=.a
1947SHORTSUFFIX=d16
1948endif
1949ifeq ($(OS_TARGET),embedded)
1950EXEEXT=.bin
1951SHORTSUFFIX=emb
1952endif
1953ifneq ($(findstring $(OS_SOURCE),$(LIMIT83fs)),)
1954FPCMADE=fpcmade.$(SHORTSUFFIX)
1955ZIPSUFFIX=$(SHORTSUFFIX)
1956ZIPCROSSPREFIX=
1957ZIPSOURCESUFFIX=src
1958ZIPEXAMPLESUFFIX=exm
1959else
1960FPCMADE=fpcmade.$(TARGETSUFFIX)
1961ZIPSOURCESUFFIX=.source
1962ZIPEXAMPLESUFFIX=.examples
1963ifdef CROSSCOMPILE
1964ZIPSUFFIX=.$(SOURCESUFFIX)
1965ZIPCROSSPREFIX=$(TARGETSUFFIX)-
1966else
1967ZIPSUFFIX=.$(TARGETSUFFIX)
1968ZIPCROSSPREFIX=
1969endif
1970endif
1971ifndef ECHO
1972ECHO:=$(strip $(wildcard $(addsuffix /gecho$(SRCEXEEXT),$(SEARCHPATH))))
1973ifeq ($(ECHO),)
1974ECHO:=$(strip $(wildcard $(addsuffix /echo$(SRCEXEEXT),$(SEARCHPATH))))
1975ifeq ($(ECHO),)
1976ECHO= __missing_command_ECHO
1977else
1978ECHO:=$(firstword $(ECHO))
1979endif
1980else
1981ECHO:=$(firstword $(ECHO))
1982endif
1983endif
1984export ECHO
1985ifndef DATE
1986DATE:=$(strip $(wildcard $(addsuffix /gdate$(SRCEXEEXT),$(SEARCHPATH))))
1987ifeq ($(DATE),)
1988DATE:=$(strip $(wildcard $(addsuffix /date$(SRCEXEEXT),$(SEARCHPATH))))
1989ifeq ($(DATE),)
1990DATE= __missing_command_DATE
1991else
1992DATE:=$(firstword $(DATE))
1993endif
1994else
1995DATE:=$(firstword $(DATE))
1996endif
1997endif
1998export DATE
1999ifndef GINSTALL
2000GINSTALL:=$(strip $(wildcard $(addsuffix /ginstall$(SRCEXEEXT),$(SEARCHPATH))))
2001ifeq ($(GINSTALL),)
2002GINSTALL:=$(strip $(wildcard $(addsuffix /install$(SRCEXEEXT),$(SEARCHPATH))))
2003ifeq ($(GINSTALL),)
2004GINSTALL= __missing_command_GINSTALL
2005else
2006GINSTALL:=$(firstword $(GINSTALL))
2007endif
2008else
2009GINSTALL:=$(firstword $(GINSTALL))
2010endif
2011endif
2012export GINSTALL
2013ifndef CPPROG
2014CPPROG:=$(strip $(wildcard $(addsuffix /cp$(SRCEXEEXT),$(SEARCHPATH))))
2015ifeq ($(CPPROG),)
2016CPPROG= __missing_command_CPPROG
2017else
2018CPPROG:=$(firstword $(CPPROG))
2019endif
2020endif
2021export CPPROG
2022ifndef RMPROG
2023RMPROG:=$(strip $(wildcard $(addsuffix /rm$(SRCEXEEXT),$(SEARCHPATH))))
2024ifeq ($(RMPROG),)
2025RMPROG= __missing_command_RMPROG
2026else
2027RMPROG:=$(firstword $(RMPROG))
2028endif
2029endif
2030export RMPROG
2031ifndef MVPROG
2032MVPROG:=$(strip $(wildcard $(addsuffix /mv$(SRCEXEEXT),$(SEARCHPATH))))
2033ifeq ($(MVPROG),)
2034MVPROG= __missing_command_MVPROG
2035else
2036MVPROG:=$(firstword $(MVPROG))
2037endif
2038endif
2039export MVPROG
2040ifndef MKDIRPROG
2041MKDIRPROG:=$(strip $(wildcard $(addsuffix /gmkdir$(SRCEXEEXT),$(SEARCHPATH))))
2042ifeq ($(MKDIRPROG),)
2043MKDIRPROG:=$(strip $(wildcard $(addsuffix /mkdir$(SRCEXEEXT),$(SEARCHPATH))))
2044ifeq ($(MKDIRPROG),)
2045MKDIRPROG= __missing_command_MKDIRPROG
2046else
2047MKDIRPROG:=$(firstword $(MKDIRPROG))
2048endif
2049else
2050MKDIRPROG:=$(firstword $(MKDIRPROG))
2051endif
2052endif
2053export MKDIRPROG
2054ifndef ECHOREDIR
2055ifndef inUnix
2056ECHOREDIR=echo
2057else
2058ECHOREDIR=$(ECHO)
2059endif
2060endif
2061ifndef COPY
2062COPY:=$(CPPROG) -fp
2063endif
2064ifndef COPYTREE
2065COPYTREE:=$(CPPROG) -Rfp
2066endif
2067ifndef MKDIRTREE
2068MKDIRTREE:=$(MKDIRPROG) -p
2069endif
2070ifndef MOVE
2071MOVE:=$(MVPROG) -f
2072endif
2073ifndef DEL
2074DEL:=$(RMPROG) -f
2075endif
2076ifndef DELTREE
2077DELTREE:=$(RMPROG) -rf
2078endif
2079ifndef INSTALL
2080ifdef inUnix
2081INSTALL:=$(GINSTALL) -c -m 644
2082else
2083INSTALL:=$(COPY)
2084endif
2085endif
2086ifndef INSTALLEXE
2087ifdef inUnix
2088INSTALLEXE:=$(GINSTALL) -c -m 755
2089else
2090INSTALLEXE:=$(COPY)
2091endif
2092endif
2093ifndef MKDIR
2094MKDIR:=$(GINSTALL) -m 755 -d
2095endif
2096export ECHOREDIR COPY COPYTREE MOVE DEL DELTREE INSTALL INSTALLEXE MKDIR
2097ifndef PPUMOVE
2098PPUMOVE:=$(strip $(wildcard $(addsuffix /ppumove$(SRCEXEEXT),$(SEARCHPATH))))
2099ifeq ($(PPUMOVE),)
2100PPUMOVE= __missing_command_PPUMOVE
2101else
2102PPUMOVE:=$(firstword $(PPUMOVE))
2103endif
2104endif
2105export PPUMOVE
2106ifndef FPCMAKE
2107FPCMAKE:=$(strip $(wildcard $(addsuffix /fpcmake$(SRCEXEEXT),$(SEARCHPATH))))
2108ifeq ($(FPCMAKE),)
2109FPCMAKE= __missing_command_FPCMAKE
2110else
2111FPCMAKE:=$(firstword $(FPCMAKE))
2112endif
2113endif
2114export FPCMAKE
2115ifndef ZIPPROG
2116ZIPPROG:=$(strip $(wildcard $(addsuffix /zip$(SRCEXEEXT),$(SEARCHPATH))))
2117ifeq ($(ZIPPROG),)
2118ZIPPROG= __missing_command_ZIPPROG
2119else
2120ZIPPROG:=$(firstword $(ZIPPROG))
2121endif
2122endif
2123export ZIPPROG
2124ifndef TARPROG
2125TARPROG:=$(strip $(wildcard $(addsuffix /gtar$(SRCEXEEXT),$(SEARCHPATH))))
2126ifeq ($(TARPROG),)
2127TARPROG:=$(strip $(wildcard $(addsuffix /tar$(SRCEXEEXT),$(SEARCHPATH))))
2128ifeq ($(TARPROG),)
2129TARPROG= __missing_command_TARPROG
2130else
2131TARPROG:=$(firstword $(TARPROG))
2132endif
2133else
2134TARPROG:=$(firstword $(TARPROG))
2135endif
2136endif
2137export TARPROG
2138ASNAME=$(BINUTILSPREFIX)as
2139LDNAME=$(BINUTILSPREFIX)ld
2140ARNAME=$(BINUTILSPREFIX)ar
2141RCNAME=$(BINUTILSPREFIX)rc
2142NASMNAME=$(BINUTILSPREFIX)nasm
2143ifndef ASPROG
2144ifdef CROSSBINDIR
2145ASPROG=$(CROSSBINDIR)/$(ASNAME)$(SRCEXEEXT)
2146else
2147ASPROG=$(ASNAME)
2148endif
2149endif
2150ifndef LDPROG
2151ifdef CROSSBINDIR
2152LDPROG=$(CROSSBINDIR)/$(LDNAME)$(SRCEXEEXT)
2153else
2154LDPROG=$(LDNAME)
2155endif
2156endif
2157ifndef RCPROG
2158ifdef CROSSBINDIR
2159RCPROG=$(CROSSBINDIR)/$(RCNAME)$(SRCEXEEXT)
2160else
2161RCPROG=$(RCNAME)
2162endif
2163endif
2164ifndef ARPROG
2165ifdef CROSSBINDIR
2166ARPROG=$(CROSSBINDIR)/$(ARNAME)$(SRCEXEEXT)
2167else
2168ARPROG=$(ARNAME)
2169endif
2170endif
2171ifndef NASMPROG
2172ifdef CROSSBINDIR
2173NASMPROG=$(CROSSBINDIR)/$(NASMNAME)$(SRCEXEEXT)
2174else
2175NASMPROG=$(NASMNAME)
2176endif
2177endif
2178AS=$(ASPROG)
2179LD=$(LDPROG)
2180RC=$(RCPROG)
2181AR=$(ARPROG)
2182NASM=$(NASMPROG)
2183ifdef inUnix
2184PPAS=./ppas$(SRCBATCHEXT)
2185else
2186PPAS=ppas$(SRCBATCHEXT)
2187endif
2188ifdef inUnix
2189LDCONFIG=ldconfig
2190else
2191LDCONFIG=
2192endif
2193ifdef DATE
2194DATESTR:=$(shell $(DATE) +%Y%m%d)
2195else
2196DATESTR=
2197endif
2198ZIPOPT=-9
2199ZIPEXT=.zip
2200ifeq ($(USETAR),bz2)
2201TAROPT=vj
2202TAREXT=.tar.bz2
2203else
2204TAROPT=vz
2205TAREXT=.tar.gz
2206endif
2207override REQUIRE_PACKAGES=rtl rtl
2208ifeq ($(FULL_TARGET),i386-linux)
2209REQUIRE_PACKAGES_RTL=1
2210endif
2211ifeq ($(FULL_TARGET),i386-go32v2)
2212REQUIRE_PACKAGES_RTL=1
2213endif
2214ifeq ($(FULL_TARGET),i386-win32)
2215REQUIRE_PACKAGES_RTL=1
2216endif
2217ifeq ($(FULL_TARGET),i386-os2)
2218REQUIRE_PACKAGES_RTL=1
2219endif
2220ifeq ($(FULL_TARGET),i386-freebsd)
2221REQUIRE_PACKAGES_RTL=1
2222endif
2223ifeq ($(FULL_TARGET),i386-beos)
2224REQUIRE_PACKAGES_RTL=1
2225endif
2226ifeq ($(FULL_TARGET),i386-haiku)
2227REQUIRE_PACKAGES_RTL=1
2228endif
2229ifeq ($(FULL_TARGET),i386-netbsd)
2230REQUIRE_PACKAGES_RTL=1
2231endif
2232ifeq ($(FULL_TARGET),i386-solaris)
2233REQUIRE_PACKAGES_RTL=1
2234endif
2235ifeq ($(FULL_TARGET),i386-qnx)
2236REQUIRE_PACKAGES_RTL=1
2237endif
2238ifeq ($(FULL_TARGET),i386-netware)
2239REQUIRE_PACKAGES_RTL=1
2240endif
2241ifeq ($(FULL_TARGET),i386-openbsd)
2242REQUIRE_PACKAGES_RTL=1
2243endif
2244ifeq ($(FULL_TARGET),i386-wdosx)
2245REQUIRE_PACKAGES_RTL=1
2246endif
2247ifeq ($(FULL_TARGET),i386-darwin)
2248REQUIRE_PACKAGES_RTL=1
2249endif
2250ifeq ($(FULL_TARGET),i386-emx)
2251REQUIRE_PACKAGES_RTL=1
2252endif
2253ifeq ($(FULL_TARGET),i386-watcom)
2254REQUIRE_PACKAGES_RTL=1
2255endif
2256ifeq ($(FULL_TARGET),i386-netwlibc)
2257REQUIRE_PACKAGES_RTL=1
2258endif
2259ifeq ($(FULL_TARGET),i386-wince)
2260REQUIRE_PACKAGES_RTL=1
2261endif
2262ifeq ($(FULL_TARGET),i386-embedded)
2263REQUIRE_PACKAGES_RTL=1
2264endif
2265ifeq ($(FULL_TARGET),i386-symbian)
2266REQUIRE_PACKAGES_RTL=1
2267endif
2268ifeq ($(FULL_TARGET),i386-nativent)
2269REQUIRE_PACKAGES_RTL=1
2270endif
2271ifeq ($(FULL_TARGET),i386-iphonesim)
2272REQUIRE_PACKAGES_RTL=1
2273endif
2274ifeq ($(FULL_TARGET),i386-android)
2275REQUIRE_PACKAGES_RTL=1
2276endif
2277ifeq ($(FULL_TARGET),i386-aros)
2278REQUIRE_PACKAGES_RTL=1
2279endif
2280ifeq ($(FULL_TARGET),m68k-linux)
2281REQUIRE_PACKAGES_RTL=1
2282endif
2283ifeq ($(FULL_TARGET),m68k-freebsd)
2284REQUIRE_PACKAGES_RTL=1
2285endif
2286ifeq ($(FULL_TARGET),m68k-netbsd)
2287REQUIRE_PACKAGES_RTL=1
2288endif
2289ifeq ($(FULL_TARGET),m68k-amiga)
2290REQUIRE_PACKAGES_RTL=1
2291endif
2292ifeq ($(FULL_TARGET),m68k-atari)
2293REQUIRE_PACKAGES_RTL=1
2294endif
2295ifeq ($(FULL_TARGET),m68k-openbsd)
2296REQUIRE_PACKAGES_RTL=1
2297endif
2298ifeq ($(FULL_TARGET),m68k-palmos)
2299REQUIRE_PACKAGES_RTL=1
2300endif
2301ifeq ($(FULL_TARGET),m68k-embedded)
2302REQUIRE_PACKAGES_RTL=1
2303endif
2304ifeq ($(FULL_TARGET),powerpc-linux)
2305REQUIRE_PACKAGES_RTL=1
2306endif
2307ifeq ($(FULL_TARGET),powerpc-netbsd)
2308REQUIRE_PACKAGES_RTL=1
2309endif
2310ifeq ($(FULL_TARGET),powerpc-amiga)
2311REQUIRE_PACKAGES_RTL=1
2312endif
2313ifeq ($(FULL_TARGET),powerpc-macos)
2314REQUIRE_PACKAGES_RTL=1
2315endif
2316ifeq ($(FULL_TARGET),powerpc-darwin)
2317REQUIRE_PACKAGES_RTL=1
2318endif
2319ifeq ($(FULL_TARGET),powerpc-morphos)
2320REQUIRE_PACKAGES_RTL=1
2321endif
2322ifeq ($(FULL_TARGET),powerpc-embedded)
2323REQUIRE_PACKAGES_RTL=1
2324endif
2325ifeq ($(FULL_TARGET),powerpc-wii)
2326REQUIRE_PACKAGES_RTL=1
2327endif
2328ifeq ($(FULL_TARGET),powerpc-aix)
2329REQUIRE_PACKAGES_RTL=1
2330endif
2331ifeq ($(FULL_TARGET),sparc-linux)
2332REQUIRE_PACKAGES_RTL=1
2333endif
2334ifeq ($(FULL_TARGET),sparc-netbsd)
2335REQUIRE_PACKAGES_RTL=1
2336endif
2337ifeq ($(FULL_TARGET),sparc-solaris)
2338REQUIRE_PACKAGES_RTL=1
2339endif
2340ifeq ($(FULL_TARGET),sparc-embedded)
2341REQUIRE_PACKAGES_RTL=1
2342endif
2343ifeq ($(FULL_TARGET),x86_64-linux)
2344REQUIRE_PACKAGES_RTL=1
2345endif
2346ifeq ($(FULL_TARGET),x86_64-freebsd)
2347REQUIRE_PACKAGES_RTL=1
2348endif
2349ifeq ($(FULL_TARGET),x86_64-netbsd)
2350REQUIRE_PACKAGES_RTL=1
2351endif
2352ifeq ($(FULL_TARGET),x86_64-solaris)
2353REQUIRE_PACKAGES_RTL=1
2354endif
2355ifeq ($(FULL_TARGET),x86_64-openbsd)
2356REQUIRE_PACKAGES_RTL=1
2357endif
2358ifeq ($(FULL_TARGET),x86_64-darwin)
2359REQUIRE_PACKAGES_RTL=1
2360endif
2361ifeq ($(FULL_TARGET),x86_64-win64)
2362REQUIRE_PACKAGES_RTL=1
2363endif
2364ifeq ($(FULL_TARGET),x86_64-embedded)
2365REQUIRE_PACKAGES_RTL=1
2366endif
2367ifeq ($(FULL_TARGET),x86_64-iphonesim)
2368REQUIRE_PACKAGES_RTL=1
2369endif
2370ifeq ($(FULL_TARGET),x86_64-aros)
2371REQUIRE_PACKAGES_RTL=1
2372endif
2373ifeq ($(FULL_TARGET),x86_64-dragonfly)
2374REQUIRE_PACKAGES_RTL=1
2375endif
2376ifeq ($(FULL_TARGET),arm-linux)
2377REQUIRE_PACKAGES_RTL=1
2378endif
2379ifeq ($(FULL_TARGET),arm-palmos)
2380REQUIRE_PACKAGES_RTL=1
2381endif
2382ifeq ($(FULL_TARGET),arm-darwin)
2383REQUIRE_PACKAGES_RTL=1
2384endif
2385ifeq ($(FULL_TARGET),arm-wince)
2386REQUIRE_PACKAGES_RTL=1
2387endif
2388ifeq ($(FULL_TARGET),arm-gba)
2389REQUIRE_PACKAGES_RTL=1
2390endif
2391ifeq ($(FULL_TARGET),arm-nds)
2392REQUIRE_PACKAGES_RTL=1
2393endif
2394ifeq ($(FULL_TARGET),arm-embedded)
2395REQUIRE_PACKAGES_RTL=1
2396endif
2397ifeq ($(FULL_TARGET),arm-symbian)
2398REQUIRE_PACKAGES_RTL=1
2399endif
2400ifeq ($(FULL_TARGET),arm-android)
2401REQUIRE_PACKAGES_RTL=1
2402endif
2403ifeq ($(FULL_TARGET),powerpc64-linux)
2404REQUIRE_PACKAGES_RTL=1
2405endif
2406ifeq ($(FULL_TARGET),powerpc64-darwin)
2407REQUIRE_PACKAGES_RTL=1
2408endif
2409ifeq ($(FULL_TARGET),powerpc64-embedded)
2410REQUIRE_PACKAGES_RTL=1
2411endif
2412ifeq ($(FULL_TARGET),powerpc64-aix)
2413REQUIRE_PACKAGES_RTL=1
2414endif
2415ifeq ($(FULL_TARGET),avr-embedded)
2416REQUIRE_PACKAGES_RTL=1
2417endif
2418ifeq ($(FULL_TARGET),armeb-linux)
2419REQUIRE_PACKAGES_RTL=1
2420endif
2421ifeq ($(FULL_TARGET),armeb-embedded)
2422REQUIRE_PACKAGES_RTL=1
2423endif
2424ifeq ($(FULL_TARGET),mips-linux)
2425REQUIRE_PACKAGES_RTL=1
2426endif
2427ifeq ($(FULL_TARGET),mipsel-linux)
2428REQUIRE_PACKAGES_RTL=1
2429endif
2430ifeq ($(FULL_TARGET),mipsel-embedded)
2431REQUIRE_PACKAGES_RTL=1
2432endif
2433ifeq ($(FULL_TARGET),mipsel-android)
2434REQUIRE_PACKAGES_RTL=1
2435endif
2436ifeq ($(FULL_TARGET),jvm-java)
2437REQUIRE_PACKAGES_RTL=1
2438endif
2439ifeq ($(FULL_TARGET),jvm-android)
2440REQUIRE_PACKAGES_RTL=1
2441endif
2442ifeq ($(FULL_TARGET),i8086-msdos)
2443REQUIRE_PACKAGES_RTL=1
2444endif
2445ifeq ($(FULL_TARGET),aarch64-linux)
2446REQUIRE_PACKAGES_RTL=1
2447endif
2448ifeq ($(FULL_TARGET),aarch64-darwin)
2449REQUIRE_PACKAGES_RTL=1
2450endif
2451ifdef REQUIRE_PACKAGES_RTL
2452PACKAGEDIR_RTL:=$(firstword $(subst /Makefile.fpc,,$(strip $(wildcard $(addsuffix /rtl/Makefile.fpc,$(PACKAGESDIR))))))
2453ifneq ($(PACKAGEDIR_RTL),)
2454ifneq ($(wildcard $(PACKAGEDIR_RTL)/units/$(TARGETSUFFIX)),)
2455UNITDIR_RTL=$(PACKAGEDIR_RTL)/units/$(TARGETSUFFIX)
2456else
2457UNITDIR_RTL=$(PACKAGEDIR_RTL)
2458endif
2459ifneq ($(wildcard $(PACKAGEDIR_RTL)/units/$(SOURCESUFFIX)),)
2460UNITDIR_FPMAKE_RTL=$(PACKAGEDIR_RTL)/units/$(SOURCESUFFIX)
2461else
2462ifneq ($(wildcard $(PACKAGEDIR_RTL)/units_bs/$(SOURCESUFFIX)),)
2463UNITDIR_FPMAKE_RTL=$(PACKAGEDIR_RTL)/units_bs/$(SOURCESUFFIX)
2464else
2465UNITDIR_FPMAKE_RTL=$(PACKAGEDIR_RTL)
2466endif
2467endif
2468ifdef CHECKDEPEND
2469$(PACKAGEDIR_RTL)/$(OS_TARGET)/$(FPCMADE):
2470	$(MAKE) -C $(PACKAGEDIR_RTL)/$(OS_TARGET) $(FPCMADE)
2471override ALLDEPENDENCIES+=$(PACKAGEDIR_RTL)/$(OS_TARGET)/$(FPCMADE)
2472endif
2473else
2474PACKAGEDIR_RTL=
2475UNITDIR_RTL:=$(subst /Package.fpc,,$(strip $(wildcard $(addsuffix /rtl/Package.fpc,$(UNITSDIR)))))
2476ifneq ($(UNITDIR_RTL),)
2477UNITDIR_RTL:=$(firstword $(UNITDIR_RTL))
2478else
2479UNITDIR_RTL=
2480endif
2481endif
2482ifdef UNITDIR_RTL
2483override COMPILER_UNITDIR+=$(UNITDIR_RTL)
2484endif
2485ifdef UNITDIR_FPMAKE_RTL
2486override COMPILER_FPMAKE_UNITDIR+=$(UNITDIR_FPMAKE_RTL)
2487endif
2488endif
2489ifndef NOCPUDEF
2490override FPCOPTDEF=$(ARCH)
2491endif
2492ifneq ($(OS_TARGET),$(OS_SOURCE))
2493override FPCOPT+=-T$(OS_TARGET)
2494endif
2495ifneq ($(CPU_TARGET),$(CPU_SOURCE))
2496override FPCOPT+=-P$(ARCH)
2497endif
2498ifeq ($(OS_SOURCE),openbsd)
2499override FPCOPT+=-FD$(NEW_BINUTILS_PATH)
2500override FPCMAKEOPT+=-FD$(NEW_BINUTILS_PATH)
2501override FPMAKE_BUILD_OPT+=-FD$(NEW_BINUTILS_PATH)
2502endif
2503ifndef CROSSBOOTSTRAP
2504ifneq ($(BINUTILSPREFIX),)
2505override FPCOPT+=-XP$(BINUTILSPREFIX)
2506endif
2507ifneq ($(BINUTILSPREFIX),)
2508override FPCOPT+=-Xr$(RLINKPATH)
2509endif
2510endif
2511ifndef CROSSCOMPILE
2512ifneq ($(BINUTILSPREFIX),)
2513override FPCMAKEOPT+=-XP$(BINUTILSPREFIX)
2514override FPMAKE_BUILD_OPT+=-XP$(BINUTILSPREFIX)
2515endif
2516endif
2517ifdef UNITDIR
2518override FPCOPT+=$(addprefix -Fu,$(UNITDIR))
2519endif
2520ifdef LIBDIR
2521override FPCOPT+=$(addprefix -Fl,$(LIBDIR))
2522endif
2523ifdef OBJDIR
2524override FPCOPT+=$(addprefix -Fo,$(OBJDIR))
2525endif
2526ifdef INCDIR
2527override FPCOPT+=$(addprefix -Fi,$(INCDIR))
2528endif
2529ifdef LINKSMART
2530override FPCOPT+=-XX
2531endif
2532ifdef CREATESMART
2533override FPCOPT+=-CX
2534endif
2535ifdef DEBUG
2536override FPCOPT+=-gl
2537override FPCOPTDEF+=DEBUG
2538endif
2539ifdef RELEASE
2540ifneq ($(findstring 2.0.,$(FPC_VERSION)),)
2541ifeq ($(CPU_TARGET),i386)
2542FPCCPUOPT:=-OG2p3
2543endif
2544ifeq ($(CPU_TARGET),powerpc)
2545FPCCPUOPT:=-O1r
2546endif
2547else
2548FPCCPUOPT:=-O2
2549endif
2550override FPCOPT+=-Ur -Xs $(FPCCPUOPT) -n
2551override FPCOPTDEF+=RELEASE
2552endif
2553ifdef STRIP
2554override FPCOPT+=-Xs
2555endif
2556ifdef OPTIMIZE
2557override FPCOPT+=-O2
2558endif
2559ifdef VERBOSE
2560override FPCOPT+=-vwni
2561endif
2562ifdef COMPILER_OPTIONS
2563override FPCOPT+=$(COMPILER_OPTIONS)
2564endif
2565ifdef COMPILER_UNITDIR
2566override FPCOPT+=$(addprefix -Fu,$(COMPILER_UNITDIR))
2567endif
2568ifdef COMPILER_LIBRARYDIR
2569override FPCOPT+=$(addprefix -Fl,$(COMPILER_LIBRARYDIR))
2570endif
2571ifdef COMPILER_OBJECTDIR
2572override FPCOPT+=$(addprefix -Fo,$(COMPILER_OBJECTDIR))
2573endif
2574ifdef COMPILER_INCLUDEDIR
2575override FPCOPT+=$(addprefix -Fi,$(COMPILER_INCLUDEDIR))
2576endif
2577ifdef CROSSBINDIR
2578override FPCOPT+=-FD$(CROSSBINDIR)
2579endif
2580ifdef COMPILER_TARGETDIR
2581override FPCOPT+=-FE$(COMPILER_TARGETDIR)
2582ifeq ($(COMPILER_TARGETDIR),.)
2583override TARGETDIRPREFIX=
2584else
2585override TARGETDIRPREFIX=$(COMPILER_TARGETDIR)/
2586endif
2587endif
2588ifdef COMPILER_UNITTARGETDIR
2589override FPCOPT+=-FU$(COMPILER_UNITTARGETDIR)
2590ifeq ($(COMPILER_UNITTARGETDIR),.)
2591override UNITTARGETDIRPREFIX=
2592else
2593override UNITTARGETDIRPREFIX=$(COMPILER_UNITTARGETDIR)/
2594endif
2595else
2596ifdef COMPILER_TARGETDIR
2597override COMPILER_UNITTARGETDIR=$(COMPILER_TARGETDIR)
2598override UNITTARGETDIRPREFIX=$(TARGETDIRPREFIX)
2599endif
2600endif
2601ifdef CREATESHARED
2602override FPCOPT+=-Cg
2603endif
2604ifneq ($(findstring $(OS_TARGET),dragonfly freebsd openbsd netbsd linux solaris),)
2605ifneq ($(findstring $(CPU_TARGET),x86_64 mips mipsel),)
2606override FPCOPT+=-Cg
2607endif
2608endif
2609ifdef LINKSHARED
2610endif
2611ifdef OPT
2612override FPCOPT+=$(OPT)
2613endif
2614ifdef FPMAKEBUILDOPT
2615override FPMAKE_BUILD_OPT+=$(FPMAKEBUILDOPT)
2616endif
2617ifdef FPCOPTDEF
2618override FPCOPT+=$(addprefix -d,$(FPCOPTDEF))
2619endif
2620ifdef CFGFILE
2621override FPCOPT+=@$(CFGFILE)
2622endif
2623ifdef USEENV
2624override FPCEXTCMD:=$(FPCOPT)
2625override FPCOPT:=!FPCEXTCMD
2626export FPCEXTCMD
2627endif
2628override AFULL_TARGET=$(CPU_TARGET)-$(OS_TARGET)
2629override AFULL_SOURCE=$(CPU_SOURCE)-$(OS_SOURCE)
2630ifneq ($(AFULL_TARGET),$(AFULL_SOURCE))
2631override ACROSSCOMPILE=1
2632endif
2633ifdef ACROSSCOMPILE
2634override FPCOPT+=$(CROSSOPT)
2635endif
2636override COMPILER:=$(strip $(FPC) $(FPCOPT))
2637ifneq (,$(findstring -sh ,$(COMPILER)))
2638UseEXECPPAS=1
2639endif
2640ifneq (,$(findstring -s ,$(COMPILER)))
2641ifeq ($(FULL_SOURCE),$(FULL_TARGET))
2642UseEXECPPAS=1
2643endif
2644endif
2645ifneq ($(UseEXECPPAS),1)
2646EXECPPAS=
2647else
2648ifdef RUNBATCH
2649EXECPPAS:=@$(RUNBATCH) $(PPAS)
2650else
2651EXECPPAS:=@$(PPAS)
2652endif
2653endif
2654.PHONY: fpc_units
2655ifneq ($(TARGET_UNITS)$(TARGET_IMPLICITUNITS),)
2656override ALLTARGET+=fpc_units
2657override UNITPPUFILES=$(addsuffix $(PPUEXT),$(TARGET_UNITS))
2658override IMPLICITUNITPPUFILES=$(addsuffix $(PPUEXT),$(TARGET_IMPLICITUNITS))
2659override INSTALLPPUFILES+=$(UNITPPUFILES) $(IMPLICITUNITPPUFILES)
2660override CLEANPPUFILES+=$(UNITPPUFILES) $(IMPLICITUNITPPUFILES)
2661endif
2662fpc_units: $(COMPILER_UNITTARGETDIR) $(UNITPPUFILES)
2663ifdef TARGET_RSTS
2664override RSTFILES=$(addsuffix $(RSTEXT),$(TARGET_RSTS))
2665override CLEANRSTFILES+=$(RSTFILES)
2666endif
2667.PHONY: fpc_all fpc_smart fpc_debug fpc_release fpc_shared
2668$(FPCMADE): $(ALLDEPENDENCIES) $(ALLTARGET)
2669	@$(ECHOREDIR) Compiled > $(FPCMADE)
2670fpc_all: $(FPCMADE)
2671fpc_smart:
2672	$(MAKE) all LINKSMART=1 CREATESMART=1
2673fpc_debug:
2674	$(MAKE) all DEBUG=1
2675fpc_release:
2676	$(MAKE) all RELEASE=1
2677.SUFFIXES: $(EXEEXT) $(PPUEXT) $(OEXT) .pas .lpr .dpr .pp .rc .res
2678$(COMPILER_UNITTARGETDIR):
2679	$(MKDIRTREE) $(COMPILER_UNITTARGETDIR)
2680$(COMPILER_TARGETDIR):
2681	$(MKDIRTREE) $(COMPILER_TARGETDIR)
2682%$(PPUEXT): %.pp
2683	$(COMPILER) $<
2684	$(EXECPPAS)
2685%$(PPUEXT): %.pas
2686	$(COMPILER) $<
2687	$(EXECPPAS)
2688%$(EXEEXT): %.pp
2689	$(COMPILER) $<
2690	$(EXECPPAS)
2691%$(EXEEXT): %.pas
2692	$(COMPILER) $<
2693	$(EXECPPAS)
2694%$(EXEEXT): %.lpr
2695	$(COMPILER) $<
2696	$(EXECPPAS)
2697%$(EXEEXT): %.dpr
2698	$(COMPILER) $<
2699	$(EXECPPAS)
2700%.res: %.rc
2701	windres -i $< -o $@
2702vpath %.pp $(COMPILER_SOURCEDIR) $(COMPILER_INCLUDEDIR)
2703vpath %.pas $(COMPILER_SOURCEDIR) $(COMPILER_INCLUDEDIR)
2704vpath %.lpr $(COMPILER_SOURCEDIR) $(COMPILER_INCLUDEDIR)
2705vpath %.dpr $(COMPILER_SOURCEDIR) $(COMPILER_INCLUDEDIR)
2706vpath %.inc $(COMPILER_INCLUDEDIR)
2707vpath %$(OEXT) $(COMPILER_UNITTARGETDIR)
2708vpath %$(PPUEXT) $(COMPILER_UNITTARGETDIR)
2709.PHONY: fpc_shared
2710override INSTALLTARGET+=fpc_shared_install
2711ifndef SHARED_LIBVERSION
2712SHARED_LIBVERSION=$(FPC_VERSION)
2713endif
2714ifndef SHARED_LIBNAME
2715SHARED_LIBNAME=$(PACKAGE_NAME)
2716endif
2717ifndef SHARED_FULLNAME
2718SHARED_FULLNAME=$(SHAREDLIBPREFIX)$(SHARED_LIBNAME)-$(SHARED_LIBVERSION)$(SHAREDLIBEXT)
2719endif
2720ifndef SHARED_LIBUNITS
2721SHARED_LIBUNITS:=$(TARGET_UNITS) $(TARGET_IMPLICITUNITS)
2722override SHARED_LIBUNITS:=$(filter-out $(INSTALL_BUILDUNIT),$(SHARED_LIBUNITS))
2723endif
2724fpc_shared:
2725ifdef HASSHAREDLIB
2726	$(MAKE) all CREATESHARED=1 LINKSHARED=1 CREATESMART=1
2727ifneq ($(SHARED_BUILD),n)
2728	$(PPUMOVE) -q $(SHARED_LIBUNITS) -i$(COMPILER_UNITTARGETDIR) -o$(SHARED_FULLNAME) -d$(COMPILER_UNITTARGETDIR)
2729endif
2730else
2731	@$(ECHO) Shared Libraries not supported
2732endif
2733fpc_shared_install:
2734ifneq ($(SHARED_BUILD),n)
2735ifneq ($(SHARED_LIBUNITS),)
2736ifneq ($(wildcard $(COMPILER_UNITTARGETDIR)/$(SHARED_FULLNAME)),)
2737	$(INSTALL) $(COMPILER_UNITTARGETDIR)/$(SHARED_FULLNAME) $(INSTALL_SHAREDDIR)
2738endif
2739endif
2740endif
2741.PHONY: fpc_install fpc_sourceinstall fpc_exampleinstall
2742ifdef INSTALL_UNITS
2743override INSTALLPPUFILES+=$(addsuffix $(PPUEXT),$(INSTALL_UNITS))
2744endif
2745ifdef INSTALL_BUILDUNIT
2746override INSTALLPPUFILES:=$(filter-out $(INSTALL_BUILDUNIT)$(PPUEXT),$(INSTALLPPUFILES))
2747endif
2748ifdef INSTALLPPUFILES
2749override INSTALLPPULINKFILES:=$(subst $(PPUEXT),$(OEXT),$(INSTALLPPUFILES)) $(addprefix $(STATICLIBPREFIX),$(subst $(PPUEXT),$(STATICLIBEXT),$(INSTALLPPUFILES))) $(addprefix $(IMPORTLIBPREFIX),$(subst $(PPUEXT),$(STATICLIBEXT),$(INSTALLPPUFILES)))
2750ifneq ($(UNITTARGETDIRPREFIX),)
2751override INSTALLPPUFILES:=$(addprefix $(UNITTARGETDIRPREFIX),$(notdir $(INSTALLPPUFILES)))
2752override INSTALLPPULINKFILES:=$(wildcard $(addprefix $(UNITTARGETDIRPREFIX),$(notdir $(INSTALLPPULINKFILES))))
2753endif
2754override INSTALL_CREATEPACKAGEFPC=1
2755endif
2756ifdef INSTALLEXEFILES
2757ifneq ($(TARGETDIRPREFIX),)
2758override INSTALLEXEFILES:=$(addprefix $(TARGETDIRPREFIX),$(notdir $(INSTALLEXEFILES)))
2759endif
2760endif
2761fpc_install: all $(INSTALLTARGET)
2762ifdef INSTALLEXEFILES
2763	$(MKDIR) $(INSTALL_BINDIR)
2764	$(INSTALLEXE) $(INSTALLEXEFILES) $(INSTALL_BINDIR)
2765endif
2766ifdef INSTALL_CREATEPACKAGEFPC
2767ifdef FPCMAKE
2768ifdef PACKAGE_VERSION
2769ifneq ($(wildcard Makefile.fpc),)
2770	$(FPCMAKE) -p -T$(CPU_TARGET)-$(OS_TARGET) Makefile.fpc
2771	$(MKDIR) $(INSTALL_UNITDIR)
2772	$(INSTALL) Package.fpc $(INSTALL_UNITDIR)
2773endif
2774endif
2775endif
2776endif
2777ifdef INSTALLPPUFILES
2778	$(MKDIR) $(INSTALL_UNITDIR)
2779	$(INSTALL) $(INSTALLPPUFILES) $(INSTALL_UNITDIR)
2780ifneq ($(INSTALLPPULINKFILES),)
2781	$(INSTALL) $(INSTALLPPULINKFILES) $(INSTALL_UNITDIR)
2782endif
2783ifneq ($(wildcard $(LIB_FULLNAME)),)
2784	$(MKDIR) $(INSTALL_LIBDIR)
2785	$(INSTALL) $(LIB_FULLNAME) $(INSTALL_LIBDIR)
2786ifdef inUnix
2787	ln -sf $(LIB_FULLNAME) $(INSTALL_LIBDIR)/$(LIB_NAME)
2788endif
2789endif
2790endif
2791ifdef INSTALL_FILES
2792	$(MKDIR) $(INSTALL_DATADIR)
2793	$(INSTALL) $(INSTALL_FILES) $(INSTALL_DATADIR)
2794endif
2795fpc_sourceinstall: distclean
2796	$(MKDIR) $(INSTALL_SOURCEDIR)
2797	$(COPYTREE) $(BASEDIR)/* $(INSTALL_SOURCEDIR)
2798fpc_exampleinstall: $(EXAMPLEINSTALLTARGET) $(addsuffix _distclean,$(TARGET_EXAMPLEDIRS))
2799ifdef HASEXAMPLES
2800	$(MKDIR) $(INSTALL_EXAMPLEDIR)
2801endif
2802ifdef EXAMPLESOURCEFILES
2803	$(COPY) $(EXAMPLESOURCEFILES) $(INSTALL_EXAMPLEDIR)
2804endif
2805ifdef TARGET_EXAMPLEDIRS
2806	$(COPYTREE) $(addsuffix /*,$(TARGET_EXAMPLEDIRS)) $(INSTALL_EXAMPLEDIR)
2807endif
2808.PHONY: fpc_clean fpc_cleanall fpc_distclean
2809ifdef EXEFILES
2810override CLEANEXEFILES:=$(addprefix $(TARGETDIRPREFIX),$(CLEANEXEFILES))
2811override CLEANEXEDBGFILES:=$(addprefix $(TARGETDIRPREFIX),$(CLEANEXEDBGFILES))
2812endif
2813ifdef CLEAN_PROGRAMS
2814override CLEANEXEFILES+=$(addprefix $(TARGETDIRPREFIX),$(addsuffix $(EXEEXT), $(CLEAN_PROGRAMS)))
2815override CLEANEXEDBGFILES+=$(addprefix $(TARGETDIRPREFIX),$(addsuffix $(EXEDBGEXT), $(CLEAN_PROGRAMS)))
2816endif
2817ifdef CLEAN_UNITS
2818override CLEANPPUFILES+=$(addsuffix $(PPUEXT),$(CLEAN_UNITS))
2819endif
2820ifdef CLEANPPUFILES
2821override CLEANPPULINKFILES:=$(subst $(PPUEXT),$(OEXT),$(CLEANPPUFILES)) $(addprefix $(STATICLIBPREFIX),$(subst $(PPUEXT),$(STATICLIBEXT),$(CLEANPPUFILES))) $(addprefix $(IMPORTLIBPREFIX),$(subst $(PPUEXT),$(STATICLIBEXT),$(CLEANPPUFILES)))
2822ifdef DEBUGSYMEXT
2823override CLEANPPULINKFILES+=$(subst $(PPUEXT),$(DEBUGSYMEXT),$(CLEANPPUFILES))
2824endif
2825override CLEANPPUFILES:=$(addprefix $(UNITTARGETDIRPREFIX),$(CLEANPPUFILES))
2826override CLEANPPULINKFILES:=$(wildcard $(addprefix $(UNITTARGETDIRPREFIX),$(CLEANPPULINKFILES)))
2827endif
2828fpc_clean: $(CLEANTARGET)
2829ifdef CLEANEXEFILES
2830	-$(DEL) $(CLEANEXEFILES)
2831endif
2832ifdef CLEANEXEDBGFILES
2833	-$(DELTREE) $(CLEANEXEDBGFILES)
2834endif
2835ifdef CLEANPPUFILES
2836	-$(DEL) $(CLEANPPUFILES)
2837endif
2838ifneq ($(CLEANPPULINKFILES),)
2839	-$(DEL) $(CLEANPPULINKFILES)
2840endif
2841ifdef CLEANRSTFILES
2842	-$(DEL) $(addprefix $(UNITTARGETDIRPREFIX),$(CLEANRSTFILES))
2843endif
2844ifdef CLEAN_FILES
2845	-$(DEL) $(CLEAN_FILES)
2846endif
2847ifdef LIB_NAME
2848	-$(DEL) $(LIB_NAME) $(LIB_FULLNAME)
2849endif
2850	-$(DEL) $(FPCMADE) Package.fpc $(PPAS) script.res link.res $(FPCEXTFILE) $(REDIRFILE)
2851	-$(DEL) *$(ASMEXT) *_ppas$(BATCHEXT)
2852fpc_cleanall: $(CLEANTARGET)
2853ifdef CLEANEXEFILES
2854	-$(DEL) $(CLEANEXEFILES)
2855endif
2856ifdef COMPILER_UNITTARGETDIR
2857ifdef CLEANPPUFILES
2858	-$(DEL) $(CLEANPPUFILES)
2859endif
2860ifneq ($(CLEANPPULINKFILES),)
2861	-$(DEL) $(CLEANPPULINKFILES)
2862endif
2863ifdef CLEANRSTFILES
2864	-$(DEL) $(addprefix $(UNITTARGETDIRPREFIX),$(CLEANRSTFILES))
2865endif
2866endif
2867ifdef CLEAN_FILES
2868	-$(DEL) $(CLEAN_FILES)
2869endif
2870	-$(DELTREE) units
2871	-$(DEL) *$(OEXT) *$(PPUEXT) *$(RSTEXT) *$(ASMEXT) *$(STATICLIBEXT) *$(SHAREDLIBEXT) *$(PPLEXT)
2872ifneq ($(PPUEXT),.ppu)
2873	-$(DEL) *.o *.ppu *.a
2874endif
2875	-$(DELTREE) *$(SMARTEXT)
2876	-$(DEL) fpcmade.* Package.fpc $(PPAS) script.res link.res $(FPCEXTFILE) $(REDIRFILE)
2877	-$(DEL) *_ppas$(BATCHEXT)
2878ifdef AOUTEXT
2879	-$(DEL) *$(AOUTEXT)
2880endif
2881ifdef DEBUGSYMEXT
2882	-$(DEL) *$(DEBUGSYMEXT)
2883endif
2884ifdef LOCALFPMAKEBIN
2885	-$(DEL) $(LOCALFPMAKEBIN)
2886	-$(DEL) $(FPMAKEBINOBJ)
2887endif
2888fpc_distclean: cleanall
2889.PHONY: fpc_baseinfo
2890override INFORULES+=fpc_baseinfo
2891fpc_baseinfo:
2892	@$(ECHO)
2893	@$(ECHO)  == Package info ==
2894	@$(ECHO)  Package Name..... $(PACKAGE_NAME)
2895	@$(ECHO)  Package Version.. $(PACKAGE_VERSION)
2896	@$(ECHO)
2897	@$(ECHO)  == Configuration info ==
2898	@$(ECHO)
2899	@$(ECHO)  FPC.......... $(FPC)
2900	@$(ECHO)  FPC Version.. $(FPC_VERSION)
2901	@$(ECHO)  Source CPU... $(CPU_SOURCE)
2902	@$(ECHO)  Target CPU... $(CPU_TARGET)
2903	@$(ECHO)  Source OS.... $(OS_SOURCE)
2904	@$(ECHO)  Target OS.... $(OS_TARGET)
2905	@$(ECHO)  Full Source.. $(FULL_SOURCE)
2906	@$(ECHO)  Full Target.. $(FULL_TARGET)
2907	@$(ECHO)  SourceSuffix. $(SOURCESUFFIX)
2908	@$(ECHO)  TargetSuffix. $(TARGETSUFFIX)
2909	@$(ECHO)  FPC fpmake... $(FPCFPMAKE)
2910	@$(ECHO)
2911	@$(ECHO)  == Directory info ==
2912	@$(ECHO)
2913	@$(ECHO)  Required pkgs... $(REQUIRE_PACKAGES)
2914	@$(ECHO)
2915	@$(ECHO)  Basedir......... $(BASEDIR)
2916	@$(ECHO)  FPCDir.......... $(FPCDIR)
2917	@$(ECHO)  CrossBinDir..... $(CROSSBINDIR)
2918	@$(ECHO)  UnitsDir........ $(UNITSDIR)
2919	@$(ECHO)  PackagesDir..... $(PACKAGESDIR)
2920	@$(ECHO)
2921	@$(ECHO)  GCC library..... $(GCCLIBDIR)
2922	@$(ECHO)  Other library... $(OTHERLIBDIR)
2923	@$(ECHO)
2924	@$(ECHO)  == Tools info ==
2925	@$(ECHO)
2926	@$(ECHO)  As........ $(AS)
2927	@$(ECHO)  Ld........ $(LD)
2928	@$(ECHO)  Ar........ $(AR)
2929	@$(ECHO)  Rc........ $(RC)
2930	@$(ECHO)
2931	@$(ECHO)  Mv........ $(MVPROG)
2932	@$(ECHO)  Cp........ $(CPPROG)
2933	@$(ECHO)  Rm........ $(RMPROG)
2934	@$(ECHO)  GInstall.. $(GINSTALL)
2935	@$(ECHO)  Echo...... $(ECHO)
2936	@$(ECHO)  Shell..... $(SHELL)
2937	@$(ECHO)  Date...... $(DATE)
2938	@$(ECHO)  FPCMake... $(FPCMAKE)
2939	@$(ECHO)  PPUMove... $(PPUMOVE)
2940	@$(ECHO)  Zip....... $(ZIPPROG)
2941	@$(ECHO)
2942	@$(ECHO)  == Object info ==
2943	@$(ECHO)
2944	@$(ECHO)  Target Loaders........ $(TARGET_LOADERS)
2945	@$(ECHO)  Target Units.......... $(TARGET_UNITS)
2946	@$(ECHO)  Target Implicit Units. $(TARGET_IMPLICITUNITS)
2947	@$(ECHO)  Target Programs....... $(TARGET_PROGRAMS)
2948	@$(ECHO)  Target Dirs........... $(TARGET_DIRS)
2949	@$(ECHO)  Target Examples....... $(TARGET_EXAMPLES)
2950	@$(ECHO)  Target ExampleDirs.... $(TARGET_EXAMPLEDIRS)
2951	@$(ECHO)
2952	@$(ECHO)  Clean Units......... $(CLEAN_UNITS)
2953	@$(ECHO)  Clean Files......... $(CLEAN_FILES)
2954	@$(ECHO)
2955	@$(ECHO)  Install Units....... $(INSTALL_UNITS)
2956	@$(ECHO)  Install Files....... $(INSTALL_FILES)
2957	@$(ECHO)
2958	@$(ECHO)  == Install info ==
2959	@$(ECHO)
2960	@$(ECHO)  DateStr.............. $(DATESTR)
2961	@$(ECHO)  ZipName.............. $(ZIPNAME)
2962	@$(ECHO)  ZipPrefix............ $(ZIPPREFIX)
2963	@$(ECHO)  ZipCrossPrefix....... $(ZIPCROSSPREFIX)
2964	@$(ECHO)  ZipSuffix............ $(ZIPSUFFIX)
2965	@$(ECHO)  FullZipName.......... $(FULLZIPNAME)
2966	@$(ECHO)  Install FPC Package.. $(INSTALL_FPCPACKAGE)
2967	@$(ECHO)
2968	@$(ECHO)  Install base dir..... $(INSTALL_BASEDIR)
2969	@$(ECHO)  Install binary dir... $(INSTALL_BINDIR)
2970	@$(ECHO)  Install library dir.. $(INSTALL_LIBDIR)
2971	@$(ECHO)  Install units dir.... $(INSTALL_UNITDIR)
2972	@$(ECHO)  Install source dir... $(INSTALL_SOURCEDIR)
2973	@$(ECHO)  Install doc dir...... $(INSTALL_DOCDIR)
2974	@$(ECHO)  Install example dir.. $(INSTALL_EXAMPLEDIR)
2975	@$(ECHO)  Install data dir..... $(INSTALL_DATADIR)
2976	@$(ECHO)
2977	@$(ECHO)  Dist destination dir. $(DIST_DESTDIR)
2978	@$(ECHO)  Dist zip name........ $(DIST_ZIPNAME)
2979	@$(ECHO)
2980.PHONY: fpc_info
2981fpc_info: $(INFORULES)
2982.PHONY: fpc_makefile fpc_makefiles fpc_makefile_sub1 fpc_makefile_sub2 \
2983	fpc_makefile_dirs
2984fpc_makefile:
2985	$(FPCMAKE) -w -T$(OS_TARGET) Makefile.fpc
2986fpc_makefile_sub1:
2987ifdef TARGET_DIRS
2988	$(FPCMAKE) -w -T$(OS_TARGET) $(addsuffix /Makefile.fpc,$(TARGET_DIRS))
2989endif
2990ifdef TARGET_EXAMPLEDIRS
2991	$(FPCMAKE) -w -T$(OS_TARGET) $(addsuffix /Makefile.fpc,$(TARGET_EXAMPLEDIRS))
2992endif
2993fpc_makefile_sub2: $(addsuffix _makefile_dirs,$(TARGET_DIRS) $(TARGET_EXAMPLEDIRS))
2994fpc_makefile_dirs: fpc_makefile_sub1 fpc_makefile_sub2
2995fpc_makefiles: fpc_makefile fpc_makefile_dirs
2996debug: fpc_debug
2997smart: fpc_smart
2998release: fpc_release
2999units: fpc_units
3000examples:
3001shared: fpc_shared
3002install: fpc_install
3003sourceinstall: fpc_sourceinstall
3004exampleinstall: fpc_exampleinstall
3005distinstall:
3006zipinstall:
3007zipsourceinstall:
3008zipexampleinstall:
3009zipdistinstall:
3010clean: fpc_clean
3011distclean: fpc_distclean
3012cleanall: fpc_cleanall
3013info: fpc_info
3014makefiles: fpc_makefiles
3015.PHONY: debug smart release units examples shared install sourceinstall exampleinstall distinstall zipinstall zipsourceinstall zipexampleinstall zipdistinstall clean distclean cleanall info makefiles
3016ifneq ($(wildcard fpcmake.loc),)
3017include fpcmake.loc
3018endif
3019.PHONY: cleartarget compiled all
3020cleartarget:
3021	-$(DEL) $(COMPILER_UNITTARGETDIR)/lcl$(PPUEXT) \
3022		$(COMPILER_UNITTARGETDIR)/lcl$(OEXT)
3023compiled:
3024	$(CPPROG) -f Makefile.compiled $(COMPILER_UNITTARGETDIR)/LCL.compiled
3025all: cleartarget $(COMPILER_UNITTARGETDIR) ../lcl$(PPUEXT) compiled
3026