mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-05 16:26:14 +02:00
* Replaced fpcmake building by fpmake building
git-svn-id: trunk@20612 -
This commit is contained in:
parent
25f29e1048
commit
b1cda73a9a
1
.gitattributes
vendored
1
.gitattributes
vendored
@ -13310,6 +13310,7 @@ utils/fpmc/readmsg.pp svneol=native#text/plain
|
|||||||
utils/fpmc/test.mc -text
|
utils/fpmc/test.mc -text
|
||||||
utils/fppkg/Makefile svneol=native#text/plain
|
utils/fppkg/Makefile svneol=native#text/plain
|
||||||
utils/fppkg/Makefile.fpc svneol=native#text/plain
|
utils/fppkg/Makefile.fpc svneol=native#text/plain
|
||||||
|
utils/fppkg/Makefile.fpc.fpcmake svneol=native#text/plain
|
||||||
utils/fppkg/README.txt svneol=native#text/plain
|
utils/fppkg/README.txt svneol=native#text/plain
|
||||||
utils/fppkg/examples/pkglibcurl.pp svneol=native#text/plain
|
utils/fppkg/examples/pkglibcurl.pp svneol=native#text/plain
|
||||||
utils/fppkg/examples/pkgocurl.pp svneol=native#text/plain
|
utils/fppkg/examples/pkgocurl.pp svneol=native#text/plain
|
||||||
|
1616
utils/fppkg/Makefile
1616
utils/fppkg/Makefile
File diff suppressed because it is too large
Load Diff
@ -1,33 +1,13 @@
|
|||||||
#
|
#
|
||||||
# Makefile.fpc for fppkg
|
# Makefile.fpc for running fpmake
|
||||||
#
|
#
|
||||||
|
|
||||||
[package]
|
[package]
|
||||||
name=fppkg
|
name=fppkg-util
|
||||||
version=2.7.1
|
version=2.7.1
|
||||||
|
|
||||||
[target]
|
[require]
|
||||||
programs=fppkg
|
packages=rtl fpmkunit
|
||||||
|
|
||||||
units_linux=pkglnet
|
|
||||||
units_beos=pkglnet
|
|
||||||
units_haiku=pkglnet
|
|
||||||
units_freebsd=pkglnet
|
|
||||||
units_netbsd=pkglnet
|
|
||||||
units_openbsd=pkglnet
|
|
||||||
units_darwin=pkglnet
|
|
||||||
units_iphonesim=pkglnet
|
|
||||||
units_solaris=pkglnet
|
|
||||||
units_win32=pkglnet
|
|
||||||
units_win64=pkglnet
|
|
||||||
units_wince=pkglnet
|
|
||||||
|
|
||||||
[compiler]
|
|
||||||
unitdir=lnet
|
|
||||||
includedir=lnet/sys
|
|
||||||
|
|
||||||
[clean]
|
|
||||||
units=lcommon lcontrolstack levents ltelnet lftp lhttp lhttputil lnet lstrbuffer
|
|
||||||
|
|
||||||
[install]
|
[install]
|
||||||
fpcpackage=y
|
fpcpackage=y
|
||||||
@ -35,19 +15,74 @@ fpcpackage=y
|
|||||||
[default]
|
[default]
|
||||||
fpcdir=../..
|
fpcdir=../..
|
||||||
|
|
||||||
[require]
|
[prerules]
|
||||||
packages=fcl-base fcl-xml fcl-process fcl-net paszlib libcurl fppkg
|
FPMAKE_BIN_CLEAN=$(wildcard .$(PATHSEP)fpmake$(SRCEXEEXT))
|
||||||
tools=data2inc
|
ifdef OS_TARGET
|
||||||
packages_darwin=univint
|
FPC_TARGETOPT+=--os=$(OS_TARGET)
|
||||||
packages_iphonesim=univint
|
endif
|
||||||
|
ifdef CPU_TARGET
|
||||||
|
FPC_TARGETOPT+=--cpu=$(CPU_TARGET)
|
||||||
|
endif
|
||||||
|
LOCALFPMAKE=.$(PATHSEP)fpmake$(SRCEXEEXT)
|
||||||
|
|
||||||
[rules]
|
[rules]
|
||||||
.NOTPARALLEL:
|
# Do not pass the Makefile's unit and binary target locations. fpmake uses it's own.
|
||||||
ifneq ($(DATA2INC),)
|
override FPCOPT:=$(filter-out -FU%,$(FPCOPT))
|
||||||
fpmkunitsrc.inc: $(DEFAULT_FPCDIR)/packages/fpmkunit/src/fpmkunit.pp
|
override FPCOPT:=$(filter-out -FE%,$(FPCOPT))
|
||||||
$(DATA2INC) -b -s $(DEFAULT_FPCDIR)/packages/fpmkunit/src/fpmkunit.pp fpmkunitsrc.inc fpmkunitsrc
|
# Compose general fpmake-parameters
|
||||||
|
ifdef FPMAKEOPT
|
||||||
|
FPMAKE_OPT+=$(FPMAKEOPT)
|
||||||
endif
|
endif
|
||||||
|
FPMAKE_OPT+=--localunitdir=../..
|
||||||
|
FPMAKE_OPT+=--globalunitdir=../../packages
|
||||||
|
FPMAKE_OPT+=$(FPC_TARGETOPT)
|
||||||
|
FPMAKE_OPT+=$(addprefix -o ,$(FPCOPT))
|
||||||
|
FPMAKE_OPT+=--compiler=$(FPC)
|
||||||
|
FPMAKE_OPT+=-bu
|
||||||
|
.NOTPARALLEL:
|
||||||
|
|
||||||
# Don't include the dependency on fpmkunitsrc.inc by default so we can control
|
fpmake: fpmake.pp
|
||||||
# better when we want to update the internal fpmkunitsrc
|
$(FPCFPMAKE) fpmake.pp $(FPMAKE_SKIP_CONFIG) $(addprefix -Fu,$(COMPILER_FPMAKE_UNITDIR)) $(FPCMAKEOPT)
|
||||||
fppkg$(EXEEXT): $(wildcard pkg*.pp)
|
all: fpmake
|
||||||
|
$(LOCALFPMAKE) compile $(FPMAKE_OPT)
|
||||||
|
smart: fpmake
|
||||||
|
$(LOCALFPMAKE) compile $(FPMAKE_OPT) -bu -o -XX -o -CX
|
||||||
|
release: fpmake
|
||||||
|
$(LOCALFPMAKE) compile $(FPMAKE_OPT) -o -dRELEASE
|
||||||
|
debug: fpmake
|
||||||
|
$(LOCALFPMAKE) compile $(FPMAKE_OPT) -o -dDEBUG
|
||||||
|
# If no fpmake exists and (dist)clean is called, do not try to build fpmake, it will
|
||||||
|
# most often fail because the dependencies are cleared.
|
||||||
|
# In case of a clean, simply do nothing
|
||||||
|
ifeq ($(FPMAKE_BIN_CLEAN),)
|
||||||
|
clean:
|
||||||
|
else
|
||||||
|
clean:
|
||||||
|
$(FPMAKE_BIN_CLEAN) clean $(FPMAKE_OPT)
|
||||||
|
endif
|
||||||
|
# In case of a distclean, perform an 'old'-style distclean. This to avoid problems
|
||||||
|
# when the package is compiled using fpcmake prior to running this clean using fpmake
|
||||||
|
ifeq ($(FPMAKE_BIN_CLEAN),)
|
||||||
|
distclean: $(addsuffix _distclean,$(TARGET_DIRS)) fpc_cleanall
|
||||||
|
else
|
||||||
|
distclean:
|
||||||
|
ifdef inUnix
|
||||||
|
{ $(FPMAKE_BIN_CLEAN) distclean $(FPMAKE_OPT); if [ $$? != "0" ]; then { echo Something wrong with fpmake exectable. Remove the executable and call make recursively to recover.; $(DEL) $(FPMAKE_BIN_CLEAN); $(MAKE) fpc_cleanall; }; fi; }
|
||||||
|
else
|
||||||
|
$(FPMAKE_BIN_CLEAN) distclean $(FPMAKE_OPT)
|
||||||
|
endif
|
||||||
|
-$(DEL) $(LOCALFPMAKE)
|
||||||
|
endif
|
||||||
|
install: fpmake
|
||||||
|
ifdef UNIXHier
|
||||||
|
$(LOCALFPMAKE) install $(FPMAKE_OPT) --prefix=$(INSTALL_PREFIX) --baseinstalldir=$(INSTALL_LIBDIR)/fpc/$(FPC_VERSION) --unitinstalldir=$(INSTALL_UNITDIR)
|
||||||
|
else
|
||||||
|
$(LOCALFPMAKE) install $(FPMAKE_OPT) --prefix=$(INSTALL_BASEDIR) --unitinstalldir=$(INSTALL_UNITDIR)
|
||||||
|
endif
|
||||||
|
# distinstall also installs the example-sources
|
||||||
|
distinstall: fpmake
|
||||||
|
ifdef UNIXHier
|
||||||
|
$(LOCALFPMAKE) install $(FPMAKE_OPT) --prefix=$(INSTALL_PREFIX) --baseinstalldir=$(INSTALL_LIBDIR)/fpc/$(FPC_VERSION) --unitinstalldir=$(INSTALL_UNITDIR) -ie
|
||||||
|
else
|
||||||
|
$(LOCALFPMAKE) install $(FPMAKE_OPT) --prefix=$(INSTALL_BASEDIR) --unitinstalldir=$(INSTALL_UNITDIR) -ie
|
||||||
|
endif
|
||||||
|
53
utils/fppkg/Makefile.fpc.fpcmake
Normal file
53
utils/fppkg/Makefile.fpc.fpcmake
Normal file
@ -0,0 +1,53 @@
|
|||||||
|
#
|
||||||
|
# Makefile.fpc for fppkg
|
||||||
|
#
|
||||||
|
|
||||||
|
[package]
|
||||||
|
name=fppkg
|
||||||
|
version=2.7.1
|
||||||
|
|
||||||
|
[target]
|
||||||
|
programs=fppkg
|
||||||
|
|
||||||
|
units_linux=pkglnet
|
||||||
|
units_beos=pkglnet
|
||||||
|
units_haiku=pkglnet
|
||||||
|
units_freebsd=pkglnet
|
||||||
|
units_netbsd=pkglnet
|
||||||
|
units_openbsd=pkglnet
|
||||||
|
units_darwin=pkglnet
|
||||||
|
units_iphonesim=pkglnet
|
||||||
|
units_solaris=pkglnet
|
||||||
|
units_win32=pkglnet
|
||||||
|
units_win64=pkglnet
|
||||||
|
units_wince=pkglnet
|
||||||
|
|
||||||
|
[compiler]
|
||||||
|
unitdir=lnet
|
||||||
|
includedir=lnet/sys
|
||||||
|
|
||||||
|
[clean]
|
||||||
|
units=lcommon lcontrolstack levents ltelnet lftp lhttp lhttputil lnet lstrbuffer
|
||||||
|
|
||||||
|
[install]
|
||||||
|
fpcpackage=y
|
||||||
|
|
||||||
|
[default]
|
||||||
|
fpcdir=../..
|
||||||
|
|
||||||
|
[require]
|
||||||
|
packages=fcl-base fcl-xml fcl-process fcl-net paszlib libcurl fppkg
|
||||||
|
tools=data2inc
|
||||||
|
packages_darwin=univint
|
||||||
|
packages_iphonesim=univint
|
||||||
|
|
||||||
|
[rules]
|
||||||
|
.NOTPARALLEL:
|
||||||
|
ifneq ($(DATA2INC),)
|
||||||
|
fpmkunitsrc.inc: $(DEFAULT_FPCDIR)/packages/fpmkunit/src/fpmkunit.pp
|
||||||
|
$(DATA2INC) -b -s $(DEFAULT_FPCDIR)/packages/fpmkunit/src/fpmkunit.pp fpmkunitsrc.inc fpmkunitsrc
|
||||||
|
endif
|
||||||
|
|
||||||
|
# Don't include the dependency on fpmkunitsrc.inc by default so we can control
|
||||||
|
# better when we want to update the internal fpmkunitsrc
|
||||||
|
fppkg$(EXEEXT): $(wildcard pkg*.pp)
|
Loading…
Reference in New Issue
Block a user