mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-31 17:20:37 +02:00
MWE: Updated version
git-svn-id: trunk@387 -
This commit is contained in:
parent
1fc8c5091e
commit
6241105b36
@ -1,5 +1,5 @@
|
|||||||
#
|
#
|
||||||
# Don't edit, this file is generated by fpcmake v1.99.0 [2001/08/15]
|
# Don't edit, this file is generated by FPCMake Version 1.1 [2001/10/11]
|
||||||
#
|
#
|
||||||
default: all
|
default: all
|
||||||
override PATH:=$(subst \,/,$(PATH))
|
override PATH:=$(subst \,/,$(PATH))
|
||||||
@ -34,7 +34,7 @@ inOS2=1
|
|||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
else
|
else
|
||||||
ifneq ($(findstring cygwin,$(MACH_TYPE)),)
|
ifneq ($(findstring cygwin,$(MACHTYPE)),)
|
||||||
inCygWin=1
|
inCygWin=1
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
@ -54,30 +54,41 @@ PATHSEP:=$(subst /,\,/)
|
|||||||
endif
|
endif
|
||||||
ifdef PWD
|
ifdef PWD
|
||||||
BASEDIR:=$(subst \,/,$(shell $(PWD)))
|
BASEDIR:=$(subst \,/,$(shell $(PWD)))
|
||||||
|
ifdef inCygWin
|
||||||
|
ifneq ($(findstring /cygdrive/,$(BASEDIR)),)
|
||||||
|
BASENODIR:=$(patsubst /cygdrive%,%,$(BASEDIR))
|
||||||
|
BASEDRIVE:=$(firstword $(subst /, ,$(BASENODIR)))
|
||||||
|
BASEDIR:=$(subst /cygdrive/$(BASEDRIVE)/,$(BASEDRIVE):/,$(BASEDIR))
|
||||||
|
endif
|
||||||
|
endif
|
||||||
else
|
else
|
||||||
BASEDIR=.
|
BASEDIR=.
|
||||||
endif
|
endif
|
||||||
ifndef FPC
|
ifndef FPC
|
||||||
ifdef PP
|
ifdef PP
|
||||||
FPC=$(PP)
|
FPC=$(PP)
|
||||||
else
|
endif
|
||||||
FPC=ppc386
|
endif
|
||||||
|
ifndef FPC
|
||||||
|
FPC:=$(shell fpc -P?)
|
||||||
|
ifneq ($(findstring Error,$(PPCBIN)),)
|
||||||
|
override FPC=ppc386
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
override FPC:=$(subst $(SRCEXEEXT),,$(FPC))
|
override FPC:=$(subst $(SRCEXEEXT),,$(FPC))
|
||||||
override FPC:=$(subst \,/,$(FPC))$(SRCEXEEXT)
|
override FPC:=$(subst \,/,$(FPC))$(SRCEXEEXT)
|
||||||
ifndef OS_TARGET
|
|
||||||
OS_TARGET:=$(shell $(FPC) -iTO)
|
|
||||||
endif
|
|
||||||
ifndef OS_SOURCE
|
|
||||||
OS_SOURCE:=$(shell $(FPC) -iSO)
|
|
||||||
endif
|
|
||||||
ifndef CPU_TARGET
|
ifndef CPU_TARGET
|
||||||
CPU_TARGET:=$(shell $(FPC) -iTP)
|
CPU_TARGET:=$(shell $(FPC) -iTP)
|
||||||
endif
|
endif
|
||||||
ifndef CPU_SOURCE
|
ifndef CPU_SOURCE
|
||||||
CPU_SOURCE:=$(shell $(FPC) -iSP)
|
CPU_SOURCE:=$(shell $(FPC) -iSP)
|
||||||
endif
|
endif
|
||||||
|
ifndef OS_TARGET
|
||||||
|
OS_TARGET:=$(shell $(FPC) -iTO)
|
||||||
|
endif
|
||||||
|
ifndef OS_SOURCE
|
||||||
|
OS_SOURCE:=$(shell $(FPC) -iSO)
|
||||||
|
endif
|
||||||
ifndef FPC_VERSION
|
ifndef FPC_VERSION
|
||||||
FPC_VERSION:=$(shell $(FPC) -iV)
|
FPC_VERSION:=$(shell $(FPC) -iV)
|
||||||
endif
|
endif
|
||||||
@ -110,7 +121,7 @@ endif
|
|||||||
UNITSDIR:=$(wildcard $(FPCDIR)/units/$(OS_TARGET))
|
UNITSDIR:=$(wildcard $(FPCDIR)/units/$(OS_TARGET))
|
||||||
PACKAGESDIR:=$(wildcard $(FPCDIR) $(FPCDIR)/packages)
|
PACKAGESDIR:=$(wildcard $(FPCDIR) $(FPCDIR)/packages)
|
||||||
override PACKAGE_NAME=lazarus-components
|
override PACKAGE_NAME=lazarus-components
|
||||||
override PACKAGE_VERSION=0.7a
|
override PACKAGE_VERSION=0.8
|
||||||
DIST_DESTDIR=$(BASEDIR)/../dist
|
DIST_DESTDIR=$(BASEDIR)/../dist
|
||||||
ifndef LCLPLATFORM
|
ifndef LCLPLATFORM
|
||||||
LCLPLATFORM=gtk
|
LCLPLATFORM=gtk
|
||||||
@ -346,6 +357,12 @@ HASSHAREDLIB=1
|
|||||||
FPCMADE=fpcmade.freebsd
|
FPCMADE=fpcmade.freebsd
|
||||||
ZIPSUFFIX=freebsd
|
ZIPSUFFIX=freebsd
|
||||||
endif
|
endif
|
||||||
|
ifeq ($(OS_TARGET),netbsd)
|
||||||
|
EXEEXT=
|
||||||
|
HASSHAREDLIB=1
|
||||||
|
FPCMADE=fpcmade.netbsd
|
||||||
|
ZIPSUFFIX=netbsd
|
||||||
|
endif
|
||||||
ifeq ($(OS_TARGET),win32)
|
ifeq ($(OS_TARGET),win32)
|
||||||
PPUEXT=.ppw
|
PPUEXT=.ppw
|
||||||
OEXT=.ow
|
OEXT=.ow
|
||||||
@ -367,6 +384,35 @@ SHAREDLIBEXT=.dll
|
|||||||
FPCMADE=fpcmade.os2
|
FPCMADE=fpcmade.os2
|
||||||
ZIPSUFFIX=emx
|
ZIPSUFFIX=emx
|
||||||
endif
|
endif
|
||||||
|
ifeq ($(OS_TARGET),amiga)
|
||||||
|
EXEEXT=
|
||||||
|
PPUEXT=.ppa
|
||||||
|
ASMEXT=.asm
|
||||||
|
OEXT=.o
|
||||||
|
SMARTEXT=.sl
|
||||||
|
STATICLIBEXT=.a
|
||||||
|
SHAREDLIBEXT=.library
|
||||||
|
FPCMADE=fpcmade.amg
|
||||||
|
endif
|
||||||
|
ifeq ($(OS_TARGET),atari)
|
||||||
|
PPUEXT=.ppt
|
||||||
|
ASMEXT=.s
|
||||||
|
OEXT=.o
|
||||||
|
SMARTEXT=.sl
|
||||||
|
STATICLIBEXT=.a
|
||||||
|
EXEEXT=.ttp
|
||||||
|
FPCMADE=fpcmade.ata
|
||||||
|
endif
|
||||||
|
ifeq ($(OS_TARGET),beos)
|
||||||
|
PPUEXT=.ppu
|
||||||
|
ASMEXT=.s
|
||||||
|
OEXT=.o
|
||||||
|
SMARTEXT=.sl
|
||||||
|
STATICLIBEXT=.a
|
||||||
|
EXEEXT=
|
||||||
|
FPCMADE=fpcmade.be
|
||||||
|
ZIPSUFFIX=be
|
||||||
|
endif
|
||||||
ifdef REQUIRE_UNITSDIR
|
ifdef REQUIRE_UNITSDIR
|
||||||
override UNITSDIR+=$(REQUIRE_UNITSDIR)
|
override UNITSDIR+=$(REQUIRE_UNITSDIR)
|
||||||
endif
|
endif
|
||||||
@ -380,6 +426,9 @@ endif
|
|||||||
ifeq ($(OS_TARGET),freebsd)
|
ifeq ($(OS_TARGET),freebsd)
|
||||||
UNIXINSTALLDIR=1
|
UNIXINSTALLDIR=1
|
||||||
endif
|
endif
|
||||||
|
ifeq ($(OS_TARGET),netbsd)
|
||||||
|
UNIXINSTALLDIR=1
|
||||||
|
endif
|
||||||
else
|
else
|
||||||
ifeq ($(OS_SOURCE),linux)
|
ifeq ($(OS_SOURCE),linux)
|
||||||
UNIXINSTALLDIR=1
|
UNIXINSTALLDIR=1
|
||||||
@ -387,6 +436,9 @@ endif
|
|||||||
ifeq ($(OS_SOURCE),freebsd)
|
ifeq ($(OS_SOURCE),freebsd)
|
||||||
UNIXINSTALLDIR=1
|
UNIXINSTALLDIR=1
|
||||||
endif
|
endif
|
||||||
|
ifeq ($(OS_SOURCE),netbsd)
|
||||||
|
UNIXINSTALLDIR=1
|
||||||
|
endif
|
||||||
endif
|
endif
|
||||||
ifndef INSTALL_PREFIX
|
ifndef INSTALL_PREFIX
|
||||||
ifdef UNIXINSTALLDIR
|
ifdef UNIXINSTALLDIR
|
||||||
@ -488,7 +540,9 @@ endif
|
|||||||
ifndef INSTALL_DATADIR
|
ifndef INSTALL_DATADIR
|
||||||
INSTALL_DATADIR=$(INSTALL_BASEDIR)
|
INSTALL_DATADIR=$(INSTALL_BASEDIR)
|
||||||
endif
|
endif
|
||||||
|
ifndef NOCPUDEF
|
||||||
override FPCOPTDEF=$(CPU_TARGET)
|
override FPCOPTDEF=$(CPU_TARGET)
|
||||||
|
endif
|
||||||
ifneq ($(OS_TARGET),$(OS_SOURCE))
|
ifneq ($(OS_TARGET),$(OS_SOURCE))
|
||||||
override FPCOPT+=-T$(OS_TARGET)
|
override FPCOPT+=-T$(OS_TARGET)
|
||||||
endif
|
endif
|
||||||
@ -515,15 +569,22 @@ override FPCOPT+=-gl
|
|||||||
override FPCOPTDEF+=DEBUG
|
override FPCOPTDEF+=DEBUG
|
||||||
endif
|
endif
|
||||||
ifdef RELEASE
|
ifdef RELEASE
|
||||||
override FPCOPT+=-Xs -OG2p3 -n
|
ifeq ($(CPU_TARGET),i386)
|
||||||
|
FPCCPUOPT:=-OG2p3
|
||||||
|
else
|
||||||
|
FPCCPUOPT:=
|
||||||
|
endif
|
||||||
|
override FPCOPT+=-Xs $(FPCCPUOPT) -n
|
||||||
override FPCOPTDEF+=RELEASE
|
override FPCOPTDEF+=RELEASE
|
||||||
endif
|
endif
|
||||||
ifdef STRIP
|
ifdef STRIP
|
||||||
override FPCOPT+=-Xs
|
override FPCOPT+=-Xs
|
||||||
endif
|
endif
|
||||||
ifdef OPTIMIZE
|
ifdef OPTIMIZE
|
||||||
|
ifeq ($(CPU_TARGET),i386)
|
||||||
override FPCOPT+=-OG2p3
|
override FPCOPT+=-OG2p3
|
||||||
endif
|
endif
|
||||||
|
endif
|
||||||
ifdef VERBOSE
|
ifdef VERBOSE
|
||||||
override FPCOPT+=-vwni
|
override FPCOPT+=-vwni
|
||||||
endif
|
endif
|
||||||
@ -555,7 +616,7 @@ override FPCOPT+=-FU$(COMPILER_UNITTARGETDIR)
|
|||||||
ifeq ($(COMPILER_UNITTARGETDIR),.)
|
ifeq ($(COMPILER_UNITTARGETDIR),.)
|
||||||
override UNITTARGETDIRPREFIX=
|
override UNITTARGETDIRPREFIX=
|
||||||
else
|
else
|
||||||
override UNITTARGETDIRPREFIX=$(COMPILER_TARGETDIR)/
|
override UNITTARGETDIRPREFIX=$(COMPILER_UNITTARGETDIR)/
|
||||||
endif
|
endif
|
||||||
else
|
else
|
||||||
ifdef COMPILER_TARGETDIR
|
ifdef COMPILER_TARGETDIR
|
||||||
@ -638,6 +699,7 @@ ZIPCMD_ZIP:=$(subst /,$(ZIPPATHSEP),$(ZIPPROG)) -Dr $(ZIPOPT) $(ZIPDESTFILE) *
|
|||||||
endif
|
endif
|
||||||
fpc_zipinstall:
|
fpc_zipinstall:
|
||||||
$(MAKE) $(ZIPTARGET) INSTALL_PREFIX=$(PACKDIR) ZIPINSTALL=1
|
$(MAKE) $(ZIPTARGET) INSTALL_PREFIX=$(PACKDIR) ZIPINSTALL=1
|
||||||
|
$(MKDIR) $(DIST_DESTDIR)
|
||||||
$(DEL) $(ZIPDESTFILE)
|
$(DEL) $(ZIPDESTFILE)
|
||||||
ifdef USEZIPWRAPPER
|
ifdef USEZIPWRAPPER
|
||||||
ifneq ($(ECHOREDIR),echo)
|
ifneq ($(ECHOREDIR),echo)
|
||||||
@ -698,7 +760,7 @@ endif
|
|||||||
ifdef LIB_NAME
|
ifdef LIB_NAME
|
||||||
-$(DEL) $(LIB_NAME) $(LIB_FULLNAME)
|
-$(DEL) $(LIB_NAME) $(LIB_FULLNAME)
|
||||||
endif
|
endif
|
||||||
-$(DEL) $(FPCMADE) $(PPAS) link.res $(FPCEXTFILE) $(REDIRFILE)
|
-$(DEL) $(FPCMADE) Package.fpc $(PPAS) script.res link.res $(FPCEXTFILE) $(REDIRFILE)
|
||||||
fpc_distclean: clean
|
fpc_distclean: clean
|
||||||
ifdef COMPILER_UNITTARGETDIR
|
ifdef COMPILER_UNITTARGETDIR
|
||||||
TARGETDIRCLEAN=fpc_clean
|
TARGETDIRCLEAN=fpc_clean
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
|
|
||||||
[package]
|
[package]
|
||||||
name=lazarus-components
|
name=lazarus-components
|
||||||
version=0.7a
|
version=0.8
|
||||||
|
|
||||||
[target]
|
[target]
|
||||||
#dirs=synedit mwedit
|
#dirs=synedit mwedit
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
#
|
#
|
||||||
# Don't edit, this file is generated by fpcmake v1.99.0 [2001/08/15]
|
# Don't edit, this file is generated by FPCMake Version 1.1 [2001/10/11]
|
||||||
#
|
#
|
||||||
default: all
|
default: all
|
||||||
override PATH:=$(subst \,/,$(PATH))
|
override PATH:=$(subst \,/,$(PATH))
|
||||||
@ -34,7 +34,7 @@ inOS2=1
|
|||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
else
|
else
|
||||||
ifneq ($(findstring cygwin,$(MACH_TYPE)),)
|
ifneq ($(findstring cygwin,$(MACHTYPE)),)
|
||||||
inCygWin=1
|
inCygWin=1
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
@ -54,30 +54,41 @@ PATHSEP:=$(subst /,\,/)
|
|||||||
endif
|
endif
|
||||||
ifdef PWD
|
ifdef PWD
|
||||||
BASEDIR:=$(subst \,/,$(shell $(PWD)))
|
BASEDIR:=$(subst \,/,$(shell $(PWD)))
|
||||||
|
ifdef inCygWin
|
||||||
|
ifneq ($(findstring /cygdrive/,$(BASEDIR)),)
|
||||||
|
BASENODIR:=$(patsubst /cygdrive%,%,$(BASEDIR))
|
||||||
|
BASEDRIVE:=$(firstword $(subst /, ,$(BASENODIR)))
|
||||||
|
BASEDIR:=$(subst /cygdrive/$(BASEDRIVE)/,$(BASEDRIVE):/,$(BASEDIR))
|
||||||
|
endif
|
||||||
|
endif
|
||||||
else
|
else
|
||||||
BASEDIR=.
|
BASEDIR=.
|
||||||
endif
|
endif
|
||||||
ifndef FPC
|
ifndef FPC
|
||||||
ifdef PP
|
ifdef PP
|
||||||
FPC=$(PP)
|
FPC=$(PP)
|
||||||
else
|
endif
|
||||||
FPC=ppc386
|
endif
|
||||||
|
ifndef FPC
|
||||||
|
FPC:=$(shell fpc -P?)
|
||||||
|
ifneq ($(findstring Error,$(PPCBIN)),)
|
||||||
|
override FPC=ppc386
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
override FPC:=$(subst $(SRCEXEEXT),,$(FPC))
|
override FPC:=$(subst $(SRCEXEEXT),,$(FPC))
|
||||||
override FPC:=$(subst \,/,$(FPC))$(SRCEXEEXT)
|
override FPC:=$(subst \,/,$(FPC))$(SRCEXEEXT)
|
||||||
ifndef OS_TARGET
|
|
||||||
OS_TARGET:=$(shell $(FPC) -iTO)
|
|
||||||
endif
|
|
||||||
ifndef OS_SOURCE
|
|
||||||
OS_SOURCE:=$(shell $(FPC) -iSO)
|
|
||||||
endif
|
|
||||||
ifndef CPU_TARGET
|
ifndef CPU_TARGET
|
||||||
CPU_TARGET:=$(shell $(FPC) -iTP)
|
CPU_TARGET:=$(shell $(FPC) -iTP)
|
||||||
endif
|
endif
|
||||||
ifndef CPU_SOURCE
|
ifndef CPU_SOURCE
|
||||||
CPU_SOURCE:=$(shell $(FPC) -iSP)
|
CPU_SOURCE:=$(shell $(FPC) -iSP)
|
||||||
endif
|
endif
|
||||||
|
ifndef OS_TARGET
|
||||||
|
OS_TARGET:=$(shell $(FPC) -iTO)
|
||||||
|
endif
|
||||||
|
ifndef OS_SOURCE
|
||||||
|
OS_SOURCE:=$(shell $(FPC) -iSO)
|
||||||
|
endif
|
||||||
ifndef FPC_VERSION
|
ifndef FPC_VERSION
|
||||||
FPC_VERSION:=$(shell $(FPC) -iV)
|
FPC_VERSION:=$(shell $(FPC) -iV)
|
||||||
endif
|
endif
|
||||||
@ -110,12 +121,11 @@ endif
|
|||||||
UNITSDIR:=$(wildcard $(FPCDIR)/units/$(OS_TARGET))
|
UNITSDIR:=$(wildcard $(FPCDIR)/units/$(OS_TARGET))
|
||||||
PACKAGESDIR:=$(wildcard $(FPCDIR) $(FPCDIR)/packages)
|
PACKAGESDIR:=$(wildcard $(FPCDIR) $(FPCDIR)/packages)
|
||||||
override PACKAGE_NAME=lazarus
|
override PACKAGE_NAME=lazarus
|
||||||
override PACKAGE_VERSION=0.7a
|
override PACKAGE_VERSION=0.8
|
||||||
override TARGET_UNITS+=avl_tree basiccodetools codecache codetoolmanager codetools sourcelog definetemplates expreval keywordfunclists linkscanner sourcechanger memcheck
|
override TARGET_UNITS+=avl_tree basiccodetools codecache codetoolmanager codetools sourcelog definetemplates expreval keywordfunclists linkscanner sourcechanger memcheck
|
||||||
override DIST_ZIPNAME=lazarus.codetools.$(ZIPSUFFIX)
|
override DIST_ZIPNAME=lazarus.codetools.$(ZIPSUFFIX)
|
||||||
override COMPILER_OPTIONS+=-gl
|
override COMPILER_OPTIONS+=-gl
|
||||||
override COMPILER_UNITDIR+=$(COMPILER_UNITTARGETDIR)
|
override COMPILER_UNITDIR+=. $(COMPILER_UNITTARGETDIR)
|
||||||
override COMPILER_TARGETDIR+=../units
|
|
||||||
override COMPILER_UNITTARGETDIR+=../units
|
override COMPILER_UNITTARGETDIR+=../units
|
||||||
ifndef ECHO
|
ifndef ECHO
|
||||||
ECHO:=$(strip $(wildcard $(addsuffix /gecho$(SRCEXEEXT),$(SEARCHPATH))))
|
ECHO:=$(strip $(wildcard $(addsuffix /gecho$(SRCEXEEXT),$(SEARCHPATH))))
|
||||||
@ -346,6 +356,12 @@ HASSHAREDLIB=1
|
|||||||
FPCMADE=fpcmade.freebsd
|
FPCMADE=fpcmade.freebsd
|
||||||
ZIPSUFFIX=freebsd
|
ZIPSUFFIX=freebsd
|
||||||
endif
|
endif
|
||||||
|
ifeq ($(OS_TARGET),netbsd)
|
||||||
|
EXEEXT=
|
||||||
|
HASSHAREDLIB=1
|
||||||
|
FPCMADE=fpcmade.netbsd
|
||||||
|
ZIPSUFFIX=netbsd
|
||||||
|
endif
|
||||||
ifeq ($(OS_TARGET),win32)
|
ifeq ($(OS_TARGET),win32)
|
||||||
PPUEXT=.ppw
|
PPUEXT=.ppw
|
||||||
OEXT=.ow
|
OEXT=.ow
|
||||||
@ -367,6 +383,35 @@ SHAREDLIBEXT=.dll
|
|||||||
FPCMADE=fpcmade.os2
|
FPCMADE=fpcmade.os2
|
||||||
ZIPSUFFIX=emx
|
ZIPSUFFIX=emx
|
||||||
endif
|
endif
|
||||||
|
ifeq ($(OS_TARGET),amiga)
|
||||||
|
EXEEXT=
|
||||||
|
PPUEXT=.ppa
|
||||||
|
ASMEXT=.asm
|
||||||
|
OEXT=.o
|
||||||
|
SMARTEXT=.sl
|
||||||
|
STATICLIBEXT=.a
|
||||||
|
SHAREDLIBEXT=.library
|
||||||
|
FPCMADE=fpcmade.amg
|
||||||
|
endif
|
||||||
|
ifeq ($(OS_TARGET),atari)
|
||||||
|
PPUEXT=.ppt
|
||||||
|
ASMEXT=.s
|
||||||
|
OEXT=.o
|
||||||
|
SMARTEXT=.sl
|
||||||
|
STATICLIBEXT=.a
|
||||||
|
EXEEXT=.ttp
|
||||||
|
FPCMADE=fpcmade.ata
|
||||||
|
endif
|
||||||
|
ifeq ($(OS_TARGET),beos)
|
||||||
|
PPUEXT=.ppu
|
||||||
|
ASMEXT=.s
|
||||||
|
OEXT=.o
|
||||||
|
SMARTEXT=.sl
|
||||||
|
STATICLIBEXT=.a
|
||||||
|
EXEEXT=
|
||||||
|
FPCMADE=fpcmade.be
|
||||||
|
ZIPSUFFIX=be
|
||||||
|
endif
|
||||||
ifdef REQUIRE_UNITSDIR
|
ifdef REQUIRE_UNITSDIR
|
||||||
override UNITSDIR+=$(REQUIRE_UNITSDIR)
|
override UNITSDIR+=$(REQUIRE_UNITSDIR)
|
||||||
endif
|
endif
|
||||||
@ -380,6 +425,9 @@ endif
|
|||||||
ifeq ($(OS_TARGET),freebsd)
|
ifeq ($(OS_TARGET),freebsd)
|
||||||
UNIXINSTALLDIR=1
|
UNIXINSTALLDIR=1
|
||||||
endif
|
endif
|
||||||
|
ifeq ($(OS_TARGET),netbsd)
|
||||||
|
UNIXINSTALLDIR=1
|
||||||
|
endif
|
||||||
else
|
else
|
||||||
ifeq ($(OS_SOURCE),linux)
|
ifeq ($(OS_SOURCE),linux)
|
||||||
UNIXINSTALLDIR=1
|
UNIXINSTALLDIR=1
|
||||||
@ -387,6 +435,9 @@ endif
|
|||||||
ifeq ($(OS_SOURCE),freebsd)
|
ifeq ($(OS_SOURCE),freebsd)
|
||||||
UNIXINSTALLDIR=1
|
UNIXINSTALLDIR=1
|
||||||
endif
|
endif
|
||||||
|
ifeq ($(OS_SOURCE),netbsd)
|
||||||
|
UNIXINSTALLDIR=1
|
||||||
|
endif
|
||||||
endif
|
endif
|
||||||
ifndef INSTALL_PREFIX
|
ifndef INSTALL_PREFIX
|
||||||
ifdef UNIXINSTALLDIR
|
ifdef UNIXINSTALLDIR
|
||||||
@ -492,18 +543,23 @@ ifdef inUnix
|
|||||||
ifndef GCCLIBDIR
|
ifndef GCCLIBDIR
|
||||||
GCCLIBDIR:=$(shell dirname `(gcc -v 2>&1)| head -n 1| awk '{ print $$4 } '`)
|
GCCLIBDIR:=$(shell dirname `(gcc -v 2>&1)| head -n 1| awk '{ print $$4 } '`)
|
||||||
endif
|
endif
|
||||||
|
ifeq ($(OS_TARGET),linux)
|
||||||
ifndef OTHERLIBDIR
|
ifndef OTHERLIBDIR
|
||||||
OTHERLIBDIR:=$(shell grep -v "^\#" /etc/ld.so.conf | awk '{ ORS=" "; print $1 }')
|
OTHERLIBDIR:=$(shell grep -v "^\#" /etc/ld.so.conf | awk '{ ORS=" "; print $1 }')
|
||||||
endif
|
endif
|
||||||
|
endif
|
||||||
|
ifeq ($(OS_TARGET),netbsd)
|
||||||
|
OTHERLIBDIR+=/usr/pkg/lib
|
||||||
|
endif
|
||||||
export GCCLIBDIR OTHERLIB
|
export GCCLIBDIR OTHERLIB
|
||||||
endif
|
endif
|
||||||
ifeq ($(OS_TARGET),linux)
|
ifeq ($(OS_TARGET),linux)
|
||||||
REQUIRE_PACKAGES_RTL=1
|
REQUIRE_PACKAGES_RTL=1
|
||||||
REQUIRE_PACKAGES_PASZLIB=1
|
REQUIRE_PACKAGES_PASZLIB=1
|
||||||
REQUIRE_PACKAGES_INET=1
|
REQUIRE_PACKAGES_INET=1
|
||||||
REQUIRE_PACKAGES_FCL=1
|
|
||||||
REQUIRE_PACKAGES_MYSQL=1
|
REQUIRE_PACKAGES_MYSQL=1
|
||||||
REQUIRE_PACKAGES_IBASE=1
|
REQUIRE_PACKAGES_IBASE=1
|
||||||
|
REQUIRE_PACKAGES_FCL=1
|
||||||
endif
|
endif
|
||||||
ifeq ($(OS_TARGET),go32v2)
|
ifeq ($(OS_TARGET),go32v2)
|
||||||
REQUIRE_PACKAGES_RTL=1
|
REQUIRE_PACKAGES_RTL=1
|
||||||
@ -514,8 +570,6 @@ ifeq ($(OS_TARGET),win32)
|
|||||||
REQUIRE_PACKAGES_RTL=1
|
REQUIRE_PACKAGES_RTL=1
|
||||||
REQUIRE_PACKAGES_PASZLIB=1
|
REQUIRE_PACKAGES_PASZLIB=1
|
||||||
REQUIRE_PACKAGES_FCL=1
|
REQUIRE_PACKAGES_FCL=1
|
||||||
REQUIRE_PACKAGES_MYSQL=1
|
|
||||||
REQUIRE_PACKAGES_IBASE=1
|
|
||||||
endif
|
endif
|
||||||
ifeq ($(OS_TARGET),os2)
|
ifeq ($(OS_TARGET),os2)
|
||||||
REQUIRE_PACKAGES_RTL=1
|
REQUIRE_PACKAGES_RTL=1
|
||||||
@ -527,14 +581,27 @@ REQUIRE_PACKAGES_RTL=1
|
|||||||
REQUIRE_PACKAGES_PASZLIB=1
|
REQUIRE_PACKAGES_PASZLIB=1
|
||||||
REQUIRE_PACKAGES_INET=1
|
REQUIRE_PACKAGES_INET=1
|
||||||
REQUIRE_PACKAGES_FCL=1
|
REQUIRE_PACKAGES_FCL=1
|
||||||
REQUIRE_PACKAGES_MYSQL=1
|
|
||||||
REQUIRE_PACKAGES_IBASE=1
|
|
||||||
endif
|
endif
|
||||||
ifeq ($(OS_TARGET),beos)
|
ifeq ($(OS_TARGET),beos)
|
||||||
REQUIRE_PACKAGES_RTL=1
|
REQUIRE_PACKAGES_RTL=1
|
||||||
REQUIRE_PACKAGES_PASZLIB=1
|
REQUIRE_PACKAGES_PASZLIB=1
|
||||||
REQUIRE_PACKAGES_FCL=1
|
REQUIRE_PACKAGES_FCL=1
|
||||||
endif
|
endif
|
||||||
|
ifeq ($(OS_TARGET),netbsd)
|
||||||
|
REQUIRE_PACKAGES_RTL=1
|
||||||
|
REQUIRE_PACKAGES_PASZLIB=1
|
||||||
|
REQUIRE_PACKAGES_FCL=1
|
||||||
|
endif
|
||||||
|
ifeq ($(OS_TARGET),amiga)
|
||||||
|
REQUIRE_PACKAGES_RTL=1
|
||||||
|
REQUIRE_PACKAGES_PASZLIB=1
|
||||||
|
REQUIRE_PACKAGES_FCL=1
|
||||||
|
endif
|
||||||
|
ifeq ($(OS_TARGET),atari)
|
||||||
|
REQUIRE_PACKAGES_RTL=1
|
||||||
|
REQUIRE_PACKAGES_PASZLIB=1
|
||||||
|
REQUIRE_PACKAGES_FCL=1
|
||||||
|
endif
|
||||||
ifdef REQUIRE_PACKAGES_RTL
|
ifdef REQUIRE_PACKAGES_RTL
|
||||||
PACKAGEDIR_RTL:=$(subst /Makefile.fpc,,$(strip $(wildcard $(addsuffix /rtl/Makefile.fpc,$(PACKAGESDIR)))))
|
PACKAGEDIR_RTL:=$(subst /Makefile.fpc,,$(strip $(wildcard $(addsuffix /rtl/Makefile.fpc,$(PACKAGESDIR)))))
|
||||||
ifneq ($(PACKAGEDIR_RTL),)
|
ifneq ($(PACKAGEDIR_RTL),)
|
||||||
@ -616,33 +683,6 @@ ifdef UNITDIR_INET
|
|||||||
override COMPILER_UNITDIR+=$(UNITDIR_INET)
|
override COMPILER_UNITDIR+=$(UNITDIR_INET)
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
ifdef REQUIRE_PACKAGES_FCL
|
|
||||||
PACKAGEDIR_FCL:=$(subst /Makefile.fpc,,$(strip $(wildcard $(addsuffix /fcl/Makefile.fpc,$(PACKAGESDIR)))))
|
|
||||||
ifneq ($(PACKAGEDIR_FCL),)
|
|
||||||
PACKAGEDIR_FCL:=$(firstword $(PACKAGEDIR_FCL))
|
|
||||||
ifeq ($(wildcard $(PACKAGEDIR_FCL)/$(FPCMADE)),)
|
|
||||||
override COMPILEPACKAGES+=package_fcl
|
|
||||||
package_fcl:
|
|
||||||
$(MAKE) -C $(PACKAGEDIR_FCL) all
|
|
||||||
endif
|
|
||||||
ifneq ($(wildcard $(PACKAGEDIR_FCL)/$(OS_TARGET)),)
|
|
||||||
UNITDIR_FCL=$(PACKAGEDIR_FCL)/$(OS_TARGET)
|
|
||||||
else
|
|
||||||
UNITDIR_FCL=$(PACKAGEDIR_FCL)
|
|
||||||
endif
|
|
||||||
else
|
|
||||||
PACKAGEDIR_FCL=
|
|
||||||
UNITDIR_FCL:=$(subst /Package.fpc,,$(strip $(wildcard $(addsuffix /fcl/Package.fpc,$(UNITSDIR)))))
|
|
||||||
ifneq ($(UNITDIR_FCL),)
|
|
||||||
UNITDIR_FCL:=$(firstword $(UNITDIR_FCL))
|
|
||||||
else
|
|
||||||
UNITDIR_FCL=
|
|
||||||
endif
|
|
||||||
endif
|
|
||||||
ifdef UNITDIR_FCL
|
|
||||||
override COMPILER_UNITDIR+=$(UNITDIR_FCL)
|
|
||||||
endif
|
|
||||||
endif
|
|
||||||
ifdef REQUIRE_PACKAGES_MYSQL
|
ifdef REQUIRE_PACKAGES_MYSQL
|
||||||
PACKAGEDIR_MYSQL:=$(subst /Makefile.fpc,,$(strip $(wildcard $(addsuffix /mysql/Makefile.fpc,$(PACKAGESDIR)))))
|
PACKAGEDIR_MYSQL:=$(subst /Makefile.fpc,,$(strip $(wildcard $(addsuffix /mysql/Makefile.fpc,$(PACKAGESDIR)))))
|
||||||
ifneq ($(PACKAGEDIR_MYSQL),)
|
ifneq ($(PACKAGEDIR_MYSQL),)
|
||||||
@ -697,8 +737,37 @@ ifdef UNITDIR_IBASE
|
|||||||
override COMPILER_UNITDIR+=$(UNITDIR_IBASE)
|
override COMPILER_UNITDIR+=$(UNITDIR_IBASE)
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
.PHONY: package_rtl package_paszlib package_inet package_fcl package_mysql package_ibase
|
ifdef REQUIRE_PACKAGES_FCL
|
||||||
|
PACKAGEDIR_FCL:=$(subst /Makefile.fpc,,$(strip $(wildcard $(addsuffix /fcl/Makefile.fpc,$(PACKAGESDIR)))))
|
||||||
|
ifneq ($(PACKAGEDIR_FCL),)
|
||||||
|
PACKAGEDIR_FCL:=$(firstword $(PACKAGEDIR_FCL))
|
||||||
|
ifeq ($(wildcard $(PACKAGEDIR_FCL)/$(FPCMADE)),)
|
||||||
|
override COMPILEPACKAGES+=package_fcl
|
||||||
|
package_fcl:
|
||||||
|
$(MAKE) -C $(PACKAGEDIR_FCL) all
|
||||||
|
endif
|
||||||
|
ifneq ($(wildcard $(PACKAGEDIR_FCL)/$(OS_TARGET)),)
|
||||||
|
UNITDIR_FCL=$(PACKAGEDIR_FCL)/$(OS_TARGET)
|
||||||
|
else
|
||||||
|
UNITDIR_FCL=$(PACKAGEDIR_FCL)
|
||||||
|
endif
|
||||||
|
else
|
||||||
|
PACKAGEDIR_FCL=
|
||||||
|
UNITDIR_FCL:=$(subst /Package.fpc,,$(strip $(wildcard $(addsuffix /fcl/Package.fpc,$(UNITSDIR)))))
|
||||||
|
ifneq ($(UNITDIR_FCL),)
|
||||||
|
UNITDIR_FCL:=$(firstword $(UNITDIR_FCL))
|
||||||
|
else
|
||||||
|
UNITDIR_FCL=
|
||||||
|
endif
|
||||||
|
endif
|
||||||
|
ifdef UNITDIR_FCL
|
||||||
|
override COMPILER_UNITDIR+=$(UNITDIR_FCL)
|
||||||
|
endif
|
||||||
|
endif
|
||||||
|
.PHONY: package_rtl package_paszlib package_inet package_mysql package_ibase package_fcl
|
||||||
|
ifndef NOCPUDEF
|
||||||
override FPCOPTDEF=$(CPU_TARGET)
|
override FPCOPTDEF=$(CPU_TARGET)
|
||||||
|
endif
|
||||||
ifneq ($(OS_TARGET),$(OS_SOURCE))
|
ifneq ($(OS_TARGET),$(OS_SOURCE))
|
||||||
override FPCOPT+=-T$(OS_TARGET)
|
override FPCOPT+=-T$(OS_TARGET)
|
||||||
endif
|
endif
|
||||||
@ -725,15 +794,22 @@ override FPCOPT+=-gl
|
|||||||
override FPCOPTDEF+=DEBUG
|
override FPCOPTDEF+=DEBUG
|
||||||
endif
|
endif
|
||||||
ifdef RELEASE
|
ifdef RELEASE
|
||||||
override FPCOPT+=-Xs -OG2p3 -n
|
ifeq ($(CPU_TARGET),i386)
|
||||||
|
FPCCPUOPT:=-OG2p3
|
||||||
|
else
|
||||||
|
FPCCPUOPT:=
|
||||||
|
endif
|
||||||
|
override FPCOPT+=-Xs $(FPCCPUOPT) -n
|
||||||
override FPCOPTDEF+=RELEASE
|
override FPCOPTDEF+=RELEASE
|
||||||
endif
|
endif
|
||||||
ifdef STRIP
|
ifdef STRIP
|
||||||
override FPCOPT+=-Xs
|
override FPCOPT+=-Xs
|
||||||
endif
|
endif
|
||||||
ifdef OPTIMIZE
|
ifdef OPTIMIZE
|
||||||
|
ifeq ($(CPU_TARGET),i386)
|
||||||
override FPCOPT+=-OG2p3
|
override FPCOPT+=-OG2p3
|
||||||
endif
|
endif
|
||||||
|
endif
|
||||||
ifdef VERBOSE
|
ifdef VERBOSE
|
||||||
override FPCOPT+=-vwni
|
override FPCOPT+=-vwni
|
||||||
endif
|
endif
|
||||||
@ -765,7 +841,7 @@ override FPCOPT+=-FU$(COMPILER_UNITTARGETDIR)
|
|||||||
ifeq ($(COMPILER_UNITTARGETDIR),.)
|
ifeq ($(COMPILER_UNITTARGETDIR),.)
|
||||||
override UNITTARGETDIRPREFIX=
|
override UNITTARGETDIRPREFIX=
|
||||||
else
|
else
|
||||||
override UNITTARGETDIRPREFIX=$(COMPILER_TARGETDIR)/
|
override UNITTARGETDIRPREFIX=$(COMPILER_UNITTARGETDIR)/
|
||||||
endif
|
endif
|
||||||
else
|
else
|
||||||
ifdef COMPILER_TARGETDIR
|
ifdef COMPILER_TARGETDIR
|
||||||
@ -846,11 +922,12 @@ ifdef INSTALLPPUFILES
|
|||||||
override INSTALLPPULINKFILES:=$(subst $(PPUEXT),$(OEXT),$(INSTALLPPUFILES)) $(addprefix $(STATICLIBPREFIX),$(subst $(PPUEXT),$(STATICLIBEXT),$(INSTALLPPUFILES)))
|
override INSTALLPPULINKFILES:=$(subst $(PPUEXT),$(OEXT),$(INSTALLPPUFILES)) $(addprefix $(STATICLIBPREFIX),$(subst $(PPUEXT),$(STATICLIBEXT),$(INSTALLPPUFILES)))
|
||||||
override INSTALLPPUFILES:=$(addprefix $(UNITTARGETDIRPREFIX),$(INSTALLPPUFILES))
|
override INSTALLPPUFILES:=$(addprefix $(UNITTARGETDIRPREFIX),$(INSTALLPPUFILES))
|
||||||
override INSTALLPPULINKFILES:=$(wildcard $(addprefix $(UNITTARGETDIRPREFIX),$(INSTALLPPULINKFILES)))
|
override INSTALLPPULINKFILES:=$(wildcard $(addprefix $(UNITTARGETDIRPREFIX),$(INSTALLPPULINKFILES)))
|
||||||
|
override INSTALL_CREATEPACKAGEFPC=1
|
||||||
endif
|
endif
|
||||||
ifdef INSTALLEXEFILES
|
ifdef INSTALLEXEFILES
|
||||||
override INSTALLEXEFILES:=$(addprefix $(TARGETDIRPREFIX),$(INSTALLEXEFILES))
|
override INSTALLEXEFILES:=$(addprefix $(TARGETDIRPREFIX),$(INSTALLEXEFILES))
|
||||||
endif
|
endif
|
||||||
fpc_install: $(INSTALLTARGET)
|
fpc_install: all $(INSTALLTARGET)
|
||||||
ifdef INSTALLEXEFILES
|
ifdef INSTALLEXEFILES
|
||||||
$(MKDIR) $(INSTALL_BINDIR)
|
$(MKDIR) $(INSTALL_BINDIR)
|
||||||
ifdef UPXPROG
|
ifdef UPXPROG
|
||||||
@ -858,6 +935,17 @@ ifdef UPXPROG
|
|||||||
endif
|
endif
|
||||||
$(INSTALLEXE) $(INSTALLEXEFILES) $(INSTALL_BINDIR)
|
$(INSTALLEXE) $(INSTALLEXEFILES) $(INSTALL_BINDIR)
|
||||||
endif
|
endif
|
||||||
|
ifdef INSTALL_CREATEPACKAGEFPC
|
||||||
|
ifdef FPCMAKE
|
||||||
|
ifdef PACKAGE_VERSION
|
||||||
|
ifneq ($(wildcard Makefile.fpc),)
|
||||||
|
$(FPCMAKE) -p -T$(OS_TARGET) Makefile.fpc
|
||||||
|
$(MKDIR) $(INSTALL_UNITDIR)
|
||||||
|
$(INSTALL) Package.fpc $(INSTALL_UNITDIR)
|
||||||
|
endif
|
||||||
|
endif
|
||||||
|
endif
|
||||||
|
endif
|
||||||
ifdef INSTALLPPUFILES
|
ifdef INSTALLPPUFILES
|
||||||
$(MKDIR) $(INSTALL_UNITDIR)
|
$(MKDIR) $(INSTALL_UNITDIR)
|
||||||
$(INSTALL) $(INSTALLPPUFILES) $(INSTALL_UNITDIR)
|
$(INSTALL) $(INSTALLPPUFILES) $(INSTALL_UNITDIR)
|
||||||
@ -938,6 +1026,7 @@ ZIPCMD_ZIP:=$(subst /,$(ZIPPATHSEP),$(ZIPPROG)) -Dr $(ZIPOPT) $(ZIPDESTFILE) *
|
|||||||
endif
|
endif
|
||||||
fpc_zipinstall:
|
fpc_zipinstall:
|
||||||
$(MAKE) $(ZIPTARGET) INSTALL_PREFIX=$(PACKDIR) ZIPINSTALL=1
|
$(MAKE) $(ZIPTARGET) INSTALL_PREFIX=$(PACKDIR) ZIPINSTALL=1
|
||||||
|
$(MKDIR) $(DIST_DESTDIR)
|
||||||
$(DEL) $(ZIPDESTFILE)
|
$(DEL) $(ZIPDESTFILE)
|
||||||
ifdef USEZIPWRAPPER
|
ifdef USEZIPWRAPPER
|
||||||
ifneq ($(ECHOREDIR),echo)
|
ifneq ($(ECHOREDIR),echo)
|
||||||
@ -998,7 +1087,7 @@ endif
|
|||||||
ifdef LIB_NAME
|
ifdef LIB_NAME
|
||||||
-$(DEL) $(LIB_NAME) $(LIB_FULLNAME)
|
-$(DEL) $(LIB_NAME) $(LIB_FULLNAME)
|
||||||
endif
|
endif
|
||||||
-$(DEL) $(FPCMADE) $(PPAS) link.res $(FPCEXTFILE) $(REDIRFILE)
|
-$(DEL) $(FPCMADE) Package.fpc $(PPAS) script.res link.res $(FPCEXTFILE) $(REDIRFILE)
|
||||||
fpc_distclean: clean
|
fpc_distclean: clean
|
||||||
ifdef COMPILER_UNITTARGETDIR
|
ifdef COMPILER_UNITTARGETDIR
|
||||||
TARGETDIRCLEAN=fpc_clean
|
TARGETDIRCLEAN=fpc_clean
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
[package]
|
[package]
|
||||||
#name=lazarus-codetools
|
#name=lazarus-codetools
|
||||||
name=lazarus
|
name=lazarus
|
||||||
version=0.7a
|
version=0.8
|
||||||
|
|
||||||
[target]
|
[target]
|
||||||
units=avl_tree basiccodetools codecache codetoolmanager codetools sourcelog \
|
units=avl_tree basiccodetools codecache codetoolmanager codetools sourcelog \
|
||||||
@ -19,8 +19,9 @@ units=avl_tree basiccodetools codecache codetoolmanager codetools sourcelog \
|
|||||||
[compiler]
|
[compiler]
|
||||||
options=-gl
|
options=-gl
|
||||||
unittargetdir=../units
|
unittargetdir=../units
|
||||||
targetdir=../units
|
#targetdir=../units
|
||||||
unitdir=$(COMPILER_UNITTARGETDIR)
|
unitdir=. $(COMPILER_UNITTARGETDIR)
|
||||||
|
|
||||||
|
|
||||||
[require]
|
[require]
|
||||||
packages=rtl fcl
|
packages=rtl fcl
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
#
|
#
|
||||||
# Don't edit, this file is generated by FPCMake Version 1.1 [2001/08/22]
|
# Don't edit, this file is generated by FPCMake Version 1.1 [2001/10/11]
|
||||||
#
|
#
|
||||||
default: all
|
default: all
|
||||||
override PATH:=$(subst \,/,$(PATH))
|
override PATH:=$(subst \,/,$(PATH))
|
||||||
@ -67,33 +67,28 @@ endif
|
|||||||
ifndef FPC
|
ifndef FPC
|
||||||
ifdef PP
|
ifdef PP
|
||||||
FPC=$(PP)
|
FPC=$(PP)
|
||||||
else
|
|
||||||
ifdef inUnix
|
|
||||||
CPU_SOURCE=$(shell uname -m)
|
|
||||||
ifeq (m68k,$(CPU_SOURCE))
|
|
||||||
FPC=ppc68k
|
|
||||||
else
|
|
||||||
FPC=ppc386
|
|
||||||
endif
|
endif
|
||||||
else
|
|
||||||
FPC=ppc386
|
|
||||||
endif
|
endif
|
||||||
|
ifndef FPC
|
||||||
|
FPC:=$(shell fpc -P?)
|
||||||
|
ifneq ($(findstring Error,$(PPCBIN)),)
|
||||||
|
override FPC=ppc386
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
override FPC:=$(subst $(SRCEXEEXT),,$(FPC))
|
override FPC:=$(subst $(SRCEXEEXT),,$(FPC))
|
||||||
override FPC:=$(subst \,/,$(FPC))$(SRCEXEEXT)
|
override FPC:=$(subst \,/,$(FPC))$(SRCEXEEXT)
|
||||||
ifndef OS_TARGET
|
|
||||||
OS_TARGET:=$(shell $(FPC) -iTO)
|
|
||||||
endif
|
|
||||||
ifndef OS_SOURCE
|
|
||||||
OS_SOURCE:=$(shell $(FPC) -iSO)
|
|
||||||
endif
|
|
||||||
ifndef CPU_TARGET
|
ifndef CPU_TARGET
|
||||||
CPU_TARGET:=$(shell $(FPC) -iTP)
|
CPU_TARGET:=$(shell $(FPC) -iTP)
|
||||||
endif
|
endif
|
||||||
ifndef CPU_SOURCE
|
ifndef CPU_SOURCE
|
||||||
CPU_SOURCE:=$(shell $(FPC) -iSP)
|
CPU_SOURCE:=$(shell $(FPC) -iSP)
|
||||||
endif
|
endif
|
||||||
|
ifndef OS_TARGET
|
||||||
|
OS_TARGET:=$(shell $(FPC) -iTO)
|
||||||
|
endif
|
||||||
|
ifndef OS_SOURCE
|
||||||
|
OS_SOURCE:=$(shell $(FPC) -iSO)
|
||||||
|
endif
|
||||||
ifndef FPC_VERSION
|
ifndef FPC_VERSION
|
||||||
FPC_VERSION:=$(shell $(FPC) -iV)
|
FPC_VERSION:=$(shell $(FPC) -iV)
|
||||||
endif
|
endif
|
||||||
@ -126,7 +121,7 @@ endif
|
|||||||
UNITSDIR:=$(wildcard $(FPCDIR)/units/$(OS_TARGET))
|
UNITSDIR:=$(wildcard $(FPCDIR)/units/$(OS_TARGET))
|
||||||
PACKAGESDIR:=$(wildcard $(FPCDIR) $(FPCDIR)/packages)
|
PACKAGESDIR:=$(wildcard $(FPCDIR) $(FPCDIR)/packages)
|
||||||
override PACKAGE_NAME=lazarus
|
override PACKAGE_NAME=lazarus
|
||||||
override PACKAGE_VERSION=0.7a
|
override PACKAGE_VERSION=0.8
|
||||||
override TARGET_UNITS+=syntextdrawer syneditkeycmds synedittypes syneditstrconst syneditsearch syneditmiscprocs syneditmiscclasses synedittextbuffer synedit synedithighlighter synhighlighterpas syncompletion syneditautocomplete synhighlighterhtml synhighlightercpp
|
override TARGET_UNITS+=syntextdrawer syneditkeycmds synedittypes syneditstrconst syneditsearch syneditmiscprocs syneditmiscclasses synedittextbuffer synedit synedithighlighter synhighlighterpas syncompletion syneditautocomplete synhighlighterhtml synhighlightercpp
|
||||||
override DIST_ZIPNAME=lazarus.synedit.$(ZIPSUFFIX)
|
override DIST_ZIPNAME=lazarus.synedit.$(ZIPSUFFIX)
|
||||||
override COMPILER_OPTIONS+=-gl
|
override COMPILER_OPTIONS+=-gl
|
||||||
@ -407,6 +402,16 @@ STATICLIBEXT=.a
|
|||||||
EXEEXT=.ttp
|
EXEEXT=.ttp
|
||||||
FPCMADE=fpcmade.ata
|
FPCMADE=fpcmade.ata
|
||||||
endif
|
endif
|
||||||
|
ifeq ($(OS_TARGET),beos)
|
||||||
|
PPUEXT=.ppu
|
||||||
|
ASMEXT=.s
|
||||||
|
OEXT=.o
|
||||||
|
SMARTEXT=.sl
|
||||||
|
STATICLIBEXT=.a
|
||||||
|
EXEEXT=
|
||||||
|
FPCMADE=fpcmade.be
|
||||||
|
ZIPSUFFIX=be
|
||||||
|
endif
|
||||||
ifdef REQUIRE_UNITSDIR
|
ifdef REQUIRE_UNITSDIR
|
||||||
override UNITSDIR+=$(REQUIRE_UNITSDIR)
|
override UNITSDIR+=$(REQUIRE_UNITSDIR)
|
||||||
endif
|
endif
|
||||||
@ -538,19 +543,24 @@ ifdef inUnix
|
|||||||
ifndef GCCLIBDIR
|
ifndef GCCLIBDIR
|
||||||
GCCLIBDIR:=$(shell dirname `(gcc -v 2>&1)| head -n 1| awk '{ print $$4 } '`)
|
GCCLIBDIR:=$(shell dirname `(gcc -v 2>&1)| head -n 1| awk '{ print $$4 } '`)
|
||||||
endif
|
endif
|
||||||
|
ifeq ($(OS_TARGET),linux)
|
||||||
ifndef OTHERLIBDIR
|
ifndef OTHERLIBDIR
|
||||||
OTHERLIBDIR:=$(shell grep -v "^\#" /etc/ld.so.conf | awk '{ ORS=" "; print $1 }')
|
OTHERLIBDIR:=$(shell grep -v "^\#" /etc/ld.so.conf | awk '{ ORS=" "; print $1 }')
|
||||||
endif
|
endif
|
||||||
|
endif
|
||||||
|
ifeq ($(OS_TARGET),netbsd)
|
||||||
|
OTHERLIBDIR+=/usr/pkg/lib
|
||||||
|
endif
|
||||||
export GCCLIBDIR OTHERLIB
|
export GCCLIBDIR OTHERLIB
|
||||||
endif
|
endif
|
||||||
ifeq ($(OS_TARGET),linux)
|
ifeq ($(OS_TARGET),linux)
|
||||||
REQUIRE_PACKAGES_RTL=1
|
REQUIRE_PACKAGES_RTL=1
|
||||||
REQUIRE_PACKAGES_PASZLIB=1
|
REQUIRE_PACKAGES_PASZLIB=1
|
||||||
REQUIRE_PACKAGES_INET=1
|
REQUIRE_PACKAGES_INET=1
|
||||||
REQUIRE_PACKAGES_FCL=1
|
|
||||||
REQUIRE_PACKAGES_REGEXPR=1
|
|
||||||
REQUIRE_PACKAGES_MYSQL=1
|
REQUIRE_PACKAGES_MYSQL=1
|
||||||
REQUIRE_PACKAGES_IBASE=1
|
REQUIRE_PACKAGES_IBASE=1
|
||||||
|
REQUIRE_PACKAGES_FCL=1
|
||||||
|
REQUIRE_PACKAGES_REGEXPR=1
|
||||||
endif
|
endif
|
||||||
ifeq ($(OS_TARGET),go32v2)
|
ifeq ($(OS_TARGET),go32v2)
|
||||||
REQUIRE_PACKAGES_RTL=1
|
REQUIRE_PACKAGES_RTL=1
|
||||||
@ -563,8 +573,6 @@ REQUIRE_PACKAGES_RTL=1
|
|||||||
REQUIRE_PACKAGES_PASZLIB=1
|
REQUIRE_PACKAGES_PASZLIB=1
|
||||||
REQUIRE_PACKAGES_FCL=1
|
REQUIRE_PACKAGES_FCL=1
|
||||||
REQUIRE_PACKAGES_REGEXPR=1
|
REQUIRE_PACKAGES_REGEXPR=1
|
||||||
REQUIRE_PACKAGES_MYSQL=1
|
|
||||||
REQUIRE_PACKAGES_IBASE=1
|
|
||||||
endif
|
endif
|
||||||
ifeq ($(OS_TARGET),os2)
|
ifeq ($(OS_TARGET),os2)
|
||||||
REQUIRE_PACKAGES_RTL=1
|
REQUIRE_PACKAGES_RTL=1
|
||||||
@ -578,8 +586,6 @@ REQUIRE_PACKAGES_PASZLIB=1
|
|||||||
REQUIRE_PACKAGES_INET=1
|
REQUIRE_PACKAGES_INET=1
|
||||||
REQUIRE_PACKAGES_FCL=1
|
REQUIRE_PACKAGES_FCL=1
|
||||||
REQUIRE_PACKAGES_REGEXPR=1
|
REQUIRE_PACKAGES_REGEXPR=1
|
||||||
REQUIRE_PACKAGES_MYSQL=1
|
|
||||||
REQUIRE_PACKAGES_IBASE=1
|
|
||||||
endif
|
endif
|
||||||
ifeq ($(OS_TARGET),beos)
|
ifeq ($(OS_TARGET),beos)
|
||||||
REQUIRE_PACKAGES_RTL=1
|
REQUIRE_PACKAGES_RTL=1
|
||||||
@ -686,60 +692,6 @@ ifdef UNITDIR_INET
|
|||||||
override COMPILER_UNITDIR+=$(UNITDIR_INET)
|
override COMPILER_UNITDIR+=$(UNITDIR_INET)
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
ifdef REQUIRE_PACKAGES_FCL
|
|
||||||
PACKAGEDIR_FCL:=$(subst /Makefile.fpc,,$(strip $(wildcard $(addsuffix /fcl/Makefile.fpc,$(PACKAGESDIR)))))
|
|
||||||
ifneq ($(PACKAGEDIR_FCL),)
|
|
||||||
PACKAGEDIR_FCL:=$(firstword $(PACKAGEDIR_FCL))
|
|
||||||
ifeq ($(wildcard $(PACKAGEDIR_FCL)/$(FPCMADE)),)
|
|
||||||
override COMPILEPACKAGES+=package_fcl
|
|
||||||
package_fcl:
|
|
||||||
$(MAKE) -C $(PACKAGEDIR_FCL) all
|
|
||||||
endif
|
|
||||||
ifneq ($(wildcard $(PACKAGEDIR_FCL)/$(OS_TARGET)),)
|
|
||||||
UNITDIR_FCL=$(PACKAGEDIR_FCL)/$(OS_TARGET)
|
|
||||||
else
|
|
||||||
UNITDIR_FCL=$(PACKAGEDIR_FCL)
|
|
||||||
endif
|
|
||||||
else
|
|
||||||
PACKAGEDIR_FCL=
|
|
||||||
UNITDIR_FCL:=$(subst /Package.fpc,,$(strip $(wildcard $(addsuffix /fcl/Package.fpc,$(UNITSDIR)))))
|
|
||||||
ifneq ($(UNITDIR_FCL),)
|
|
||||||
UNITDIR_FCL:=$(firstword $(UNITDIR_FCL))
|
|
||||||
else
|
|
||||||
UNITDIR_FCL=
|
|
||||||
endif
|
|
||||||
endif
|
|
||||||
ifdef UNITDIR_FCL
|
|
||||||
override COMPILER_UNITDIR+=$(UNITDIR_FCL)
|
|
||||||
endif
|
|
||||||
endif
|
|
||||||
ifdef REQUIRE_PACKAGES_REGEXPR
|
|
||||||
PACKAGEDIR_REGEXPR:=$(subst /Makefile.fpc,,$(strip $(wildcard $(addsuffix /regexpr/Makefile.fpc,$(PACKAGESDIR)))))
|
|
||||||
ifneq ($(PACKAGEDIR_REGEXPR),)
|
|
||||||
PACKAGEDIR_REGEXPR:=$(firstword $(PACKAGEDIR_REGEXPR))
|
|
||||||
ifeq ($(wildcard $(PACKAGEDIR_REGEXPR)/$(FPCMADE)),)
|
|
||||||
override COMPILEPACKAGES+=package_regexpr
|
|
||||||
package_regexpr:
|
|
||||||
$(MAKE) -C $(PACKAGEDIR_REGEXPR) all
|
|
||||||
endif
|
|
||||||
ifneq ($(wildcard $(PACKAGEDIR_REGEXPR)/$(OS_TARGET)),)
|
|
||||||
UNITDIR_REGEXPR=$(PACKAGEDIR_REGEXPR)/$(OS_TARGET)
|
|
||||||
else
|
|
||||||
UNITDIR_REGEXPR=$(PACKAGEDIR_REGEXPR)
|
|
||||||
endif
|
|
||||||
else
|
|
||||||
PACKAGEDIR_REGEXPR=
|
|
||||||
UNITDIR_REGEXPR:=$(subst /Package.fpc,,$(strip $(wildcard $(addsuffix /regexpr/Package.fpc,$(UNITSDIR)))))
|
|
||||||
ifneq ($(UNITDIR_REGEXPR),)
|
|
||||||
UNITDIR_REGEXPR:=$(firstword $(UNITDIR_REGEXPR))
|
|
||||||
else
|
|
||||||
UNITDIR_REGEXPR=
|
|
||||||
endif
|
|
||||||
endif
|
|
||||||
ifdef UNITDIR_REGEXPR
|
|
||||||
override COMPILER_UNITDIR+=$(UNITDIR_REGEXPR)
|
|
||||||
endif
|
|
||||||
endif
|
|
||||||
ifdef REQUIRE_PACKAGES_MYSQL
|
ifdef REQUIRE_PACKAGES_MYSQL
|
||||||
PACKAGEDIR_MYSQL:=$(subst /Makefile.fpc,,$(strip $(wildcard $(addsuffix /mysql/Makefile.fpc,$(PACKAGESDIR)))))
|
PACKAGEDIR_MYSQL:=$(subst /Makefile.fpc,,$(strip $(wildcard $(addsuffix /mysql/Makefile.fpc,$(PACKAGESDIR)))))
|
||||||
ifneq ($(PACKAGEDIR_MYSQL),)
|
ifneq ($(PACKAGEDIR_MYSQL),)
|
||||||
@ -794,8 +746,64 @@ ifdef UNITDIR_IBASE
|
|||||||
override COMPILER_UNITDIR+=$(UNITDIR_IBASE)
|
override COMPILER_UNITDIR+=$(UNITDIR_IBASE)
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
.PHONY: package_rtl package_paszlib package_inet package_fcl package_regexpr package_mysql package_ibase
|
ifdef REQUIRE_PACKAGES_FCL
|
||||||
|
PACKAGEDIR_FCL:=$(subst /Makefile.fpc,,$(strip $(wildcard $(addsuffix /fcl/Makefile.fpc,$(PACKAGESDIR)))))
|
||||||
|
ifneq ($(PACKAGEDIR_FCL),)
|
||||||
|
PACKAGEDIR_FCL:=$(firstword $(PACKAGEDIR_FCL))
|
||||||
|
ifeq ($(wildcard $(PACKAGEDIR_FCL)/$(FPCMADE)),)
|
||||||
|
override COMPILEPACKAGES+=package_fcl
|
||||||
|
package_fcl:
|
||||||
|
$(MAKE) -C $(PACKAGEDIR_FCL) all
|
||||||
|
endif
|
||||||
|
ifneq ($(wildcard $(PACKAGEDIR_FCL)/$(OS_TARGET)),)
|
||||||
|
UNITDIR_FCL=$(PACKAGEDIR_FCL)/$(OS_TARGET)
|
||||||
|
else
|
||||||
|
UNITDIR_FCL=$(PACKAGEDIR_FCL)
|
||||||
|
endif
|
||||||
|
else
|
||||||
|
PACKAGEDIR_FCL=
|
||||||
|
UNITDIR_FCL:=$(subst /Package.fpc,,$(strip $(wildcard $(addsuffix /fcl/Package.fpc,$(UNITSDIR)))))
|
||||||
|
ifneq ($(UNITDIR_FCL),)
|
||||||
|
UNITDIR_FCL:=$(firstword $(UNITDIR_FCL))
|
||||||
|
else
|
||||||
|
UNITDIR_FCL=
|
||||||
|
endif
|
||||||
|
endif
|
||||||
|
ifdef UNITDIR_FCL
|
||||||
|
override COMPILER_UNITDIR+=$(UNITDIR_FCL)
|
||||||
|
endif
|
||||||
|
endif
|
||||||
|
ifdef REQUIRE_PACKAGES_REGEXPR
|
||||||
|
PACKAGEDIR_REGEXPR:=$(subst /Makefile.fpc,,$(strip $(wildcard $(addsuffix /regexpr/Makefile.fpc,$(PACKAGESDIR)))))
|
||||||
|
ifneq ($(PACKAGEDIR_REGEXPR),)
|
||||||
|
PACKAGEDIR_REGEXPR:=$(firstword $(PACKAGEDIR_REGEXPR))
|
||||||
|
ifeq ($(wildcard $(PACKAGEDIR_REGEXPR)/$(FPCMADE)),)
|
||||||
|
override COMPILEPACKAGES+=package_regexpr
|
||||||
|
package_regexpr:
|
||||||
|
$(MAKE) -C $(PACKAGEDIR_REGEXPR) all
|
||||||
|
endif
|
||||||
|
ifneq ($(wildcard $(PACKAGEDIR_REGEXPR)/$(OS_TARGET)),)
|
||||||
|
UNITDIR_REGEXPR=$(PACKAGEDIR_REGEXPR)/$(OS_TARGET)
|
||||||
|
else
|
||||||
|
UNITDIR_REGEXPR=$(PACKAGEDIR_REGEXPR)
|
||||||
|
endif
|
||||||
|
else
|
||||||
|
PACKAGEDIR_REGEXPR=
|
||||||
|
UNITDIR_REGEXPR:=$(subst /Package.fpc,,$(strip $(wildcard $(addsuffix /regexpr/Package.fpc,$(UNITSDIR)))))
|
||||||
|
ifneq ($(UNITDIR_REGEXPR),)
|
||||||
|
UNITDIR_REGEXPR:=$(firstword $(UNITDIR_REGEXPR))
|
||||||
|
else
|
||||||
|
UNITDIR_REGEXPR=
|
||||||
|
endif
|
||||||
|
endif
|
||||||
|
ifdef UNITDIR_REGEXPR
|
||||||
|
override COMPILER_UNITDIR+=$(UNITDIR_REGEXPR)
|
||||||
|
endif
|
||||||
|
endif
|
||||||
|
.PHONY: package_rtl package_paszlib package_inet package_mysql package_ibase package_fcl package_regexpr
|
||||||
|
ifndef NOCPUDEF
|
||||||
override FPCOPTDEF=$(CPU_TARGET)
|
override FPCOPTDEF=$(CPU_TARGET)
|
||||||
|
endif
|
||||||
ifneq ($(OS_TARGET),$(OS_SOURCE))
|
ifneq ($(OS_TARGET),$(OS_SOURCE))
|
||||||
override FPCOPT+=-T$(OS_TARGET)
|
override FPCOPT+=-T$(OS_TARGET)
|
||||||
endif
|
endif
|
||||||
@ -822,15 +830,22 @@ override FPCOPT+=-gl
|
|||||||
override FPCOPTDEF+=DEBUG
|
override FPCOPTDEF+=DEBUG
|
||||||
endif
|
endif
|
||||||
ifdef RELEASE
|
ifdef RELEASE
|
||||||
override FPCOPT+=-Xs -OG2p3 -n
|
ifeq ($(CPU_TARGET),i386)
|
||||||
|
FPCCPUOPT:=-OG2p3
|
||||||
|
else
|
||||||
|
FPCCPUOPT:=
|
||||||
|
endif
|
||||||
|
override FPCOPT+=-Xs $(FPCCPUOPT) -n
|
||||||
override FPCOPTDEF+=RELEASE
|
override FPCOPTDEF+=RELEASE
|
||||||
endif
|
endif
|
||||||
ifdef STRIP
|
ifdef STRIP
|
||||||
override FPCOPT+=-Xs
|
override FPCOPT+=-Xs
|
||||||
endif
|
endif
|
||||||
ifdef OPTIMIZE
|
ifdef OPTIMIZE
|
||||||
|
ifeq ($(CPU_TARGET),i386)
|
||||||
override FPCOPT+=-OG2p3
|
override FPCOPT+=-OG2p3
|
||||||
endif
|
endif
|
||||||
|
endif
|
||||||
ifdef VERBOSE
|
ifdef VERBOSE
|
||||||
override FPCOPT+=-vwni
|
override FPCOPT+=-vwni
|
||||||
endif
|
endif
|
||||||
@ -1108,7 +1123,7 @@ endif
|
|||||||
ifdef LIB_NAME
|
ifdef LIB_NAME
|
||||||
-$(DEL) $(LIB_NAME) $(LIB_FULLNAME)
|
-$(DEL) $(LIB_NAME) $(LIB_FULLNAME)
|
||||||
endif
|
endif
|
||||||
-$(DEL) $(FPCMADE) Package.fpc $(PPAS) link.res $(FPCEXTFILE) $(REDIRFILE)
|
-$(DEL) $(FPCMADE) Package.fpc $(PPAS) script.res link.res $(FPCEXTFILE) $(REDIRFILE)
|
||||||
fpc_distclean: clean
|
fpc_distclean: clean
|
||||||
ifdef COMPILER_UNITTARGETDIR
|
ifdef COMPILER_UNITTARGETDIR
|
||||||
TARGETDIRCLEAN=fpc_clean
|
TARGETDIRCLEAN=fpc_clean
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
[package]
|
[package]
|
||||||
#name=lazarus-synedit
|
#name=lazarus-synedit
|
||||||
name=lazarus
|
name=lazarus
|
||||||
version=0.7a
|
version=0.8
|
||||||
|
|
||||||
[target]
|
[target]
|
||||||
units=syntextdrawer syneditkeycmds synedittypes syneditstrconst \
|
units=syntextdrawer syneditkeycmds synedittypes syneditstrconst \
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
#
|
#
|
||||||
# Don't edit, this file is generated by FPCMake Version 1.1 [2001/08/22]
|
# Don't edit, this file is generated by FPCMake Version 1.1 [2001/10/11]
|
||||||
#
|
#
|
||||||
default: all
|
default: all
|
||||||
override PATH:=$(subst \,/,$(PATH))
|
override PATH:=$(subst \,/,$(PATH))
|
||||||
@ -67,33 +67,28 @@ endif
|
|||||||
ifndef FPC
|
ifndef FPC
|
||||||
ifdef PP
|
ifdef PP
|
||||||
FPC=$(PP)
|
FPC=$(PP)
|
||||||
else
|
|
||||||
ifdef inUnix
|
|
||||||
CPU_SOURCE=$(shell uname -m)
|
|
||||||
ifeq (m68k,$(CPU_SOURCE))
|
|
||||||
FPC=ppc68k
|
|
||||||
else
|
|
||||||
FPC=ppc386
|
|
||||||
endif
|
endif
|
||||||
else
|
|
||||||
FPC=ppc386
|
|
||||||
endif
|
endif
|
||||||
|
ifndef FPC
|
||||||
|
FPC:=$(shell fpc -P?)
|
||||||
|
ifneq ($(findstring Error,$(PPCBIN)),)
|
||||||
|
override FPC=ppc386
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
override FPC:=$(subst $(SRCEXEEXT),,$(FPC))
|
override FPC:=$(subst $(SRCEXEEXT),,$(FPC))
|
||||||
override FPC:=$(subst \,/,$(FPC))$(SRCEXEEXT)
|
override FPC:=$(subst \,/,$(FPC))$(SRCEXEEXT)
|
||||||
ifndef OS_TARGET
|
|
||||||
OS_TARGET:=$(shell $(FPC) -iTO)
|
|
||||||
endif
|
|
||||||
ifndef OS_SOURCE
|
|
||||||
OS_SOURCE:=$(shell $(FPC) -iSO)
|
|
||||||
endif
|
|
||||||
ifndef CPU_TARGET
|
ifndef CPU_TARGET
|
||||||
CPU_TARGET:=$(shell $(FPC) -iTP)
|
CPU_TARGET:=$(shell $(FPC) -iTP)
|
||||||
endif
|
endif
|
||||||
ifndef CPU_SOURCE
|
ifndef CPU_SOURCE
|
||||||
CPU_SOURCE:=$(shell $(FPC) -iSP)
|
CPU_SOURCE:=$(shell $(FPC) -iSP)
|
||||||
endif
|
endif
|
||||||
|
ifndef OS_TARGET
|
||||||
|
OS_TARGET:=$(shell $(FPC) -iTO)
|
||||||
|
endif
|
||||||
|
ifndef OS_SOURCE
|
||||||
|
OS_SOURCE:=$(shell $(FPC) -iSO)
|
||||||
|
endif
|
||||||
ifndef FPC_VERSION
|
ifndef FPC_VERSION
|
||||||
FPC_VERSION:=$(shell $(FPC) -iV)
|
FPC_VERSION:=$(shell $(FPC) -iV)
|
||||||
endif
|
endif
|
||||||
@ -408,6 +403,16 @@ STATICLIBEXT=.a
|
|||||||
EXEEXT=.ttp
|
EXEEXT=.ttp
|
||||||
FPCMADE=fpcmade.ata
|
FPCMADE=fpcmade.ata
|
||||||
endif
|
endif
|
||||||
|
ifeq ($(OS_TARGET),beos)
|
||||||
|
PPUEXT=.ppu
|
||||||
|
ASMEXT=.s
|
||||||
|
OEXT=.o
|
||||||
|
SMARTEXT=.sl
|
||||||
|
STATICLIBEXT=.a
|
||||||
|
EXEEXT=
|
||||||
|
FPCMADE=fpcmade.be
|
||||||
|
ZIPSUFFIX=be
|
||||||
|
endif
|
||||||
ifdef REQUIRE_UNITSDIR
|
ifdef REQUIRE_UNITSDIR
|
||||||
override UNITSDIR+=$(REQUIRE_UNITSDIR)
|
override UNITSDIR+=$(REQUIRE_UNITSDIR)
|
||||||
endif
|
endif
|
||||||
@ -535,7 +540,9 @@ endif
|
|||||||
ifndef INSTALL_DATADIR
|
ifndef INSTALL_DATADIR
|
||||||
INSTALL_DATADIR=$(INSTALL_BASEDIR)
|
INSTALL_DATADIR=$(INSTALL_BASEDIR)
|
||||||
endif
|
endif
|
||||||
|
ifndef NOCPUDEF
|
||||||
override FPCOPTDEF=$(CPU_TARGET)
|
override FPCOPTDEF=$(CPU_TARGET)
|
||||||
|
endif
|
||||||
ifneq ($(OS_TARGET),$(OS_SOURCE))
|
ifneq ($(OS_TARGET),$(OS_SOURCE))
|
||||||
override FPCOPT+=-T$(OS_TARGET)
|
override FPCOPT+=-T$(OS_TARGET)
|
||||||
endif
|
endif
|
||||||
@ -562,15 +569,22 @@ override FPCOPT+=-gl
|
|||||||
override FPCOPTDEF+=DEBUG
|
override FPCOPTDEF+=DEBUG
|
||||||
endif
|
endif
|
||||||
ifdef RELEASE
|
ifdef RELEASE
|
||||||
override FPCOPT+=-Xs -OG2p3 -n
|
ifeq ($(CPU_TARGET),i386)
|
||||||
|
FPCCPUOPT:=-OG2p3
|
||||||
|
else
|
||||||
|
FPCCPUOPT:=
|
||||||
|
endif
|
||||||
|
override FPCOPT+=-Xs $(FPCCPUOPT) -n
|
||||||
override FPCOPTDEF+=RELEASE
|
override FPCOPTDEF+=RELEASE
|
||||||
endif
|
endif
|
||||||
ifdef STRIP
|
ifdef STRIP
|
||||||
override FPCOPT+=-Xs
|
override FPCOPT+=-Xs
|
||||||
endif
|
endif
|
||||||
ifdef OPTIMIZE
|
ifdef OPTIMIZE
|
||||||
|
ifeq ($(CPU_TARGET),i386)
|
||||||
override FPCOPT+=-OG2p3
|
override FPCOPT+=-OG2p3
|
||||||
endif
|
endif
|
||||||
|
endif
|
||||||
ifdef VERBOSE
|
ifdef VERBOSE
|
||||||
override FPCOPT+=-vwni
|
override FPCOPT+=-vwni
|
||||||
endif
|
endif
|
||||||
@ -746,7 +760,7 @@ endif
|
|||||||
ifdef LIB_NAME
|
ifdef LIB_NAME
|
||||||
-$(DEL) $(LIB_NAME) $(LIB_FULLNAME)
|
-$(DEL) $(LIB_NAME) $(LIB_FULLNAME)
|
||||||
endif
|
endif
|
||||||
-$(DEL) $(FPCMADE) Package.fpc $(PPAS) link.res $(FPCEXTFILE) $(REDIRFILE)
|
-$(DEL) $(FPCMADE) Package.fpc $(PPAS) script.res link.res $(FPCEXTFILE) $(REDIRFILE)
|
||||||
fpc_distclean: clean
|
fpc_distclean: clean
|
||||||
ifdef COMPILER_UNITTARGETDIR
|
ifdef COMPILER_UNITTARGETDIR
|
||||||
TARGETDIRCLEAN=fpc_clean
|
TARGETDIRCLEAN=fpc_clean
|
||||||
|
1205
lcl/interfaces/qt/Makefile
Normal file
1205
lcl/interfaces/qt/Makefile
Normal file
File diff suppressed because it is too large
Load Diff
35
lcl/interfaces/qt/Makefile.fpc
Normal file
35
lcl/interfaces/qt/Makefile.fpc
Normal file
@ -0,0 +1,35 @@
|
|||||||
|
# $Id$
|
||||||
|
#
|
||||||
|
# Makefile.fpc for Lazarus for Free Pascal
|
||||||
|
#
|
||||||
|
# test
|
||||||
|
|
||||||
|
[package]
|
||||||
|
name=lazarus-qt
|
||||||
|
version=0.7a
|
||||||
|
|
||||||
|
[require]
|
||||||
|
packages=rtl fcl
|
||||||
|
|
||||||
|
[target]
|
||||||
|
units=interfaces
|
||||||
|
|
||||||
|
[compiler]
|
||||||
|
options=-gl
|
||||||
|
unittargetdir=../../units/qt
|
||||||
|
unitdir=$(COMPILER_UNITTARGETDIR) ../../units
|
||||||
|
includedir=.
|
||||||
|
|
||||||
|
[prerules]
|
||||||
|
DIST_DESTDIR=$(BASEDIR)/../../../dist
|
||||||
|
|
||||||
|
[rules]
|
||||||
|
.PHONY: all makefile makefiles
|
||||||
|
|
||||||
|
all:
|
||||||
|
$(MAKE) --assume-new=interfaces.pp interfaces$(PPUEXT)
|
||||||
|
|
||||||
|
makefile: Makefile.fpc
|
||||||
|
-$(FPCMAKE) -w
|
||||||
|
|
||||||
|
makefiles: makefile
|
@ -1,5 +1,5 @@
|
|||||||
#
|
#
|
||||||
# Don't edit, this file is generated by FPCMake Version 1.1 [2001/08/22]
|
# Don't edit, this file is generated by FPCMake Version 1.1 [2001/10/11]
|
||||||
#
|
#
|
||||||
default: all
|
default: all
|
||||||
override PATH:=$(subst \,/,$(PATH))
|
override PATH:=$(subst \,/,$(PATH))
|
||||||
@ -67,33 +67,28 @@ endif
|
|||||||
ifndef FPC
|
ifndef FPC
|
||||||
ifdef PP
|
ifdef PP
|
||||||
FPC=$(PP)
|
FPC=$(PP)
|
||||||
else
|
|
||||||
ifdef inUnix
|
|
||||||
CPU_SOURCE=$(shell uname -m)
|
|
||||||
ifeq (m68k,$(CPU_SOURCE))
|
|
||||||
FPC=ppc68k
|
|
||||||
else
|
|
||||||
FPC=ppc386
|
|
||||||
endif
|
endif
|
||||||
else
|
|
||||||
FPC=ppc386
|
|
||||||
endif
|
endif
|
||||||
|
ifndef FPC
|
||||||
|
FPC:=$(shell fpc -P?)
|
||||||
|
ifneq ($(findstring Error,$(PPCBIN)),)
|
||||||
|
override FPC=ppc386
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
override FPC:=$(subst $(SRCEXEEXT),,$(FPC))
|
override FPC:=$(subst $(SRCEXEEXT),,$(FPC))
|
||||||
override FPC:=$(subst \,/,$(FPC))$(SRCEXEEXT)
|
override FPC:=$(subst \,/,$(FPC))$(SRCEXEEXT)
|
||||||
ifndef OS_TARGET
|
|
||||||
OS_TARGET:=$(shell $(FPC) -iTO)
|
|
||||||
endif
|
|
||||||
ifndef OS_SOURCE
|
|
||||||
OS_SOURCE:=$(shell $(FPC) -iSO)
|
|
||||||
endif
|
|
||||||
ifndef CPU_TARGET
|
ifndef CPU_TARGET
|
||||||
CPU_TARGET:=$(shell $(FPC) -iTP)
|
CPU_TARGET:=$(shell $(FPC) -iTP)
|
||||||
endif
|
endif
|
||||||
ifndef CPU_SOURCE
|
ifndef CPU_SOURCE
|
||||||
CPU_SOURCE:=$(shell $(FPC) -iSP)
|
CPU_SOURCE:=$(shell $(FPC) -iSP)
|
||||||
endif
|
endif
|
||||||
|
ifndef OS_TARGET
|
||||||
|
OS_TARGET:=$(shell $(FPC) -iTO)
|
||||||
|
endif
|
||||||
|
ifndef OS_SOURCE
|
||||||
|
OS_SOURCE:=$(shell $(FPC) -iSO)
|
||||||
|
endif
|
||||||
ifndef FPC_VERSION
|
ifndef FPC_VERSION
|
||||||
FPC_VERSION:=$(shell $(FPC) -iV)
|
FPC_VERSION:=$(shell $(FPC) -iV)
|
||||||
endif
|
endif
|
||||||
@ -403,6 +398,16 @@ STATICLIBEXT=.a
|
|||||||
EXEEXT=.ttp
|
EXEEXT=.ttp
|
||||||
FPCMADE=fpcmade.ata
|
FPCMADE=fpcmade.ata
|
||||||
endif
|
endif
|
||||||
|
ifeq ($(OS_TARGET),beos)
|
||||||
|
PPUEXT=.ppu
|
||||||
|
ASMEXT=.s
|
||||||
|
OEXT=.o
|
||||||
|
SMARTEXT=.sl
|
||||||
|
STATICLIBEXT=.a
|
||||||
|
EXEEXT=
|
||||||
|
FPCMADE=fpcmade.be
|
||||||
|
ZIPSUFFIX=be
|
||||||
|
endif
|
||||||
ifdef REQUIRE_UNITSDIR
|
ifdef REQUIRE_UNITSDIR
|
||||||
override UNITSDIR+=$(REQUIRE_UNITSDIR)
|
override UNITSDIR+=$(REQUIRE_UNITSDIR)
|
||||||
endif
|
endif
|
||||||
@ -530,7 +535,9 @@ endif
|
|||||||
ifndef INSTALL_DATADIR
|
ifndef INSTALL_DATADIR
|
||||||
INSTALL_DATADIR=$(INSTALL_BASEDIR)
|
INSTALL_DATADIR=$(INSTALL_BASEDIR)
|
||||||
endif
|
endif
|
||||||
|
ifndef NOCPUDEF
|
||||||
override FPCOPTDEF=$(CPU_TARGET)
|
override FPCOPTDEF=$(CPU_TARGET)
|
||||||
|
endif
|
||||||
ifneq ($(OS_TARGET),$(OS_SOURCE))
|
ifneq ($(OS_TARGET),$(OS_SOURCE))
|
||||||
override FPCOPT+=-T$(OS_TARGET)
|
override FPCOPT+=-T$(OS_TARGET)
|
||||||
endif
|
endif
|
||||||
@ -557,15 +564,22 @@ override FPCOPT+=-gl
|
|||||||
override FPCOPTDEF+=DEBUG
|
override FPCOPTDEF+=DEBUG
|
||||||
endif
|
endif
|
||||||
ifdef RELEASE
|
ifdef RELEASE
|
||||||
override FPCOPT+=-Xs -OG2p3 -n
|
ifeq ($(CPU_TARGET),i386)
|
||||||
|
FPCCPUOPT:=-OG2p3
|
||||||
|
else
|
||||||
|
FPCCPUOPT:=
|
||||||
|
endif
|
||||||
|
override FPCOPT+=-Xs $(FPCCPUOPT) -n
|
||||||
override FPCOPTDEF+=RELEASE
|
override FPCOPTDEF+=RELEASE
|
||||||
endif
|
endif
|
||||||
ifdef STRIP
|
ifdef STRIP
|
||||||
override FPCOPT+=-Xs
|
override FPCOPT+=-Xs
|
||||||
endif
|
endif
|
||||||
ifdef OPTIMIZE
|
ifdef OPTIMIZE
|
||||||
|
ifeq ($(CPU_TARGET),i386)
|
||||||
override FPCOPT+=-OG2p3
|
override FPCOPT+=-OG2p3
|
||||||
endif
|
endif
|
||||||
|
endif
|
||||||
ifdef VERBOSE
|
ifdef VERBOSE
|
||||||
override FPCOPT+=-vwni
|
override FPCOPT+=-vwni
|
||||||
endif
|
endif
|
||||||
@ -741,7 +755,7 @@ endif
|
|||||||
ifdef LIB_NAME
|
ifdef LIB_NAME
|
||||||
-$(DEL) $(LIB_NAME) $(LIB_FULLNAME)
|
-$(DEL) $(LIB_NAME) $(LIB_FULLNAME)
|
||||||
endif
|
endif
|
||||||
-$(DEL) $(FPCMADE) Package.fpc $(PPAS) link.res $(FPCEXTFILE) $(REDIRFILE)
|
-$(DEL) $(FPCMADE) Package.fpc $(PPAS) script.res link.res $(FPCEXTFILE) $(REDIRFILE)
|
||||||
fpc_distclean: clean
|
fpc_distclean: clean
|
||||||
ifdef COMPILER_UNITTARGETDIR
|
ifdef COMPILER_UNITTARGETDIR
|
||||||
TARGETDIRCLEAN=fpc_clean
|
TARGETDIRCLEAN=fpc_clean
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
#
|
#
|
||||||
# Don't edit, this file is generated by FPCMake Version 1.1 [2001/08/22]
|
# Don't edit, this file is generated by FPCMake Version 1.1 [2001/10/11]
|
||||||
#
|
#
|
||||||
default: all
|
default: all
|
||||||
override PATH:=$(subst \,/,$(PATH))
|
override PATH:=$(subst \,/,$(PATH))
|
||||||
@ -67,33 +67,28 @@ endif
|
|||||||
ifndef FPC
|
ifndef FPC
|
||||||
ifdef PP
|
ifdef PP
|
||||||
FPC=$(PP)
|
FPC=$(PP)
|
||||||
else
|
|
||||||
ifdef inUnix
|
|
||||||
CPU_SOURCE=$(shell uname -m)
|
|
||||||
ifeq (m68k,$(CPU_SOURCE))
|
|
||||||
FPC=ppc68k
|
|
||||||
else
|
|
||||||
FPC=ppc386
|
|
||||||
endif
|
endif
|
||||||
else
|
|
||||||
FPC=ppc386
|
|
||||||
endif
|
endif
|
||||||
|
ifndef FPC
|
||||||
|
FPC:=$(shell fpc -P?)
|
||||||
|
ifneq ($(findstring Error,$(PPCBIN)),)
|
||||||
|
override FPC=ppc386
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
override FPC:=$(subst $(SRCEXEEXT),,$(FPC))
|
override FPC:=$(subst $(SRCEXEEXT),,$(FPC))
|
||||||
override FPC:=$(subst \,/,$(FPC))$(SRCEXEEXT)
|
override FPC:=$(subst \,/,$(FPC))$(SRCEXEEXT)
|
||||||
ifndef OS_TARGET
|
|
||||||
OS_TARGET:=$(shell $(FPC) -iTO)
|
|
||||||
endif
|
|
||||||
ifndef OS_SOURCE
|
|
||||||
OS_SOURCE:=$(shell $(FPC) -iSO)
|
|
||||||
endif
|
|
||||||
ifndef CPU_TARGET
|
ifndef CPU_TARGET
|
||||||
CPU_TARGET:=$(shell $(FPC) -iTP)
|
CPU_TARGET:=$(shell $(FPC) -iTP)
|
||||||
endif
|
endif
|
||||||
ifndef CPU_SOURCE
|
ifndef CPU_SOURCE
|
||||||
CPU_SOURCE:=$(shell $(FPC) -iSP)
|
CPU_SOURCE:=$(shell $(FPC) -iSP)
|
||||||
endif
|
endif
|
||||||
|
ifndef OS_TARGET
|
||||||
|
OS_TARGET:=$(shell $(FPC) -iTO)
|
||||||
|
endif
|
||||||
|
ifndef OS_SOURCE
|
||||||
|
OS_SOURCE:=$(shell $(FPC) -iSO)
|
||||||
|
endif
|
||||||
ifndef FPC_VERSION
|
ifndef FPC_VERSION
|
||||||
FPC_VERSION:=$(shell $(FPC) -iV)
|
FPC_VERSION:=$(shell $(FPC) -iV)
|
||||||
endif
|
endif
|
||||||
@ -407,6 +402,16 @@ STATICLIBEXT=.a
|
|||||||
EXEEXT=.ttp
|
EXEEXT=.ttp
|
||||||
FPCMADE=fpcmade.ata
|
FPCMADE=fpcmade.ata
|
||||||
endif
|
endif
|
||||||
|
ifeq ($(OS_TARGET),beos)
|
||||||
|
PPUEXT=.ppu
|
||||||
|
ASMEXT=.s
|
||||||
|
OEXT=.o
|
||||||
|
SMARTEXT=.sl
|
||||||
|
STATICLIBEXT=.a
|
||||||
|
EXEEXT=
|
||||||
|
FPCMADE=fpcmade.be
|
||||||
|
ZIPSUFFIX=be
|
||||||
|
endif
|
||||||
ifdef REQUIRE_UNITSDIR
|
ifdef REQUIRE_UNITSDIR
|
||||||
override UNITSDIR+=$(REQUIRE_UNITSDIR)
|
override UNITSDIR+=$(REQUIRE_UNITSDIR)
|
||||||
endif
|
endif
|
||||||
@ -538,18 +543,23 @@ ifdef inUnix
|
|||||||
ifndef GCCLIBDIR
|
ifndef GCCLIBDIR
|
||||||
GCCLIBDIR:=$(shell dirname `(gcc -v 2>&1)| head -n 1| awk '{ print $$4 } '`)
|
GCCLIBDIR:=$(shell dirname `(gcc -v 2>&1)| head -n 1| awk '{ print $$4 } '`)
|
||||||
endif
|
endif
|
||||||
|
ifeq ($(OS_TARGET),linux)
|
||||||
ifndef OTHERLIBDIR
|
ifndef OTHERLIBDIR
|
||||||
OTHERLIBDIR:=$(shell grep -v "^\#" /etc/ld.so.conf | awk '{ ORS=" "; print $1 }')
|
OTHERLIBDIR:=$(shell grep -v "^\#" /etc/ld.so.conf | awk '{ ORS=" "; print $1 }')
|
||||||
endif
|
endif
|
||||||
|
endif
|
||||||
|
ifeq ($(OS_TARGET),netbsd)
|
||||||
|
OTHERLIBDIR+=/usr/pkg/lib
|
||||||
|
endif
|
||||||
export GCCLIBDIR OTHERLIB
|
export GCCLIBDIR OTHERLIB
|
||||||
endif
|
endif
|
||||||
ifeq ($(OS_TARGET),linux)
|
ifeq ($(OS_TARGET),linux)
|
||||||
REQUIRE_PACKAGES_RTL=1
|
REQUIRE_PACKAGES_RTL=1
|
||||||
REQUIRE_PACKAGES_PASZLIB=1
|
REQUIRE_PACKAGES_PASZLIB=1
|
||||||
REQUIRE_PACKAGES_INET=1
|
REQUIRE_PACKAGES_INET=1
|
||||||
REQUIRE_PACKAGES_FCL=1
|
|
||||||
REQUIRE_PACKAGES_MYSQL=1
|
REQUIRE_PACKAGES_MYSQL=1
|
||||||
REQUIRE_PACKAGES_IBASE=1
|
REQUIRE_PACKAGES_IBASE=1
|
||||||
|
REQUIRE_PACKAGES_FCL=1
|
||||||
endif
|
endif
|
||||||
ifeq ($(OS_TARGET),go32v2)
|
ifeq ($(OS_TARGET),go32v2)
|
||||||
REQUIRE_PACKAGES_RTL=1
|
REQUIRE_PACKAGES_RTL=1
|
||||||
@ -560,8 +570,6 @@ ifeq ($(OS_TARGET),win32)
|
|||||||
REQUIRE_PACKAGES_RTL=1
|
REQUIRE_PACKAGES_RTL=1
|
||||||
REQUIRE_PACKAGES_PASZLIB=1
|
REQUIRE_PACKAGES_PASZLIB=1
|
||||||
REQUIRE_PACKAGES_FCL=1
|
REQUIRE_PACKAGES_FCL=1
|
||||||
REQUIRE_PACKAGES_MYSQL=1
|
|
||||||
REQUIRE_PACKAGES_IBASE=1
|
|
||||||
endif
|
endif
|
||||||
ifeq ($(OS_TARGET),os2)
|
ifeq ($(OS_TARGET),os2)
|
||||||
REQUIRE_PACKAGES_RTL=1
|
REQUIRE_PACKAGES_RTL=1
|
||||||
@ -573,8 +581,6 @@ REQUIRE_PACKAGES_RTL=1
|
|||||||
REQUIRE_PACKAGES_PASZLIB=1
|
REQUIRE_PACKAGES_PASZLIB=1
|
||||||
REQUIRE_PACKAGES_INET=1
|
REQUIRE_PACKAGES_INET=1
|
||||||
REQUIRE_PACKAGES_FCL=1
|
REQUIRE_PACKAGES_FCL=1
|
||||||
REQUIRE_PACKAGES_MYSQL=1
|
|
||||||
REQUIRE_PACKAGES_IBASE=1
|
|
||||||
endif
|
endif
|
||||||
ifeq ($(OS_TARGET),beos)
|
ifeq ($(OS_TARGET),beos)
|
||||||
REQUIRE_PACKAGES_RTL=1
|
REQUIRE_PACKAGES_RTL=1
|
||||||
@ -677,33 +683,6 @@ ifdef UNITDIR_INET
|
|||||||
override COMPILER_UNITDIR+=$(UNITDIR_INET)
|
override COMPILER_UNITDIR+=$(UNITDIR_INET)
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
ifdef REQUIRE_PACKAGES_FCL
|
|
||||||
PACKAGEDIR_FCL:=$(subst /Makefile.fpc,,$(strip $(wildcard $(addsuffix /fcl/Makefile.fpc,$(PACKAGESDIR)))))
|
|
||||||
ifneq ($(PACKAGEDIR_FCL),)
|
|
||||||
PACKAGEDIR_FCL:=$(firstword $(PACKAGEDIR_FCL))
|
|
||||||
ifeq ($(wildcard $(PACKAGEDIR_FCL)/$(FPCMADE)),)
|
|
||||||
override COMPILEPACKAGES+=package_fcl
|
|
||||||
package_fcl:
|
|
||||||
$(MAKE) -C $(PACKAGEDIR_FCL) all
|
|
||||||
endif
|
|
||||||
ifneq ($(wildcard $(PACKAGEDIR_FCL)/$(OS_TARGET)),)
|
|
||||||
UNITDIR_FCL=$(PACKAGEDIR_FCL)/$(OS_TARGET)
|
|
||||||
else
|
|
||||||
UNITDIR_FCL=$(PACKAGEDIR_FCL)
|
|
||||||
endif
|
|
||||||
else
|
|
||||||
PACKAGEDIR_FCL=
|
|
||||||
UNITDIR_FCL:=$(subst /Package.fpc,,$(strip $(wildcard $(addsuffix /fcl/Package.fpc,$(UNITSDIR)))))
|
|
||||||
ifneq ($(UNITDIR_FCL),)
|
|
||||||
UNITDIR_FCL:=$(firstword $(UNITDIR_FCL))
|
|
||||||
else
|
|
||||||
UNITDIR_FCL=
|
|
||||||
endif
|
|
||||||
endif
|
|
||||||
ifdef UNITDIR_FCL
|
|
||||||
override COMPILER_UNITDIR+=$(UNITDIR_FCL)
|
|
||||||
endif
|
|
||||||
endif
|
|
||||||
ifdef REQUIRE_PACKAGES_MYSQL
|
ifdef REQUIRE_PACKAGES_MYSQL
|
||||||
PACKAGEDIR_MYSQL:=$(subst /Makefile.fpc,,$(strip $(wildcard $(addsuffix /mysql/Makefile.fpc,$(PACKAGESDIR)))))
|
PACKAGEDIR_MYSQL:=$(subst /Makefile.fpc,,$(strip $(wildcard $(addsuffix /mysql/Makefile.fpc,$(PACKAGESDIR)))))
|
||||||
ifneq ($(PACKAGEDIR_MYSQL),)
|
ifneq ($(PACKAGEDIR_MYSQL),)
|
||||||
@ -758,8 +737,37 @@ ifdef UNITDIR_IBASE
|
|||||||
override COMPILER_UNITDIR+=$(UNITDIR_IBASE)
|
override COMPILER_UNITDIR+=$(UNITDIR_IBASE)
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
.PHONY: package_rtl package_paszlib package_inet package_fcl package_mysql package_ibase
|
ifdef REQUIRE_PACKAGES_FCL
|
||||||
|
PACKAGEDIR_FCL:=$(subst /Makefile.fpc,,$(strip $(wildcard $(addsuffix /fcl/Makefile.fpc,$(PACKAGESDIR)))))
|
||||||
|
ifneq ($(PACKAGEDIR_FCL),)
|
||||||
|
PACKAGEDIR_FCL:=$(firstword $(PACKAGEDIR_FCL))
|
||||||
|
ifeq ($(wildcard $(PACKAGEDIR_FCL)/$(FPCMADE)),)
|
||||||
|
override COMPILEPACKAGES+=package_fcl
|
||||||
|
package_fcl:
|
||||||
|
$(MAKE) -C $(PACKAGEDIR_FCL) all
|
||||||
|
endif
|
||||||
|
ifneq ($(wildcard $(PACKAGEDIR_FCL)/$(OS_TARGET)),)
|
||||||
|
UNITDIR_FCL=$(PACKAGEDIR_FCL)/$(OS_TARGET)
|
||||||
|
else
|
||||||
|
UNITDIR_FCL=$(PACKAGEDIR_FCL)
|
||||||
|
endif
|
||||||
|
else
|
||||||
|
PACKAGEDIR_FCL=
|
||||||
|
UNITDIR_FCL:=$(subst /Package.fpc,,$(strip $(wildcard $(addsuffix /fcl/Package.fpc,$(UNITSDIR)))))
|
||||||
|
ifneq ($(UNITDIR_FCL),)
|
||||||
|
UNITDIR_FCL:=$(firstword $(UNITDIR_FCL))
|
||||||
|
else
|
||||||
|
UNITDIR_FCL=
|
||||||
|
endif
|
||||||
|
endif
|
||||||
|
ifdef UNITDIR_FCL
|
||||||
|
override COMPILER_UNITDIR+=$(UNITDIR_FCL)
|
||||||
|
endif
|
||||||
|
endif
|
||||||
|
.PHONY: package_rtl package_paszlib package_inet package_mysql package_ibase package_fcl
|
||||||
|
ifndef NOCPUDEF
|
||||||
override FPCOPTDEF=$(CPU_TARGET)
|
override FPCOPTDEF=$(CPU_TARGET)
|
||||||
|
endif
|
||||||
ifneq ($(OS_TARGET),$(OS_SOURCE))
|
ifneq ($(OS_TARGET),$(OS_SOURCE))
|
||||||
override FPCOPT+=-T$(OS_TARGET)
|
override FPCOPT+=-T$(OS_TARGET)
|
||||||
endif
|
endif
|
||||||
@ -786,15 +794,22 @@ override FPCOPT+=-gl
|
|||||||
override FPCOPTDEF+=DEBUG
|
override FPCOPTDEF+=DEBUG
|
||||||
endif
|
endif
|
||||||
ifdef RELEASE
|
ifdef RELEASE
|
||||||
override FPCOPT+=-Xs -OG2p3 -n
|
ifeq ($(CPU_TARGET),i386)
|
||||||
|
FPCCPUOPT:=-OG2p3
|
||||||
|
else
|
||||||
|
FPCCPUOPT:=
|
||||||
|
endif
|
||||||
|
override FPCOPT+=-Xs $(FPCCPUOPT) -n
|
||||||
override FPCOPTDEF+=RELEASE
|
override FPCOPTDEF+=RELEASE
|
||||||
endif
|
endif
|
||||||
ifdef STRIP
|
ifdef STRIP
|
||||||
override FPCOPT+=-Xs
|
override FPCOPT+=-Xs
|
||||||
endif
|
endif
|
||||||
ifdef OPTIMIZE
|
ifdef OPTIMIZE
|
||||||
|
ifeq ($(CPU_TARGET),i386)
|
||||||
override FPCOPT+=-OG2p3
|
override FPCOPT+=-OG2p3
|
||||||
endif
|
endif
|
||||||
|
endif
|
||||||
ifdef VERBOSE
|
ifdef VERBOSE
|
||||||
override FPCOPT+=-vwni
|
override FPCOPT+=-vwni
|
||||||
endif
|
endif
|
||||||
@ -1076,7 +1091,7 @@ endif
|
|||||||
ifdef LIB_NAME
|
ifdef LIB_NAME
|
||||||
-$(DEL) $(LIB_NAME) $(LIB_FULLNAME)
|
-$(DEL) $(LIB_NAME) $(LIB_FULLNAME)
|
||||||
endif
|
endif
|
||||||
-$(DEL) $(FPCMADE) Package.fpc $(PPAS) link.res $(FPCEXTFILE) $(REDIRFILE)
|
-$(DEL) $(FPCMADE) Package.fpc $(PPAS) script.res link.res $(FPCEXTFILE) $(REDIRFILE)
|
||||||
fpc_distclean: clean
|
fpc_distclean: clean
|
||||||
ifdef COMPILER_UNITTARGETDIR
|
ifdef COMPILER_UNITTARGETDIR
|
||||||
TARGETDIRCLEAN=fpc_clean
|
TARGETDIRCLEAN=fpc_clean
|
||||||
|
Loading…
Reference in New Issue
Block a user