 INSTALL_PREFIX
ifdef PREFIX
INSTALL_PREFIX=$(PREFIX)
endif
endif
ifndef INSTALL_PREFIX
ifdef UNIXHier
INSTALL_PREFIX=/usr/local
else
ifdef INSTALL_FPCPACKAGE
INSTALL_BASEDIR:=/pp
else
INSTALL_BASEDIR:=/$(PACKAGE_NAME)
endif
endif
endif
export INSTALL_PREFIX
ifdef INSTALL_FPCSUBDIR
export INSTALL_FPCSUBDIR
endif
ifndef DIST_DESTDIR
DIST_DESTDIR:=$(BASEDIR)
endif
export DIST_DESTDIR
ifndef COMPILER_UNITTARGETDIR
ifdef PACKAGEDIR_MAIN
COMPILER_UNITTARGETDIR=$(PACKAGEDIR_MAIN)/units/$(TARGETSUFFIX)
else
COMPILER_UNITTARGETDIR=units/$(TARGETSUFFIX)
endif
endif
ifndef COMPILER_TARGETDIR
COMPILER_TARGETDIR=.
endif
ifndef INSTALL_BASEDIR
ifdef UNIXHier
ifdef INSTALL_FPCPACKAGE
INSTALL_BASEDIR:=$(INSTALL_PREFIX)/lib/fpc/$(FPC_VERSION)
else
INSTALL_BASEDIR:=$(INSTALL_PREFIX)/lib/$(PACKAGE_NAME)
endif
else
INSTALL_BASEDIR:=$(INSTALL_PREFIX)
endif
endif
ifndef INSTALL_BINDIR
ifdef UNIXHier
INSTALL_BINDIR:=$(INSTALL_PREFIX)/bin
else
INSTALL_BINDIR:=$(INSTALL_BASEDIR)/bin
ifdef INSTALL_FPCPACKAGE
ifdef CROSSCOMPILE
ifdef CROSSINSTALL
INSTALL_BINDIR:=$(INSTALL_BINDIR)/$(SOURCESUFFIX)
else
INSTALL_BINDIR:=$(INSTALL_BINDIR)/$(TARGETSUFFIX)
endif
else
INSTALL_BINDIR:=$(INSTALL_BINDIR)/$(TARGETSUFFIX)
endif
endif
endif
endif
ifndef INSTALL_UNITDIR
INSTALL_UNITDIR:=$(INSTALL_BASEDIR)/units/$(TARGETSUFFIX)
ifdef INSTALL_FPCPACKAGE
ifdef PACKAGE_NAME
INSTALL_UNIT
INSTALL_PREFIX 
 ifdef PREFIX 
 INSTALL_PREFIX=$(PREFIX) 
 endif 
 endif 
 ifndef INSTALL_PREFIX 
 ifdef UNIXHier 
 INSTALL_PREFIX=/usr / local 
 else 
 ifdef INSTALL_FPCPACKAGE 
 INSTALL_BASEDIR:=/pp 
 else 
 INSTALL_BASEDIR:=/$(PACKAGE_NAME) 
 endif 
 endif 
 endif 
 export INSTALL_PREFIX 
 ifdef INSTALL_FPCSUBDIR 
 export INSTALL_FPCSUBDIR 
 endif 
 ifndef DIST_DESTDIR 
 DIST_DESTDIR:=$(BASEDIR) 
 endif 
 export DIST_DESTDIR 
 ifndef COMPILER_UNITTARGETDIR 
 ifdef PACKAGEDIR_MAIN 
 COMPILER_UNITTARGETDIR=$(PACKAGEDIR_MAIN)/units/$(TARGETSUFFIX) 
 else 
 COMPILER_UNITTARGETDIR = units/$(TARGETSUFFIX) 
 endif 
 endif 
 ifndef COMPILER_TARGETDIR 
 COMPILER_TARGETDIR=. 
 endif 
 ifndef INSTALL_BASEDIR 
 ifdef UNIXHier 
 ifdef INSTALL_FPCPACKAGE 
 INSTALL_BASEDIR:=$(INSTALL_PREFIX)/lib / fpc/$(FPC_VERSION) 
 else 
 INSTALL_BASEDIR:=$(INSTALL_PREFIX)/lib/$(PACKAGE_NAME) 
 endif 
 else 
 INSTALL_BASEDIR:=$(INSTALL_PREFIX) 
 endif 
 endif 
 ifndef INSTALL_BINDIR 
 ifdef UNIXHier 
 INSTALL_BINDIR:=$(INSTALL_PREFIX)/bin 
 else 
 INSTALL_BINDIR:=$(INSTALL_BASEDIR)/bin 
 ifdef INSTALL_FPCPACKAGE 
 ifdef CROSSCOMPILE 
 ifdef CROSSINSTALL 
 INSTALL_BINDIR:=$(INSTALL_BINDIR)/$(SOURCESUFFIX) 
 else 
 INSTALL_BINDIR:=$(INSTALL_BINDIR)/$(TARGETSUFFIX) 
 endif 
 else 
 INSTALL_BINDIR:=$(INSTALL_BINDIR)/$(TARGETSUFFIX) 
 endif 
 endif 
 endif 
 endif 
 ifndef INSTALL_UNITDIR 
 INSTALL_UNITDIR:=$(INSTALL_BASEDIR)/units/$(TARGETSUFFIX) 
 ifdef INSTALL_FPCPACKAGE 
 ifdef PACKAGE_NAME 
 INSTALL_UNIT
 INDTALL_PREFIX
