|
|
|
@ -1,8 +1,8 @@
|
|
|
|
|
#
|
|
|
|
|
# Don't edit, this file is generated by FPCMake Version 2.0.0 [2011/09/02]
|
|
|
|
|
# Don't edit, this file is generated by FPCMake Version 2.0.0 [2012/04/09]
|
|
|
|
|
#
|
|
|
|
|
default: all
|
|
|
|
|
MAKEFILETARGETS=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 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 sparc-linux sparc-netbsd sparc-solaris sparc-embedded x86_64-linux x86_64-freebsd x86_64-solaris 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 mipsel-linux
|
|
|
|
|
MAKEFILETARGETS=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 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 sparc-linux sparc-netbsd sparc-solaris sparc-embedded x86_64-linux x86_64-freebsd x86_64-solaris x86_64-openbsd 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 mips-linux mipsel-linux
|
|
|
|
|
BSDs = freebsd netbsd openbsd darwin
|
|
|
|
|
UNIXs = linux $(BSDs) solaris qnx haiku
|
|
|
|
|
LIMIT83fs = go32v2 os2 emx watcom
|
|
|
|
@ -152,12 +152,6 @@ ifdef OS_TARGET_DEFAULT
|
|
|
|
|
OS_TARGET=$(OS_TARGET_DEFAULT)
|
|
|
|
|
endif
|
|
|
|
|
endif
|
|
|
|
|
ifneq ($(words $(FPC_COMPILERINFO)),5)
|
|
|
|
|
FPC_COMPILERINFO+=$(shell $(FPC) -iSP)
|
|
|
|
|
FPC_COMPILERINFO+=$(shell $(FPC) -iTP)
|
|
|
|
|
FPC_COMPILERINFO+=$(shell $(FPC) -iSO)
|
|
|
|
|
FPC_COMPILERINFO+=$(shell $(FPC) -iTO)
|
|
|
|
|
endif
|
|
|
|
|
ifndef CPU_SOURCE
|
|
|
|
|
CPU_SOURCE:=$(word 2,$(FPC_COMPILERINFO))
|
|
|
|
|
endif
|
|
|
|
@ -451,6 +445,9 @@ endif
|
|
|
|
|
ifeq ($(FULL_TARGET),x86_64-solaris)
|
|
|
|
|
override TARGET_DIRS+=gtk gtk2 win32 wince qt carbon fpgui nogui cocoa customdrawn
|
|
|
|
|
endif
|
|
|
|
|
ifeq ($(FULL_TARGET),x86_64-openbsd)
|
|
|
|
|
override TARGET_DIRS+=gtk gtk2 win32 wince qt carbon fpgui nogui cocoa customdrawn
|
|
|
|
|
endif
|
|
|
|
|
ifeq ($(FULL_TARGET),x86_64-darwin)
|
|
|
|
|
override TARGET_DIRS+=gtk gtk2 win32 wince qt carbon fpgui nogui cocoa customdrawn
|
|
|
|
|
endif
|
|
|
|
@ -502,6 +499,9 @@ endif
|
|
|
|
|
ifeq ($(FULL_TARGET),armeb-embedded)
|
|
|
|
|
override TARGET_DIRS+=gtk gtk2 win32 wince qt carbon fpgui nogui cocoa customdrawn
|
|
|
|
|
endif
|
|
|
|
|
ifeq ($(FULL_TARGET),mips-linux)
|
|
|
|
|
override TARGET_DIRS+=gtk gtk2 win32 wince qt carbon fpgui nogui cocoa customdrawn
|
|
|
|
|
endif
|
|
|
|
|
ifeq ($(FULL_TARGET),mipsel-linux)
|
|
|
|
|
override TARGET_DIRS+=gtk gtk2 win32 wince qt carbon fpgui nogui cocoa customdrawn
|
|
|
|
|
endif
|
|
|
|
@ -715,6 +715,7 @@ SHAREDLIBPREFIX=libfp
|
|
|
|
|
STATICLIBPREFIX=libp
|
|
|
|
|
IMPORTLIBPREFIX=libimp
|
|
|
|
|
RSTEXT=.rst
|
|
|
|
|
EXEDBGEXT=.dbg
|
|
|
|
|
ifeq ($(OS_TARGET),go32v1)
|
|
|
|
|
STATICLIBPREFIX=
|
|
|
|
|
SHORTSUFFIX=v1
|
|
|
|
@ -836,6 +837,7 @@ BATCHEXT=.sh
|
|
|
|
|
EXEEXT=
|
|
|
|
|
HASSHAREDLIB=1
|
|
|
|
|
SHORTSUFFIX=dwn
|
|
|
|
|
EXEDBGEXT=.dSYM
|
|
|
|
|
endif
|
|
|
|
|
ifeq ($(OS_TARGET),gba)
|
|
|
|
|
EXEEXT=.gba
|
|
|
|
@ -1087,25 +1089,6 @@ DATESTR:=$(shell $(DATE) +%Y%m%d)
|
|
|
|
|
else
|
|
|
|
|
DATESTR=
|
|
|
|
|
endif
|
|
|
|
|
ifndef UPXPROG
|
|
|
|
|
ifeq ($(OS_TARGET),go32v2)
|
|
|
|
|
UPXPROG:=1
|
|
|
|
|
endif
|
|
|
|
|
ifeq ($(OS_TARGET),win32)
|
|
|
|
|
UPXPROG:=1
|
|
|
|
|
endif
|
|
|
|
|
ifdef UPXPROG
|
|
|
|
|
UPXPROG:=$(strip $(wildcard $(addsuffix /upx$(SRCEXEEXT),$(SEARCHPATH))))
|
|
|
|
|
ifeq ($(UPXPROG),)
|
|
|
|
|
UPXPROG=
|
|
|
|
|
else
|
|
|
|
|
UPXPROG:=$(firstword $(UPXPROG))
|
|
|
|
|
endif
|
|
|
|
|
else
|
|
|
|
|
UPXPROG=
|
|
|
|
|
endif
|
|
|
|
|
endif
|
|
|
|
|
export UPXPROG
|
|
|
|
|
ZIPOPT=-9
|
|
|
|
|
ZIPEXT=.zip
|
|
|
|
|
ifeq ($(USETAR),bz2)
|
|
|
|
@ -1250,6 +1233,9 @@ endif
|
|
|
|
|
ifeq ($(FULL_TARGET),x86_64-solaris)
|
|
|
|
|
REQUIRE_PACKAGES_RTL=1
|
|
|
|
|
endif
|
|
|
|
|
ifeq ($(FULL_TARGET),x86_64-openbsd)
|
|
|
|
|
REQUIRE_PACKAGES_RTL=1
|
|
|
|
|
endif
|
|
|
|
|
ifeq ($(FULL_TARGET),x86_64-darwin)
|
|
|
|
|
REQUIRE_PACKAGES_RTL=1
|
|
|
|
|
endif
|
|
|
|
@ -1301,6 +1287,9 @@ endif
|
|
|
|
|
ifeq ($(FULL_TARGET),armeb-embedded)
|
|
|
|
|
REQUIRE_PACKAGES_RTL=1
|
|
|
|
|
endif
|
|
|
|
|
ifeq ($(FULL_TARGET),mips-linux)
|
|
|
|
|
REQUIRE_PACKAGES_RTL=1
|
|
|
|
|
endif
|
|
|
|
|
ifeq ($(FULL_TARGET),mipsel-linux)
|
|
|
|
|
REQUIRE_PACKAGES_RTL=1
|
|
|
|
|
endif
|
|
|
|
@ -1353,6 +1342,7 @@ override FPCOPT+=-P$(ARCH)
|
|
|
|
|
endif
|
|
|
|
|
ifeq ($(OS_SOURCE),openbsd)
|
|
|
|
|
override FPCOPT+=-FD$(NEW_BINUTILS_PATH)
|
|
|
|
|
override FPCMAKEOPT+=-FD$(NEW_BINUTILS_PATH)
|
|
|
|
|
endif
|
|
|
|
|
ifndef CROSSBOOTSTRAP
|
|
|
|
|
ifneq ($(BINUTILSPREFIX),)
|
|
|
|
@ -1362,6 +1352,11 @@ ifneq ($(BINUTILSPREFIX),)
|
|
|
|
|
override FPCOPT+=-Xr$(RLINKPATH)
|
|
|
|
|
endif
|
|
|
|
|
endif
|
|
|
|
|
ifndef CROSSCOMPILE
|
|
|
|
|
ifneq ($(BINUTILSPREFIX),)
|
|
|
|
|
override FPCMAKEOPT+=-XP$(BINUTILSPREFIX)
|
|
|
|
|
endif
|
|
|
|
|
endif
|
|
|
|
|
ifdef UNITDIR
|
|
|
|
|
override FPCOPT+=$(addprefix -Fu,$(UNITDIR))
|
|
|
|
|
endif
|
|
|
|
@ -1453,7 +1448,7 @@ override FPCOPT+=-Aas
|
|
|
|
|
endif
|
|
|
|
|
endif
|
|
|
|
|
ifeq ($(findstring 2.0.,$(FPC_VERSION)),)
|
|
|
|
|
ifneq ($(findstring $(OS_TARGET),linux solaris),)
|
|
|
|
|
ifneq ($(findstring $(OS_TARGET),freebsd openbsd netbsd linux solaris),)
|
|
|
|
|
ifeq ($(CPU_TARGET),x86_64)
|
|
|
|
|
override FPCOPT+=-Cg
|
|
|
|
|
endif
|
|
|
|
@ -1522,9 +1517,6 @@ endif
|
|
|
|
|
fpc_install: all $(INSTALLTARGET)
|
|
|
|
|
ifdef INSTALLEXEFILES
|
|
|
|
|
$(MKDIR) $(INSTALL_BINDIR)
|
|
|
|
|
ifdef UPXPROG
|
|
|
|
|
-$(UPXPROG) $(INSTALLEXEFILES)
|
|
|
|
|
endif
|
|
|
|
|
$(INSTALLEXE) $(INSTALLEXEFILES) $(INSTALL_BINDIR)
|
|
|
|
|
endif
|
|
|
|
|
ifdef INSTALL_CREATEPACKAGEFPC
|
|
|
|
@ -1572,9 +1564,11 @@ endif
|
|
|
|
|
.PHONY: fpc_clean fpc_cleanall fpc_distclean
|
|
|
|
|
ifdef EXEFILES
|
|
|
|
|
override CLEANEXEFILES:=$(addprefix $(TARGETDIRPREFIX),$(CLEANEXEFILES))
|
|
|
|
|
override CLEANEXEDBGFILES:=$(addprefix $(TARGETDIRPREFIX),$(CLEANEXEDBGFILES))
|
|
|
|
|
endif
|
|
|
|
|
ifdef CLEAN_PROGRAMS
|
|
|
|
|
override CLEANEXEFILES+=$(addprefix $(TARGETDIRPREFIX),$(addsuffix $(EXEEXT), $(CLEAN_PROGRAMS)))
|
|
|
|
|
override CLEANEXEDBGFILES+=$(addprefix $(TARGETDIRPREFIX),$(addsuffix $(EXEDBGEXT), $(CLEAN_PROGRAMS)))
|
|
|
|
|
endif
|
|
|
|
|
ifdef CLEAN_UNITS
|
|
|
|
|
override CLEANPPUFILES+=$(addsuffix $(PPUEXT),$(CLEAN_UNITS))
|
|
|
|
@ -1591,6 +1585,9 @@ fpc_clean: $(CLEANTARGET)
|
|
|
|
|
ifdef CLEANEXEFILES
|
|
|
|
|
-$(DEL) $(CLEANEXEFILES)
|
|
|
|
|
endif
|
|
|
|
|
ifdef CLEANEXEDBGFILES
|
|
|
|
|
-$(DELTREE) $(CLEANEXEDBGFILES)
|
|
|
|
|
endif
|
|
|
|
|
ifdef CLEANPPUFILES
|
|
|
|
|
-$(DEL) $(CLEANPPUFILES)
|
|
|
|
|
endif
|
|
|
|
@ -1692,7 +1689,6 @@ fpc_baseinfo:
|
|
|
|
|
@$(ECHO) Date...... $(DATE)
|
|
|
|
|
@$(ECHO) FPCMake... $(FPCMAKE)
|
|
|
|
|
@$(ECHO) PPUMove... $(PPUMOVE)
|
|
|
|
|
@$(ECHO) Upx....... $(UPXPROG)
|
|
|
|
|
@$(ECHO) Zip....... $(ZIPPROG)
|
|
|
|
|
@$(ECHO)
|
|
|
|
|
@$(ECHO) == Object info ==
|
|
|
|
@ -2289,6 +2285,18 @@ TARGET_DIRS_NOGUI=1
|
|
|
|
|
TARGET_DIRS_COCOA=1
|
|
|
|
|
TARGET_DIRS_CUSTOMDRAWN=1
|
|
|
|
|
endif
|
|
|
|
|
ifeq ($(FULL_TARGET),x86_64-openbsd)
|
|
|
|
|
TARGET_DIRS_GTK=1
|
|
|
|
|
TARGET_DIRS_GTK2=1
|
|
|
|
|
TARGET_DIRS_WIN32=1
|
|
|
|
|
TARGET_DIRS_WINCE=1
|
|
|
|
|
TARGET_DIRS_QT=1
|
|
|
|
|
TARGET_DIRS_CARBON=1
|
|
|
|
|
TARGET_DIRS_FPGUI=1
|
|
|
|
|
TARGET_DIRS_NOGUI=1
|
|
|
|
|
TARGET_DIRS_COCOA=1
|
|
|
|
|
TARGET_DIRS_CUSTOMDRAWN=1
|
|
|
|
|
endif
|
|
|
|
|
ifeq ($(FULL_TARGET),x86_64-darwin)
|
|
|
|
|
TARGET_DIRS_GTK=1
|
|
|
|
|
TARGET_DIRS_GTK2=1
|
|
|
|
@ -2493,6 +2501,18 @@ TARGET_DIRS_NOGUI=1
|
|
|
|
|
TARGET_DIRS_COCOA=1
|
|
|
|
|
TARGET_DIRS_CUSTOMDRAWN=1
|
|
|
|
|
endif
|
|
|
|
|
ifeq ($(FULL_TARGET),mips-linux)
|
|
|
|
|
TARGET_DIRS_GTK=1
|
|
|
|
|
TARGET_DIRS_GTK2=1
|
|
|
|
|
TARGET_DIRS_WIN32=1
|
|
|
|
|
TARGET_DIRS_WINCE=1
|
|
|
|
|
TARGET_DIRS_QT=1
|
|
|
|
|
TARGET_DIRS_CARBON=1
|
|
|
|
|
TARGET_DIRS_FPGUI=1
|
|
|
|
|
TARGET_DIRS_NOGUI=1
|
|
|
|
|
TARGET_DIRS_COCOA=1
|
|
|
|
|
TARGET_DIRS_CUSTOMDRAWN=1
|
|
|
|
|
endif
|
|
|
|
|
ifeq ($(FULL_TARGET),mipsel-linux)
|
|
|
|
|
TARGET_DIRS_GTK=1
|
|
|
|
|
TARGET_DIRS_GTK2=1
|
|
|
|
|