|
@@ -1,10 +1,10 @@
|
|
|
#
|
|
|
-# Don't edit, this file is generated by FPCMake Version 2.0.0 [2011/12/30]
|
|
|
+# Don't edit, this file is generated by FPCMake Version 2.0.0 [2012/10/14]
|
|
|
#
|
|
|
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 powerpc-aix sparc-linux sparc-netbsd sparc-solaris sparc-embedded x86_64-linux x86_64-freebsd x86_64-netbsd 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 powerpc64-aix avr-embedded armeb-linux armeb-embedded mips-linux mipsel-linux jvm-java jvm-android
|
|
|
BSDs = freebsd netbsd openbsd darwin
|
|
|
-UNIXs = linux $(BSDs) solaris qnx haiku
|
|
|
+UNIXs = linux $(BSDs) solaris qnx haiku aix
|
|
|
LIMIT83fs = go32v2 os2 emx watcom
|
|
|
OSNeedsComspecToRunBatch = go32v2 watcom
|
|
|
FORCE:
|
|
@@ -178,6 +178,12 @@ else
|
|
|
ARCH=$(CPU_TARGET)
|
|
|
endif
|
|
|
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)
|
|
|
+endif
|
|
|
ifneq ($(findstring $(OS_SOURCE),$(LIMIT83fs)),)
|
|
|
TARGETSUFFIX=$(OS_TARGET)
|
|
|
SOURCESUFFIX=$(OS_SOURCE)
|
|
@@ -203,6 +209,14 @@ endif
|
|
|
ifeq ($(OS_TARGET),linux)
|
|
|
linuxHier=1
|
|
|
endif
|
|
|
+ifndef CROSSCOMPILE
|
|
|
+BUILDFULLNATIVE=1
|
|
|
+export BUILDFULLNATIVE
|
|
|
+endif
|
|
|
+ifdef BUILDFULLNATIVE
|
|
|
+BUILDNATIVE=1
|
|
|
+export BUILDNATIVE
|
|
|
+endif
|
|
|
export OS_TARGET OS_SOURCE ARCH CPU_TARGET CPU_SOURCE FULL_TARGET FULL_SOURCE TARGETSUFFIX SOURCESUFFIX CROSSCOMPILE
|
|
|
ifdef FPCDIR
|
|
|
override FPCDIR:=$(subst \,/,$(FPCDIR))
|
|
@@ -252,11 +266,13 @@ ifndef BINUTILSPREFIX
|
|
|
ifndef CROSSBINDIR
|
|
|
ifdef CROSSCOMPILE
|
|
|
ifndef DARWIN2DARWIN
|
|
|
+ifneq ($(CPU_TARGET),jvm)
|
|
|
BINUTILSPREFIX=$(CPU_TARGET)-$(OS_TARGET)-
|
|
|
endif
|
|
|
endif
|
|
|
endif
|
|
|
endif
|
|
|
+endif
|
|
|
UNITSDIR:=$(wildcard $(FPCDIR)/units/$(TARGETSUFFIX))
|
|
|
ifeq ($(UNITSDIR),)
|
|
|
UNITSDIR:=$(wildcard $(FPCDIR)/units/$(OS_TARGET))
|
|
@@ -289,193 +305,214 @@ endif
|
|
|
override PACKAGE_NAME=fcl-db
|
|
|
PACKAGEDIR_MAIN:=$(firstword $(subst /Makefile.fpc,,$(strip $(wildcard $(addsuffix /fcl-db/Makefile.fpc,$(PACKAGESDIR))))))
|
|
|
ifeq ($(FULL_TARGET),i386-linux)
|
|
|
-override TARGET_UNITS+=sqlite3conn
|
|
|
+override TARGET_UNITS+=sqlite3conn sqlite3backup
|
|
|
endif
|
|
|
ifeq ($(FULL_TARGET),i386-go32v2)
|
|
|
-override TARGET_UNITS+=sqlite3conn
|
|
|
+override TARGET_UNITS+=sqlite3conn sqlite3backup
|
|
|
endif
|
|
|
ifeq ($(FULL_TARGET),i386-win32)
|
|
|
-override TARGET_UNITS+=sqlite3conn
|
|
|
+override TARGET_UNITS+=sqlite3conn sqlite3backup
|
|
|
endif
|
|
|
ifeq ($(FULL_TARGET),i386-os2)
|
|
|
-override TARGET_UNITS+=sqlite3conn
|
|
|
+override TARGET_UNITS+=sqlite3conn sqlite3backup
|
|
|
endif
|
|
|
ifeq ($(FULL_TARGET),i386-freebsd)
|
|
|
-override TARGET_UNITS+=sqlite3conn
|
|
|
+override TARGET_UNITS+=sqlite3conn sqlite3backup
|
|
|
endif
|
|
|
ifeq ($(FULL_TARGET),i386-beos)
|
|
|
-override TARGET_UNITS+=sqlite3conn
|
|
|
+override TARGET_UNITS+=sqlite3conn sqlite3backup
|
|
|
endif
|
|
|
ifeq ($(FULL_TARGET),i386-haiku)
|
|
|
-override TARGET_UNITS+=sqlite3conn
|
|
|
+override TARGET_UNITS+=sqlite3conn sqlite3backup
|
|
|
endif
|
|
|
ifeq ($(FULL_TARGET),i386-netbsd)
|
|
|
-override TARGET_UNITS+=sqlite3conn
|
|
|
+override TARGET_UNITS+=sqlite3conn sqlite3backup
|
|
|
endif
|
|
|
ifeq ($(FULL_TARGET),i386-solaris)
|
|
|
-override TARGET_UNITS+=sqlite3conn
|
|
|
+override TARGET_UNITS+=sqlite3conn sqlite3backup
|
|
|
endif
|
|
|
ifeq ($(FULL_TARGET),i386-qnx)
|
|
|
-override TARGET_UNITS+=sqlite3conn
|
|
|
+override TARGET_UNITS+=sqlite3conn sqlite3backup
|
|
|
endif
|
|
|
ifeq ($(FULL_TARGET),i386-netware)
|
|
|
-override TARGET_UNITS+=sqlite3conn
|
|
|
+override TARGET_UNITS+=sqlite3conn sqlite3backup
|
|
|
endif
|
|
|
ifeq ($(FULL_TARGET),i386-openbsd)
|
|
|
-override TARGET_UNITS+=sqlite3conn
|
|
|
+override TARGET_UNITS+=sqlite3conn sqlite3backup
|
|
|
endif
|
|
|
ifeq ($(FULL_TARGET),i386-wdosx)
|
|
|
-override TARGET_UNITS+=sqlite3conn
|
|
|
+override TARGET_UNITS+=sqlite3conn sqlite3backup
|
|
|
endif
|
|
|
ifeq ($(FULL_TARGET),i386-darwin)
|
|
|
-override TARGET_UNITS+=sqlite3conn
|
|
|
+override TARGET_UNITS+=sqlite3conn sqlite3backup
|
|
|
endif
|
|
|
ifeq ($(FULL_TARGET),i386-emx)
|
|
|
-override TARGET_UNITS+=sqlite3conn
|
|
|
+override TARGET_UNITS+=sqlite3conn sqlite3backup
|
|
|
endif
|
|
|
ifeq ($(FULL_TARGET),i386-watcom)
|
|
|
-override TARGET_UNITS+=sqlite3conn
|
|
|
+override TARGET_UNITS+=sqlite3conn sqlite3backup
|
|
|
endif
|
|
|
ifeq ($(FULL_TARGET),i386-netwlibc)
|
|
|
-override TARGET_UNITS+=sqlite3conn
|
|
|
+override TARGET_UNITS+=sqlite3conn sqlite3backup
|
|
|
endif
|
|
|
ifeq ($(FULL_TARGET),i386-wince)
|
|
|
-override TARGET_UNITS+=sqlite3conn
|
|
|
+override TARGET_UNITS+=sqlite3conn sqlite3backup
|
|
|
endif
|
|
|
ifeq ($(FULL_TARGET),i386-embedded)
|
|
|
-override TARGET_UNITS+=sqlite3conn
|
|
|
+override TARGET_UNITS+=sqlite3conn sqlite3backup
|
|
|
endif
|
|
|
ifeq ($(FULL_TARGET),i386-symbian)
|
|
|
-override TARGET_UNITS+=sqlite3conn
|
|
|
+override TARGET_UNITS+=sqlite3conn sqlite3backup
|
|
|
endif
|
|
|
ifeq ($(FULL_TARGET),i386-nativent)
|
|
|
-override TARGET_UNITS+=sqlite3conn
|
|
|
+override TARGET_UNITS+=sqlite3conn sqlite3backup
|
|
|
endif
|
|
|
ifeq ($(FULL_TARGET),i386-iphonesim)
|
|
|
-override TARGET_UNITS+=sqlite3conn
|
|
|
+override TARGET_UNITS+=sqlite3conn sqlite3backup
|
|
|
endif
|
|
|
ifeq ($(FULL_TARGET),m68k-linux)
|
|
|
-override TARGET_UNITS+=sqlite3conn
|
|
|
+override TARGET_UNITS+=sqlite3conn sqlite3backup
|
|
|
endif
|
|
|
ifeq ($(FULL_TARGET),m68k-freebsd)
|
|
|
-override TARGET_UNITS+=sqlite3conn
|
|
|
+override TARGET_UNITS+=sqlite3conn sqlite3backup
|
|
|
endif
|
|
|
ifeq ($(FULL_TARGET),m68k-netbsd)
|
|
|
-override TARGET_UNITS+=sqlite3conn
|
|
|
+override TARGET_UNITS+=sqlite3conn sqlite3backup
|
|
|
endif
|
|
|
ifeq ($(FULL_TARGET),m68k-amiga)
|
|
|
-override TARGET_UNITS+=sqlite3conn
|
|
|
+override TARGET_UNITS+=sqlite3conn sqlite3backup
|
|
|
endif
|
|
|
ifeq ($(FULL_TARGET),m68k-atari)
|
|
|
-override TARGET_UNITS+=sqlite3conn
|
|
|
+override TARGET_UNITS+=sqlite3conn sqlite3backup
|
|
|
endif
|
|
|
ifeq ($(FULL_TARGET),m68k-openbsd)
|
|
|
-override TARGET_UNITS+=sqlite3conn
|
|
|
+override TARGET_UNITS+=sqlite3conn sqlite3backup
|
|
|
endif
|
|
|
ifeq ($(FULL_TARGET),m68k-palmos)
|
|
|
-override TARGET_UNITS+=sqlite3conn
|
|
|
+override TARGET_UNITS+=sqlite3conn sqlite3backup
|
|
|
endif
|
|
|
ifeq ($(FULL_TARGET),m68k-embedded)
|
|
|
-override TARGET_UNITS+=sqlite3conn
|
|
|
+override TARGET_UNITS+=sqlite3conn sqlite3backup
|
|
|
endif
|
|
|
ifeq ($(FULL_TARGET),powerpc-linux)
|
|
|
-override TARGET_UNITS+=sqlite3conn
|
|
|
+override TARGET_UNITS+=sqlite3conn sqlite3backup
|
|
|
endif
|
|
|
ifeq ($(FULL_TARGET),powerpc-netbsd)
|
|
|
-override TARGET_UNITS+=sqlite3conn
|
|
|
+override TARGET_UNITS+=sqlite3conn sqlite3backup
|
|
|
endif
|
|
|
ifeq ($(FULL_TARGET),powerpc-amiga)
|
|
|
-override TARGET_UNITS+=sqlite3conn
|
|
|
+override TARGET_UNITS+=sqlite3conn sqlite3backup
|
|
|
endif
|
|
|
ifeq ($(FULL_TARGET),powerpc-macos)
|
|
|
-override TARGET_UNITS+=sqlite3conn
|
|
|
+override TARGET_UNITS+=sqlite3conn sqlite3backup
|
|
|
endif
|
|
|
ifeq ($(FULL_TARGET),powerpc-darwin)
|
|
|
-override TARGET_UNITS+=sqlite3conn
|
|
|
+override TARGET_UNITS+=sqlite3conn sqlite3backup
|
|
|
endif
|
|
|
ifeq ($(FULL_TARGET),powerpc-morphos)
|
|
|
-override TARGET_UNITS+=sqlite3conn
|
|
|
+override TARGET_UNITS+=sqlite3conn sqlite3backup
|
|
|
endif
|
|
|
ifeq ($(FULL_TARGET),powerpc-embedded)
|
|
|
-override TARGET_UNITS+=sqlite3conn
|
|
|
+override TARGET_UNITS+=sqlite3conn sqlite3backup
|
|
|
endif
|
|
|
ifeq ($(FULL_TARGET),powerpc-wii)
|
|
|
-override TARGET_UNITS+=sqlite3conn
|
|
|
+override TARGET_UNITS+=sqlite3conn sqlite3backup
|
|
|
+endif
|
|
|
+ifeq ($(FULL_TARGET),powerpc-aix)
|
|
|
+override TARGET_UNITS+=sqlite3conn sqlite3backup
|
|
|
endif
|
|
|
ifeq ($(FULL_TARGET),sparc-linux)
|
|
|
-override TARGET_UNITS+=sqlite3conn
|
|
|
+override TARGET_UNITS+=sqlite3conn sqlite3backup
|
|
|
endif
|
|
|
ifeq ($(FULL_TARGET),sparc-netbsd)
|
|
|
-override TARGET_UNITS+=sqlite3conn
|
|
|
+override TARGET_UNITS+=sqlite3conn sqlite3backup
|
|
|
endif
|
|
|
ifeq ($(FULL_TARGET),sparc-solaris)
|
|
|
-override TARGET_UNITS+=sqlite3conn
|
|
|
+override TARGET_UNITS+=sqlite3conn sqlite3backup
|
|
|
endif
|
|
|
ifeq ($(FULL_TARGET),sparc-embedded)
|
|
|
-override TARGET_UNITS+=sqlite3conn
|
|
|
+override TARGET_UNITS+=sqlite3conn sqlite3backup
|
|
|
endif
|
|
|
ifeq ($(FULL_TARGET),x86_64-linux)
|
|
|
-override TARGET_UNITS+=sqlite3conn
|
|
|
+override TARGET_UNITS+=sqlite3conn sqlite3backup
|
|
|
endif
|
|
|
ifeq ($(FULL_TARGET),x86_64-freebsd)
|
|
|
-override TARGET_UNITS+=sqlite3conn
|
|
|
+override TARGET_UNITS+=sqlite3conn sqlite3backup
|
|
|
+endif
|
|
|
+ifeq ($(FULL_TARGET),x86_64-netbsd)
|
|
|
+override TARGET_UNITS+=sqlite3conn sqlite3backup
|
|
|
endif
|
|
|
ifeq ($(FULL_TARGET),x86_64-solaris)
|
|
|
-override TARGET_UNITS+=sqlite3conn
|
|
|
+override TARGET_UNITS+=sqlite3conn sqlite3backup
|
|
|
+endif
|
|
|
+ifeq ($(FULL_TARGET),x86_64-openbsd)
|
|
|
+override TARGET_UNITS+=sqlite3conn sqlite3backup
|
|
|
endif
|
|
|
ifeq ($(FULL_TARGET),x86_64-darwin)
|
|
|
-override TARGET_UNITS+=sqlite3conn
|
|
|
+override TARGET_UNITS+=sqlite3conn sqlite3backup
|
|
|
endif
|
|
|
ifeq ($(FULL_TARGET),x86_64-win64)
|
|
|
-override TARGET_UNITS+=sqlite3conn
|
|
|
+override TARGET_UNITS+=sqlite3conn sqlite3backup
|
|
|
endif
|
|
|
ifeq ($(FULL_TARGET),x86_64-embedded)
|
|
|
-override TARGET_UNITS+=sqlite3conn
|
|
|
+override TARGET_UNITS+=sqlite3conn sqlite3backup
|
|
|
endif
|
|
|
ifeq ($(FULL_TARGET),arm-linux)
|
|
|
-override TARGET_UNITS+=sqlite3conn
|
|
|
+override TARGET_UNITS+=sqlite3conn sqlite3backup
|
|
|
endif
|
|
|
ifeq ($(FULL_TARGET),arm-palmos)
|
|
|
-override TARGET_UNITS+=sqlite3conn
|
|
|
+override TARGET_UNITS+=sqlite3conn sqlite3backup
|
|
|
endif
|
|
|
ifeq ($(FULL_TARGET),arm-darwin)
|
|
|
-override TARGET_UNITS+=sqlite3conn
|
|
|
+override TARGET_UNITS+=sqlite3conn sqlite3backup
|
|
|
endif
|
|
|
ifeq ($(FULL_TARGET),arm-wince)
|
|
|
-override TARGET_UNITS+=sqlite3conn
|
|
|
+override TARGET_UNITS+=sqlite3conn sqlite3backup
|
|
|
endif
|
|
|
ifeq ($(FULL_TARGET),arm-gba)
|
|
|
-override TARGET_UNITS+=sqlite3conn
|
|
|
+override TARGET_UNITS+=sqlite3conn sqlite3backup
|
|
|
endif
|
|
|
ifeq ($(FULL_TARGET),arm-nds)
|
|
|
-override TARGET_UNITS+=sqlite3conn
|
|
|
+override TARGET_UNITS+=sqlite3conn sqlite3backup
|
|
|
endif
|
|
|
ifeq ($(FULL_TARGET),arm-embedded)
|
|
|
-override TARGET_UNITS+=sqlite3conn
|
|
|
+override TARGET_UNITS+=sqlite3conn sqlite3backup
|
|
|
endif
|
|
|
ifeq ($(FULL_TARGET),arm-symbian)
|
|
|
-override TARGET_UNITS+=sqlite3conn
|
|
|
+override TARGET_UNITS+=sqlite3conn sqlite3backup
|
|
|
endif
|
|
|
ifeq ($(FULL_TARGET),powerpc64-linux)
|
|
|
-override TARGET_UNITS+=sqlite3conn
|
|
|
+override TARGET_UNITS+=sqlite3conn sqlite3backup
|
|
|
endif
|
|
|
ifeq ($(FULL_TARGET),powerpc64-darwin)
|
|
|
-override TARGET_UNITS+=sqlite3conn
|
|
|
+override TARGET_UNITS+=sqlite3conn sqlite3backup
|
|
|
endif
|
|
|
ifeq ($(FULL_TARGET),powerpc64-embedded)
|
|
|
-override TARGET_UNITS+=sqlite3conn
|
|
|
+override TARGET_UNITS+=sqlite3conn sqlite3backup
|
|
|
+endif
|
|
|
+ifeq ($(FULL_TARGET),powerpc64-aix)
|
|
|
+override TARGET_UNITS+=sqlite3conn sqlite3backup
|
|
|
endif
|
|
|
ifeq ($(FULL_TARGET),avr-embedded)
|
|
|
-override TARGET_UNITS+=sqlite3conn
|
|
|
+override TARGET_UNITS+=sqlite3conn sqlite3backup
|
|
|
endif
|
|
|
ifeq ($(FULL_TARGET),armeb-linux)
|
|
|
-override TARGET_UNITS+=sqlite3conn
|
|
|
+override TARGET_UNITS+=sqlite3conn sqlite3backup
|
|
|
endif
|
|
|
ifeq ($(FULL_TARGET),armeb-embedded)
|
|
|
-override TARGET_UNITS+=sqlite3conn
|
|
|
+override TARGET_UNITS+=sqlite3conn sqlite3backup
|
|
|
+endif
|
|
|
+ifeq ($(FULL_TARGET),mips-linux)
|
|
|
+override TARGET_UNITS+=sqlite3conn sqlite3backup
|
|
|
endif
|
|
|
ifeq ($(FULL_TARGET),mipsel-linux)
|
|
|
-override TARGET_UNITS+=sqlite3conn
|
|
|
+override TARGET_UNITS+=sqlite3conn sqlite3backup
|
|
|
+endif
|
|
|
+ifeq ($(FULL_TARGET),jvm-java)
|
|
|
+override TARGET_UNITS+=sqlite3conn sqlite3backup
|
|
|
+endif
|
|
|
+ifeq ($(FULL_TARGET),jvm-android)
|
|
|
+override TARGET_UNITS+=sqlite3conn sqlite3backup
|
|
|
endif
|
|
|
override INSTALL_FPCPACKAGE=y
|
|
|
ifeq ($(FULL_TARGET),i386-linux)
|
|
@@ -592,6 +629,9 @@ endif
|
|
|
ifeq ($(FULL_TARGET),powerpc-wii)
|
|
|
override COMPILER_OPTIONS+=-S2
|
|
|
endif
|
|
|
+ifeq ($(FULL_TARGET),powerpc-aix)
|
|
|
+override COMPILER_OPTIONS+=-S2
|
|
|
+endif
|
|
|
ifeq ($(FULL_TARGET),sparc-linux)
|
|
|
override COMPILER_OPTIONS+=-S2
|
|
|
endif
|
|
@@ -610,9 +650,15 @@ endif
|
|
|
ifeq ($(FULL_TARGET),x86_64-freebsd)
|
|
|
override COMPILER_OPTIONS+=-S2
|
|
|
endif
|
|
|
+ifeq ($(FULL_TARGET),x86_64-netbsd)
|
|
|
+override COMPILER_OPTIONS+=-S2
|
|
|
+endif
|
|
|
ifeq ($(FULL_TARGET),x86_64-solaris)
|
|
|
override COMPILER_OPTIONS+=-S2
|
|
|
endif
|
|
|
+ifeq ($(FULL_TARGET),x86_64-openbsd)
|
|
|
+override COMPILER_OPTIONS+=-S2
|
|
|
+endif
|
|
|
ifeq ($(FULL_TARGET),x86_64-darwin)
|
|
|
override COMPILER_OPTIONS+=-S2
|
|
|
endif
|
|
@@ -655,6 +701,9 @@ endif
|
|
|
ifeq ($(FULL_TARGET),powerpc64-embedded)
|
|
|
override COMPILER_OPTIONS+=-S2
|
|
|
endif
|
|
|
+ifeq ($(FULL_TARGET),powerpc64-aix)
|
|
|
+override COMPILER_OPTIONS+=-S2
|
|
|
+endif
|
|
|
ifeq ($(FULL_TARGET),avr-embedded)
|
|
|
override COMPILER_OPTIONS+=-S2
|
|
|
endif
|
|
@@ -664,9 +713,18 @@ endif
|
|
|
ifeq ($(FULL_TARGET),armeb-embedded)
|
|
|
override COMPILER_OPTIONS+=-S2
|
|
|
endif
|
|
|
+ifeq ($(FULL_TARGET),mips-linux)
|
|
|
+override COMPILER_OPTIONS+=-S2
|
|
|
+endif
|
|
|
ifeq ($(FULL_TARGET),mipsel-linux)
|
|
|
override COMPILER_OPTIONS+=-S2
|
|
|
endif
|
|
|
+ifeq ($(FULL_TARGET),jvm-java)
|
|
|
+override COMPILER_OPTIONS+=-S2
|
|
|
+endif
|
|
|
+ifeq ($(FULL_TARGET),jvm-android)
|
|
|
+override COMPILER_OPTIONS+=-S2
|
|
|
+endif
|
|
|
ifdef REQUIRE_UNITSDIR
|
|
|
override UNITSDIR+=$(REQUIRE_UNITSDIR)
|
|
|
endif
|
|
@@ -1050,6 +1108,23 @@ EXEEXT=.dol
|
|
|
SHAREDLIBEXT=.so
|
|
|
SHORTSUFFIX=wii
|
|
|
endif
|
|
|
+ifeq ($(OS_TARGET),aix)
|
|
|
+BATCHEXT=.sh
|
|
|
+EXEEXT=
|
|
|
+SHORTSUFFIX=aix
|
|
|
+endif
|
|
|
+ifeq ($(OS_TARGET),java)
|
|
|
+OEXT=.class
|
|
|
+ASMEXT=.j
|
|
|
+SHAREDLIBEXT=.jar
|
|
|
+SHORTSUFFIX=java
|
|
|
+endif
|
|
|
+ifeq ($(OS_TARGET),android)
|
|
|
+OEXT=.class
|
|
|
+ASMEXT=.j
|
|
|
+SHAREDLIBEXT=.jar
|
|
|
+SHORTSUFFIX=android
|
|
|
+endif
|
|
|
ifneq ($(findstring $(OS_SOURCE),$(LIMIT83fs)),)
|
|
|
FPCMADE=fpcmade.$(SHORTSUFFIX)
|
|
|
ZIPSUFFIX=$(SHORTSUFFIX)
|
|
@@ -1533,6 +1608,12 @@ REQUIRE_PACKAGES_FCL-BASE=1
|
|
|
REQUIRE_PACKAGES_FCL-XML=1
|
|
|
REQUIRE_PACKAGES_SQLITE=1
|
|
|
endif
|
|
|
+ifeq ($(FULL_TARGET),powerpc-aix)
|
|
|
+REQUIRE_PACKAGES_RTL=1
|
|
|
+REQUIRE_PACKAGES_FCL-BASE=1
|
|
|
+REQUIRE_PACKAGES_FCL-XML=1
|
|
|
+REQUIRE_PACKAGES_SQLITE=1
|
|
|
+endif
|
|
|
ifeq ($(FULL_TARGET),sparc-linux)
|
|
|
REQUIRE_PACKAGES_RTL=1
|
|
|
REQUIRE_PACKAGES_FCL-BASE=1
|
|
@@ -1572,12 +1653,24 @@ REQUIRE_PACKAGES_ICONVENC=1
|
|
|
REQUIRE_PACKAGES_FCL-XML=1
|
|
|
REQUIRE_PACKAGES_SQLITE=1
|
|
|
endif
|
|
|
+ifeq ($(FULL_TARGET),x86_64-netbsd)
|
|
|
+REQUIRE_PACKAGES_RTL=1
|
|
|
+REQUIRE_PACKAGES_FCL-BASE=1
|
|
|
+REQUIRE_PACKAGES_FCL-XML=1
|
|
|
+REQUIRE_PACKAGES_SQLITE=1
|
|
|
+endif
|
|
|
ifeq ($(FULL_TARGET),x86_64-solaris)
|
|
|
REQUIRE_PACKAGES_RTL=1
|
|
|
REQUIRE_PACKAGES_FCL-BASE=1
|
|
|
REQUIRE_PACKAGES_FCL-XML=1
|
|
|
REQUIRE_PACKAGES_SQLITE=1
|
|
|
endif
|
|
|
+ifeq ($(FULL_TARGET),x86_64-openbsd)
|
|
|
+REQUIRE_PACKAGES_RTL=1
|
|
|
+REQUIRE_PACKAGES_FCL-BASE=1
|
|
|
+REQUIRE_PACKAGES_FCL-XML=1
|
|
|
+REQUIRE_PACKAGES_SQLITE=1
|
|
|
+endif
|
|
|
ifeq ($(FULL_TARGET),x86_64-darwin)
|
|
|
REQUIRE_PACKAGES_RTL=1
|
|
|
REQUIRE_PACKAGES_UNIVINT=1
|
|
@@ -1670,6 +1763,12 @@ REQUIRE_PACKAGES_FCL-BASE=1
|
|
|
REQUIRE_PACKAGES_FCL-XML=1
|
|
|
REQUIRE_PACKAGES_SQLITE=1
|
|
|
endif
|
|
|
+ifeq ($(FULL_TARGET),powerpc64-aix)
|
|
|
+REQUIRE_PACKAGES_RTL=1
|
|
|
+REQUIRE_PACKAGES_FCL-BASE=1
|
|
|
+REQUIRE_PACKAGES_FCL-XML=1
|
|
|
+REQUIRE_PACKAGES_SQLITE=1
|
|
|
+endif
|
|
|
ifeq ($(FULL_TARGET),avr-embedded)
|
|
|
REQUIRE_PACKAGES_RTL=1
|
|
|
REQUIRE_PACKAGES_FCL-BASE=1
|
|
@@ -1689,6 +1788,13 @@ REQUIRE_PACKAGES_FCL-BASE=1
|
|
|
REQUIRE_PACKAGES_FCL-XML=1
|
|
|
REQUIRE_PACKAGES_SQLITE=1
|
|
|
endif
|
|
|
+ifeq ($(FULL_TARGET),mips-linux)
|
|
|
+REQUIRE_PACKAGES_RTL=1
|
|
|
+REQUIRE_PACKAGES_FCL-BASE=1
|
|
|
+REQUIRE_PACKAGES_ICONVENC=1
|
|
|
+REQUIRE_PACKAGES_FCL-XML=1
|
|
|
+REQUIRE_PACKAGES_SQLITE=1
|
|
|
+endif
|
|
|
ifeq ($(FULL_TARGET),mipsel-linux)
|
|
|
REQUIRE_PACKAGES_RTL=1
|
|
|
REQUIRE_PACKAGES_FCL-BASE=1
|
|
@@ -1696,6 +1802,18 @@ REQUIRE_PACKAGES_ICONVENC=1
|
|
|
REQUIRE_PACKAGES_FCL-XML=1
|
|
|
REQUIRE_PACKAGES_SQLITE=1
|
|
|
endif
|
|
|
+ifeq ($(FULL_TARGET),jvm-java)
|
|
|
+REQUIRE_PACKAGES_RTL=1
|
|
|
+REQUIRE_PACKAGES_FCL-BASE=1
|
|
|
+REQUIRE_PACKAGES_FCL-XML=1
|
|
|
+REQUIRE_PACKAGES_SQLITE=1
|
|
|
+endif
|
|
|
+ifeq ($(FULL_TARGET),jvm-android)
|
|
|
+REQUIRE_PACKAGES_RTL=1
|
|
|
+REQUIRE_PACKAGES_FCL-BASE=1
|
|
|
+REQUIRE_PACKAGES_FCL-XML=1
|
|
|
+REQUIRE_PACKAGES_SQLITE=1
|
|
|
+endif
|
|
|
ifdef REQUIRE_PACKAGES_RTL
|
|
|
PACKAGEDIR_RTL:=$(firstword $(subst /Makefile.fpc,,$(strip $(wildcard $(addsuffix /rtl/Makefile.fpc,$(PACKAGESDIR))))))
|
|
|
ifneq ($(PACKAGEDIR_RTL),)
|
|
@@ -1940,12 +2058,16 @@ endif
|
|
|
ifndef CROSSBOOTSTRAP
|
|
|
ifneq ($(BINUTILSPREFIX),)
|
|
|
override FPCOPT+=-XP$(BINUTILSPREFIX)
|
|
|
-override FPCMAKEOPT+=-XP$(BINUTILSPREFIX)
|
|
|
endif
|
|
|
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
|
|
@@ -2032,17 +2154,12 @@ endif
|
|
|
endif
|
|
|
ifdef CREATESHARED
|
|
|
override FPCOPT+=-Cg
|
|
|
-ifeq ($(CPU_TARGET),i386)
|
|
|
-override FPCOPT+=-Aas
|
|
|
-endif
|
|
|
endif
|
|
|
-ifeq ($(findstring 2.0.,$(FPC_VERSION)),)
|
|
|
ifneq ($(findstring $(OS_TARGET),freebsd openbsd netbsd linux solaris),)
|
|
|
ifeq ($(CPU_TARGET),x86_64)
|
|
|
override FPCOPT+=-Cg
|
|
|
endif
|
|
|
endif
|
|
|
-endif
|
|
|
ifdef LINKSHARED
|
|
|
endif
|
|
|
ifdef GCCLIBDIR
|
|
@@ -2423,6 +2540,96 @@ endif
|
|
|
fpc_makefile_sub2: $(addsuffix _makefile_dirs,$(TARGET_DIRS) $(TARGET_EXAMPLEDIRS))
|
|
|
fpc_makefile_dirs: fpc_makefile_sub1 fpc_makefile_sub2
|
|
|
fpc_makefiles: fpc_makefile fpc_makefile_dirs
|
|
|
+ifdef TARGET_DIRS_TARGET_DIRS
|
|
|
+TARGET_DIRS_all:
|
|
|
+ $(MAKE) -C TARGET_DIRS all
|
|
|
+TARGET_DIRS_debug:
|
|
|
+ $(MAKE) -C TARGET_DIRS debug
|
|
|
+TARGET_DIRS_smart:
|
|
|
+ $(MAKE) -C TARGET_DIRS smart
|
|
|
+TARGET_DIRS_release:
|
|
|
+ $(MAKE) -C TARGET_DIRS release
|
|
|
+TARGET_DIRS_units:
|
|
|
+ $(MAKE) -C TARGET_DIRS units
|
|
|
+TARGET_DIRS_examples:
|
|
|
+ $(MAKE) -C TARGET_DIRS examples
|
|
|
+TARGET_DIRS_shared:
|
|
|
+ $(MAKE) -C TARGET_DIRS shared
|
|
|
+TARGET_DIRS_install:
|
|
|
+ $(MAKE) -C TARGET_DIRS install
|
|
|
+TARGET_DIRS_sourceinstall:
|
|
|
+ $(MAKE) -C TARGET_DIRS sourceinstall
|
|
|
+TARGET_DIRS_exampleinstall:
|
|
|
+ $(MAKE) -C TARGET_DIRS exampleinstall
|
|
|
+TARGET_DIRS_distinstall:
|
|
|
+ $(MAKE) -C TARGET_DIRS distinstall
|
|
|
+TARGET_DIRS_zipinstall:
|
|
|
+ $(MAKE) -C TARGET_DIRS zipinstall
|
|
|
+TARGET_DIRS_zipsourceinstall:
|
|
|
+ $(MAKE) -C TARGET_DIRS zipsourceinstall
|
|
|
+TARGET_DIRS_zipexampleinstall:
|
|
|
+ $(MAKE) -C TARGET_DIRS zipexampleinstall
|
|
|
+TARGET_DIRS_zipdistinstall:
|
|
|
+ $(MAKE) -C TARGET_DIRS zipdistinstall
|
|
|
+TARGET_DIRS_clean:
|
|
|
+ $(MAKE) -C TARGET_DIRS clean
|
|
|
+TARGET_DIRS_distclean:
|
|
|
+ $(MAKE) -C TARGET_DIRS distclean
|
|
|
+TARGET_DIRS_cleanall:
|
|
|
+ $(MAKE) -C TARGET_DIRS cleanall
|
|
|
+TARGET_DIRS_info:
|
|
|
+ $(MAKE) -C TARGET_DIRS info
|
|
|
+TARGET_DIRS_makefiles:
|
|
|
+ $(MAKE) -C TARGET_DIRS makefiles
|
|
|
+TARGET_DIRS:
|
|
|
+ $(MAKE) -C TARGET_DIRS all
|
|
|
+.PHONY: TARGET_DIRS_all TARGET_DIRS_debug TARGET_DIRS_smart TARGET_DIRS_release TARGET_DIRS_units TARGET_DIRS_examples TARGET_DIRS_shared TARGET_DIRS_install TARGET_DIRS_sourceinstall TARGET_DIRS_exampleinstall TARGET_DIRS_distinstall TARGET_DIRS_zipinstall TARGET_DIRS_zipsourceinstall TARGET_DIRS_zipexampleinstall TARGET_DIRS_zipdistinstall TARGET_DIRS_clean TARGET_DIRS_distclean TARGET_DIRS_cleanall TARGET_DIRS_info TARGET_DIRS_makefiles TARGET_DIRS
|
|
|
+endif
|
|
|
+ifdef TARGET_EXAMPLEDIRS_TARGET_EXAMPLEDIRS
|
|
|
+TARGET_EXAMPLEDIRS_all:
|
|
|
+ $(MAKE) -C TARGET_EXAMPLEDIRS all
|
|
|
+TARGET_EXAMPLEDIRS_debug:
|
|
|
+ $(MAKE) -C TARGET_EXAMPLEDIRS debug
|
|
|
+TARGET_EXAMPLEDIRS_smart:
|
|
|
+ $(MAKE) -C TARGET_EXAMPLEDIRS smart
|
|
|
+TARGET_EXAMPLEDIRS_release:
|
|
|
+ $(MAKE) -C TARGET_EXAMPLEDIRS release
|
|
|
+TARGET_EXAMPLEDIRS_units:
|
|
|
+ $(MAKE) -C TARGET_EXAMPLEDIRS units
|
|
|
+TARGET_EXAMPLEDIRS_examples:
|
|
|
+ $(MAKE) -C TARGET_EXAMPLEDIRS examples
|
|
|
+TARGET_EXAMPLEDIRS_shared:
|
|
|
+ $(MAKE) -C TARGET_EXAMPLEDIRS shared
|
|
|
+TARGET_EXAMPLEDIRS_install:
|
|
|
+ $(MAKE) -C TARGET_EXAMPLEDIRS install
|
|
|
+TARGET_EXAMPLEDIRS_sourceinstall:
|
|
|
+ $(MAKE) -C TARGET_EXAMPLEDIRS sourceinstall
|
|
|
+TARGET_EXAMPLEDIRS_exampleinstall:
|
|
|
+ $(MAKE) -C TARGET_EXAMPLEDIRS exampleinstall
|
|
|
+TARGET_EXAMPLEDIRS_distinstall:
|
|
|
+ $(MAKE) -C TARGET_EXAMPLEDIRS distinstall
|
|
|
+TARGET_EXAMPLEDIRS_zipinstall:
|
|
|
+ $(MAKE) -C TARGET_EXAMPLEDIRS zipinstall
|
|
|
+TARGET_EXAMPLEDIRS_zipsourceinstall:
|
|
|
+ $(MAKE) -C TARGET_EXAMPLEDIRS zipsourceinstall
|
|
|
+TARGET_EXAMPLEDIRS_zipexampleinstall:
|
|
|
+ $(MAKE) -C TARGET_EXAMPLEDIRS zipexampleinstall
|
|
|
+TARGET_EXAMPLEDIRS_zipdistinstall:
|
|
|
+ $(MAKE) -C TARGET_EXAMPLEDIRS zipdistinstall
|
|
|
+TARGET_EXAMPLEDIRS_clean:
|
|
|
+ $(MAKE) -C TARGET_EXAMPLEDIRS clean
|
|
|
+TARGET_EXAMPLEDIRS_distclean:
|
|
|
+ $(MAKE) -C TARGET_EXAMPLEDIRS distclean
|
|
|
+TARGET_EXAMPLEDIRS_cleanall:
|
|
|
+ $(MAKE) -C TARGET_EXAMPLEDIRS cleanall
|
|
|
+TARGET_EXAMPLEDIRS_info:
|
|
|
+ $(MAKE) -C TARGET_EXAMPLEDIRS info
|
|
|
+TARGET_EXAMPLEDIRS_makefiles:
|
|
|
+ $(MAKE) -C TARGET_EXAMPLEDIRS makefiles
|
|
|
+TARGET_EXAMPLEDIRS:
|
|
|
+ $(MAKE) -C TARGET_EXAMPLEDIRS all
|
|
|
+.PHONY: TARGET_EXAMPLEDIRS_all TARGET_EXAMPLEDIRS_debug TARGET_EXAMPLEDIRS_smart TARGET_EXAMPLEDIRS_release TARGET_EXAMPLEDIRS_units TARGET_EXAMPLEDIRS_examples TARGET_EXAMPLEDIRS_shared TARGET_EXAMPLEDIRS_install TARGET_EXAMPLEDIRS_sourceinstall TARGET_EXAMPLEDIRS_exampleinstall TARGET_EXAMPLEDIRS_distinstall TARGET_EXAMPLEDIRS_zipinstall TARGET_EXAMPLEDIRS_zipsourceinstall TARGET_EXAMPLEDIRS_zipexampleinstall TARGET_EXAMPLEDIRS_zipdistinstall TARGET_EXAMPLEDIRS_clean TARGET_EXAMPLEDIRS_distclean TARGET_EXAMPLEDIRS_cleanall TARGET_EXAMPLEDIRS_info TARGET_EXAMPLEDIRS_makefiles TARGET_EXAMPLEDIRS
|
|
|
+endif
|
|
|
all: fpc_all
|
|
|
debug: fpc_debug
|
|
|
smart: fpc_smart
|