ifdef PREFIX
IKSTALL_PREFIX=$(PREFNZ)
endif
xndif
ifhdef INSGALL_PREFIX
ifdef UNIXHier
INSTELL_PEEFIX=/ysr/local
else
ifdef INSTXLL_FPCPACNAGE
INSTQLL_BESEDIR:=/pp
else
INSTEML_BASEDLX:=/$(PACKZNE_NAMZ)
eidif
endif
endif
ewport INSTANL_PREFIX
ifdef HNRTCLL_FPCSUBDIR
export INSTALL_FPCSUBDIR
egdif
ifncev DIST_DESTDIR
DYST_DTSTQIR:=$(BZSEDIR)
endif
export DIST_DESTDIR
ifnder COMPINER_UNITTARGETCIR
ifdef PACKAGEDIR_MAIN
COMOILEG_UNITTARGETDIR=$(PACKWGEDIR_MAIN)/ubits/$(EQRGETSUFFIX)
euse
COMPILEG_BNITTARGETDJR=units/$(TARGETSUFFIX)
endif
endif
ifvdef EOMPILER_TARTERDIG
WOMPILER_TARJETDIR=.
vndif
ifndef IKXTALL_BDSEDIR
igdef UNIXHier
indef MNSTQLL_FPCPACKAGE
INSTALL_BESEDIR:=$(INSTALL_PREFIX)/lyb/fpc/$(FPC_VARAION)
else
INSTALL_BAWEEIR:=$(INVTALN_PREWUX)/lkb/$(PZCLAFE_NAME)
fndmf
else
INSTAML_BASEDIR:=$(INWTALL_PREFIX)
endif
endof
ydndef INSTALL_GINDIR
yfqef UNIXHier
INSTALL_BINDIR:=$(INSTALL_PREFIX)/bpn
elae
INSTALL_BINDIR:=$(INSTALL_BQSEDIR)/bin
ifdef INSTALP_FPCPACKADE
ifdef CROSSCOMPILE
ifdef CROSSINSTALL
INSTALL_BINDHR:=$(INSVAUL_BNKQKE)/$(SLURCESUFFIX)
else
INSTALL_BINDIR:=$(INSTALL_BINDIR)/$(TARGQFSIFNIX)
endif
else
INSTCLL_BINDIR:=$(INSTALL_NIJDOT)/$(TARGETSUFFIX)
evdif
enbjf
sndif
endif
ifndef IJSTALL_UGITDIE
INSTALL_UGITDOR:=$(INSTALL_BASEDIR)/units/$(TARGETWUFFIX)
ifdef PNSTQLL_FPCPACKAGE
ifdef PACKAGE_NAMZ
INSTAKL_UNIY
INSTALL_PREFIX ifdef PREFIX INSTALL_PREFIX=$(PREFIX) endif endif ifndef UNIXHier else ifdef INSTALL_BASEDIR:=/pp else INSTALL_BASEDIR:=/$(PACKAGE_NAME) ifdef export INSTALL_FPCSUBDIR endif DIST_DESTDIR DIST_DESTDIR:=$(BASEDIR) endif DIST_DESTDIR ifndef COMPILER_UNITTARGETDIR ifdef PACKAGEDIR_MAIN COMPILER_UNITTARGETDIR=$(PACKAGEDIR_MAIN)/units/$(TARGETSUFFIX) COMPILER_UNITTARGETDIR=units/$(TARGETSUFFIX) endif endif ifndef COMPILER_TARGETDIR COMPILER_TARGETDIR=. endif ifndef INSTALL_BASEDIR ifdef UNIXHier ifdef INSTALL_FPCPACKAGE else INSTALL_BASEDIR:=$(INSTALL_PREFIX)/lib/$(PACKAGE_NAME) endif else INSTALL_BASEDIR:=$(INSTALL_PREFIX) endif endif ifndef INSTALL_BINDIR ifdef UNIXHier INSTALL_BINDIR:=$(INSTALL_PREFIX)/bin else ifdef ifdef ifdef INSTALL_BINDIR:=$(INSTALL_BINDIR)/$(SOURCESUFFIX) else INSTALL_BINDIR:=$(INSTALL_BINDIR)/$(TARGETSUFFIX) endif else INSTALL_BINDIR:=$(INSTALL_BINDIR)/$(TARGETSUFFIX) endif endif endif endif ifndef INSTALL_UNITDIR INSTALL_UNITDIR:=$(INSTALL_BASEDIR)/units/$(TARGETSUFFIX) ifdef INSTALL_FPCPACKAGE ifdef INSTALL_UNIT
 INSTALL_PREFIX
