PageRenderTime 165ms CodeModel.GetById 25ms app.highlight 129ms RepoModel.GetById 1ms app.codeStats 1ms

/packager/Makefile

http://github.com/graemeg/lazarus
Makefile | 1540 lines | 1537 code | 0 blank | 3 comment | 6 complexity | c643e343e679bd01098ef9147627166a MD5 | raw file
   1#
   2# Don't edit, this file is generated by FPCMake Version 2.0.0 [2008/06/19]
   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 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 sparc-linux sparc-netbsd sparc-solaris sparc-embedded x86_64-linux x86_64-freebsd x86_64-darwin x86_64-win64 x86_64-embedded arm-linux arm-palmos arm-darwin arm-wince arm-gba arm-nds arm-embedded arm-symbian powerpc64-linux powerpc64-darwin powerpc64-embedded avr-embedded armeb-linux armeb-embedded
   6BSDs = freebsd netbsd openbsd darwin
   7UNIXs = linux $(BSDs) solaris qnx
   8LIMIT83fs = go32v2 os2 emx watcom
   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)),)
  62RUNBATCH=$(COMSPEC) /C
  63endif
  64endif
  65ifdef inUnix
  66PATHSEP=/
  67else
  68PATHSEP:=$(subst /,\,/)
  69ifdef inCygWin
  70PATHSEP=/
  71endif
  72endif
  73ifdef PWD
  74BASEDIR:=$(subst \,/,$(shell $(PWD)))
  75ifdef inCygWin
  76ifneq ($(findstring /cygdrive/,$(BASEDIR)),)
  77BASENODIR:=$(patsubst /cygdrive%,%,$(BASEDIR))
  78BASEDRIVE:=$(firstword $(subst /, ,$(BASENODIR)))
  79BASEDIR:=$(subst /cygdrive/$(BASEDRIVE)/,$(BASEDRIVE):/,$(BASEDIR))
  80endif
  81endif
  82else
  83BASEDIR=.
  84endif
  85ifdef inOS2
  86ifndef ECHO
  87ECHO:=$(strip $(wildcard $(addsuffix /gecho$(SRCEXEEXT),$(SEARCHPATH))))
  88ifeq ($(ECHO),)
  89ECHO:=$(strip $(wildcard $(addsuffix /echo$(SRCEXEEXT),$(SEARCHPATH))))
  90ifeq ($(ECHO),)
  91ECHO=echo
  92else
  93ECHO:=$(firstword $(ECHO))
  94endif
  95else
  96ECHO:=$(firstword $(ECHO))
  97endif
  98endif
  99export ECHO
 100endif
 101ifndef FPC
 102ifdef PP
 103FPC=$(PP)
 104endif
 105endif
 106ifndef FPC
 107FPCPROG:=$(strip $(wildcard $(addsuffix /fpc$(SRCEXEEXT),$(SEARCHPATH))))
 108ifneq ($(FPCPROG),)
 109FPCPROG:=$(firstword $(FPCPROG))
 110ifneq ($(CPU_TARGET),)
 111FPC:=$(shell $(FPCPROG) -P$(CPU_TARGET) -PB)
 112else
 113FPC:=$(shell $(FPCPROG) -PB)
 114endif
 115ifneq ($(findstring Error,$(FPC)),)
 116override FPC=$(firstword $(strip $(wildcard $(addsuffix /ppc386$(SRCEXEEXT),$(SEARCHPATH)))))
 117endif
 118else
 119override FPC=$(firstword $(strip $(wildcard $(addsuffix /ppc386$(SRCEXEEXT),$(SEARCHPATH)))))
 120endif
 121endif
 122override FPC:=$(subst $(SRCEXEEXT),,$(FPC))
 123override FPC:=$(subst \,/,$(FPC))$(SRCEXEEXT)
 124FOUNDFPC:=$(strip $(wildcard $(FPC)))
 125ifeq ($(FOUNDFPC),)
 126FOUNDFPC=$(strip $(wildcard $(addsuffix /$(FPC),$(SEARCHPATH))))
 127ifeq ($(FOUNDFPC),)
 128$(error Compiler $(FPC) not found)
 129endif
 130endif
 131ifndef FPC_COMPILERINFO
 132FPC_COMPILERINFO:=$(shell $(FPC) -iVSPTPSOTO)
 133endif
 134ifndef FPC_VERSION
 135FPC_VERSION:=$(word 1,$(FPC_COMPILERINFO))
 136endif
 137export FPC FPC_VERSION FPC_COMPILERINFO
 138unexport CHECKDEPEND ALLDEPENDENCIES
 139ifndef CPU_TARGET
 140ifdef CPU_TARGET_DEFAULT
 141CPU_TARGET=$(CPU_TARGET_DEFAULT)
 142endif
 143endif
 144ifndef OS_TARGET
 145ifdef OS_TARGET_DEFAULT
 146OS_TARGET=$(OS_TARGET_DEFAULT)
 147endif
 148endif
 149ifneq ($(words $(FPC_COMPILERINFO)),5)
 150FPC_COMPILERINFO+=$(shell $(FPC) -iSP)
 151FPC_COMPILERINFO+=$(shell $(FPC) -iTP)
 152FPC_COMPILERINFO+=$(shell $(FPC) -iSO)
 153FPC_COMPILERINFO+=$(shell $(FPC) -iTO)
 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
 180ifneq ($(findstring $(OS_SOURCE),$(LIMIT83fs)),)
 181TARGETSUFFIX=$(OS_TARGET)
 182SOURCESUFFIX=$(OS_SOURCE)
 183else
 184TARGETSUFFIX=$(FULL_TARGET)
 185SOURCESUFFIX=$(FULL_SOURCE)
 186endif
 187ifneq ($(FULL_TARGET),$(FULL_SOURCE))
 188CROSSCOMPILE=1
 189endif
 190ifeq ($(findstring makefile,$(MAKECMDGOALS)),)
 191ifeq ($(findstring $(FULL_TARGET),$(MAKEFILETARGETS)),)
 192$(error The Makefile doesn't support target $(FULL_TARGET), please run fpcmake first)
 193endif
 194endif
 195ifneq ($(findstring $(OS_TARGET),$(BSDs)),)
 196BSDhier=1
 197endif
 198ifeq ($(OS_TARGET),linux)
 199linuxHier=1
 200endif
 201export OS_TARGET OS_SOURCE ARCH CPU_TARGET CPU_SOURCE FULL_TARGET FULL_SOURCE TARGETSUFFIX SOURCESUFFIX CROSSCOMPILE
 202ifdef FPCDIR
 203override FPCDIR:=$(subst \,/,$(FPCDIR))
 204ifeq ($(wildcard $(addprefix $(FPCDIR)/,rtl units)),)
 205override FPCDIR=wrong
 206endif
 207else
 208override FPCDIR=wrong
 209endif
 210ifdef DEFAULT_FPCDIR
 211ifeq ($(FPCDIR),wrong)
 212override FPCDIR:=$(subst \,/,$(DEFAULT_FPCDIR))
 213ifeq ($(wildcard $(addprefix $(FPCDIR)/,rtl units)),)
 214override FPCDIR=wrong
 215endif
 216endif
 217endif
 218ifeq ($(FPCDIR),wrong)
 219ifdef inUnix
 220override FPCDIR=/usr/local/lib/fpc/$(FPC_VERSION)
 221ifeq ($(wildcard $(FPCDIR)/units),)
 222override FPCDIR=/usr/lib/fpc/$(FPC_VERSION)
 223endif
 224else
 225override FPCDIR:=$(subst /$(FPC),,$(firstword $(strip $(wildcard $(addsuffix /$(FPC),$(SEARCHPATH))))))
 226override FPCDIR:=$(FPCDIR)/..
 227ifeq ($(wildcard $(addprefix $(FPCDIR)/,rtl units)),)
 228override FPCDIR:=$(FPCDIR)/..
 229ifeq ($(wildcard $(addprefix $(FPCDIR)/,rtl units)),)
 230override FPCDIR:=$(BASEDIR)
 231ifeq ($(wildcard $(addprefix $(FPCDIR)/,rtl units)),)
 232override FPCDIR=c:/pp
 233endif
 234endif
 235endif
 236endif
 237endif
 238ifndef CROSSBINDIR
 239CROSSBINDIR:=$(wildcard $(FPCDIR)/bin/$(TARGETSUFFIX))
 240endif
 241ifeq ($(OS_TARGET),darwin)
 242ifeq ($(OS_SOURCE),darwin)
 243DARWIN2DARWIN=1
 244endif
 245endif
 246ifndef BINUTILSPREFIX
 247ifndef CROSSBINDIR
 248ifdef CROSSCOMPILE
 249ifndef DARWIN2DARWIN
 250BINUTILSPREFIX=$(CPU_TARGET)-$(OS_TARGET)-
 251endif
 252endif
 253endif
 254endif
 255UNITSDIR:=$(wildcard $(FPCDIR)/units/$(TARGETSUFFIX))
 256ifeq ($(UNITSDIR),)
 257UNITSDIR:=$(wildcard $(FPCDIR)/units/$(OS_TARGET))
 258endif
 259PACKAGESDIR:=$(wildcard $(FPCDIR) $(FPCDIR)/packages $(FPCDIR)/packages/base $(FPCDIR)/packages/extra)
 260ifeq ($(FULL_TARGET),i386-linux)
 261override CLEAN_FILES+=$(wildcard *$(OEXT)) $(wildcard *$(PPUEXT)) $(wildcard *$(RSTEXT))$(wildcard ./units/*$(OEXT)) $(wildcard ./units/*$(PPUEXT)) $(wildcard ./units/*$(RSTEXT)) $(wildcard ./units/$(CPU_TARGET)-$(OS_TARGET)/*$(OEXT)) $(wildcard ./units/$(CPU_TARGET)-$(OS_TARGET)/*$(PPUEXT)) $(wildcard ./units/$(CPU_TARGET)-$(OS_TARGET)/*$(RSTEXT))
 262endif
 263ifeq ($(FULL_TARGET),i386-go32v2)
 264override CLEAN_FILES+=$(wildcard *$(OEXT)) $(wildcard *$(PPUEXT)) $(wildcard *$(RSTEXT))$(wildcard ./units/*$(OEXT)) $(wildcard ./units/*$(PPUEXT)) $(wildcard ./units/*$(RSTEXT)) $(wildcard ./units/$(CPU_TARGET)-$(OS_TARGET)/*$(OEXT)) $(wildcard ./units/$(CPU_TARGET)-$(OS_TARGET)/*$(PPUEXT)) $(wildcard ./units/$(CPU_TARGET)-$(OS_TARGET)/*$(RSTEXT))
 265endif
 266ifeq ($(FULL_TARGET),i386-win32)
 267override CLEAN_FILES+=$(wildcard *$(OEXT)) $(wildcard *$(PPUEXT)) $(wildcard *$(RSTEXT))$(wildcard ./units/*$(OEXT)) $(wildcard ./units/*$(PPUEXT)) $(wildcard ./units/*$(RSTEXT)) $(wildcard ./units/$(CPU_TARGET)-$(OS_TARGET)/*$(OEXT)) $(wildcard ./units/$(CPU_TARGET)-$(OS_TARGET)/*$(PPUEXT)) $(wildcard ./units/$(CPU_TARGET)-$(OS_TARGET)/*$(RSTEXT))
 268endif
 269ifeq ($(FULL_TARGET),i386-os2)
 270override CLEAN_FILES+=$(wildcard *$(OEXT)) $(wildcard *$(PPUEXT)) $(wildcard *$(RSTEXT))$(wildcard ./units/*$(OEXT)) $(wildcard ./units/*$(PPUEXT)) $(wildcard ./units/*$(RSTEXT)) $(wildcard ./units/$(CPU_TARGET)-$(OS_TARGET)/*$(OEXT)) $(wildcard ./units/$(CPU_TARGET)-$(OS_TARGET)/*$(PPUEXT)) $(wildcard ./units/$(CPU_TARGET)-$(OS_TARGET)/*$(RSTEXT))
 271endif
 272ifeq ($(FULL_TARGET),i386-freebsd)
 273override CLEAN_FILES+=$(wildcard *$(OEXT)) $(wildcard *$(PPUEXT)) $(wildcard *$(RSTEXT))$(wildcard ./units/*$(OEXT)) $(wildcard ./units/*$(PPUEXT)) $(wildcard ./units/*$(RSTEXT)) $(wildcard ./units/$(CPU_TARGET)-$(OS_TARGET)/*$(OEXT)) $(wildcard ./units/$(CPU_TARGET)-$(OS_TARGET)/*$(PPUEXT)) $(wildcard ./units/$(CPU_TARGET)-$(OS_TARGET)/*$(RSTEXT))
 274endif
 275ifeq ($(FULL_TARGET),i386-beos)
 276override CLEAN_FILES+=$(wildcard *$(OEXT)) $(wildcard *$(PPUEXT)) $(wildcard *$(RSTEXT))$(wildcard ./units/*$(OEXT)) $(wildcard ./units/*$(PPUEXT)) $(wildcard ./units/*$(RSTEXT)) $(wildcard ./units/$(CPU_TARGET)-$(OS_TARGET)/*$(OEXT)) $(wildcard ./units/$(CPU_TARGET)-$(OS_TARGET)/*$(PPUEXT)) $(wildcard ./units/$(CPU_TARGET)-$(OS_TARGET)/*$(RSTEXT))
 277endif
 278ifeq ($(FULL_TARGET),i386-haiku)
 279override CLEAN_FILES+=$(wildcard *$(OEXT)) $(wildcard *$(PPUEXT)) $(wildcard *$(RSTEXT))$(wildcard ./units/*$(OEXT)) $(wildcard ./units/*$(PPUEXT)) $(wildcard ./units/*$(RSTEXT)) $(wildcard ./units/$(CPU_TARGET)-$(OS_TARGET)/*$(OEXT)) $(wildcard ./units/$(CPU_TARGET)-$(OS_TARGET)/*$(PPUEXT)) $(wildcard ./units/$(CPU_TARGET)-$(OS_TARGET)/*$(RSTEXT))
 280endif
 281ifeq ($(FULL_TARGET),i386-netbsd)
 282override CLEAN_FILES+=$(wildcard *$(OEXT)) $(wildcard *$(PPUEXT)) $(wildcard *$(RSTEXT))$(wildcard ./units/*$(OEXT)) $(wildcard ./units/*$(PPUEXT)) $(wildcard ./units/*$(RSTEXT)) $(wildcard ./units/$(CPU_TARGET)-$(OS_TARGET)/*$(OEXT)) $(wildcard ./units/$(CPU_TARGET)-$(OS_TARGET)/*$(PPUEXT)) $(wildcard ./units/$(CPU_TARGET)-$(OS_TARGET)/*$(RSTEXT))
 283endif
 284ifeq ($(FULL_TARGET),i386-solaris)
 285override CLEAN_FILES+=$(wildcard *$(OEXT)) $(wildcard *$(PPUEXT)) $(wildcard *$(RSTEXT))$(wildcard ./units/*$(OEXT)) $(wildcard ./units/*$(PPUEXT)) $(wildcard ./units/*$(RSTEXT)) $(wildcard ./units/$(CPU_TARGET)-$(OS_TARGET)/*$(OEXT)) $(wildcard ./units/$(CPU_TARGET)-$(OS_TARGET)/*$(PPUEXT)) $(wildcard ./units/$(CPU_TARGET)-$(OS_TARGET)/*$(RSTEXT))
 286endif
 287ifeq ($(FULL_TARGET),i386-qnx)
 288override CLEAN_FILES+=$(wildcard *$(OEXT)) $(wildcard *$(PPUEXT)) $(wildcard *$(RSTEXT))$(wildcard ./units/*$(OEXT)) $(wildcard ./units/*$(PPUEXT)) $(wildcard ./units/*$(RSTEXT)) $(wildcard ./units/$(CPU_TARGET)-$(OS_TARGET)/*$(OEXT)) $(wildcard ./units/$(CPU_TARGET)-$(OS_TARGET)/*$(PPUEXT)) $(wildcard ./units/$(CPU_TARGET)-$(OS_TARGET)/*$(RSTEXT))
 289endif
 290ifeq ($(FULL_TARGET),i386-netware)
 291override CLEAN_FILES+=$(wildcard *$(OEXT)) $(wildcard *$(PPUEXT)) $(wildcard *$(RSTEXT))$(wildcard ./units/*$(OEXT)) $(wildcard ./units/*$(PPUEXT)) $(wildcard ./units/*$(RSTEXT)) $(wildcard ./units/$(CPU_TARGET)-$(OS_TARGET)/*$(OEXT)) $(wildcard ./units/$(CPU_TARGET)-$(OS_TARGET)/*$(PPUEXT)) $(wildcard ./units/$(CPU_TARGET)-$(OS_TARGET)/*$(RSTEXT))
 292endif
 293ifeq ($(FULL_TARGET),i386-openbsd)
 294override CLEAN_FILES+=$(wildcard *$(OEXT)) $(wildcard *$(PPUEXT)) $(wildcard *$(RSTEXT))$(wildcard ./units/*$(OEXT)) $(wildcard ./units/*$(PPUEXT)) $(wildcard ./units/*$(RSTEXT)) $(wildcard ./units/$(CPU_TARGET)-$(OS_TARGET)/*$(OEXT)) $(wildcard ./units/$(CPU_TARGET)-$(OS_TARGET)/*$(PPUEXT)) $(wildcard ./units/$(CPU_TARGET)-$(OS_TARGET)/*$(RSTEXT))
 295endif
 296ifeq ($(FULL_TARGET),i386-wdosx)
 297override CLEAN_FILES+=$(wildcard *$(OEXT)) $(wildcard *$(PPUEXT)) $(wildcard *$(RSTEXT))$(wildcard ./units/*$(OEXT)) $(wildcard ./units/*$(PPUEXT)) $(wildcard ./units/*$(RSTEXT)) $(wildcard ./units/$(CPU_TARGET)-$(OS_TARGET)/*$(OEXT)) $(wildcard ./units/$(CPU_TARGET)-$(OS_TARGET)/*$(PPUEXT)) $(wildcard ./units/$(CPU_TARGET)-$(OS_TARGET)/*$(RSTEXT))
 298endif
 299ifeq ($(FULL_TARGET),i386-darwin)
 300override CLEAN_FILES+=$(wildcard *$(OEXT)) $(wildcard *$(PPUEXT)) $(wildcard *$(RSTEXT))$(wildcard ./units/*$(OEXT)) $(wildcard ./units/*$(PPUEXT)) $(wildcard ./units/*$(RSTEXT)) $(wildcard ./units/$(CPU_TARGET)-$(OS_TARGET)/*$(OEXT)) $(wildcard ./units/$(CPU_TARGET)-$(OS_TARGET)/*$(PPUEXT)) $(wildcard ./units/$(CPU_TARGET)-$(OS_TARGET)/*$(RSTEXT))
 301endif
 302ifeq ($(FULL_TARGET),i386-emx)
 303override CLEAN_FILES+=$(wildcard *$(OEXT)) $(wildcard *$(PPUEXT)) $(wildcard *$(RSTEXT))$(wildcard ./units/*$(OEXT)) $(wildcard ./units/*$(PPUEXT)) $(wildcard ./units/*$(RSTEXT)) $(wildcard ./units/$(CPU_TARGET)-$(OS_TARGET)/*$(OEXT)) $(wildcard ./units/$(CPU_TARGET)-$(OS_TARGET)/*$(PPUEXT)) $(wildcard ./units/$(CPU_TARGET)-$(OS_TARGET)/*$(RSTEXT))
 304endif
 305ifeq ($(FULL_TARGET),i386-watcom)
 306override CLEAN_FILES+=$(wildcard *$(OEXT)) $(wildcard *$(PPUEXT)) $(wildcard *$(RSTEXT))$(wildcard ./units/*$(OEXT)) $(wildcard ./units/*$(PPUEXT)) $(wildcard ./units/*$(RSTEXT)) $(wildcard ./units/$(CPU_TARGET)-$(OS_TARGET)/*$(OEXT)) $(wildcard ./units/$(CPU_TARGET)-$(OS_TARGET)/*$(PPUEXT)) $(wildcard ./units/$(CPU_TARGET)-$(OS_TARGET)/*$(RSTEXT))
 307endif
 308ifeq ($(FULL_TARGET),i386-netwlibc)
 309override CLEAN_FILES+=$(wildcard *$(OEXT)) $(wildcard *$(PPUEXT)) $(wildcard *$(RSTEXT))$(wildcard ./units/*$(OEXT)) $(wildcard ./units/*$(PPUEXT)) $(wildcard ./units/*$(RSTEXT)) $(wildcard ./units/$(CPU_TARGET)-$(OS_TARGET)/*$(OEXT)) $(wildcard ./units/$(CPU_TARGET)-$(OS_TARGET)/*$(PPUEXT)) $(wildcard ./units/$(CPU_TARGET)-$(OS_TARGET)/*$(RSTEXT))
 310endif
 311ifeq ($(FULL_TARGET),i386-wince)
 312override CLEAN_FILES+=$(wildcard *$(OEXT)) $(wildcard *$(PPUEXT)) $(wildcard *$(RSTEXT))$(wildcard ./units/*$(OEXT)) $(wildcard ./units/*$(PPUEXT)) $(wildcard ./units/*$(RSTEXT)) $(wildcard ./units/$(CPU_TARGET)-$(OS_TARGET)/*$(OEXT)) $(wildcard ./units/$(CPU_TARGET)-$(OS_TARGET)/*$(PPUEXT)) $(wildcard ./units/$(CPU_TARGET)-$(OS_TARGET)/*$(RSTEXT))
 313endif
 314ifeq ($(FULL_TARGET),i386-embedded)
 315override CLEAN_FILES+=$(wildcard *$(OEXT)) $(wildcard *$(PPUEXT)) $(wildcard *$(RSTEXT))$(wildcard ./units/*$(OEXT)) $(wildcard ./units/*$(PPUEXT)) $(wildcard ./units/*$(RSTEXT)) $(wildcard ./units/$(CPU_TARGET)-$(OS_TARGET)/*$(OEXT)) $(wildcard ./units/$(CPU_TARGET)-$(OS_TARGET)/*$(PPUEXT)) $(wildcard ./units/$(CPU_TARGET)-$(OS_TARGET)/*$(RSTEXT))
 316endif
 317ifeq ($(FULL_TARGET),i386-symbian)
 318override CLEAN_FILES+=$(wildcard *$(OEXT)) $(wildcard *$(PPUEXT)) $(wildcard *$(RSTEXT))$(wildcard ./units/*$(OEXT)) $(wildcard ./units/*$(PPUEXT)) $(wildcard ./units/*$(RSTEXT)) $(wildcard ./units/$(CPU_TARGET)-$(OS_TARGET)/*$(OEXT)) $(wildcard ./units/$(CPU_TARGET)-$(OS_TARGET)/*$(PPUEXT)) $(wildcard ./units/$(CPU_TARGET)-$(OS_TARGET)/*$(RSTEXT))
 319endif
 320ifeq ($(FULL_TARGET),m68k-linux)
 321override CLEAN_FILES+=$(wildcard *$(OEXT)) $(wildcard *$(PPUEXT)) $(wildcard *$(RSTEXT))$(wildcard ./units/*$(OEXT)) $(wildcard ./units/*$(PPUEXT)) $(wildcard ./units/*$(RSTEXT)) $(wildcard ./units/$(CPU_TARGET)-$(OS_TARGET)/*$(OEXT)) $(wildcard ./units/$(CPU_TARGET)-$(OS_TARGET)/*$(PPUEXT)) $(wildcard ./units/$(CPU_TARGET)-$(OS_TARGET)/*$(RSTEXT))
 322endif
 323ifeq ($(FULL_TARGET),m68k-freebsd)
 324override CLEAN_FILES+=$(wildcard *$(OEXT)) $(wildcard *$(PPUEXT)) $(wildcard *$(RSTEXT))$(wildcard ./units/*$(OEXT)) $(wildcard ./units/*$(PPUEXT)) $(wildcard ./units/*$(RSTEXT)) $(wildcard ./units/$(CPU_TARGET)-$(OS_TARGET)/*$(OEXT)) $(wildcard ./units/$(CPU_TARGET)-$(OS_TARGET)/*$(PPUEXT)) $(wildcard ./units/$(CPU_TARGET)-$(OS_TARGET)/*$(RSTEXT))
 325endif
 326ifeq ($(FULL_TARGET),m68k-netbsd)
 327override CLEAN_FILES+=$(wildcard *$(OEXT)) $(wildcard *$(PPUEXT)) $(wildcard *$(RSTEXT))$(wildcard ./units/*$(OEXT)) $(wildcard ./units/*$(PPUEXT)) $(wildcard ./units/*$(RSTEXT)) $(wildcard ./units/$(CPU_TARGET)-$(OS_TARGET)/*$(OEXT)) $(wildcard ./units/$(CPU_TARGET)-$(OS_TARGET)/*$(PPUEXT)) $(wildcard ./units/$(CPU_TARGET)-$(OS_TARGET)/*$(RSTEXT))
 328endif
 329ifeq ($(FULL_TARGET),m68k-amiga)
 330override CLEAN_FILES+=$(wildcard *$(OEXT)) $(wildcard *$(PPUEXT)) $(wildcard *$(RSTEXT))$(wildcard ./units/*$(OEXT)) $(wildcard ./units/*$(PPUEXT)) $(wildcard ./units/*$(RSTEXT)) $(wildcard ./units/$(CPU_TARGET)-$(OS_TARGET)/*$(OEXT)) $(wildcard ./units/$(CPU_TARGET)-$(OS_TARGET)/*$(PPUEXT)) $(wildcard ./units/$(CPU_TARGET)-$(OS_TARGET)/*$(RSTEXT))
 331endif
 332ifeq ($(FULL_TARGET),m68k-atari)
 333override CLEAN_FILES+=$(wildcard *$(OEXT)) $(wildcard *$(PPUEXT)) $(wildcard *$(RSTEXT))$(wildcard ./units/*$(OEXT)) $(wildcard ./units/*$(PPUEXT)) $(wildcard ./units/*$(RSTEXT)) $(wildcard ./units/$(CPU_TARGET)-$(OS_TARGET)/*$(OEXT)) $(wildcard ./units/$(CPU_TARGET)-$(OS_TARGET)/*$(PPUEXT)) $(wildcard ./units/$(CPU_TARGET)-$(OS_TARGET)/*$(RSTEXT))
 334endif
 335ifeq ($(FULL_TARGET),m68k-openbsd)
 336override CLEAN_FILES+=$(wildcard *$(OEXT)) $(wildcard *$(PPUEXT)) $(wildcard *$(RSTEXT))$(wildcard ./units/*$(OEXT)) $(wildcard ./units/*$(PPUEXT)) $(wildcard ./units/*$(RSTEXT)) $(wildcard ./units/$(CPU_TARGET)-$(OS_TARGET)/*$(OEXT)) $(wildcard ./units/$(CPU_TARGET)-$(OS_TARGET)/*$(PPUEXT)) $(wildcard ./units/$(CPU_TARGET)-$(OS_TARGET)/*$(RSTEXT))
 337endif
 338ifeq ($(FULL_TARGET),m68k-palmos)
 339override CLEAN_FILES+=$(wildcard *$(OEXT)) $(wildcard *$(PPUEXT)) $(wildcard *$(RSTEXT))$(wildcard ./units/*$(OEXT)) $(wildcard ./units/*$(PPUEXT)) $(wildcard ./units/*$(RSTEXT)) $(wildcard ./units/$(CPU_TARGET)-$(OS_TARGET)/*$(OEXT)) $(wildcard ./units/$(CPU_TARGET)-$(OS_TARGET)/*$(PPUEXT)) $(wildcard ./units/$(CPU_TARGET)-$(OS_TARGET)/*$(RSTEXT))
 340endif
 341ifeq ($(FULL_TARGET),m68k-embedded)
 342override CLEAN_FILES+=$(wildcard *$(OEXT)) $(wildcard *$(PPUEXT)) $(wildcard *$(RSTEXT))$(wildcard ./units/*$(OEXT)) $(wildcard ./units/*$(PPUEXT)) $(wildcard ./units/*$(RSTEXT)) $(wildcard ./units/$(CPU_TARGET)-$(OS_TARGET)/*$(OEXT)) $(wildcard ./units/$(CPU_TARGET)-$(OS_TARGET)/*$(PPUEXT)) $(wildcard ./units/$(CPU_TARGET)-$(OS_TARGET)/*$(RSTEXT))
 343endif
 344ifeq ($(FULL_TARGET),powerpc-linux)
 345override CLEAN_FILES+=$(wildcard *$(OEXT)) $(wildcard *$(PPUEXT)) $(wildcard *$(RSTEXT))$(wildcard ./units/*$(OEXT)) $(wildcard ./units/*$(PPUEXT)) $(wildcard ./units/*$(RSTEXT)) $(wildcard ./units/$(CPU_TARGET)-$(OS_TARGET)/*$(OEXT)) $(wildcard ./units/$(CPU_TARGET)-$(OS_TARGET)/*$(PPUEXT)) $(wildcard ./units/$(CPU_TARGET)-$(OS_TARGET)/*$(RSTEXT))
 346endif
 347ifeq ($(FULL_TARGET),powerpc-netbsd)
 348override CLEAN_FILES+=$(wildcard *$(OEXT)) $(wildcard *$(PPUEXT)) $(wildcard *$(RSTEXT))$(wildcard ./units/*$(OEXT)) $(wildcard ./units/*$(PPUEXT)) $(wildcard ./units/*$(RSTEXT)) $(wildcard ./units/$(CPU_TARGET)-$(OS_TARGET)/*$(OEXT)) $(wildcard ./units/$(CPU_TARGET)-$(OS_TARGET)/*$(PPUEXT)) $(wildcard ./units/$(CPU_TARGET)-$(OS_TARGET)/*$(RSTEXT))
 349endif
 350ifeq ($(FULL_TARGET),powerpc-amiga)
 351override CLEAN_FILES+=$(wildcard *$(OEXT)) $(wildcard *$(PPUEXT)) $(wildcard *$(RSTEXT))$(wildcard ./units/*$(OEXT)) $(wildcard ./units/*$(PPUEXT)) $(wildcard ./units/*$(RSTEXT)) $(wildcard ./units/$(CPU_TARGET)-$(OS_TARGET)/*$(OEXT)) $(wildcard ./units/$(CPU_TARGET)-$(OS_TARGET)/*$(PPUEXT)) $(wildcard ./units/$(CPU_TARGET)-$(OS_TARGET)/*$(RSTEXT))
 352endif
 353ifeq ($(FULL_TARGET),powerpc-macos)
 354override CLEAN_FILES+=$(wildcard *$(OEXT)) $(wildcard *$(PPUEXT)) $(wildcard *$(RSTEXT))$(wildcard ./units/*$(OEXT)) $(wildcard ./units/*$(PPUEXT)) $(wildcard ./units/*$(RSTEXT)) $(wildcard ./units/$(CPU_TARGET)-$(OS_TARGET)/*$(OEXT)) $(wildcard ./units/$(CPU_TARGET)-$(OS_TARGET)/*$(PPUEXT)) $(wildcard ./units/$(CPU_TARGET)-$(OS_TARGET)/*$(RSTEXT))
 355endif
 356ifeq ($(FULL_TARGET),powerpc-darwin)
 357override CLEAN_FILES+=$(wildcard *$(OEXT)) $(wildcard *$(PPUEXT)) $(wildcard *$(RSTEXT))$(wildcard ./units/*$(OEXT)) $(wildcard ./units/*$(PPUEXT)) $(wildcard ./units/*$(RSTEXT)) $(wildcard ./units/$(CPU_TARGET)-$(OS_TARGET)/*$(OEXT)) $(wildcard ./units/$(CPU_TARGET)-$(OS_TARGET)/*$(PPUEXT)) $(wildcard ./units/$(CPU_TARGET)-$(OS_TARGET)/*$(RSTEXT))
 358endif
 359ifeq ($(FULL_TARGET),powerpc-morphos)
 360override CLEAN_FILES+=$(wildcard *$(OEXT)) $(wildcard *$(PPUEXT)) $(wildcard *$(RSTEXT))$(wildcard ./units/*$(OEXT)) $(wildcard ./units/*$(PPUEXT)) $(wildcard ./units/*$(RSTEXT)) $(wildcard ./units/$(CPU_TARGET)-$(OS_TARGET)/*$(OEXT)) $(wildcard ./units/$(CPU_TARGET)-$(OS_TARGET)/*$(PPUEXT)) $(wildcard ./units/$(CPU_TARGET)-$(OS_TARGET)/*$(RSTEXT))
 361endif
 362ifeq ($(FULL_TARGET),powerpc-embedded)
 363override CLEAN_FILES+=$(wildcard *$(OEXT)) $(wildcard *$(PPUEXT)) $(wildcard *$(RSTEXT))$(wildcard ./units/*$(OEXT)) $(wildcard ./units/*$(PPUEXT)) $(wildcard ./units/*$(RSTEXT)) $(wildcard ./units/$(CPU_TARGET)-$(OS_TARGET)/*$(OEXT)) $(wildcard ./units/$(CPU_TARGET)-$(OS_TARGET)/*$(PPUEXT)) $(wildcard ./units/$(CPU_TARGET)-$(OS_TARGET)/*$(RSTEXT))
 364endif
 365ifeq ($(FULL_TARGET),sparc-linux)
 366override CLEAN_FILES+=$(wildcard *$(OEXT)) $(wildcard *$(PPUEXT)) $(wildcard *$(RSTEXT))$(wildcard ./units/*$(OEXT)) $(wildcard ./units/*$(PPUEXT)) $(wildcard ./units/*$(RSTEXT)) $(wildcard ./units/$(CPU_TARGET)-$(OS_TARGET)/*$(OEXT)) $(wildcard ./units/$(CPU_TARGET)-$(OS_TARGET)/*$(PPUEXT)) $(wildcard ./units/$(CPU_TARGET)-$(OS_TARGET)/*$(RSTEXT))
 367endif
 368ifeq ($(FULL_TARGET),sparc-netbsd)
 369override CLEAN_FILES+=$(wildcard *$(OEXT)) $(wildcard *$(PPUEXT)) $(wildcard *$(RSTEXT))$(wildcard ./units/*$(OEXT)) $(wildcard ./units/*$(PPUEXT)) $(wildcard ./units/*$(RSTEXT)) $(wildcard ./units/$(CPU_TARGET)-$(OS_TARGET)/*$(OEXT)) $(wildcard ./units/$(CPU_TARGET)-$(OS_TARGET)/*$(PPUEXT)) $(wildcard ./units/$(CPU_TARGET)-$(OS_TARGET)/*$(RSTEXT))
 370endif
 371ifeq ($(FULL_TARGET),sparc-solaris)
 372override CLEAN_FILES+=$(wildcard *$(OEXT)) $(wildcard *$(PPUEXT)) $(wildcard *$(RSTEXT))$(wildcard ./units/*$(OEXT)) $(wildcard ./units/*$(PPUEXT)) $(wildcard ./units/*$(RSTEXT)) $(wildcard ./units/$(CPU_TARGET)-$(OS_TARGET)/*$(OEXT)) $(wildcard ./units/$(CPU_TARGET)-$(OS_TARGET)/*$(PPUEXT)) $(wildcard ./units/$(CPU_TARGET)-$(OS_TARGET)/*$(RSTEXT))
 373endif
 374ifeq ($(FULL_TARGET),sparc-embedded)
 375override CLEAN_FILES+=$(wildcard *$(OEXT)) $(wildcard *$(PPUEXT)) $(wildcard *$(RSTEXT))$(wildcard ./units/*$(OEXT)) $(wildcard ./units/*$(PPUEXT)) $(wildcard ./units/*$(RSTEXT)) $(wildcard ./units/$(CPU_TARGET)-$(OS_TARGET)/*$(OEXT)) $(wildcard ./units/$(CPU_TARGET)-$(OS_TARGET)/*$(PPUEXT)) $(wildcard ./units/$(CPU_TARGET)-$(OS_TARGET)/*$(RSTEXT))
 376endif
 377ifeq ($(FULL_TARGET),x86_64-linux)
 378override CLEAN_FILES+=$(wildcard *$(OEXT)) $(wildcard *$(PPUEXT)) $(wildcard *$(RSTEXT))$(wildcard ./units/*$(OEXT)) $(wildcard ./units/*$(PPUEXT)) $(wildcard ./units/*$(RSTEXT)) $(wildcard ./units/$(CPU_TARGET)-$(OS_TARGET)/*$(OEXT)) $(wildcard ./units/$(CPU_TARGET)-$(OS_TARGET)/*$(PPUEXT)) $(wildcard ./units/$(CPU_TARGET)-$(OS_TARGET)/*$(RSTEXT))
 379endif
 380ifeq ($(FULL_TARGET),x86_64-freebsd)
 381override CLEAN_FILES+=$(wildcard *$(OEXT)) $(wildcard *$(PPUEXT)) $(wildcard *$(RSTEXT))$(wildcard ./units/*$(OEXT)) $(wildcard ./units/*$(PPUEXT)) $(wildcard ./units/*$(RSTEXT)) $(wildcard ./units/$(CPU_TARGET)-$(OS_TARGET)/*$(OEXT)) $(wildcard ./units/$(CPU_TARGET)-$(OS_TARGET)/*$(PPUEXT)) $(wildcard ./units/$(CPU_TARGET)-$(OS_TARGET)/*$(RSTEXT))
 382endif
 383ifeq ($(FULL_TARGET),x86_64-darwin)
 384override CLEAN_FILES+=$(wildcard *$(OEXT)) $(wildcard *$(PPUEXT)) $(wildcard *$(RSTEXT))$(wildcard ./units/*$(OEXT)) $(wildcard ./units/*$(PPUEXT)) $(wildcard ./units/*$(RSTEXT)) $(wildcard ./units/$(CPU_TARGET)-$(OS_TARGET)/*$(OEXT)) $(wildcard ./units/$(CPU_TARGET)-$(OS_TARGET)/*$(PPUEXT)) $(wildcard ./units/$(CPU_TARGET)-$(OS_TARGET)/*$(RSTEXT))
 385endif
 386ifeq ($(FULL_TARGET),x86_64-win64)
 387override CLEAN_FILES+=$(wildcard *$(OEXT)) $(wildcard *$(PPUEXT)) $(wildcard *$(RSTEXT))$(wildcard ./units/*$(OEXT)) $(wildcard ./units/*$(PPUEXT)) $(wildcard ./units/*$(RSTEXT)) $(wildcard ./units/$(CPU_TARGET)-$(OS_TARGET)/*$(OEXT)) $(wildcard ./units/$(CPU_TARGET)-$(OS_TARGET)/*$(PPUEXT)) $(wildcard ./units/$(CPU_TARGET)-$(OS_TARGET)/*$(RSTEXT))
 388endif
 389ifeq ($(FULL_TARGET),x86_64-embedded)
 390override CLEAN_FILES+=$(wildcard *$(OEXT)) $(wildcard *$(PPUEXT)) $(wildcard *$(RSTEXT))$(wildcard ./units/*$(OEXT)) $(wildcard ./units/*$(PPUEXT)) $(wildcard ./units/*$(RSTEXT)) $(wildcard ./units/$(CPU_TARGET)-$(OS_TARGET)/*$(OEXT)) $(wildcard ./units/$(CPU_TARGET)-$(OS_TARGET)/*$(PPUEXT)) $(wildcard ./units/$(CPU_TARGET)-$(OS_TARGET)/*$(RSTEXT))
 391endif
 392ifeq ($(FULL_TARGET),arm-linux)
 393override CLEAN_FILES+=$(wildcard *$(OEXT)) $(wildcard *$(PPUEXT)) $(wildcard *$(RSTEXT))$(wildcard ./units/*$(OEXT)) $(wildcard ./units/*$(PPUEXT)) $(wildcard ./units/*$(RSTEXT)) $(wildcard ./units/$(CPU_TARGET)-$(OS_TARGET)/*$(OEXT)) $(wildcard ./units/$(CPU_TARGET)-$(OS_TARGET)/*$(PPUEXT)) $(wildcard ./units/$(CPU_TARGET)-$(OS_TARGET)/*$(RSTEXT))
 394endif
 395ifeq ($(FULL_TARGET),arm-palmos)
 396override CLEAN_FILES+=$(wildcard *$(OEXT)) $(wildcard *$(PPUEXT)) $(wildcard *$(RSTEXT))$(wildcard ./units/*$(OEXT)) $(wildcard ./units/*$(PPUEXT)) $(wildcard ./units/*$(RSTEXT)) $(wildcard ./units/$(CPU_TARGET)-$(OS_TARGET)/*$(OEXT)) $(wildcard ./units/$(CPU_TARGET)-$(OS_TARGET)/*$(PPUEXT)) $(wildcard ./units/$(CPU_TARGET)-$(OS_TARGET)/*$(RSTEXT))
 397endif
 398ifeq ($(FULL_TARGET),arm-darwin)
 399override CLEAN_FILES+=$(wildcard *$(OEXT)) $(wildcard *$(PPUEXT)) $(wildcard *$(RSTEXT))$(wildcard ./units/*$(OEXT)) $(wildcard ./units/*$(PPUEXT)) $(wildcard ./units/*$(RSTEXT)) $(wildcard ./units/$(CPU_TARGET)-$(OS_TARGET)/*$(OEXT)) $(wildcard ./units/$(CPU_TARGET)-$(OS_TARGET)/*$(PPUEXT)) $(wildcard ./units/$(CPU_TARGET)-$(OS_TARGET)/*$(RSTEXT))
 400endif
 401ifeq ($(FULL_TARGET),arm-wince)
 402override CLEAN_FILES+=$(wildcard *$(OEXT)) $(wildcard *$(PPUEXT)) $(wildcard *$(RSTEXT))$(wildcard ./units/*$(OEXT)) $(wildcard ./units/*$(PPUEXT)) $(wildcard ./units/*$(RSTEXT)) $(wildcard ./units/$(CPU_TARGET)-$(OS_TARGET)/*$(OEXT)) $(wildcard ./units/$(CPU_TARGET)-$(OS_TARGET)/*$(PPUEXT)) $(wildcard ./units/$(CPU_TARGET)-$(OS_TARGET)/*$(RSTEXT))
 403endif
 404ifeq ($(FULL_TARGET),arm-gba)
 405override CLEAN_FILES+=$(wildcard *$(OEXT)) $(wildcard *$(PPUEXT)) $(wildcard *$(RSTEXT))$(wildcard ./units/*$(OEXT)) $(wildcard ./units/*$(PPUEXT)) $(wildcard ./units/*$(RSTEXT)) $(wildcard ./units/$(CPU_TARGET)-$(OS_TARGET)/*$(OEXT)) $(wildcard ./units/$(CPU_TARGET)-$(OS_TARGET)/*$(PPUEXT)) $(wildcard ./units/$(CPU_TARGET)-$(OS_TARGET)/*$(RSTEXT))
 406endif
 407ifeq ($(FULL_TARGET),arm-nds)
 408override CLEAN_FILES+=$(wildcard *$(OEXT)) $(wildcard *$(PPUEXT)) $(wildcard *$(RSTEXT))$(wildcard ./units/*$(OEXT)) $(wildcard ./units/*$(PPUEXT)) $(wildcard ./units/*$(RSTEXT)) $(wildcard ./units/$(CPU_TARGET)-$(OS_TARGET)/*$(OEXT)) $(wildcard ./units/$(CPU_TARGET)-$(OS_TARGET)/*$(PPUEXT)) $(wildcard ./units/$(CPU_TARGET)-$(OS_TARGET)/*$(RSTEXT))
 409endif
 410ifeq ($(FULL_TARGET),arm-embedded)
 411override CLEAN_FILES+=$(wildcard *$(OEXT)) $(wildcard *$(PPUEXT)) $(wildcard *$(RSTEXT))$(wildcard ./units/*$(OEXT)) $(wildcard ./units/*$(PPUEXT)) $(wildcard ./units/*$(RSTEXT)) $(wildcard ./units/$(CPU_TARGET)-$(OS_TARGET)/*$(OEXT)) $(wildcard ./units/$(CPU_TARGET)-$(OS_TARGET)/*$(PPUEXT)) $(wildcard ./units/$(CPU_TARGET)-$(OS_TARGET)/*$(RSTEXT))
 412endif
 413ifeq ($(FULL_TARGET),arm-symbian)
 414override CLEAN_FILES+=$(wildcard *$(OEXT)) $(wildcard *$(PPUEXT)) $(wildcard *$(RSTEXT))$(wildcard ./units/*$(OEXT)) $(wildcard ./units/*$(PPUEXT)) $(wildcard ./units/*$(RSTEXT)) $(wildcard ./units/$(CPU_TARGET)-$(OS_TARGET)/*$(OEXT)) $(wildcard ./units/$(CPU_TARGET)-$(OS_TARGET)/*$(PPUEXT)) $(wildcard ./units/$(CPU_TARGET)-$(OS_TARGET)/*$(RSTEXT))
 415endif
 416ifeq ($(FULL_TARGET),powerpc64-linux)
 417override CLEAN_FILES+=$(wildcard *$(OEXT)) $(wildcard *$(PPUEXT)) $(wildcard *$(RSTEXT))$(wildcard ./units/*$(OEXT)) $(wildcard ./units/*$(PPUEXT)) $(wildcard ./units/*$(RSTEXT)) $(wildcard ./units/$(CPU_TARGET)-$(OS_TARGET)/*$(OEXT)) $(wildcard ./units/$(CPU_TARGET)-$(OS_TARGET)/*$(PPUEXT)) $(wildcard ./units/$(CPU_TARGET)-$(OS_TARGET)/*$(RSTEXT))
 418endif
 419ifeq ($(FULL_TARGET),powerpc64-darwin)
 420override CLEAN_FILES+=$(wildcard *$(OEXT)) $(wildcard *$(PPUEXT)) $(wildcard *$(RSTEXT))$(wildcard ./units/*$(OEXT)) $(wildcard ./units/*$(PPUEXT)) $(wildcard ./units/*$(RSTEXT)) $(wildcard ./units/$(CPU_TARGET)-$(OS_TARGET)/*$(OEXT)) $(wildcard ./units/$(CPU_TARGET)-$(OS_TARGET)/*$(PPUEXT)) $(wildcard ./units/$(CPU_TARGET)-$(OS_TARGET)/*$(RSTEXT))
 421endif
 422ifeq ($(FULL_TARGET),powerpc64-embedded)
 423override CLEAN_FILES+=$(wildcard *$(OEXT)) $(wildcard *$(PPUEXT)) $(wildcard *$(RSTEXT))$(wildcard ./units/*$(OEXT)) $(wildcard ./units/*$(PPUEXT)) $(wildcard ./units/*$(RSTEXT)) $(wildcard ./units/$(CPU_TARGET)-$(OS_TARGET)/*$(OEXT)) $(wildcard ./units/$(CPU_TARGET)-$(OS_TARGET)/*$(PPUEXT)) $(wildcard ./units/$(CPU_TARGET)-$(OS_TARGET)/*$(RSTEXT))
 424endif
 425ifeq ($(FULL_TARGET),avr-embedded)
 426override CLEAN_FILES+=$(wildcard *$(OEXT)) $(wildcard *$(PPUEXT)) $(wildcard *$(RSTEXT))$(wildcard ./units/*$(OEXT)) $(wildcard ./units/*$(PPUEXT)) $(wildcard ./units/*$(RSTEXT)) $(wildcard ./units/$(CPU_TARGET)-$(OS_TARGET)/*$(OEXT)) $(wildcard ./units/$(CPU_TARGET)-$(OS_TARGET)/*$(PPUEXT)) $(wildcard ./units/$(CPU_TARGET)-$(OS_TARGET)/*$(RSTEXT))
 427endif
 428ifeq ($(FULL_TARGET),armeb-linux)
 429override CLEAN_FILES+=$(wildcard *$(OEXT)) $(wildcard *$(PPUEXT)) $(wildcard *$(RSTEXT))$(wildcard ./units/*$(OEXT)) $(wildcard ./units/*$(PPUEXT)) $(wildcard ./units/*$(RSTEXT)) $(wildcard ./units/$(CPU_TARGET)-$(OS_TARGET)/*$(OEXT)) $(wildcard ./units/$(CPU_TARGET)-$(OS_TARGET)/*$(PPUEXT)) $(wildcard ./units/$(CPU_TARGET)-$(OS_TARGET)/*$(RSTEXT))
 430endif
 431ifeq ($(FULL_TARGET),armeb-embedded)
 432override CLEAN_FILES+=$(wildcard *$(OEXT)) $(wildcard *$(PPUEXT)) $(wildcard *$(RSTEXT))$(wildcard ./units/*$(OEXT)) $(wildcard ./units/*$(PPUEXT)) $(wildcard ./units/*$(RSTEXT)) $(wildcard ./units/$(CPU_TARGET)-$(OS_TARGET)/*$(OEXT)) $(wildcard ./units/$(CPU_TARGET)-$(OS_TARGET)/*$(PPUEXT)) $(wildcard ./units/$(CPU_TARGET)-$(OS_TARGET)/*$(RSTEXT))
 433endif
 434ifdef REQUIRE_UNITSDIR
 435override UNITSDIR+=$(REQUIRE_UNITSDIR)
 436endif
 437ifdef REQUIRE_PACKAGESDIR
 438override PACKAGESDIR+=$(REQUIRE_PACKAGESDIR)
 439endif
 440ifdef ZIPINSTALL
 441ifneq ($(findstring $(OS_TARGET),$(UNIXs)),)
 442UNIXHier=1
 443endif
 444else
 445ifneq ($(findstring $(OS_SOURCE),$(UNIXs)),)
 446UNIXHier=1
 447endif
 448endif
 449ifndef INSTALL_PREFIX
 450ifdef PREFIX
 451INSTALL_PREFIX=$(PREFIX)
 452endif
 453endif
 454ifndef INSTALL_PREFIX
 455ifdef UNIXHier
 456INSTALL_PREFIX=/usr/local
 457else
 458ifdef INSTALL_FPCPACKAGE
 459INSTALL_BASEDIR:=/pp
 460else
 461INSTALL_BASEDIR:=/$(PACKAGE_NAME)
 462endif
 463endif
 464endif
 465export INSTALL_PREFIX
 466ifdef INSTALL_FPCSUBDIR
 467export INSTALL_FPCSUBDIR
 468endif
 469ifndef DIST_DESTDIR
 470DIST_DESTDIR:=$(BASEDIR)
 471endif
 472export DIST_DESTDIR
 473ifndef COMPILER_UNITTARGETDIR
 474ifdef PACKAGEDIR_MAIN
 475COMPILER_UNITTARGETDIR=$(PACKAGEDIR_MAIN)/units/$(TARGETSUFFIX)
 476else
 477COMPILER_UNITTARGETDIR=units/$(TARGETSUFFIX)
 478endif
 479endif
 480ifndef COMPILER_TARGETDIR
 481COMPILER_TARGETDIR=.
 482endif
 483ifndef INSTALL_BASEDIR
 484ifdef UNIXHier
 485ifdef INSTALL_FPCPACKAGE
 486INSTALL_BASEDIR:=$(INSTALL_PREFIX)/lib/fpc/$(FPC_VERSION)
 487else
 488INSTALL_BASEDIR:=$(INSTALL_PREFIX)/lib/$(PACKAGE_NAME)
 489endif
 490else
 491INSTALL_BASEDIR:=$(INSTALL_PREFIX)
 492endif
 493endif
 494ifndef INSTALL_BINDIR
 495ifdef UNIXHier
 496INSTALL_BINDIR:=$(INSTALL_PREFIX)/bin
 497else
 498INSTALL_BINDIR:=$(INSTALL_BASEDIR)/bin
 499ifdef INSTALL_FPCPACKAGE
 500ifdef CROSSCOMPILE
 501ifdef CROSSINSTALL
 502INSTALL_BINDIR:=$(INSTALL_BINDIR)/$(SOURCESUFFIX)
 503else
 504INSTALL_BINDIR:=$(INSTALL_BINDIR)/$(TARGETSUFFIX)
 505endif
 506else
 507INSTALL_BINDIR:=$(INSTALL_BINDIR)/$(TARGETSUFFIX)
 508endif
 509endif
 510endif
 511endif
 512ifndef INSTALL_UNITDIR
 513INSTALL_UNITDIR:=$(INSTALL_BASEDIR)/units/$(TARGETSUFFIX)
 514ifdef INSTALL_FPCPACKAGE
 515ifdef PACKAGE_NAME
 516INSTALL_UNITDIR:=$(INSTALL_UNITDIR)/$(PACKAGE_NAME)
 517endif
 518endif
 519endif
 520ifndef INSTALL_LIBDIR
 521ifdef UNIXHier
 522INSTALL_LIBDIR:=$(INSTALL_PREFIX)/lib
 523else
 524INSTALL_LIBDIR:=$(INSTALL_UNITDIR)
 525endif
 526endif
 527ifndef INSTALL_SOURCEDIR
 528ifdef UNIXHier
 529ifdef BSDhier
 530SRCPREFIXDIR=share/src
 531else
 532ifdef linuxHier
 533SRCPREFIXDIR=share/src
 534else
 535SRCPREFIXDIR=src
 536endif
 537endif
 538ifdef INSTALL_FPCPACKAGE
 539ifdef INSTALL_FPCSUBDIR
 540INSTALL_SOURCEDIR:=$(INSTALL_PREFIX)/$(SRCPREFIXDIR)/fpc-$(FPC_VERSION)/$(INSTALL_FPCSUBDIR)/$(PACKAGE_NAME)
 541else
 542INSTALL_SOURCEDIR:=$(INSTALL_PREFIX)/$(SRCPREFIXDIR)/fpc-$(FPC_VERSION)/$(PACKAGE_NAME)
 543endif
 544else
 545INSTALL_SOURCEDIR:=$(INSTALL_PREFIX)/$(SRCPREFIXDIR)/$(PACKAGE_NAME)-$(PACKAGE_VERSION)
 546endif
 547else
 548ifdef INSTALL_FPCPACKAGE
 549ifdef INSTALL_FPCSUBDIR
 550INSTALL_SOURCEDIR:=$(INSTALL_BASEDIR)/source/$(INSTALL_FPCSUBDIR)/$(PACKAGE_NAME)
 551else
 552INSTALL_SOURCEDIR:=$(INSTALL_BASEDIR)/source/$(PACKAGE_NAME)
 553endif
 554else
 555INSTALL_SOURCEDIR:=$(INSTALL_BASEDIR)/source
 556endif
 557endif
 558endif
 559ifndef INSTALL_DOCDIR
 560ifdef UNIXHier
 561ifdef BSDhier
 562DOCPREFIXDIR=share/doc
 563else
 564ifdef linuxHier
 565DOCPREFIXDIR=share/doc
 566else
 567DOCPREFIXDIR=doc
 568endif
 569endif
 570ifdef INSTALL_FPCPACKAGE
 571INSTALL_DOCDIR:=$(INSTALL_PREFIX)/$(DOCPREFIXDIR)/fpc-$(FPC_VERSION)/$(PACKAGE_NAME)
 572else
 573INSTALL_DOCDIR:=$(INSTALL_PREFIX)/$(DOCPREFIXDIR)/$(PACKAGE_NAME)-$(PACKAGE_VERSION)
 574endif
 575else
 576ifdef INSTALL_FPCPACKAGE
 577INSTALL_DOCDIR:=$(INSTALL_BASEDIR)/doc/$(PACKAGE_NAME)
 578else
 579INSTALL_DOCDIR:=$(INSTALL_BASEDIR)/doc
 580endif
 581endif
 582endif
 583ifndef INSTALL_EXAMPLEDIR
 584ifdef UNIXHier
 585ifdef INSTALL_FPCPACKAGE
 586ifdef BSDhier
 587INSTALL_EXAMPLEDIR:=$(INSTALL_PREFIX)/share/examples/fpc-$(FPC_VERSION)/$(PACKAGE_NAME)
 588else
 589ifdef linuxHier
 590INSTALL_EXAMPLEDIR:=$(INSTALL_DOCDIR)/examples
 591else
 592INSTALL_EXAMPLEDIR:=$(INSTALL_PREFIX)/doc/fpc-$(FPC_VERSION)/examples/$(PACKAGE_NAME)
 593endif
 594endif
 595else
 596ifdef BSDhier
 597INSTALL_EXAMPLEDIR:=$(INSTALL_PREFIX)/share/examples/$(PACKAGE_NAME)-$(PACKAGE_VERSION)
 598else
 599ifdef linuxHier
 600INSTALL_EXAMPLEDIR:=$(INSTALL_DOCDIR)/examples/$(PACKAGE_NAME)-$(PACKAGE_VERSION)
 601else
 602INSTALL_EXAMPLEDIR:=$(INSTALL_PREFIX)/doc/$(PACKAGE_NAME)-$(PACKAGE_VERSION)
 603endif
 604endif
 605endif
 606else
 607ifdef INSTALL_FPCPACKAGE
 608INSTALL_EXAMPLEDIR:=$(INSTALL_BASEDIR)/examples/$(PACKAGE_NAME)
 609else
 610INSTALL_EXAMPLEDIR:=$(INSTALL_BASEDIR)/examples
 611endif
 612endif
 613endif
 614ifndef INSTALL_DATADIR
 615INSTALL_DATADIR=$(INSTALL_BASEDIR)
 616endif
 617ifndef INSTALL_SHAREDDIR
 618INSTALL_SHAREDDIR=$(INSTALL_PREFIX)/lib
 619endif
 620ifdef CROSSCOMPILE
 621ifndef CROSSBINDIR
 622CROSSBINDIR:=$(wildcard $(CROSSTARGETDIR)/bin/$(SOURCESUFFIX))
 623ifeq ($(CROSSBINDIR),)
 624CROSSBINDIR:=$(wildcard $(INSTALL_BASEDIR)/cross/$(TARGETSUFFIX)/bin/$(FULL_SOURCE))
 625endif
 626endif
 627else
 628CROSSBINDIR=
 629endif
 630BATCHEXT=.bat
 631LOADEREXT=.as
 632EXEEXT=.exe
 633PPLEXT=.ppl
 634PPUEXT=.ppu
 635OEXT=.o
 636ASMEXT=.s
 637SMARTEXT=.sl
 638STATICLIBEXT=.a
 639SHAREDLIBEXT=.so
 640SHAREDLIBPREFIX=libfp
 641STATICLIBPREFIX=libp
 642IMPORTLIBPREFIX=libimp
 643RSTEXT=.rst
 644ifeq ($(findstring 1.0.,$(FPC_VERSION)),)
 645ifeq ($(OS_TARGET),go32v1)
 646STATICLIBPREFIX=
 647SHORTSUFFIX=v1
 648endif
 649ifeq ($(OS_TARGET),go32v2)
 650STATICLIBPREFIX=
 651SHORTSUFFIX=dos
 652endif
 653ifeq ($(OS_TARGET),watcom)
 654STATICLIBPREFIX=
 655OEXT=.obj
 656ASMEXT=.asm
 657SHAREDLIBEXT=.dll
 658SHORTSUFFIX=wat
 659endif
 660ifeq ($(OS_TARGET),linux)
 661BATCHEXT=.sh
 662EXEEXT=
 663HASSHAREDLIB=1
 664SHORTSUFFIX=lnx
 665endif
 666ifeq ($(OS_TARGET),freebsd)
 667BATCHEXT=.sh
 668EXEEXT=
 669HASSHAREDLIB=1
 670SHORTSUFFIX=fbs
 671endif
 672ifeq ($(OS_TARGET),netbsd)
 673BATCHEXT=.sh
 674EXEEXT=
 675HASSHAREDLIB=1
 676SHORTSUFFIX=nbs
 677endif
 678ifeq ($(OS_TARGET),openbsd)
 679BATCHEXT=.sh
 680EXEEXT=
 681HASSHAREDLIB=1
 682SHORTSUFFIX=obs
 683endif
 684ifeq ($(OS_TARGET),win32)
 685SHAREDLIBEXT=.dll
 686SHORTSUFFIX=w32
 687endif
 688ifeq ($(OS_TARGET),os2)
 689BATCHEXT=.cmd
 690AOUTEXT=.out
 691STATICLIBPREFIX=
 692SHAREDLIBEXT=.dll
 693SHORTSUFFIX=os2
 694ECHO=echo
 695endif
 696ifeq ($(OS_TARGET),emx)
 697BATCHEXT=.cmd
 698AOUTEXT=.out
 699STATICLIBPREFIX=
 700SHAREDLIBEXT=.dll
 701SHORTSUFFIX=emx
 702ECHO=echo
 703endif
 704ifeq ($(OS_TARGET),amiga)
 705EXEEXT=
 706SHAREDLIBEXT=.library
 707SHORTSUFFIX=amg
 708endif
 709ifeq ($(OS_TARGET),morphos)
 710EXEEXT=
 711SHAREDLIBEXT=.library
 712SHORTSUFFIX=mos
 713endif
 714ifeq ($(OS_TARGET),atari)
 715EXEEXT=.ttp
 716SHORTSUFFIX=ata
 717endif
 718ifeq ($(OS_TARGET),beos)
 719BATCHEXT=.sh
 720EXEEXT=
 721SHORTSUFFIX=be
 722endif
 723ifeq ($(OS_TARGET),haiku)
 724BATCHEXT=.sh
 725EXEEXT=
 726SHORTSUFFIX=hai
 727endif
 728ifeq ($(OS_TARGET),solaris)
 729BATCHEXT=.sh
 730EXEEXT=
 731SHORTSUFFIX=sun
 732endif
 733ifeq ($(OS_TARGET),qnx)
 734BATCHEXT=.sh
 735EXEEXT=
 736SHORTSUFFIX=qnx
 737endif
 738ifeq ($(OS_TARGET),netware)
 739EXEEXT=.nlm
 740STATICLIBPREFIX=
 741SHORTSUFFIX=nw
 742endif
 743ifeq ($(OS_TARGET),netwlibc)
 744EXEEXT=.nlm
 745STATICLIBPREFIX=
 746SHORTSUFFIX=nwl
 747endif
 748ifeq ($(OS_TARGET),macos)
 749BATCHEXT=
 750EXEEXT=
 751DEBUGSYMEXT=.xcoff
 752SHORTSUFFIX=mac
 753endif
 754ifeq ($(OS_TARGET),darwin)
 755BATCHEXT=.sh
 756EXEEXT=
 757HASSHAREDLIB=1
 758SHORTSUFFIX=dwn
 759endif
 760ifeq ($(OS_TARGET),gba)
 761EXEEXT=.gba
 762SHAREDLIBEXT=.so
 763SHORTSUFFIX=gba
 764endif
 765ifeq ($(OS_TARGET),symbian)
 766SHAREDLIBEXT=.dll
 767SHORTSUFFIX=symbian
 768endif
 769else
 770ifeq ($(OS_TARGET),go32v1)
 771PPUEXT=.pp1
 772OEXT=.o1
 773ASMEXT=.s1
 774SMARTEXT=.sl1
 775STATICLIBEXT=.a1
 776SHAREDLIBEXT=.so1
 777STATICLIBPREFIX=
 778SHORTSUFFIX=v1
 779endif
 780ifeq ($(OS_TARGET),go32v2)
 781STATICLIBPREFIX=
 782SHORTSUFFIX=dos
 783endif
 784ifeq ($(OS_TARGET),watcom)
 785STATICLIBPREFIX=
 786SHORTSUFFIX=wat
 787endif
 788ifeq ($(OS_TARGET),linux)
 789BATCHEXT=.sh
 790EXEEXT=
 791HASSHAREDLIB=1
 792SHORTSUFFIX=lnx
 793endif
 794ifeq ($(OS_TARGET),freebsd)
 795BATCHEXT=.sh
 796EXEEXT=
 797HASSHAREDLIB=1
 798SHORTSUFFIX=fbs
 799endif
 800ifeq ($(OS_TARGET),netbsd)
 801BATCHEXT=.sh
 802EXEEXT=
 803HASSHAREDLIB=1
 804SHORTSUFFIX=nbs
 805endif
 806ifeq ($(OS_TARGET),openbsd)
 807BATCHEXT=.sh
 808EXEEXT=
 809HASSHAREDLIB=1
 810SHORTSUFFIX=obs
 811endif
 812ifeq ($(OS_TARGET),win32)
 813PPUEXT=.ppw
 814OEXT=.ow
 815ASMEXT=.sw
 816SMARTEXT=.slw
 817STATICLIBEXT=.aw
 818SHAREDLIBEXT=.dll
 819SHORTSUFFIX=w32
 820endif
 821ifeq ($(OS_TARGET),os2)
 822BATCHEXT=.cmd
 823PPUEXT=.ppo
 824ASMEXT=.so2
 825OEXT=.oo2
 826AOUTEXT=.out
 827SMARTEXT=.sl2
 828STATICLIBPREFIX=
 829STATICLIBEXT=.ao2
 830SHAREDLIBEXT=.dll
 831SHORTSUFFIX=os2
 832ECHO=echo
 833endif
 834ifeq ($(OS_TARGET),amiga)
 835EXEEXT=
 836PPUEXT=.ppu
 837ASMEXT=.s
 838OEXT=.o
 839SMARTEXT=.sl
 840STATICLIBEXT=.a
 841SHAREDLIBEXT=.library
 842SHORTSUFFIX=amg
 843endif
 844ifeq ($(OS_TARGET),atari)
 845PPUEXT=.ppu
 846ASMEXT=.s
 847OEXT=.o
 848SMARTEXT=.sl
 849STATICLIBEXT=.a
 850EXEEXT=.ttp
 851SHORTSUFFIX=ata
 852endif
 853ifeq ($(OS_TARGET),beos)
 854BATCHEXT=.sh
 855PPUEXT=.ppu
 856ASMEXT=.s
 857OEXT=.o
 858SMARTEXT=.sl
 859STATICLIBEXT=.a
 860EXEEXT=
 861SHORTSUFFIX=be
 862endif
 863ifeq ($(OS_TARGET),solaris)
 864BATCHEXT=.sh
 865PPUEXT=.ppu
 866ASMEXT=.s
 867OEXT=.o
 868SMARTEXT=.sl
 869STATICLIBEXT=.a
 870EXEEXT=
 871SHORTSUFFIX=sun
 872endif
 873ifeq ($(OS_TARGET),qnx)
 874BATCHEXT=.sh
 875PPUEXT=.ppu
 876ASMEXT=.s
 877OEXT=.o
 878SMARTEXT=.sl
 879STATICLIBEXT=.a
 880EXEEXT=
 881SHORTSUFFIX=qnx
 882endif
 883ifeq ($(OS_TARGET),netware)
 884STATICLIBPREFIX=
 885PPUEXT=.ppu
 886OEXT=.o
 887ASMEXT=.s
 888SMARTEXT=.sl
 889STATICLIBEXT=.a
 890SHAREDLIBEXT=.nlm
 891EXEEXT=.nlm
 892SHORTSUFFIX=nw
 893endif
 894ifeq ($(OS_TARGET),netwlibc)
 895STATICLIBPREFIX=
 896PPUEXT=.ppu
 897OEXT=.o
 898ASMEXT=.s
 899SMARTEXT=.sl
 900STATICLIBEXT=.a
 901SHAREDLIBEXT=.nlm
 902EXEEXT=.nlm
 903SHORTSUFFIX=nwl
 904endif
 905ifeq ($(OS_TARGET),macos)
 906BATCHEXT=
 907PPUEXT=.ppu
 908ASMEXT=.s
 909OEXT=.o
 910SMARTEXT=.sl
 911STATICLIBEXT=.a
 912EXEEXT=
 913DEBUGSYMEXT=.xcoff
 914SHORTSUFFIX=mac
 915endif
 916endif
 917ifneq ($(findstring $(OS_SOURCE),$(LIMIT83fs)),)
 918FPCMADE=fpcmade.$(SHORTSUFFIX)
 919ZIPSUFFIX=$(SHORTSUFFIX)
 920ZIPCROSSPREFIX=
 921ZIPSOURCESUFFIX=src
 922ZIPEXAMPLESUFFIX=exm
 923else
 924FPCMADE=fpcmade.$(TARGETSUFFIX)
 925ZIPSOURCESUFFIX=.source
 926ZIPEXAMPLESUFFIX=.examples
 927ifdef CROSSCOMPILE
 928ZIPSUFFIX=.$(SOURCESUFFIX)
 929ZIPCROSSPREFIX=$(TARGETSUFFIX)-
 930else
 931ZIPSUFFIX=.$(TARGETSUFFIX)
 932ZIPCROSSPREFIX=
 933endif
 934endif
 935ifndef ECHO
 936ECHO:=$(strip $(wildcard $(addsuffix /gecho$(SRCEXEEXT),$(SEARCHPATH))))
 937ifeq ($(ECHO),)
 938ECHO:=$(strip $(wildcard $(addsuffix /echo$(SRCEXEEXT),$(SEARCHPATH))))
 939ifeq ($(ECHO),)
 940ECHO= __missing_command_ECHO
 941else
 942ECHO:=$(firstword $(ECHO))
 943endif
 944else
 945ECHO:=$(firstword $(ECHO))
 946endif
 947endif
 948export ECHO
 949ifndef DATE
 950DATE:=$(strip $(wildcard $(addsuffix /gdate$(SRCEXEEXT),$(SEARCHPATH))))
 951ifeq ($(DATE),)
 952DATE:=$(strip $(wildcard $(addsuffix /date$(SRCEXEEXT),$(SEARCHPATH))))
 953ifeq ($(DATE),)
 954DATE= __missing_command_DATE
 955else
 956DATE:=$(firstword $(DATE))
 957endif
 958else
 959DATE:=$(firstword $(DATE))
 960endif
 961endif
 962export DATE
 963ifndef GINSTALL
 964GINSTALL:=$(strip $(wildcard $(addsuffix /ginstall$(SRCEXEEXT),$(SEARCHPATH))))
 965ifeq ($(GINSTALL),)
 966GINSTALL:=$(strip $(wildcard $(addsuffix /install$(SRCEXEEXT),$(SEARCHPATH))))
 967ifeq ($(GINSTALL),)
 968GINSTALL= __missing_command_GINSTALL
 969else
 970GINSTALL:=$(firstword $(GINSTALL))
 971endif
 972else
 973GINSTALL:=$(firstword $(GINSTALL))
 974endif
 975endif
 976export GINSTALL
 977ifndef CPPROG
 978CPPROG:=$(strip $(wildcard $(addsuffix /cp$(SRCEXEEXT),$(SEARCHPATH))))
 979ifeq ($(CPPROG),)
 980CPPROG= __missing_command_CPPROG
 981else
 982CPPROG:=$(firstword $(CPPROG))
 983endif
 984endif
 985export CPPROG
 986ifndef RMPROG
 987RMPROG:=$(strip $(wildcard $(addsuffix /rm$(SRCEXEEXT),$(SEARCHPATH))))
 988ifeq ($(RMPROG),)
 989RMPROG= __missing_command_RMPROG
 990else
 991RMPROG:=$(firstword $(RMPROG))
 992endif
 993endif
 994export RMPROG
 995ifndef MVPROG
 996MVPROG:=$(strip $(wildcard $(addsuffix /mv$(SRCEXEEXT),$(SEARCHPATH))))
 997ifeq ($(MVPROG),)
 998MVPROG= __missing_command_MVPROG
 999else
1000MVPROG:=$(firstword $(MVPROG))
1001endif
1002endif
1003export MVPROG
1004ifndef MKDIRPROG
1005MKDIRPROG:=$(strip $(wildcard $(addsuffix /gmkdir$(SRCEXEEXT),$(SEARCHPATH))))
1006ifeq ($(MKDIRPROG),)
1007MKDIRPROG:=$(strip $(wildcard $(addsuffix /mkdir$(SRCEXEEXT),$(SEARCHPATH))))
1008ifeq ($(MKDIRPROG),)
1009MKDIRPROG= __missing_command_MKDIRPROG
1010else
1011MKDIRPROG:=$(firstword $(MKDIRPROG))
1012endif
1013else
1014MKDIRPROG:=$(firstword $(MKDIRPROG))
1015endif
1016endif
1017export MKDIRPROG
1018ifndef ECHOREDIR
1019ifndef inUnix
1020ECHOREDIR=echo
1021else
1022ECHOREDIR=$(ECHO)
1023endif
1024endif
1025ifndef COPY
1026COPY:=$(CPPROG) -fp
1027endif
1028ifndef COPYTREE
1029COPYTREE:=$(CPPROG) -Rfp
1030endif
1031ifndef MKDIRTREE
1032MKDIRTREE:=$(MKDIRPROG) -p
1033endif
1034ifndef MOVE
1035MOVE:=$(MVPROG) -f
1036endif
1037ifndef DEL
1038DEL:=$(RMPROG) -f
1039endif
1040ifndef DELTREE
1041DELTREE:=$(RMPROG) -rf
1042endif
1043ifndef INSTALL
1044ifdef inUnix
1045INSTALL:=$(GINSTALL) -c -m 644
1046else
1047INSTALL:=$(COPY)
1048endif
1049endif
1050ifndef INSTALLEXE
1051ifdef inUnix
1052INSTALLEXE:=$(GINSTALL) -c -m 755
1053else
1054INSTALLEXE:=$(COPY)
1055endif
1056endif
1057ifndef MKDIR
1058MKDIR:=$(GINSTALL) -m 755 -d
1059endif
1060export ECHOREDIR COPY COPYTREE MOVE DEL DELTREE INSTALL INSTALLEXE MKDIR
1061ifndef PPUMOVE
1062PPUMOVE:=$(strip $(wildcard $(addsuffix /ppumove$(SRCEXEEXT),$(SEARCHPATH))))
1063ifeq ($(PPUMOVE),)
1064PPUMOVE= __missing_command_PPUMOVE
1065else
1066PPUMOVE:=$(firstword $(PPUMOVE))
1067endif
1068endif
1069export PPUMOVE
1070ifndef FPCMAKE
1071FPCMAKE:=$(strip $(wildcard $(addsuffix /fpcmake$(SRCEXEEXT),$(SEARCHPATH))))
1072ifeq ($(FPCMAKE),)
1073FPCMAKE= __missing_command_FPCMAKE
1074else
1075FPCMAKE:=$(firstword $(FPCMAKE))
1076endif
1077endif
1078export FPCMAKE
1079ifndef ZIPPROG
1080ZIPPROG:=$(strip $(wildcard $(addsuffix /zip$(SRCEXEEXT),$(SEARCHPATH))))
1081ifeq ($(ZIPPROG),)
1082ZIPPROG= __missing_command_ZIPPROG
1083else
1084ZIPPROG:=$(firstword $(ZIPPROG))
1085endif
1086endif
1087export ZIPPROG
1088ifndef TARPROG
1089TARPROG:=$(strip $(wildcard $(addsuffix /gtar$(SRCEXEEXT),$(SEARCHPATH))))
1090ifeq ($(TARPROG),)
1091TARPROG:=$(strip $(wildcard $(addsuffix /tar$(SRCEXEEXT),$(SEARCHPATH))))
1092ifeq ($(TARPROG),)
1093TARPROG= __missing_command_TARPROG
1094else
1095TARPROG:=$(firstword $(TARPROG))
1096endif
1097else
1098TARPROG:=$(firstword $(TARPROG))
1099endif
1100endif
1101export TARPROG
1102ASNAME=$(BINUTILSPREFIX)as
1103LDNAME=$(BINUTILSPREFIX)ld
1104ARNAME=$(BINUTILSPREFIX)ar
1105RCNAME=$(BINUTILSPREFIX)rc
1106ifneq ($(findstring 1.0.,$(FPC_VERSION)),)
1107ifeq ($(OS_TARGET),win32)
1108ifeq ($(CROSSBINDIR),)
1109ASNAME=asw
1110LDNAME=ldw
1111ARNAME=arw
1112endif
1113endif
1114endif
1115ifndef ASPROG
1116ifdef CROSSBINDIR
1117ASPROG=$(CROSSBINDIR)/$(ASNAME)$(SRCEXEEXT)
1118else
1119ASPROG=$(ASNAME)
1120endif
1121endif
1122ifndef LDPROG
1123ifdef CROSSBINDIR
1124LDPROG=$(CROSSBINDIR)/$(LDNAME)$(SRCEXEEXT)
1125else
1126LDPROG=$(LDNAME)
1127endif
1128endif
1129ifndef RCPROG
1130ifdef CROSSBINDIR
1131RCPROG=$(CROSSBINDIR)/$(RCNAME)$(SRCEXEEXT)
1132else
1133RCPROG=$(RCNAME)
1134endif
1135endif
1136ifndef ARPROG
1137ifdef CROSSBINDIR
1138ARPROG=$(CROSSBINDIR)/$(ARNAME)$(SRCEXEEXT)
1139else
1140ARPROG=$(ARNAME)
1141endif
1142endif
1143AS=$(ASPROG)
1144LD=$(LDPROG)
1145RC=$(RCPROG)
1146AR=$(ARPROG)
1147PPAS=ppas$(SRCBATCHEXT)
1148ifdef inUnix
1149LDCONFIG=ldconfig
1150else
1151LDCONFIG=
1152endif
1153ifdef DATE
1154DATESTR:=$(shell $(DATE) +%Y%m%d)
1155else
1156DATESTR=
1157endif
1158ifndef UPXPROG
1159ifeq ($(OS_TARGET),go32v2)
1160UPXPROG:=1
1161endif
1162ifeq ($(OS_TARGET),win32)
1163UPXPROG:=1
1164endif
1165ifdef UPXPROG
1166UPXPROG:=$(strip $(wildcard $(addsuffix /upx$(SRCEXEEXT),$(SEARCHPATH))))
1167ifeq ($(UPXPROG),)
1168UPXPROG=
1169else
1170UPXPROG:=$(firstword $(UPXPROG))
1171endif
1172else
1173UPXPROG=
1174endif
1175endif
1176export UPXPROG
1177ZIPOPT=-9
1178ZIPEXT=.zip
1179ifeq ($(USETAR),bz2)
1180TAROPT=vj
1181TAREXT=.tar.bz2
1182else
1183TAROPT=vz
1184TAREXT=.tar.gz
1185endif
1186ifndef NOCPUDEF
1187override FPCOPTDEF=$(ARCH)
1188endif
1189ifneq ($(OS_TARGET),$(OS_SOURCE))
1190override FPCOPT+=-T$(OS_TARGET)
1191endif
1192ifneq ($(CPU_TARGET),$(CPU_SOURCE))
1193override FPCOPT+=-P$(ARCH)
1194endif
1195ifeq ($(OS_SOURCE),openbsd)
1196override FPCOPT+=-FD$(NEW_BINUTILS_PATH)
1197endif
1198ifndef CROSSBOOTSTRAP
1199ifneq ($(BINUTILSPREFIX),)
1200override FPCOPT+=-XP$(BINUTILSPREFIX)
1201endif
1202ifneq ($(BINUTILSPREFIX),)
1203override FPCOPT+=-Xr$(RLINKPATH)
1204endif
1205endif
1206ifdef UNITDIR
1207override FPCOPT+=$(addprefix -Fu,$(UNITDIR))
1208endif
1209ifdef LIBDIR
1210override FPCOPT+=$(addprefix -Fl,$(LIBDIR))
1211endif
1212ifdef OBJDIR
1213override FPCOPT+=$(addprefix -Fo,$(OBJDIR))
1214endif
1215ifdef INCDIR
1216override FPCOPT+=$(addprefix -Fi,$(INCDIR))
1217endif
1218ifdef LINKSMART
1219override FPCOPT+=-XX
1220endif
1221ifdef CREATESMART
1222override FPCOPT+=-CX
1223endif
1224ifdef DEBUG
1225override FPCOPT+=-gl
1226override FPCOPTDEF+=DEBUG
1227endif
1228ifdef RELEASE
1229ifneq ($(findstring 2.0.,$(FPC_VERSION)),)
1230ifeq ($(CPU_TARGET),i386)
1231FPCCPUOPT:=-OG2p3
1232endif
1233ifeq ($(CPU_TARGET),powerpc)
1234FPCCPUOPT:=-O1r
1235endif
1236else
1237FPCCPUOPT:=-O2
1238endif
1239override FPCOPT+=-Ur -Xs $(FPCCPUOPT) -n
1240override FPCOPTDEF+=RELEASE
1241endif
1242ifdef STRIP
1243override FPCOPT+=-Xs
1244endif
1245ifdef OPTIMIZE
1246override FPCOPT+=-O2
1247endif
1248ifdef VERBOSE
1249override FPCOPT+=-vwni
1250endif
1251ifdef COMPILER_OPTIONS
1252override FPCOPT+=$(COMPILER_OPTIONS)
1253endif
1254ifdef COMPILER_UNITDIR
1255override FPCOPT+=$(addprefix -Fu,$(COMPILER_UNITDIR))
1256endif
1257ifdef COMPILER_LIBRARYDIR
1258override FPCOPT+=$(addprefix -Fl,$(COMPILER_LIBRARYDIR))
1259endif
1260ifdef COMPILER_OBJECTDIR
1261override FPCOPT+=$(addprefix -Fo,$(COMPILER_OBJECTDIR))
1262endif
1263ifdef COMPILER_INCLUDEDIR
1264override FPCOPT+=$(addprefix -Fi,$(COMPILER_INCLUDEDIR))
1265endif
1266ifdef CROSSBINDIR
1267override FPCOPT+=-FD$(CROSSBINDIR)
1268endif
1269ifdef COMPILER_TARGETDIR
1270override FPCOPT+=-FE$(COMPILER_TARGETDIR)
1271ifeq ($(COMPILER_TARGETDIR),.)
1272override TARGETDIRPREFIX=
1273else
1274override TARGETDIRPREFIX=$(COMPILER_TARGETDIR)/
1275endif
1276endif
1277ifdef COMPILER_UNITTARGETDIR
1278override FPCOPT+=-FU$(COMPILER_UNITTARGETDIR)
1279ifeq ($(COMPILER_UNITTARGETDIR),.)
1280override UNITTARGETDIRPREFIX=
1281else
1282override UNITTARGETDIRPREFIX=$(COMPILER_UNITTARGETDIR)/
1283endif
1284else
1285ifdef COMPILER_TARGETDIR
1286override COMPILER_UNITTARGETDIR=$(COMPILER_TARGETDIR)
1287override UNITTARGETDIRPREFIX=$(TARGETDIRPREFIX)
1288endif
1289endif
1290ifdef CREATESHARED
1291override FPCOPT+=-Cg
1292ifeq ($(CPU_TARGET),i386)
1293override FPCOPT+=-Aas
1294endif
1295endif
1296ifeq ($(findstring 2.0.,$(FPC_VERSION)),)
1297ifeq ($(OS_TARGET),linux)
1298ifeq ($(CPU_TARGET),x86_64)
1299override FPCOPT+=-Cg
1300endif
1301endif
1302endif
1303ifdef LINKSHARED
1304endif
1305ifdef OPT
1306override FPCOPT+=$(OPT)
1307endif
1308ifdef FPCOPTDEF
1309override FPCOPT+=$(addprefix -d,$(FPCOPTDEF))
1310endif
1311ifdef CFGFILE
1312override FPCOPT+=@$(CFGFILE)
1313endif
1314ifdef USEENV
1315override FPCEXTCMD:=$(FPCOPT)
1316override FPCOPT:=!FPCEXTCMD
1317export FPCEXTCMD
1318endif
1319override AFULL_TARGET=$(CPU_TARGET)-$(OS_TARGET)
1320override AFULL_SOURCE=$(CPU_SOURCE)-$(OS_SOURCE)
1321ifneq ($(AFULL_TARGET),$(AFULL_SOURCE))
1322override ACROSSCOMPILE=1
1323endif
1324ifdef ACROSSCOMPILE
1325override FPCOPT+=$(CROSSOPT)
1326endif
1327override COMPILER:=$(FPC) $(FPCOPT)
1328ifeq (,$(findstring -s ,$(COMPILER)))
1329EXECPPAS=
1330else
1331ifeq ($(FULL_SOURCE),$(FULL_TARGET))
1332ifdef RUNBATCH
1333EXECPPAS:=@$(RUNBATCH) $(PPAS)
1334else
1335EXECPPAS:=@$(PPAS)
1336endif
1337endif
1338endif
1339ifdef TARGET_RSTS
1340override RSTFILES=$(addsuffix $(RSTEXT),$(TARGET_RSTS))
1341override CLEANRSTFILES+=$(RSTFILES)
1342endif
1343.PHONY: fpc_clean fpc_cleanall fpc_distclean
1344ifdef EXEFILES
1345override CLEANEXEFILES:=$(addprefix $(TARGETDIRPREFIX),$(CLEANEXEFILES))
1346endif
1347ifdef CLEAN_UNITS
1348override CLEANPPUFILES+=$(addsuffix $(PPUEXT),$(CLEAN_UNITS))
1349endif
1350ifdef CLEANPPUFILES
1351override CLEANPPULINKFILES:=$(subst $(PPUEXT),$(OEXT),$(CLEANPPUFILES)) $(addprefix $(STATICLIBPREFIX),$(subst $(PPUEXT),$(STATICLIBEXT),$(CLEANPPUFILES))) $(addprefix $(IMPORTLIBPREFIX),$(subst $(PPUEXT),$(STATICLIBEXT),$(CLEANPPUFILES)))
1352ifdef DEBUGSYMEXT
1353override CLEANPPULINKFILES+=$(subst $(PPUEXT),$(DEBUGSYMEXT),$(CLEANPPUFILES))
1354endif
1355override CLEANPPUFILES:=$(addprefix $(UNITTARGETDIRPREFIX),$(CLEANPPUFILES))
1356override CLEANPPULINKFILES:=$(wildcard $(addprefix $(UNITTARGETDIRPREFIX),$(CLEANPPULINKFILES)))
1357endif
1358fpc_clean: $(CLEANTARGET)
1359ifdef CLEANEXEFILES
1360	-$(DEL) $(CLEANEXEFILES)
1361endif
1362ifdef CLEANPPUFILES
1363	-$(DEL) $(CLEANPPUFILES)
1364endif
1365ifneq ($(CLEANPPULINKFILES),)
1366	-$(DEL) $(CLEANPPULINKFILES)
1367endif
1368ifdef CLEANRSTFILES
1369	-$(DEL) $(addprefix $(UNITTARGETDIRPREFIX),$(CLEANRSTFILES))
1370endif
1371ifdef CLEAN_FILES
1372	-$(DEL) $(CLEAN_FILES)
1373endif
1374ifdef LIB_NAME
1375	-$(DEL) $(LIB_NAME) $(LIB_FULLNAME)
1376endif
1377	-$(DEL) $(FPCMADE) Package.fpc $(PPAS) script.res link.res $(FPCEXTFILE) $(REDIRFILE)
1378	-$(DEL) *$(ASMEXT) *_ppas$(BATCHEXT)
1379fpc_cleanall: $(CLEANTARGET)
1380ifdef CLEANEXEFILES
1381	-$(DEL) $(CLEANEXEFILES)
1382endif
1383ifdef COMPILER_UNITTARGETDIR
1384ifdef CLEANPPUFILES
1385	-$(DEL) $(CLEANPPUFILES)
1386endif
1387ifneq ($(CLEANPPULINKFILES),)
1388	-$(DEL) $(CLEANPPULINKFILES)
1389endif
1390ifdef CLEANRSTFILES
1391	-$(DEL) $(addprefix $(UNITTARGETDIRPREFIX),$(CLEANRSTFILES))
1392endif
1393endif
1394	-$(DELTREE) units
1395	-$(DEL) *$(OEXT) *$(PPUEXT) *$(RSTEXT) *$(ASMEXT) *$(STATICLIBEXT) *$(SHAREDLIBEXT) *$(PPLEXT)
1396ifneq ($(PPUEXT),.ppu)
1397	-$(DEL) *.o *.ppu *.a
1398endif
1399	-$(DELTREE) *$(SMARTEXT)
1400	-$(DEL) fpcmade.* Package.fpc $(PPAS) script.res link.res $(FPCEXTFILE) $(REDIRFILE)
1401	-$(DEL) *_ppas$(BATCHEXT)
1402ifdef AOUTEXT
1403	-$(DEL) *$(AOUTEXT)
1404endif
1405ifdef DEBUGSYMEXT
1406	-$(DEL) *$(DEBUGSYMEXT)
1407endif
1408fpc_distclean: cleanall
1409.PHONY: fpc_baseinfo
1410override INFORULES+=fpc_baseinfo
1411fpc_baseinfo:
1412	@$(ECHO)
1413	@$(ECHO)  == Package info ==
1414	@$(ECHO)  Package Name..... $(PACKAGE_NAME)
1415	@$(ECHO)  Package Version.. $(PACKAGE_VERSION)
1416	@$(ECHO)
1417	@$(ECHO)  == Configuration info ==
1418	@$(ECHO)
1419	@$(ECHO)  FPC.......... $(FPC)
1420	@$(ECHO)  FPC Version.. $(FPC_VERSION)
1421	@$(ECHO)  Source CPU... $(CPU_SOURCE)
1422	@$(ECHO)  Target CPU... $(CPU_TARGET)
1423	@$(ECHO)  Source OS.... $(OS_SOURCE)
1424	@$(ECHO)  Target OS.... $(OS_TARGET)
1425	@$(ECHO)  Full Source.. $(FULL_SOURCE)
1426	@$(ECHO)  Full Target.. $(FULL_TARGET)
1427	@$(ECHO)  SourceSuffix. $(SOURCESUFFIX)
1428	@$(ECHO)  TargetSuffix. $(TARGETSUFFIX)
1429	@$(ECHO)
1430	@$(ECHO)  == Directory info ==
1431	@$(ECHO)
1432	@$(ECHO)  Required pkgs... $(REQUIRE_PACKAGES)
1433	@$(ECHO)
1434	@$(ECHO)  Basedir......... $(BASEDIR)
1435	@$(ECHO)  FPCDir.......... $(FPCDIR)
1436	@$(ECHO)  CrossBinDir..... $(CROSSBINDIR)
1437	@$(ECHO)  UnitsDir........ $(UNITSDIR)
1438	@$(ECHO)  PackagesDir..... $(PACKAGESDIR)
1439	@$(ECHO)
1440	@$(ECHO)  GCC library..... $(GCCLIBDIR)
1441	@$(ECHO)  Other library... $(OTHERLIBDIR)
1442	@$(ECHO)
1443	@$(ECHO)  == Tools info ==
1444	@$(ECHO)
1445	@$(ECHO)  As........ $(AS)
1446	@$(ECHO)  Ld........ $(LD)
1447	@$(ECHO)  Ar........ $(AR)
1448	@$(ECHO)  Rc........ $(RC)
1449	@$(ECHO)
1450	@$(ECHO)  Mv........ $(MVPROG)
1451	@$(ECHO)  Cp........ $(CPPROG)
1452	@$(ECHO)  Rm........ $(RMPROG)
1453	@$(ECHO)  GInstall.. $(GINSTALL)
1454	@$(ECHO)  Echo...... $(ECHO)
1455	@$(ECHO)  Shell..... $(SHELL)
1456	@$(ECHO)  Date...... $(DATE)
1457	@$(ECHO)  FPCMake... $(FPCMAKE)
1458	@$(ECHO)  PPUMove... $(PPUMOVE)
1459	@$(ECHO)  Upx....... $(UPXPROG)
1460	@$(ECHO)  Zip....... $(ZIPPROG)
1461	@$(ECHO)
1462	@$(ECHO)  == Object info ==
1463	@$(ECHO)
1464	@$(ECHO)  Target Loaders........ $(TARGET_LOADERS)
1465	@$(ECHO)  Target Units.......... $(TARGET_UNITS)
1466	@$(ECHO)  Target Implicit Units. $(TARGET_IMPLICITUNITS)
1467	@$(ECHO)  Target Programs....... $(TARGET_PROGRAMS)
1468	@$(ECHO)  Target Dirs........... $(TARGET_DIRS)
1469	@$(ECHO)  Target Examples....... $(TARGET_EXAMPLES)
1470	@$(ECHO)  Target ExampleDirs.... $(TARGET_EXAMPLEDIRS)
1471	@$(ECHO)
1472	@$(ECHO)  Clean Units......... $(CLEAN_UNITS)
1473	@$(ECHO)  Clean Files......... $(CLEAN_FILES)
1474	@$(ECHO)
1475	@$(ECHO)  Install Units....... $(INSTALL_UNITS)
1476	@$(ECHO)  Install Files....... $(INSTALL_FILES)
1477	@$(ECHO)
1478	@$(ECHO)  == Install info ==
1479	@$(ECHO)
1480	@$(ECHO)  DateStr.............. $(DATESTR)
1481	@$(ECHO)  ZipName.............. $(ZIPNAME)
1482	@$(ECHO)  ZipPrefix............ $(ZIPPREFIX)
1483	@$(ECHO)  ZipCrossPrefix....... $(ZIPCROSSPREFIX)
1484	@$(ECHO)  ZipSuffix............ $(ZIPSUFFIX)
1485	@$(ECHO)  FullZipName.......... $(FULLZIPNAME)
1486	@$(ECHO)  Install FPC Package.. $(INSTALL_FPCPACKAGE)
1487	@$(ECHO)
1488	@$(ECHO)  Install base dir..... $(INSTALL_BASEDIR)
1489	@$(ECHO)  Install binary dir... $(INSTALL_BINDIR)
1490	@$(ECHO)  Install library dir.. $(INSTALL_LIBDIR)
1491	@$(ECHO)  Install units dir.... $(INSTALL_UNITDIR)
1492	@$(ECHO)  Install source dir... $(INSTALL_SOURCEDIR)
1493	@$(ECHO)  Install doc dir...... $(INSTALL_DOCDIR)
1494	@$(ECHO)  Install example dir.. $(INSTALL_EXAMPLEDIR)
1495	@$(ECHO)  Install data dir..... $(INSTALL_DATADIR)
1496	@$(ECHO)
1497	@$(ECHO)  Dist destination dir. $(DIST_DESTDIR)
1498	@$(ECHO)  Dist zip name........ $(DIST_ZIPNAME)
1499	@$(ECHO)
1500.PHONY: fpc_info
1501fpc_info: $(INFORULES)
1502.PHONY: fpc_makefile fpc_makefiles fpc_makefile_sub1 fpc_makefile_sub2 \
1503	fpc_makefile_dirs
1504fpc_makefile:
1505	$(FPCMAKE) -w -T$(OS_TARGET) Makefile.fpc
1506fpc_makefile_sub1:
1507ifdef TARGET_DIRS
1508	$(FPCMAKE) -w -T$(OS_TARGET) $(addsuffix /Makefile.fpc,$(TARGET_DIRS))
1509endif
1510ifdef TARGET_EXAMPLEDIRS
1511	$(FPCMAKE) -w -T$(OS_TARGET) $(addsuffix /Makefile.fpc,$(TARGET_EXAMPLEDIRS))
1512endif
1513fpc_makefile_sub2: $(addsuffix _makefile_dirs,$(TARGET_DIRS) $(TARGET_EXAMPLEDIRS))
1514fpc_makefile_dirs: fpc_makefile_sub1 fpc_makefile_sub2
1515fpc_makefiles: fpc_makefile fpc_makefile_dirs
1516all:
1517debug:
1518smart:
1519release:
1520units:
1521examples:
1522shared:
1523install:
1524sourceinstall:
1525exampleinstall:
1526distinstall:
1527zipinstall:
1528zipsourceinstall:
1529zipexampleinstall:
1530zipdistinstall:
1531clean: fpc_clean
1532distclean: fpc_distclean
1533cleanall: fpc_cleanall
1534info: fpc_info
1535makefiles: fpc_makefiles
1536.PHONY: all debug smart release units examples shared install sourceinstall exampleinstall distinstall zipinstall zipsourceinstall zipexampleinstall zipdistinstall clean distclean cleanall info makefiles
1537ifneq ($(wildcard fpcmake.loc),)
1538include fpcmake.loc
1539endif
1540cleanlaz: clean