|
@@ -1,8 +1,8 @@
|
|
|
#
|
|
|
-# Don't edit, this file is generated by FPCMake Version 2.0.0 [2008/11/27]
|
|
|
+# Don't edit, this file is generated by FPCMake Version 2.0.0 [2009/02/26]
|
|
|
#
|
|
|
default: all
|
|
|
-MAKEFILETARGETS=i386-linux i386-go32v2 i386-win32 i386-os2 i386-freebsd i386-beos 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-wince arm-gba arm-nds arm-embedded arm-symbian powerpc64-linux powerpc64-darwin powerpc64-embedded
|
|
|
+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 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
|
|
|
BSDs = freebsd netbsd openbsd darwin
|
|
|
UNIXs = linux $(BSDs) solaris qnx
|
|
|
LIMIT83fs = go32v2 os2 emx watcom
|
|
@@ -171,6 +171,17 @@ OS_TARGET:=$(word 5,$(FPC_COMPILERINFO))
|
|
|
endif
|
|
|
FULL_TARGET=$(CPU_TARGET)-$(OS_TARGET)
|
|
|
FULL_SOURCE=$(CPU_SOURCE)-$(OS_SOURCE)
|
|
|
+ifeq ($(CPU_TARGET),armeb)
|
|
|
+ARCH=arm
|
|
|
+override FPCOPT+=-Cb
|
|
|
+else
|
|
|
+ifeq ($(CPU_TARGET),armel)
|
|
|
+ARCH=arm
|
|
|
+override FPCOPT+=-CaEABI
|
|
|
+else
|
|
|
+ARCH=$(CPU_TARGET)
|
|
|
+endif
|
|
|
+endif
|
|
|
ifneq ($(findstring $(OS_SOURCE),$(LIMIT83fs)),)
|
|
|
TARGETSUFFIX=$(OS_TARGET)
|
|
|
SOURCESUFFIX=$(OS_SOURCE)
|
|
@@ -192,7 +203,7 @@ endif
|
|
|
ifeq ($(OS_TARGET),linux)
|
|
|
linuxHier=1
|
|
|
endif
|
|
|
-export OS_TARGET OS_SOURCE CPU_TARGET CPU_SOURCE FULL_TARGET FULL_SOURCE TARGETSUFFIX SOURCESUFFIX CROSSCOMPILE
|
|
|
+export OS_TARGET OS_SOURCE ARCH CPU_TARGET CPU_SOURCE FULL_TARGET FULL_SOURCE TARGETSUFFIX SOURCESUFFIX CROSSCOMPILE
|
|
|
ifdef FPCDIR
|
|
|
override FPCDIR:=$(subst \,/,$(FPCDIR))
|
|
|
ifeq ($(wildcard $(addprefix $(FPCDIR)/,rtl units)),)
|
|
@@ -279,6 +290,9 @@ endif
|
|
|
ifeq ($(FULL_TARGET),i386-beos)
|
|
|
override TARGET_UNITS+=dbf
|
|
|
endif
|
|
|
+ifeq ($(FULL_TARGET),i386-haiku)
|
|
|
+override TARGET_UNITS+=dbf
|
|
|
+endif
|
|
|
ifeq ($(FULL_TARGET),i386-netbsd)
|
|
|
override TARGET_UNITS+=dbf
|
|
|
endif
|
|
@@ -396,6 +410,9 @@ endif
|
|
|
ifeq ($(FULL_TARGET),arm-palmos)
|
|
|
override TARGET_UNITS+=dbf
|
|
|
endif
|
|
|
+ifeq ($(FULL_TARGET),arm-darwin)
|
|
|
+override TARGET_UNITS+=dbf
|
|
|
+endif
|
|
|
ifeq ($(FULL_TARGET),arm-wince)
|
|
|
override TARGET_UNITS+=dbf
|
|
|
endif
|
|
@@ -420,6 +437,15 @@ endif
|
|
|
ifeq ($(FULL_TARGET),powerpc64-embedded)
|
|
|
override TARGET_UNITS+=dbf
|
|
|
endif
|
|
|
+ifeq ($(FULL_TARGET),avr-embedded)
|
|
|
+override TARGET_UNITS+=dbf
|
|
|
+endif
|
|
|
+ifeq ($(FULL_TARGET),armeb-linux)
|
|
|
+override TARGET_UNITS+=dbf
|
|
|
+endif
|
|
|
+ifeq ($(FULL_TARGET),armeb-embedded)
|
|
|
+override TARGET_UNITS+=dbf
|
|
|
+endif
|
|
|
ifeq ($(FULL_TARGET),i386-linux)
|
|
|
override TARGET_EXAMPLES+=testdbf
|
|
|
endif
|
|
@@ -438,6 +464,9 @@ endif
|
|
|
ifeq ($(FULL_TARGET),i386-beos)
|
|
|
override TARGET_EXAMPLES+=testdbf
|
|
|
endif
|
|
|
+ifeq ($(FULL_TARGET),i386-haiku)
|
|
|
+override TARGET_EXAMPLES+=testdbf
|
|
|
+endif
|
|
|
ifeq ($(FULL_TARGET),i386-netbsd)
|
|
|
override TARGET_EXAMPLES+=testdbf
|
|
|
endif
|
|
@@ -555,6 +584,9 @@ endif
|
|
|
ifeq ($(FULL_TARGET),arm-palmos)
|
|
|
override TARGET_EXAMPLES+=testdbf
|
|
|
endif
|
|
|
+ifeq ($(FULL_TARGET),arm-darwin)
|
|
|
+override TARGET_EXAMPLES+=testdbf
|
|
|
+endif
|
|
|
ifeq ($(FULL_TARGET),arm-wince)
|
|
|
override TARGET_EXAMPLES+=testdbf
|
|
|
endif
|
|
@@ -579,6 +611,15 @@ endif
|
|
|
ifeq ($(FULL_TARGET),powerpc64-embedded)
|
|
|
override TARGET_EXAMPLES+=testdbf
|
|
|
endif
|
|
|
+ifeq ($(FULL_TARGET),avr-embedded)
|
|
|
+override TARGET_EXAMPLES+=testdbf
|
|
|
+endif
|
|
|
+ifeq ($(FULL_TARGET),armeb-linux)
|
|
|
+override TARGET_EXAMPLES+=testdbf
|
|
|
+endif
|
|
|
+ifeq ($(FULL_TARGET),armeb-embedded)
|
|
|
+override TARGET_EXAMPLES+=testdbf
|
|
|
+endif
|
|
|
ifeq ($(FULL_TARGET),i386-linux)
|
|
|
override CLEAN_UNITS+=dbf_collate dbf_common dbf_cursor dbf_dbffile dbf_fields dbf_idxcur dbf_idxfile dbf_lang dbf_memo dbf_parser dbf_pgfile dbf_prscore dbf_prsdef dbf_prssupp dbf_str
|
|
|
endif
|
|
@@ -597,6 +638,9 @@ endif
|
|
|
ifeq ($(FULL_TARGET),i386-beos)
|
|
|
override CLEAN_UNITS+=dbf_collate dbf_common dbf_cursor dbf_dbffile dbf_fields dbf_idxcur dbf_idxfile dbf_lang dbf_memo dbf_parser dbf_pgfile dbf_prscore dbf_prsdef dbf_prssupp dbf_str
|
|
|
endif
|
|
|
+ifeq ($(FULL_TARGET),i386-haiku)
|
|
|
+override CLEAN_UNITS+=dbf_collate dbf_common dbf_cursor dbf_dbffile dbf_fields dbf_idxcur dbf_idxfile dbf_lang dbf_memo dbf_parser dbf_pgfile dbf_prscore dbf_prsdef dbf_prssupp dbf_str
|
|
|
+endif
|
|
|
ifeq ($(FULL_TARGET),i386-netbsd)
|
|
|
override CLEAN_UNITS+=dbf_collate dbf_common dbf_cursor dbf_dbffile dbf_fields dbf_idxcur dbf_idxfile dbf_lang dbf_memo dbf_parser dbf_pgfile dbf_prscore dbf_prsdef dbf_prssupp dbf_str
|
|
|
endif
|
|
@@ -714,6 +758,9 @@ endif
|
|
|
ifeq ($(FULL_TARGET),arm-palmos)
|
|
|
override CLEAN_UNITS+=dbf_collate dbf_common dbf_cursor dbf_dbffile dbf_fields dbf_idxcur dbf_idxfile dbf_lang dbf_memo dbf_parser dbf_pgfile dbf_prscore dbf_prsdef dbf_prssupp dbf_str
|
|
|
endif
|
|
|
+ifeq ($(FULL_TARGET),arm-darwin)
|
|
|
+override CLEAN_UNITS+=dbf_collate dbf_common dbf_cursor dbf_dbffile dbf_fields dbf_idxcur dbf_idxfile dbf_lang dbf_memo dbf_parser dbf_pgfile dbf_prscore dbf_prsdef dbf_prssupp dbf_str
|
|
|
+endif
|
|
|
ifeq ($(FULL_TARGET),arm-wince)
|
|
|
override CLEAN_UNITS+=dbf_collate dbf_common dbf_cursor dbf_dbffile dbf_fields dbf_idxcur dbf_idxfile dbf_lang dbf_memo dbf_parser dbf_pgfile dbf_prscore dbf_prsdef dbf_prssupp dbf_str
|
|
|
endif
|
|
@@ -738,6 +785,15 @@ endif
|
|
|
ifeq ($(FULL_TARGET),powerpc64-embedded)
|
|
|
override CLEAN_UNITS+=dbf_collate dbf_common dbf_cursor dbf_dbffile dbf_fields dbf_idxcur dbf_idxfile dbf_lang dbf_memo dbf_parser dbf_pgfile dbf_prscore dbf_prsdef dbf_prssupp dbf_str
|
|
|
endif
|
|
|
+ifeq ($(FULL_TARGET),avr-embedded)
|
|
|
+override CLEAN_UNITS+=dbf_collate dbf_common dbf_cursor dbf_dbffile dbf_fields dbf_idxcur dbf_idxfile dbf_lang dbf_memo dbf_parser dbf_pgfile dbf_prscore dbf_prsdef dbf_prssupp dbf_str
|
|
|
+endif
|
|
|
+ifeq ($(FULL_TARGET),armeb-linux)
|
|
|
+override CLEAN_UNITS+=dbf_collate dbf_common dbf_cursor dbf_dbffile dbf_fields dbf_idxcur dbf_idxfile dbf_lang dbf_memo dbf_parser dbf_pgfile dbf_prscore dbf_prsdef dbf_prssupp dbf_str
|
|
|
+endif
|
|
|
+ifeq ($(FULL_TARGET),armeb-embedded)
|
|
|
+override CLEAN_UNITS+=dbf_collate dbf_common dbf_cursor dbf_dbffile dbf_fields dbf_idxcur dbf_idxfile dbf_lang dbf_memo dbf_parser dbf_pgfile dbf_prscore dbf_prsdef dbf_prssupp dbf_str
|
|
|
+endif
|
|
|
ifeq ($(FULL_TARGET),i386-linux)
|
|
|
override INSTALL_UNITS+=dbf_collate dbf_common dbf_cursor dbf_dbffile dbf_fields dbf_idxcur dbf_idxfile dbf_lang dbf_memo dbf_parser dbf_pgfile dbf_prscore dbf_prsdef dbf_prssupp dbf_str
|
|
|
endif
|
|
@@ -756,6 +812,9 @@ endif
|
|
|
ifeq ($(FULL_TARGET),i386-beos)
|
|
|
override INSTALL_UNITS+=dbf_collate dbf_common dbf_cursor dbf_dbffile dbf_fields dbf_idxcur dbf_idxfile dbf_lang dbf_memo dbf_parser dbf_pgfile dbf_prscore dbf_prsdef dbf_prssupp dbf_str
|
|
|
endif
|
|
|
+ifeq ($(FULL_TARGET),i386-haiku)
|
|
|
+override INSTALL_UNITS+=dbf_collate dbf_common dbf_cursor dbf_dbffile dbf_fields dbf_idxcur dbf_idxfile dbf_lang dbf_memo dbf_parser dbf_pgfile dbf_prscore dbf_prsdef dbf_prssupp dbf_str
|
|
|
+endif
|
|
|
ifeq ($(FULL_TARGET),i386-netbsd)
|
|
|
override INSTALL_UNITS+=dbf_collate dbf_common dbf_cursor dbf_dbffile dbf_fields dbf_idxcur dbf_idxfile dbf_lang dbf_memo dbf_parser dbf_pgfile dbf_prscore dbf_prsdef dbf_prssupp dbf_str
|
|
|
endif
|
|
@@ -873,6 +932,9 @@ endif
|
|
|
ifeq ($(FULL_TARGET),arm-palmos)
|
|
|
override INSTALL_UNITS+=dbf_collate dbf_common dbf_cursor dbf_dbffile dbf_fields dbf_idxcur dbf_idxfile dbf_lang dbf_memo dbf_parser dbf_pgfile dbf_prscore dbf_prsdef dbf_prssupp dbf_str
|
|
|
endif
|
|
|
+ifeq ($(FULL_TARGET),arm-darwin)
|
|
|
+override INSTALL_UNITS+=dbf_collate dbf_common dbf_cursor dbf_dbffile dbf_fields dbf_idxcur dbf_idxfile dbf_lang dbf_memo dbf_parser dbf_pgfile dbf_prscore dbf_prsdef dbf_prssupp dbf_str
|
|
|
+endif
|
|
|
ifeq ($(FULL_TARGET),arm-wince)
|
|
|
override INSTALL_UNITS+=dbf_collate dbf_common dbf_cursor dbf_dbffile dbf_fields dbf_idxcur dbf_idxfile dbf_lang dbf_memo dbf_parser dbf_pgfile dbf_prscore dbf_prsdef dbf_prssupp dbf_str
|
|
|
endif
|
|
@@ -897,6 +959,15 @@ endif
|
|
|
ifeq ($(FULL_TARGET),powerpc64-embedded)
|
|
|
override INSTALL_UNITS+=dbf_collate dbf_common dbf_cursor dbf_dbffile dbf_fields dbf_idxcur dbf_idxfile dbf_lang dbf_memo dbf_parser dbf_pgfile dbf_prscore dbf_prsdef dbf_prssupp dbf_str
|
|
|
endif
|
|
|
+ifeq ($(FULL_TARGET),avr-embedded)
|
|
|
+override INSTALL_UNITS+=dbf_collate dbf_common dbf_cursor dbf_dbffile dbf_fields dbf_idxcur dbf_idxfile dbf_lang dbf_memo dbf_parser dbf_pgfile dbf_prscore dbf_prsdef dbf_prssupp dbf_str
|
|
|
+endif
|
|
|
+ifeq ($(FULL_TARGET),armeb-linux)
|
|
|
+override INSTALL_UNITS+=dbf_collate dbf_common dbf_cursor dbf_dbffile dbf_fields dbf_idxcur dbf_idxfile dbf_lang dbf_memo dbf_parser dbf_pgfile dbf_prscore dbf_prsdef dbf_prssupp dbf_str
|
|
|
+endif
|
|
|
+ifeq ($(FULL_TARGET),armeb-embedded)
|
|
|
+override INSTALL_UNITS+=dbf_collate dbf_common dbf_cursor dbf_dbffile dbf_fields dbf_idxcur dbf_idxfile dbf_lang dbf_memo dbf_parser dbf_pgfile dbf_prscore dbf_prsdef dbf_prssupp dbf_str
|
|
|
+endif
|
|
|
override INSTALL_FPCPACKAGE=y
|
|
|
ifeq ($(FULL_TARGET),i386-linux)
|
|
|
override COMPILER_OPTIONS+=-S2 -Sh
|
|
@@ -916,6 +987,9 @@ endif
|
|
|
ifeq ($(FULL_TARGET),i386-beos)
|
|
|
override COMPILER_OPTIONS+=-S2 -Sh
|
|
|
endif
|
|
|
+ifeq ($(FULL_TARGET),i386-haiku)
|
|
|
+override COMPILER_OPTIONS+=-S2 -Sh
|
|
|
+endif
|
|
|
ifeq ($(FULL_TARGET),i386-netbsd)
|
|
|
override COMPILER_OPTIONS+=-S2 -Sh
|
|
|
endif
|
|
@@ -1033,6 +1107,9 @@ endif
|
|
|
ifeq ($(FULL_TARGET),arm-palmos)
|
|
|
override COMPILER_OPTIONS+=-S2 -Sh
|
|
|
endif
|
|
|
+ifeq ($(FULL_TARGET),arm-darwin)
|
|
|
+override COMPILER_OPTIONS+=-S2 -Sh
|
|
|
+endif
|
|
|
ifeq ($(FULL_TARGET),arm-wince)
|
|
|
override COMPILER_OPTIONS+=-S2 -Sh
|
|
|
endif
|
|
@@ -1057,6 +1134,15 @@ endif
|
|
|
ifeq ($(FULL_TARGET),powerpc64-embedded)
|
|
|
override COMPILER_OPTIONS+=-S2 -Sh
|
|
|
endif
|
|
|
+ifeq ($(FULL_TARGET),avr-embedded)
|
|
|
+override COMPILER_OPTIONS+=-S2 -Sh
|
|
|
+endif
|
|
|
+ifeq ($(FULL_TARGET),armeb-linux)
|
|
|
+override COMPILER_OPTIONS+=-S2 -Sh
|
|
|
+endif
|
|
|
+ifeq ($(FULL_TARGET),armeb-embedded)
|
|
|
+override COMPILER_OPTIONS+=-S2 -Sh
|
|
|
+endif
|
|
|
ifdef REQUIRE_UNITSDIR
|
|
|
override UNITSDIR+=$(REQUIRE_UNITSDIR)
|
|
|
endif
|
|
@@ -1346,6 +1432,11 @@ BATCHEXT=.sh
|
|
|
EXEEXT=
|
|
|
SHORTSUFFIX=be
|
|
|
endif
|
|
|
+ifeq ($(OS_TARGET),haiku)
|
|
|
+BATCHEXT=.sh
|
|
|
+EXEEXT=
|
|
|
+SHORTSUFFIX=hai
|
|
|
+endif
|
|
|
ifeq ($(OS_TARGET),solaris)
|
|
|
BATCHEXT=.sh
|
|
|
EXEEXT=
|
|
@@ -1823,6 +1914,9 @@ endif
|
|
|
ifeq ($(FULL_TARGET),i386-beos)
|
|
|
REQUIRE_PACKAGES_RTL=1
|
|
|
endif
|
|
|
+ifeq ($(FULL_TARGET),i386-haiku)
|
|
|
+REQUIRE_PACKAGES_RTL=1
|
|
|
+endif
|
|
|
ifeq ($(FULL_TARGET),i386-netbsd)
|
|
|
REQUIRE_PACKAGES_RTL=1
|
|
|
endif
|
|
@@ -1940,6 +2034,9 @@ endif
|
|
|
ifeq ($(FULL_TARGET),arm-palmos)
|
|
|
REQUIRE_PACKAGES_RTL=1
|
|
|
endif
|
|
|
+ifeq ($(FULL_TARGET),arm-darwin)
|
|
|
+REQUIRE_PACKAGES_RTL=1
|
|
|
+endif
|
|
|
ifeq ($(FULL_TARGET),arm-wince)
|
|
|
REQUIRE_PACKAGES_RTL=1
|
|
|
endif
|
|
@@ -1964,6 +2061,15 @@ endif
|
|
|
ifeq ($(FULL_TARGET),powerpc64-embedded)
|
|
|
REQUIRE_PACKAGES_RTL=1
|
|
|
endif
|
|
|
+ifeq ($(FULL_TARGET),avr-embedded)
|
|
|
+REQUIRE_PACKAGES_RTL=1
|
|
|
+endif
|
|
|
+ifeq ($(FULL_TARGET),armeb-linux)
|
|
|
+REQUIRE_PACKAGES_RTL=1
|
|
|
+endif
|
|
|
+ifeq ($(FULL_TARGET),armeb-embedded)
|
|
|
+REQUIRE_PACKAGES_RTL=1
|
|
|
+endif
|
|
|
ifdef REQUIRE_PACKAGES_RTL
|
|
|
PACKAGEDIR_RTL:=$(firstword $(subst /Makefile.fpc,,$(strip $(wildcard $(addsuffix /rtl/Makefile.fpc,$(PACKAGESDIR))))))
|
|
|
ifneq ($(PACKAGEDIR_RTL),)
|
|
@@ -1991,13 +2097,13 @@ override COMPILER_UNITDIR+=$(UNITDIR_RTL)
|
|
|
endif
|
|
|
endif
|
|
|
ifndef NOCPUDEF
|
|
|
-override FPCOPTDEF=$(CPU_TARGET)
|
|
|
+override FPCOPTDEF=$(ARCH)
|
|
|
endif
|
|
|
ifneq ($(OS_TARGET),$(OS_SOURCE))
|
|
|
override FPCOPT+=-T$(OS_TARGET)
|
|
|
endif
|
|
|
ifneq ($(CPU_TARGET),$(CPU_SOURCE))
|
|
|
-override FPCOPT+=-P$(CPU_TARGET)
|
|
|
+override FPCOPT+=-P$(ARCH)
|
|
|
endif
|
|
|
ifeq ($(OS_SOURCE),openbsd)
|
|
|
override FPCOPT+=-FD$(NEW_BINUTILS_PATH)
|