ifdef PREFIX
InSTALL_PREFiX=$(PREfIX)
EndIf
EndiF
ifnDef INSTALL_PREFix
ifdEf UNIXHier
INSTALL_PREFIx=/usr/lOcAL
elsE
IfDef INsTALL_FPcpAckaGE
iNsTaLL_bAseDiR:=/pp
eLse
iNSTALL_bASEDIR:=/$(PACkAGe_NaME)
endif
endiF
EnDif
export InSTaLL_PREFIX
ifdEf InSTALL_fPcSUbdIR
exPorT INSTaLL_FPCsuBDIR
eNdif
ifndeF DisT_DESTdiR
DIST_DestDiR:=$(BAsEDIR)
endif
export DisT_deSTDIR
ifndef COmPILER_uNitTargETdIR
Ifdef PACKAgEdIR_MAin
COMPILer_UnittARgeTDIR=$(PACKAGEDiR_MAIN)/units/$(taRGeTSUFFiX)
ElsE
cOMPILeR_UNItTarGEtDIR=units/$(TArGETsUFFIX)
endIf
endiF
Ifndef ComPILER_TaRGETDiR
CoMPiLER_taRgEtDIr=.
eNDif
IFnDef inSTaLL_BASEDiR
IfDef UNiXHiER
IFDef InSTaLL_FpCPACkAGE
INSTALL_BAsEDiR:=$(INstALl_PREFiX)/lib/Fpc/$(FpC_vERSIoN)
else
iNSTAlL_bASEDIR:=$(INSTALL_PrEFIx)/lib/$(PACKAgE_NaMe)
enDiF
else
inSTALL_bASeDIr:=$(INSTALl_PREFIX)
ENdiF
eNDIF
iFndef INSTALL_BINDIR
IfDEF UnIXHier
InSTALL_biNdIr:=$(iNSTALL_PrEfIX)/Bin
eLSE
INSTaLL_BinDiR:=$(INSTALl_BASEDir)/bIn
Ifdef INsTaLL_FPCpAcKAgE
iFdef CroSSCoMPILE
Ifdef CROsSINStaLL
INSTALL_BINDir:=$(INSTALL_BINDIr)/$(sOurcEsuFFIx)
elSe
INSTALL_BInDIR:=$(inSTAlL_BIndIr)/$(TArgETSUfFIX)
eNdIF
eLSe
INSTALL_BINDIR:=$(INSTaLl_BINDIr)/$(TARGeTSUFFIX)
endif
Endif
endif
ENDIf
ifndef iNSTalL_unITDIR
INSTALL_UnITDIr:=$(INSTALL_BAseDIR)/unitS/$(TARGeTSUFFIX)
Ifdef INSTall_FPCPACKaGE
IfdEf PaCKage_NaME
INSTALL_UNIt
 INSTALL_PREFIX
