|
@@ -2,7 +2,7 @@
|
|
|
# Don't edit, this file is generated by FPCMake Version 2.0.0
|
|
|
#
|
|
|
default: all
|
|
|
-MAKEFILETARGETS=i386-linux i386-go32v2 i386-win32 i386-os2 i386-freebsd i386-beos i386-haiku i386-netbsd i386-solaris 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-netbsd m68k-amiga m68k-atari m68k-palmos m68k-macosclassic m68k-embedded m68k-sinclairql powerpc-linux powerpc-netbsd powerpc-amiga powerpc-macosclassic 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-haiku x86_64-netbsd x86_64-solaris x86_64-openbsd x86_64-darwin x86_64-win64 x86_64-embedded x86_64-iphonesim x86_64-android x86_64-aros x86_64-dragonfly arm-linux arm-netbsd arm-palmos arm-wince arm-gba arm-nds arm-embedded arm-symbian arm-android arm-aros arm-freertos arm-ios powerpc64-linux powerpc64-darwin powerpc64-embedded powerpc64-aix avr-embedded armeb-linux armeb-embedded mips-linux mipsel-linux mipsel-embedded mipsel-android mips64el-linux jvm-java jvm-android i8086-embedded i8086-msdos i8086-win16 aarch64-linux aarch64-freebsd aarch64-darwin aarch64-win64 aarch64-android aarch64-ios wasm32-embedded wasm32-wasi sparc64-linux riscv32-linux riscv32-embedded riscv64-linux riscv64-embedded xtensa-linux xtensa-embedded xtensa-freertos z80-embedded z80-zxspectrum z80-msxdos z80-amstradcpc
|
|
|
+MAKEFILETARGETS=i386-linux i386-go32v2 i386-win32 i386-os2 i386-freebsd i386-beos i386-haiku i386-netbsd i386-solaris 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-netbsd m68k-amiga m68k-atari m68k-palmos m68k-macosclassic m68k-embedded m68k-sinclairql powerpc-linux powerpc-netbsd powerpc-amiga powerpc-macosclassic 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-haiku x86_64-netbsd x86_64-solaris x86_64-openbsd x86_64-darwin x86_64-win64 x86_64-embedded x86_64-iphonesim x86_64-android x86_64-aros x86_64-dragonfly arm-linux arm-netbsd arm-palmos arm-wince arm-gba arm-nds arm-embedded arm-symbian arm-android arm-aros arm-freertos arm-ios powerpc64-linux powerpc64-darwin powerpc64-embedded powerpc64-aix avr-embedded armeb-linux armeb-embedded mips-linux mipsel-linux mipsel-embedded mipsel-android mips64el-linux jvm-java jvm-android i8086-embedded i8086-msdos i8086-win16 aarch64-linux aarch64-freebsd aarch64-darwin aarch64-win64 aarch64-embedded aarch64-android aarch64-ios wasm32-embedded wasm32-wasi sparc64-linux riscv32-linux riscv32-embedded riscv64-linux riscv64-embedded xtensa-linux xtensa-embedded xtensa-freertos z80-embedded z80-zxspectrum z80-msxdos z80-amstradcpc
|
|
|
BSDs = freebsd netbsd openbsd darwin dragonfly
|
|
|
UNIXs = linux $(BSDs) solaris qnx haiku aix
|
|
|
LIMIT83fs = go32v2 os2 emx watcom msdos win16 atari
|
|
@@ -167,6 +167,12 @@ OS_TARGET:=$(word 5,$(FPC_COMPILERINFO))
|
|
|
endif
|
|
|
FULL_TARGET=$(CPU_TARGET)-$(OS_TARGET)
|
|
|
FULL_SOURCE=$(CPU_SOURCE)-$(OS_SOURCE)
|
|
|
+ifeq ($(ABI),)
|
|
|
+ABI:=default
|
|
|
+else
|
|
|
+override FPCOPT+=-Ca$(ABI)
|
|
|
+endif
|
|
|
+SUBARCH_ABI_SUFFIX=
|
|
|
ifeq ($(CPU_TARGET),armeb)
|
|
|
ARCH=arm
|
|
|
override FPCOPT+=-Cb
|
|
@@ -174,27 +180,37 @@ else
|
|
|
ifeq ($(CPU_TARGET),armel)
|
|
|
ARCH=arm
|
|
|
override FPCOPT+=-CaEABI
|
|
|
+override ABI:=eabi
|
|
|
else
|
|
|
ARCH=$(CPU_TARGET)
|
|
|
endif
|
|
|
endif
|
|
|
+ifeq ($(FULL_TARGET),aarch64-embedded)
|
|
|
+endif
|
|
|
ifeq ($(FULL_TARGET),arm-embedded)
|
|
|
ifeq ($(SUBARCH),)
|
|
|
$(error When compiling for arm-embedded, a sub-architecture (e.g. SUBARCH=armv4t or SUBARCH=armv7m) must be defined)
|
|
|
endif
|
|
|
override FPCOPT+=-Cp$(SUBARCH)
|
|
|
+ifeq ($(ABI),)
|
|
|
+SUBARCH_ABI_SUFFIX=-$(SUBARCH)
|
|
|
+else
|
|
|
+SUBARCH_ABI_SUFFIX=-$(SUBARCH)-$(ABI)
|
|
|
+endif
|
|
|
endif
|
|
|
ifeq ($(FULL_TARGET),avr-embedded)
|
|
|
ifeq ($(SUBARCH),)
|
|
|
$(error When compiling for avr-embedded, a sub-architecture (e.g. SUBARCH=avr25 or SUBARCH=avr35) must be defined)
|
|
|
endif
|
|
|
override FPCOPT+=-Cp$(SUBARCH)
|
|
|
+SUBARCH_ABI_SUFFIX=-$(SUBARCH)
|
|
|
endif
|
|
|
ifeq ($(FULL_TARGET),mipsel-embedded)
|
|
|
ifeq ($(SUBARCH),)
|
|
|
$(error When compiling for mipsel-embedded, a sub-architecture (e.g. SUBARCH=pic32mx) must be defined)
|
|
|
endif
|
|
|
override FPCOPT+=-Cp$(SUBARCH)
|
|
|
+SUBARCH_ABI_SUFFIX=-$(SUBARCH)
|
|
|
endif
|
|
|
ifeq ($(FULL_TARGET),xtensa-embedded)
|
|
|
ifeq ($(SUBARCH),)
|
|
@@ -221,7 +237,7 @@ else
|
|
|
ifneq ($(filter $(OS_TARGET),$(LIMIT83fs)),)
|
|
|
TARGETSUFFIX=$(OS_TARGET)
|
|
|
else
|
|
|
-TARGETSUFFIX=$(FULL_TARGET)
|
|
|
+TARGETSUFFIX=$(FULL_TARGET)$(SUBARCH_ABI_SUFFIX)
|
|
|
endif
|
|
|
SOURCESUFFIX=$(FULL_SOURCE)
|
|
|
endif
|
|
@@ -627,6 +643,9 @@ endif
|
|
|
ifeq ($(FULL_TARGET),aarch64-win64)
|
|
|
override TARGET_UNITS+=dbf
|
|
|
endif
|
|
|
+ifeq ($(FULL_TARGET),aarch64-embedded)
|
|
|
+override TARGET_UNITS+=dbf
|
|
|
+endif
|
|
|
ifeq ($(FULL_TARGET),aarch64-android)
|
|
|
override TARGET_UNITS+=dbf
|
|
|
endif
|
|
@@ -945,6 +964,9 @@ endif
|
|
|
ifeq ($(FULL_TARGET),aarch64-win64)
|
|
|
override TARGET_EXAMPLES+=testdbf
|
|
|
endif
|
|
|
+ifeq ($(FULL_TARGET),aarch64-embedded)
|
|
|
+override TARGET_EXAMPLES+=testdbf
|
|
|
+endif
|
|
|
ifeq ($(FULL_TARGET),aarch64-android)
|
|
|
override TARGET_EXAMPLES+=testdbf
|
|
|
endif
|
|
@@ -1263,6 +1285,9 @@ endif
|
|
|
ifeq ($(FULL_TARGET),aarch64-win64)
|
|
|
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),aarch64-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),aarch64-android)
|
|
|
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
|
|
@@ -1581,6 +1606,9 @@ endif
|
|
|
ifeq ($(FULL_TARGET),aarch64-win64)
|
|
|
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),aarch64-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),aarch64-android)
|
|
|
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
|
|
@@ -1900,6 +1928,9 @@ endif
|
|
|
ifeq ($(FULL_TARGET),aarch64-win64)
|
|
|
override COMPILER_OPTIONS+=-S2 -Sh
|
|
|
endif
|
|
|
+ifeq ($(FULL_TARGET),aarch64-embedded)
|
|
|
+override COMPILER_OPTIONS+=-S2 -Sh
|
|
|
+endif
|
|
|
ifeq ($(FULL_TARGET),aarch64-android)
|
|
|
override COMPILER_OPTIONS+=-S2 -Sh
|
|
|
endif
|
|
@@ -2470,9 +2501,9 @@ ZIPSOURCESUFFIX=.source
|
|
|
ZIPEXAMPLESUFFIX=.examples
|
|
|
ifdef CROSSCOMPILE
|
|
|
ZIPSUFFIX=.$(SOURCESUFFIX)
|
|
|
-ZIPCROSSPREFIX=$(TARGETSUFFIX)-
|
|
|
+ZIPCROSSPREFIX=$(TARGETSUFFIX)
|
|
|
else
|
|
|
-ZIPSUFFIX=.$(TARGETSUFFIX)
|
|
|
+ZIPSUFFIX=.$(TARGETSUFFIX)$(FILESUFFIX)
|
|
|
ZIPCROSSPREFIX=
|
|
|
endif
|
|
|
endif
|
|
@@ -3523,6 +3554,15 @@ REQUIRE_PACKAGES_LIBTAR=1
|
|
|
REQUIRE_PACKAGES_FPMKUNIT=1
|
|
|
REQUIRE_PACKAGES_FCL-BASE=1
|
|
|
endif
|
|
|
+ifeq ($(FULL_TARGET),aarch64-embedded)
|
|
|
+REQUIRE_PACKAGES_RTL=1
|
|
|
+REQUIRE_PACKAGES_PASZLIB=1
|
|
|
+REQUIRE_PACKAGES_FCL-PROCESS=1
|
|
|
+REQUIRE_PACKAGES_HASH=1
|
|
|
+REQUIRE_PACKAGES_LIBTAR=1
|
|
|
+REQUIRE_PACKAGES_FPMKUNIT=1
|
|
|
+REQUIRE_PACKAGES_FCL-BASE=1
|
|
|
+endif
|
|
|
ifeq ($(FULL_TARGET),aarch64-android)
|
|
|
REQUIRE_PACKAGES_RTL=1
|
|
|
REQUIRE_PACKAGES_PASZLIB=1
|