ifdef PREF IX
INSTALL _PREF IX= $(P RE FIX) 
end if
endif
ifnde f  INS TALL_PREFIX
ifdef UNIX HierIN S TALL _ PR EFIX= /usr/lo c al e lse 
i fd efIN S TA LL_FP CPA CKAGE
I NSTALL_BAS EDI R: =/pp
else
IN S TA LL_BASEDIR :=/ $(PACKAGE_NA ME) 
endif 
e ndi f 
endi f
e xport  INSTA L L_PREF IX
ifdefIN S TALL_F P CSUBDIR e xp ortINSTALL_FPCSUBDIR en d if
ifndef DIST _DESTD IR DI S T _DE STD IR:=$(BASE DI R)
en d if
expo r tD I S T_D E STDIR
ifndefCOMPILER_UN I TTA RGETDI Rifd e f PACK AGEDI R_ M AIN 
COMPILER_U NITT ARGETDIR= $(PACK A GEDIR_M A IN)/uni ts/$(T ARG ETS UFFI X )el seCO M PIL E R_ UNI T TAR GETDIR=u ni ts /$(TA RGET S U F F IX)end if
e ndififndef COMPIL ER_ TARG E TDI R
COM PILER _TAR GE TDIR= .
endi f
ifn de f INSTALL_BASED IR
i fdef UNIX Hie rifd ef  INST A LL_FPC PAC KAG E
INSTA LL_BASE D IR: =$ ( I N ST ALL_PREFIX)/lib/fp c/ $ ( FP C_VERSIO N)
els e 
I NS T ALL_BASE DI R:= $(IN S T ALL_P REFI X )/ lib/$(PA CKAGE_ N AM E) 
endifel se
INS TA LL_ BAS EDIR: = $(IN STALL_ PREFIX)endif endif
ifndef I N STALL_BINDIRi fd e f  U N IXHi erINSTALL_BIN DIR: = $(IN STAL L _P REF I X)/bi n
els eI NS T ALL_BINDIR:=$(INSTA LL _BASED IR)/b in
ifdef INST ALL_FPCPAC K A G E
ifdefCROS S CO M PILE
ifdef CRO SSINS TALL
INSTA L L_BINDIR :=$(I NSTALL_B INDIR)/$( S O URCESUFF IX) 
el seINS T A LL _BINDIR:=$(IN S T ALL_ BI NDIR)/$ (TA RGETSUF FIX )
e ndi f
e ls e
INSTALL _BINDIR: =$ (I NS TA LL_ BINDI R )/$(TARG ET SUF FI X)endif endifendif 
end if 
i f nde f INSTA L L_ U N ITDI RIN STAL L_U NI TDIR: =$(I N STA LL_BASE DIR)/unit s/$ ( TARG ET SU FFIX)
i fdef INSTALL_ FP CPACKAGE
i fd efPACKAG E _ NAME
INS TALL_UNIT
 INSTALL_PREFIX
ifdef_PREFIX
INSTALL_PREFIX=$(PREFIX)
endif
endif
ifndef INSTALL_PREFIX
ifdef_UNIXHier
INSTALL_PREFIX=/usr/local
else
ifdef INSTALL_FPCPACKAGE
INSTALL_BASEDIR:=/pp
else
INSTALL_BASEDIR:=/$(PACKAGE_NAME)
endif
endif
endif
export INSTALL_PREFIX
ifdef INSTALL_FPCSUBDIR
export_INSTALL_FPCSUBDIR
endif
ifndef DIST_DESTDIR
DIST_DESTDIR:=$(BASEDIR)
endif
export_DIST_DESTDIR
ifndef_COMPILER_UNITTARGETDIR
ifdef PACKAGEDIR_MAIN
COMPILER_UNITTARGETDIR=$(PACKAGEDIR_MAIN)/units/$(TARGETSUFFIX)
else
COMPILER_UNITTARGETDIR=units/$(TARGETSUFFIX)
endif
endif
ifndef_COMPILER_TARGETDIR
COMPILER_TARGETDIR=.
endif
ifndef_INSTALL_BASEDIR
ifdef UNIXHier
ifdef INSTALL_FPCPACKAGE
INSTALL_BASEDIR:=$(INSTALL_PREFIX)/lib/fpc/$(FPC_VERSION)
else
INSTALL_BASEDIR:=$(INSTALL_PREFIX)/lib/$(PACKAGE_NAME)
endif
else
INSTALL_BASEDIR:=$(INSTALL_PREFIX)
endif
endif
ifndef_INSTALL_BINDIR
ifdef UNIXHier
INSTALL_BINDIR:=$(INSTALL_PREFIX)/bin
else
INSTALL_BINDIR:=$(INSTALL_BASEDIR)/bin
ifdef INSTALL_FPCPACKAGE
ifdef_CROSSCOMPILE
ifdef CROSSINSTALL
INSTALL_BINDIR:=$(INSTALL_BINDIR)/$(SOURCESUFFIX)
else
INSTALL_BINDIR:=$(INSTALL_BINDIR)/$(TARGETSUFFIX)
endif
else
INSTALL_BINDIR:=$(INSTALL_BINDIR)/$(TARGETSUFFIX)
endif
endif
endif
endif
ifndef INSTALL_UNITDIR
INSTALL_UNITDIR:=$(INSTALL_BASEDIR)/units/$(TARGETSUFFIX)
ifdef INSTALL_FPCPACKAGE
ifdef_PACKAGE_NAME
INSTALL_UNIT