mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-18 05:39:26 +02:00
* Converted fpmkunit and the packages it depends on to fpmake building.
Hash, paszlib, fcl-process and fpmkunit itself are build using fpmkunit_bootstrap. The fpmkunit-Makefile.fpc still contains dependencies on hash,paszlib and fcl-process because the packages depending on fpmkunit needs those. For fpmkunit itself those dependencies are ignored by directly setting the unit-search path to the rtl-unit search path. git-svn-id: trunk@20115 -
This commit is contained in:
parent
568ef396fb
commit
4bb05b21ed
5
.gitattributes
vendored
5
.gitattributes
vendored
@ -2236,6 +2236,7 @@ packages/fcl-passrc/tests/testpassrc.lpi svneol=native#text/plain
|
||||
packages/fcl-passrc/tests/testpassrc.lpr svneol=native#text/plain
|
||||
packages/fcl-process/Makefile svneol=native#text/plain
|
||||
packages/fcl-process/Makefile.fpc svneol=native#text/plain
|
||||
packages/fcl-process/Makefile.fpc.fpcmake svneol=native#text/plain
|
||||
packages/fcl-process/fpmake.pp svneol=native#text/plain
|
||||
packages/fcl-process/src/dbugintf.pp svneol=native#text/plain
|
||||
packages/fcl-process/src/dbugmsg.pp svneol=native#text/plain
|
||||
@ -2782,6 +2783,7 @@ packages/fpmake_add.inc svneol=native#text/plain
|
||||
packages/fpmake_proc.inc svneol=native#text/plain
|
||||
packages/fpmkunit/Makefile svneol=native#text/plain
|
||||
packages/fpmkunit/Makefile.fpc svneol=native#text/plain
|
||||
packages/fpmkunit/Makefile.fpc.fpcmake svneol=native#text/plain
|
||||
packages/fpmkunit/examples/ppu2fpmake.sh svneol=native#text/plain
|
||||
packages/fpmkunit/fpmake.pp svneol=native#text/plain
|
||||
packages/fpmkunit/src/fpmkunit.pp svneol=native#text/plain
|
||||
@ -3667,6 +3669,7 @@ packages/gtk2/src/pango/pangoutils.pas svneol=native#text/plain
|
||||
packages/gtk2/src/pangocairo/pangocairo.pas svneol=native#text/plain
|
||||
packages/hash/Makefile svneol=native#text/plain
|
||||
packages/hash/Makefile.fpc svneol=native#text/plain
|
||||
packages/hash/Makefile.fpc.fpcmake svneol=native#text/plain
|
||||
packages/hash/examples/Makefile svneol=native#text/plain
|
||||
packages/hash/examples/Makefile.fpc svneol=native#text/plain
|
||||
packages/hash/examples/crctest.pas svneol=native#text/plain
|
||||
@ -5677,6 +5680,7 @@ packages/pasjpeg/src/jutils.pas svneol=native#text/plain
|
||||
packages/pasjpeg/src/pasjpeg.pas svneol=native#text/plain
|
||||
packages/paszlib/Makefile svneol=native#text/plain
|
||||
packages/paszlib/Makefile.fpc svneol=native#text/plain
|
||||
packages/paszlib/Makefile.fpc.fpcmake svneol=native#text/plain
|
||||
packages/paszlib/examples/Makefile svneol=native#text/plain
|
||||
packages/paszlib/examples/Makefile.fpc svneol=native#text/plain
|
||||
packages/paszlib/examples/example.pas svneol=native#text/plain
|
||||
@ -6578,6 +6582,7 @@ packages/uuid/src/libuuid.pp svneol=native#text/plain
|
||||
packages/uuid/src/macuuid.pp svneol=native#text/plain
|
||||
packages/winceunits/Makefile svneol=native#text/plain
|
||||
packages/winceunits/Makefile.fpc svneol=native#text/plain
|
||||
packages/winceunits/Makefile.fpc.fpcmake svneol=native#text/plain
|
||||
packages/winceunits/fpmake.pp svneol=native#text/plain
|
||||
packages/winceunits/src/aygshell.pp svneol=native#text/plain
|
||||
packages/winceunits/src/bt_api.pp svneol=native#text/plain
|
||||
|
@ -1,5 +1,5 @@
|
||||
#
|
||||
# Don't edit, this file is generated by FPCMake Version 2.0.0 [2012/01/14]
|
||||
# Don't edit, this file is generated by FPCMake Version 2.0.0 [2012/01/17]
|
||||
#
|
||||
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
|
||||
@ -9468,14 +9468,27 @@ ifneq ($(wildcard fpcmake.loc),)
|
||||
include fpcmake.loc
|
||||
endif
|
||||
fpmkunit_bootstrap:
|
||||
ifdef CROSSCOMPILE
|
||||
$(MAKE) -C fpmkunit bootstrap
|
||||
endif
|
||||
fpmkunit_all: fpmkunit_bootstrap fcl-process_all paszlib_all
|
||||
fpmkunit_debug: fpmkunit_bootstrap fcl-process_debug paszlib_debug
|
||||
fpmkunit_smart: fpmkunit_bootstrap fcl-process_smart paszlib_smart
|
||||
fpmkunit_release: fpmkunit_bootstrap fcl-process_release paszlib_release
|
||||
fpmkunit_shared: fpmkunit_bootstrap fcl-process_shared paszlib_shared
|
||||
hash_all: fpmkunit_bootstrap
|
||||
hash_shared: fpmkunit_bootstrap
|
||||
hash_smart: fpmkunit_bootstrap
|
||||
hash_debug: fpmkunit_bootstrap
|
||||
hash_release: fpmkunit_bootstrap
|
||||
paszlib_all: hash_all fpmkunit_bootstrap
|
||||
paszlib_shared: hash_shared fpmkunit_bootstrap
|
||||
paszlib_smart: hash_smart fpmkunit_bootstrap
|
||||
paszlib_debug: hash_debug fpmkunit_bootstrap
|
||||
paszlib_release: hash_release fpmkunit_bootstrap
|
||||
fcl-process_all: fpmkunit_bootstrap
|
||||
fcl-process_shared: fpmkunit_bootstrap
|
||||
fcl-process_smart: fpmkunit_bootstrap
|
||||
fcl-process_debug: fpmkunit_bootstrap
|
||||
fcl-process_release: fpmkunit_bootstrap
|
||||
ifneq ($(findstring $(OS_TARGET),darwin iphonesim),)
|
||||
fcl-base_all: fpmkunit_all univint_all paszlib_all
|
||||
fcl-base_debug: fpmkunit_debug univint_debug paszlib_debug
|
||||
@ -9706,11 +9719,6 @@ libpng_shared: zlib_shared
|
||||
libpng_smart: zlib_smart
|
||||
libpng_debug: zlib_debug
|
||||
libpng_release: zlib_release
|
||||
paszlib_all: hash_all
|
||||
paszlib_shared: hash_shared
|
||||
paszlib_smart: hash_smart
|
||||
paszlib_debug: hash_debug
|
||||
paszlib_release: hash_release
|
||||
ifneq ($(findstring $(OS_TARGET),linux darwin iphonesim freebsd openbsd netbsd solaris),)
|
||||
sdl_all: pthreads_all x11_all fpmkunit_all
|
||||
sdl_shared: pthreads_shared x11_shared fpmkunit_shared
|
||||
@ -10126,3 +10134,8 @@ winceunits_shared: fpmkunit_shared
|
||||
winceunits_smart: fpmkunit_smart
|
||||
winceunits_debug: fpmkunit_debug
|
||||
winceunits_release: fpmkunit_release
|
||||
hash_all: fpmkunit_bootstrap
|
||||
hash_shared: fpmkunit_bootstrap
|
||||
hash_smart: fpmkunit_bootstrap
|
||||
hash_debug: fpmkunit_bootstrap
|
||||
hash_release: fpmkunit_bootstrap
|
||||
|
@ -75,15 +75,31 @@ fpcdir=..
|
||||
|
||||
[rules]
|
||||
fpmkunit_bootstrap:
|
||||
ifdef CROSSCOMPILE
|
||||
$(MAKE) -C fpmkunit bootstrap
|
||||
endif
|
||||
fpmkunit_all: fpmkunit_bootstrap fcl-process_all paszlib_all
|
||||
fpmkunit_debug: fpmkunit_bootstrap fcl-process_debug paszlib_debug
|
||||
fpmkunit_smart: fpmkunit_bootstrap fcl-process_smart paszlib_smart
|
||||
fpmkunit_release: fpmkunit_bootstrap fcl-process_release paszlib_release
|
||||
fpmkunit_shared: fpmkunit_bootstrap fcl-process_shared paszlib_shared
|
||||
|
||||
hash_all: fpmkunit_bootstrap
|
||||
hash_shared: fpmkunit_bootstrap
|
||||
hash_smart: fpmkunit_bootstrap
|
||||
hash_debug: fpmkunit_bootstrap
|
||||
hash_release: fpmkunit_bootstrap
|
||||
|
||||
paszlib_all: hash_all fpmkunit_bootstrap
|
||||
paszlib_shared: hash_shared fpmkunit_bootstrap
|
||||
paszlib_smart: hash_smart fpmkunit_bootstrap
|
||||
paszlib_debug: hash_debug fpmkunit_bootstrap
|
||||
paszlib_release: hash_release fpmkunit_bootstrap
|
||||
|
||||
fcl-process_all: fpmkunit_bootstrap
|
||||
fcl-process_shared: fpmkunit_bootstrap
|
||||
fcl-process_smart: fpmkunit_bootstrap
|
||||
fcl-process_debug: fpmkunit_bootstrap
|
||||
fcl-process_release: fpmkunit_bootstrap
|
||||
|
||||
ifneq ($(findstring $(OS_TARGET),darwin iphonesim),)
|
||||
fcl-base_all: fpmkunit_all univint_all paszlib_all
|
||||
fcl-base_debug: fpmkunit_debug univint_debug paszlib_debug
|
||||
@ -344,12 +360,6 @@ libpng_smart: zlib_smart
|
||||
libpng_debug: zlib_debug
|
||||
libpng_release: zlib_release
|
||||
|
||||
paszlib_all: hash_all
|
||||
paszlib_shared: hash_shared
|
||||
paszlib_smart: hash_smart
|
||||
paszlib_debug: hash_debug
|
||||
paszlib_release: hash_release
|
||||
|
||||
ifneq ($(findstring $(OS_TARGET),linux darwin iphonesim freebsd openbsd netbsd solaris),)
|
||||
sdl_all: pthreads_all x11_all fpmkunit_all
|
||||
sdl_shared: pthreads_shared x11_shared fpmkunit_shared
|
||||
@ -848,3 +858,8 @@ winceunits_smart: fpmkunit_smart
|
||||
winceunits_debug: fpmkunit_debug
|
||||
winceunits_release: fpmkunit_release
|
||||
|
||||
hash_all: fpmkunit_bootstrap
|
||||
hash_shared: fpmkunit_bootstrap
|
||||
hash_smart: fpmkunit_bootstrap
|
||||
hash_debug: fpmkunit_bootstrap
|
||||
hash_release: fpmkunit_bootstrap
|
||||
|
File diff suppressed because it is too large
Load Diff
@ -1,55 +1,13 @@
|
||||
#
|
||||
# Makefile.fpc for Free Component Library
|
||||
# Makefile.fpc for running fpmake
|
||||
#
|
||||
|
||||
[package]
|
||||
name=fcl-process
|
||||
version=2.7.1
|
||||
|
||||
[target]
|
||||
units=pipes process
|
||||
units_beos=simpleipc dbugmsg dbugintf pipesipc
|
||||
units_haiku=simpleipc dbugmsg dbugintf pipesipc
|
||||
units_freebsd=simpleipc dbugmsg dbugintf pipesipc
|
||||
units_darwin=simpleipc dbugmsg dbugintf pipesipc
|
||||
units_iphonesim=simpleipc dbugmsg dbugintf pipesipc
|
||||
units_solaris=simpleipc dbugmsg dbugintf pipesipc
|
||||
units_netbsd=simpleipc dbugmsg dbugintf pipesipc
|
||||
units_openbsd=simpleipc dbugmsg dbugintf pipesipc
|
||||
units_linux=simpleipc dbugmsg dbugintf pipesipc
|
||||
units_win32=simpleipc dbugmsg dbugintf
|
||||
units_win64=simpleipc dbugmsg dbugintf
|
||||
units_wince=simpleipc dbugmsg dbugintf
|
||||
units_qnx=simpleipc dbugmsg dbugintf pipesipc
|
||||
units_os2=simpleipc dbugmsg dbugintf
|
||||
units_emx=simpleipc dbugmsg dbugintf
|
||||
rsts=process simpleipc
|
||||
|
||||
[compiler]
|
||||
options=-S2h
|
||||
includedir=src/$(OS_TARGET) src
|
||||
includedir_linux=src/unix src/dummy
|
||||
includedir_freebsd=src/unix src/dummy
|
||||
includedir_darwin=src/unix src/dummy
|
||||
includedir_iphonesim=src/unix src/dummy
|
||||
includedir_netbsd=src/unix src/dummy
|
||||
includedir_openbsd=src/unix src/dummy
|
||||
includedir_solaris=src/unix src/dummy
|
||||
includedir_qnx=src/unix src/dummy
|
||||
includedir_beos=src/unix src/dummy
|
||||
includedir_haiku=src/unix src/dummy
|
||||
includedir_emx=src/os2 src/dummy
|
||||
includedir_win32=src/win src/dummy
|
||||
includedir_win64=src/win src/dummy
|
||||
includedir_wince=src/wince src/dummy
|
||||
includedir_go32v2=src/dummy
|
||||
includedir_os2=src/os2 src/dummy
|
||||
includedir_morphos=src/dummy
|
||||
includedir_amiga=src/dummy
|
||||
includedir_netware=src/dummy
|
||||
includedir_netwlibc=src/dummy
|
||||
includedir_gba=src/dummy
|
||||
sourcedir=src/$(OS_TARGET) src
|
||||
[require]
|
||||
packages=rtl
|
||||
|
||||
[install]
|
||||
fpcpackage=y
|
||||
@ -57,5 +15,101 @@ fpcpackage=y
|
||||
[default]
|
||||
fpcdir=../..
|
||||
|
||||
[prerules]
|
||||
FPMAKE_BIN_CLEAN=$(wildcard .$(PATHSEP)fpmake$(SRCEXEEXT))
|
||||
ifdef OS_TARGET
|
||||
FPC_TARGETOPT+=--os=$(OS_TARGET)
|
||||
endif
|
||||
ifdef CPU_TARGET
|
||||
FPC_TARGETOPT+=--cpu=$(CPU_TARGET)
|
||||
endif
|
||||
LOCALFPMAKE=.$(PATHSEP)fpmake$(SRCEXEEXT)
|
||||
# Adding a dependency on fpmkunit is not possbile due to an infinite loop. So
|
||||
# the fpmkunit-searchpath is added here:
|
||||
PACKAGEDIR_FPMKUNIT:=$(firstword $(subst /Makefile.fpc,,$(strip $(wildcard $(addsuffix /fpmkunit/Makefile.fpc,$(PACKAGESDIR))))))
|
||||
ifneq ($(PACKAGEDIR_FPMKUNIT),)
|
||||
ifneq ($(wildcard $(PACKAGEDIR_FPMKUNIT)/units/$(TARGETSUFFIX)),)
|
||||
UNITDIR_FPMKUNIT=$(PACKAGEDIR_FPMKUNIT)/units/$(TARGETSUFFIX)
|
||||
else
|
||||
UNITDIR_FPMKUNIT=$(PACKAGEDIR_FPMKUNIT)
|
||||
endif
|
||||
ifneq ($(wildcard $(PACKAGEDIR_FPMKUNIT)/units/$(SOURCESUFFIX)),)
|
||||
UNITDIR_FPMAKE_FPMKUNIT=$(PACKAGEDIR_FPMKUNIT)/units/$(SOURCESUFFIX)
|
||||
else
|
||||
ifneq ($(wildcard $(PACKAGEDIR_FPMKUNIT)/units_bs/$(SOURCESUFFIX)),)
|
||||
UNITDIR_FPMAKE_FPMKUNIT=$(PACKAGEDIR_FPMKUNIT)/units_bs/$(SOURCESUFFIX)
|
||||
else
|
||||
UNITDIR_FPMAKE_FPMKUNIT=$(PACKAGEDIR_FPMKUNIT)
|
||||
endif
|
||||
endif
|
||||
ifdef CHECKDEPEND
|
||||
$(PACKAGEDIR_FPMKUNIT)/$(FPCMADE):
|
||||
$(MAKE) -C $(PACKAGEDIR_FPMKUNIT) $(FPCMADE)
|
||||
override ALLDEPENDENCIES+=$(PACKAGEDIR_FPMKUNIT)/$(FPCMADE)
|
||||
endif
|
||||
else
|
||||
PACKAGEDIR_FPMKUNIT=
|
||||
UNITDIR_FPMKUNIT:=$(subst /Package.fpc,,$(strip $(wildcard $(addsuffix /fpmkunit/Package.fpc,$(UNITSDIR)))))
|
||||
ifneq ($(UNITDIR_FPMKUNIT),)
|
||||
UNITDIR_FPMKUNIT:=$(firstword $(UNITDIR_FPMKUNIT))
|
||||
else
|
||||
UNITDIR_FPMKUNIT=
|
||||
endif
|
||||
endif
|
||||
ifdef UNITDIR_FPMKUNIT
|
||||
override COMPILER_UNITDIR+=$(UNITDIR_FPMKUNIT)
|
||||
endif
|
||||
ifdef UNITDIR_FPMAKE_FPMKUNIT
|
||||
override COMPILER_FPMAKE_UNITDIR+=$(UNITDIR_FPMAKE_FPMKUNIT)
|
||||
endif
|
||||
|
||||
|
||||
[rules]
|
||||
.NOTPARALLEL:
|
||||
|
||||
fpmake: fpmake.pp
|
||||
$(FPCFPMAKE) fpmake.pp $(FPMAKE_SKIP_CONFIG) $(addprefix -Fu,$(COMPILER_FPMAKE_UNITDIR)) $(FPCMAKEOPT)
|
||||
all: fpmake
|
||||
$(LOCALFPMAKE) compile --localunitdir=../.. --globalunitdir=.. $(FPC_TARGETOPT) $(addprefix -o ,$(FPCOPT)) --compiler=$(FPC) -bu
|
||||
smart: fpmake
|
||||
$(LOCALFPMAKE) compile --localunitdir=../.. --globalunitdir=.. $(FPC_TARGETOPT) $(addprefix -o ,$(FPCOPT)) --compiler=$(FPC) -bu -o -XX -o -CX
|
||||
release: fpmake
|
||||
$(LOCALFPMAKE) compile --localunitdir=../.. --globalunitdir=.. $(FPC_TARGETOPT) $(addprefix -o ,$(FPCOPT)) --compiler=$(FPC) -bu -o -dRELEASE
|
||||
debug: fpmake
|
||||
$(LOCALFPMAKE) compile --localunitdir=../.. --globalunitdir=.. $(FPC_TARGETOPT) $(addprefix -o ,$(FPCOPT)) --compiler=$(FPC) -bu -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 --localunitdir=../.. --globalunitdir=.. $(FPC_TARGETOPT) $(addprefix -o ,$(FPCOPT)) --compiler=$(FPC)
|
||||
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 --localunitdir=../.. --globalunitdir=.. $(FPC_TARGETOPT) $(addprefix -o ,$(FPCOPT)) --compiler=$(FPC); 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 --localunitdir=../.. --globalunitdir=.. $(FPC_TARGETOPT) $(addprefix -o ,$(FPCOPT)) --compiler=$(FPC)
|
||||
endif
|
||||
-$(DEL) $(LOCALFPMAKE)
|
||||
endif
|
||||
install: fpmake
|
||||
ifdef UNIXHier
|
||||
$(LOCALFPMAKE) install --localunitdir=../.. --globalunitdir=.. $(FPC_TARGETOPT) $(addprefix -o ,$(FPCOPT)) --compiler=$(FPC) --prefix=$(INSTALL_PREFIX) --baseinstalldir=$(INSTALL_LIBDIR)/fpc/$(FPC_VERSION) --unitinstalldir=$(INSTALL_UNITDIR)
|
||||
else
|
||||
$(LOCALFPMAKE) install --localunitdir=../.. --globalunitdir=.. $(FPC_TARGETOPT) $(addprefix -o ,$(FPCOPT)) --compiler=$(FPC) --prefix=$(INSTALL_BASEDIR) --unitinstalldir=$(INSTALL_UNITDIR)
|
||||
endif
|
||||
# distinstall also installs the example-sources
|
||||
distinstall: fpmake
|
||||
ifdef UNIXHier
|
||||
$(LOCALFPMAKE) install --localunitdir=../.. --globalunitdir=.. $(FPC_TARGETOPT) $(addprefix -o ,$(FPCOPT)) --compiler=$(FPC) --prefix=$(INSTALL_PREFIX) --baseinstalldir=$(INSTALL_LIBDIR)/fpc/$(FPC_VERSION) --unitinstalldir=$(INSTALL_UNITDIR) -ie
|
||||
else
|
||||
$(LOCALFPMAKE) install --localunitdir=../.. --globalunitdir=.. $(FPC_TARGETOPT) $(addprefix -o ,$(FPCOPT)) --compiler=$(FPC) --prefix=$(INSTALL_BASEDIR) --unitinstalldir=$(INSTALL_UNITDIR) -ie
|
||||
endif
|
||||
|
||||
|
61
packages/fcl-process/Makefile.fpc.fpcmake
Normal file
61
packages/fcl-process/Makefile.fpc.fpcmake
Normal file
@ -0,0 +1,61 @@
|
||||
#
|
||||
# Makefile.fpc for Free Component Library
|
||||
#
|
||||
|
||||
[package]
|
||||
name=fcl-process
|
||||
version=2.7.1
|
||||
|
||||
[target]
|
||||
units=pipes process
|
||||
units_beos=simpleipc dbugmsg dbugintf pipesipc
|
||||
units_haiku=simpleipc dbugmsg dbugintf pipesipc
|
||||
units_freebsd=simpleipc dbugmsg dbugintf pipesipc
|
||||
units_darwin=simpleipc dbugmsg dbugintf pipesipc
|
||||
units_iphonesim=simpleipc dbugmsg dbugintf pipesipc
|
||||
units_solaris=simpleipc dbugmsg dbugintf pipesipc
|
||||
units_netbsd=simpleipc dbugmsg dbugintf pipesipc
|
||||
units_openbsd=simpleipc dbugmsg dbugintf pipesipc
|
||||
units_linux=simpleipc dbugmsg dbugintf pipesipc
|
||||
units_win32=simpleipc dbugmsg dbugintf
|
||||
units_win64=simpleipc dbugmsg dbugintf
|
||||
units_wince=simpleipc dbugmsg dbugintf
|
||||
units_qnx=simpleipc dbugmsg dbugintf pipesipc
|
||||
units_os2=simpleipc dbugmsg dbugintf
|
||||
units_emx=simpleipc dbugmsg dbugintf
|
||||
rsts=process simpleipc
|
||||
|
||||
[compiler]
|
||||
options=-S2h
|
||||
includedir=src/$(OS_TARGET) src
|
||||
includedir_linux=src/unix src/dummy
|
||||
includedir_freebsd=src/unix src/dummy
|
||||
includedir_darwin=src/unix src/dummy
|
||||
includedir_iphonesim=src/unix src/dummy
|
||||
includedir_netbsd=src/unix src/dummy
|
||||
includedir_openbsd=src/unix src/dummy
|
||||
includedir_solaris=src/unix src/dummy
|
||||
includedir_qnx=src/unix src/dummy
|
||||
includedir_beos=src/unix src/dummy
|
||||
includedir_haiku=src/unix src/dummy
|
||||
includedir_emx=src/os2 src/dummy
|
||||
includedir_win32=src/win src/dummy
|
||||
includedir_win64=src/win src/dummy
|
||||
includedir_wince=src/wince src/dummy
|
||||
includedir_go32v2=src/dummy
|
||||
includedir_os2=src/os2 src/dummy
|
||||
includedir_morphos=src/dummy
|
||||
includedir_amiga=src/dummy
|
||||
includedir_netware=src/dummy
|
||||
includedir_netwlibc=src/dummy
|
||||
includedir_gba=src/dummy
|
||||
sourcedir=src/$(OS_TARGET) src
|
||||
|
||||
[install]
|
||||
fpcpackage=y
|
||||
|
||||
[default]
|
||||
fpcdir=../..
|
||||
|
||||
[rules]
|
||||
.NOTPARALLEL:
|
File diff suppressed because it is too large
Load Diff
@ -1,30 +1,64 @@
|
||||
#
|
||||
# Makefile.fpc for fppkg
|
||||
# Makefile.fpc for running fpmake
|
||||
#
|
||||
|
||||
[package]
|
||||
name=fpmkunit
|
||||
version=2.7.1
|
||||
|
||||
[target]
|
||||
units=fpmkunit
|
||||
[require]
|
||||
packages=rtl paszlib fcl-process hash
|
||||
|
||||
[install]
|
||||
fpcpackage=y
|
||||
|
||||
[require]
|
||||
packages=paszlib fcl-process
|
||||
|
||||
[compiler]
|
||||
sourcedir=src
|
||||
includedir=src
|
||||
|
||||
[default]
|
||||
fpcdir=../..
|
||||
|
||||
[prerules]
|
||||
#Defines for bootstrapping
|
||||
TARGET_UNITDIRBS=units_bs/$(SOURCESUFFIX)
|
||||
CLEAN_FILES+=units_bs/$(SOURCESUFFIX)/fpmkunit.ppu units_bs/$(SOURCESUFFIX)/fpmkunit.rst units_bs/$(SOURCESUFFIX)/fpmkunit.o
|
||||
CLEAN_FILES+=units_bs/$(SOURCESUFFIX)/adler.ppu units_bs/$(SOURCESUFFIX)/adler.o units_bs/$(SOURCESUFFIX)/crc.o units_bs/$(SOURCESUFFIX)/crc.ppu
|
||||
CLEAN_FILES+=units_bs/$(SOURCESUFFIX)/gzio.ppu units_bs/$(SOURCESUFFIX)/gzio.o units_bs/$(SOURCESUFFIX)/infblock.o units_bs/$(SOURCESUFFIX)/infblock.ppu
|
||||
CLEAN_FILES+=units_bs/$(SOURCESUFFIX)/infcodes.ppu units_bs/$(SOURCESUFFIX)/infcodes.o units_bs/$(SOURCESUFFIX)/inffast.o units_bs/$(SOURCESUFFIX)/inffast.ppu
|
||||
CLEAN_FILES+=units_bs/$(SOURCESUFFIX)/inftrees.ppu units_bs/$(SOURCESUFFIX)/inftrees.o units_bs/$(SOURCESUFFIX)/infutil.o units_bs/$(SOURCESUFFIX)/infutil.ppu
|
||||
CLEAN_FILES+=units_bs/$(SOURCESUFFIX)/pipes.ppu units_bs/$(SOURCESUFFIX)/pipes.o units_bs/$(SOURCESUFFIX)/process.o units_bs/$(SOURCESUFFIX)/process.ppu units_bs/$(SOURCESUFFIX)/process.rst
|
||||
CLEAN_FILES+=units_bs/$(SOURCESUFFIX)/trees.ppu units_bs/$(SOURCESUFFIX)/trees.o units_bs/$(SOURCESUFFIX)/zbase.o units_bs/$(SOURCESUFFIX)/zbase.ppu units_bs/$(SOURCESUFFIX)/zbase.rst
|
||||
CLEAN_FILES+=units_bs/$(SOURCESUFFIX)/zdeflate.ppu units_bs/$(SOURCESUFFIX)/zdeflate.o units_bs/$(SOURCESUFFIX)/zinflate.o units_bs/$(SOURCESUFFIX)/zinflate.ppu
|
||||
CLEAN_FILES+=units_bs/$(SOURCESUFFIX)/zipper.ppu units_bs/$(SOURCESUFFIX)/zipper.o units_bs/$(SOURCESUFFIX)/zipper.rst units_bs/$(SOURCESUFFIX)/zstream.o units_bs/$(SOURCESUFFIX)/zstream.ppu units_bs/$(SOURCESUFFIX)/zstream.rst
|
||||
# Set NO_UNIT_PROCESS on hosts that do not support the process unit
|
||||
ifneq ($(findstring $(OS_SOURCE),os2 go32v2),)
|
||||
NO_UNIT_PROCESS=1
|
||||
endif
|
||||
ifdef NO_UNIT_PROCESS
|
||||
UNIT_PROCESS=-dNO_UNIT_PROCESS
|
||||
else
|
||||
UNIT_PROCESS=-Fu../fcl-process/src -Fi../fcl-process/isrc/dummy -Fi../fcl-process/isrc/$(OS_SOURCE)
|
||||
ifneq ($(findstring $(OS_SOURCE),win32 win64),)
|
||||
UNIT_PROCESS+=-Fi../fcl-process/src/win
|
||||
endif
|
||||
ifneq ($(findstring $(OS_SOURCE),linux freebsd darwin iphonesim netbsd openbsd solaris),)
|
||||
UNIT_PROCESS+=-Fi../fcl-process/src/unix
|
||||
endif
|
||||
ifneq ($(findstring $(OS_SOURCE),os2 emx),)
|
||||
UNIT_PROCESS+=-Fi../fcl-process/src/os2
|
||||
endif
|
||||
endif
|
||||
ifdef NO_UNIT_ZIPPER
|
||||
UNIT_ZIPPER=-dNO_UNIT_ZIPPER
|
||||
else
|
||||
UNIT_ZIPPER=-Fu../paszlib/src -Fu../hash/src -Fi../paszlib/src
|
||||
endif
|
||||
# End of bootstrap-code
|
||||
FPMAKE_BIN_CLEAN=$(wildcard .$(PATHSEP)fpmake$(SRCEXEEXT))
|
||||
ifdef OS_TARGET
|
||||
FPC_TARGETOPT+=--os=$(OS_TARGET)
|
||||
endif
|
||||
ifdef CPU_TARGET
|
||||
FPC_TARGETOPT+=--cpu=$(CPU_TARGET)
|
||||
endif
|
||||
LOCALFPMAKE=.$(PATHSEP)fpmake$(SRCEXEEXT)
|
||||
|
||||
[rules]
|
||||
.NOTPARALLEL:
|
||||
@ -32,7 +66,54 @@ CLEAN_FILES+=units_bs/$(SOURCESUFFIX)/fpmkunit.ppu units_bs/$(SOURCESUFFIX)/fpmk
|
||||
$(TARGET_UNITDIRBS):
|
||||
$(MKDIRTREE) $(TARGET_UNITDIRBS)
|
||||
bootstrap: $(TARGET_UNITDIRBS)
|
||||
$(FPCFPMAKE) src/fpmkunit.pp $(FPMAKE_SKIP_CONFIG) $(addprefix -Fu,$(COMPILER_FPMAKE_UNITDIR)) -dNO_UNIT_PROCESS -dNO_UNIT_ZIPPER -FU$(TARGET_UNITDIRBS)
|
||||
cleanall: fpc_cleanall
|
||||
$(FPCFPMAKE) src/fpmkunit.pp $(FPMAKE_SKIP_CONFIG) $(addprefix -Fu,$(COMPILER_FPMAKE_UNITDIR)) -FU$(TARGET_UNITDIRBS) $(UNIT_ZIPPER) $(UNIT_PROCESS)
|
||||
fpmake: fpmake.pp
|
||||
$(FPCFPMAKE) fpmake.pp $(FPMAKE_SKIP_CONFIG) $(addprefix -Fu,$(UNITDIR_FPMAKE_RTL)) $(FPCMAKEOPT) -Fu$(TARGET_UNITDIRBS)
|
||||
all: fpmake
|
||||
$(LOCALFPMAKE) compile --localunitdir=../.. --globalunitdir=.. $(FPC_TARGETOPT) $(addprefix -o ,$(FPCOPT)) --compiler=$(FPC) -bu
|
||||
smart: fpmake
|
||||
$(LOCALFPMAKE) compile --localunitdir=../.. --globalunitdir=.. $(FPC_TARGETOPT) $(addprefix -o ,$(FPCOPT)) --compiler=$(FPC) -bu -o -XX -o -CX
|
||||
release: fpmake
|
||||
$(LOCALFPMAKE) compile --localunitdir=../.. --globalunitdir=.. $(FPC_TARGETOPT) $(addprefix -o ,$(FPCOPT)) --compiler=$(FPC) -bu -o -dRELEASE
|
||||
debug: fpmake
|
||||
$(LOCALFPMAKE) compile --localunitdir=../.. --globalunitdir=.. $(FPC_TARGETOPT) $(addprefix -o ,$(FPCOPT)) --compiler=$(FPC) -bu -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:
|
||||
-$(DELTREE) units_bs
|
||||
|
||||
else
|
||||
clean:
|
||||
$(FPMAKE_BIN_CLEAN) clean --localunitdir=../.. --globalunitdir=.. $(FPC_TARGETOPT) $(addprefix -o ,$(FPCOPT)) --compiler=$(FPC)
|
||||
-$(DELTREE) units_bs
|
||||
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
|
||||
-$(DELTREE) units_bs
|
||||
else
|
||||
distclean:
|
||||
ifdef inUnix
|
||||
{ $(FPMAKE_BIN_CLEAN) distclean --localunitdir=../.. --globalunitdir=.. $(FPC_TARGETOPT) $(addprefix -o ,$(FPCOPT)) --compiler=$(FPC); 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 --localunitdir=../.. --globalunitdir=.. $(FPC_TARGETOPT) $(addprefix -o ,$(FPCOPT)) --compiler=$(FPC)
|
||||
endif
|
||||
-$(DEL) $(LOCALFPMAKE)
|
||||
-$(DELTREE) units_bs
|
||||
endif
|
||||
install: fpmake
|
||||
ifdef UNIXHier
|
||||
$(LOCALFPMAKE) install --localunitdir=../.. --globalunitdir=.. $(FPC_TARGETOPT) $(addprefix -o ,$(FPCOPT)) --compiler=$(FPC) --prefix=$(INSTALL_PREFIX) --baseinstalldir=$(INSTALL_LIBDIR)/fpc/$(FPC_VERSION) --unitinstalldir=$(INSTALL_UNITDIR)
|
||||
else
|
||||
$(LOCALFPMAKE) install --localunitdir=../.. --globalunitdir=.. $(FPC_TARGETOPT) $(addprefix -o ,$(FPCOPT)) --compiler=$(FPC) --prefix=$(INSTALL_BASEDIR) --unitinstalldir=$(INSTALL_UNITDIR)
|
||||
endif
|
||||
# distinstall also installs the example-sources
|
||||
distinstall: fpmake
|
||||
ifdef UNIXHier
|
||||
$(LOCALFPMAKE) install --localunitdir=../.. --globalunitdir=.. $(FPC_TARGETOPT) $(addprefix -o ,$(FPCOPT)) --compiler=$(FPC) --prefix=$(INSTALL_PREFIX) --baseinstalldir=$(INSTALL_LIBDIR)/fpc/$(FPC_VERSION) --unitinstalldir=$(INSTALL_UNITDIR) -ie
|
||||
else
|
||||
$(LOCALFPMAKE) install --localunitdir=../.. --globalunitdir=.. $(FPC_TARGETOPT) $(addprefix -o ,$(FPCOPT)) --compiler=$(FPC) --prefix=$(INSTALL_BASEDIR) --unitinstalldir=$(INSTALL_UNITDIR) -ie
|
||||
endif
|
||||
|
||||
|
38
packages/fpmkunit/Makefile.fpc.fpcmake
Normal file
38
packages/fpmkunit/Makefile.fpc.fpcmake
Normal file
@ -0,0 +1,38 @@
|
||||
#
|
||||
# Makefile.fpc for fppkg
|
||||
#
|
||||
|
||||
[package]
|
||||
name=fpmkunit
|
||||
version=2.7.1
|
||||
|
||||
[target]
|
||||
units=fpmkunit
|
||||
|
||||
[install]
|
||||
fpcpackage=y
|
||||
|
||||
[require]
|
||||
packages=paszlib fcl-process
|
||||
|
||||
[compiler]
|
||||
sourcedir=src
|
||||
includedir=src
|
||||
|
||||
[default]
|
||||
fpcdir=../..
|
||||
|
||||
[prerules]
|
||||
TARGET_UNITDIRBS=units_bs/$(SOURCESUFFIX)
|
||||
CLEAN_FILES+=units_bs/$(SOURCESUFFIX)/fpmkunit.ppu units_bs/$(SOURCESUFFIX)/fpmkunit.rst units_bs/$(SOURCESUFFIX)/fpmkunit.o
|
||||
|
||||
[rules]
|
||||
.NOTPARALLEL:
|
||||
|
||||
$(TARGET_UNITDIRBS):
|
||||
$(MKDIRTREE) $(TARGET_UNITDIRBS)
|
||||
bootstrap: $(TARGET_UNITDIRBS)
|
||||
$(FPCFPMAKE) src/fpmkunit.pp $(FPMAKE_SKIP_CONFIG) $(addprefix -Fu,$(COMPILER_FPMAKE_UNITDIR)) -dNO_UNIT_PROCESS -dNO_UNIT_ZIPPER -FU$(TARGET_UNITDIRBS)
|
||||
cleanall: fpc_cleanall
|
||||
-$(DELTREE) units_bs
|
||||
|
File diff suppressed because it is too large
Load Diff
@ -1,24 +1,115 @@
|
||||
#
|
||||
# Makefile.fpc for MD5 checksum.
|
||||
# Makefile.fpc for running fpmake
|
||||
#
|
||||
|
||||
[package]
|
||||
name=hash
|
||||
version=2.7.1
|
||||
|
||||
[target]
|
||||
units=md5 crc ntlm sha1 uuid
|
||||
units_linux=unixcrypt
|
||||
exampledirs=examples
|
||||
[require]
|
||||
packages=rtl
|
||||
|
||||
[install]
|
||||
fpcpackage=y
|
||||
|
||||
[compiler]
|
||||
sourcedir=src
|
||||
|
||||
[default]
|
||||
fpcdir=../..
|
||||
|
||||
[prerules]
|
||||
FPMAKE_BIN_CLEAN=$(wildcard .$(PATHSEP)fpmake$(SRCEXEEXT))
|
||||
ifdef OS_TARGET
|
||||
FPC_TARGETOPT+=--os=$(OS_TARGET)
|
||||
endif
|
||||
ifdef CPU_TARGET
|
||||
FPC_TARGETOPT+=--cpu=$(CPU_TARGET)
|
||||
endif
|
||||
LOCALFPMAKE=.$(PATHSEP)fpmake$(SRCEXEEXT)
|
||||
# Adding a dependency on fpmkunit is not possbile due to an infinite loop. So
|
||||
# the fpmkunit-searchpath is added here:
|
||||
PACKAGEDIR_FPMKUNIT:=$(firstword $(subst /Makefile.fpc,,$(strip $(wildcard $(addsuffix /fpmkunit/Makefile.fpc,$(PACKAGESDIR))))))
|
||||
ifneq ($(PACKAGEDIR_FPMKUNIT),)
|
||||
ifneq ($(wildcard $(PACKAGEDIR_FPMKUNIT)/units/$(TARGETSUFFIX)),)
|
||||
UNITDIR_FPMKUNIT=$(PACKAGEDIR_FPMKUNIT)/units/$(TARGETSUFFIX)
|
||||
else
|
||||
UNITDIR_FPMKUNIT=$(PACKAGEDIR_FPMKUNIT)
|
||||
endif
|
||||
ifneq ($(wildcard $(PACKAGEDIR_FPMKUNIT)/units/$(SOURCESUFFIX)),)
|
||||
UNITDIR_FPMAKE_FPMKUNIT=$(PACKAGEDIR_FPMKUNIT)/units/$(SOURCESUFFIX)
|
||||
else
|
||||
ifneq ($(wildcard $(PACKAGEDIR_FPMKUNIT)/units_bs/$(SOURCESUFFIX)),)
|
||||
UNITDIR_FPMAKE_FPMKUNIT=$(PACKAGEDIR_FPMKUNIT)/units_bs/$(SOURCESUFFIX)
|
||||
else
|
||||
UNITDIR_FPMAKE_FPMKUNIT=$(PACKAGEDIR_FPMKUNIT)
|
||||
endif
|
||||
endif
|
||||
ifdef CHECKDEPEND
|
||||
$(PACKAGEDIR_FPMKUNIT)/$(FPCMADE):
|
||||
$(MAKE) -C $(PACKAGEDIR_FPMKUNIT) $(FPCMADE)
|
||||
override ALLDEPENDENCIES+=$(PACKAGEDIR_FPMKUNIT)/$(FPCMADE)
|
||||
endif
|
||||
else
|
||||
PACKAGEDIR_FPMKUNIT=
|
||||
UNITDIR_FPMKUNIT:=$(subst /Package.fpc,,$(strip $(wildcard $(addsuffix /fpmkunit/Package.fpc,$(UNITSDIR)))))
|
||||
ifneq ($(UNITDIR_FPMKUNIT),)
|
||||
UNITDIR_FPMKUNIT:=$(firstword $(UNITDIR_FPMKUNIT))
|
||||
else
|
||||
UNITDIR_FPMKUNIT=
|
||||
endif
|
||||
endif
|
||||
ifdef UNITDIR_FPMKUNIT
|
||||
override COMPILER_UNITDIR+=$(UNITDIR_FPMKUNIT)
|
||||
endif
|
||||
ifdef UNITDIR_FPMAKE_FPMKUNIT
|
||||
override COMPILER_FPMAKE_UNITDIR+=$(UNITDIR_FPMAKE_FPMKUNIT)
|
||||
endif
|
||||
|
||||
|
||||
[rules]
|
||||
.NOTPARALLEL:
|
||||
|
||||
fpmake: fpmake.pp
|
||||
$(FPCFPMAKE) fpmake.pp $(FPMAKE_SKIP_CONFIG) $(addprefix -Fu,$(COMPILER_FPMAKE_UNITDIR)) $(FPCMAKEOPT)
|
||||
all: fpmake
|
||||
$(LOCALFPMAKE) compile --localunitdir=../.. --globalunitdir=.. $(FPC_TARGETOPT) $(addprefix -o ,$(FPCOPT)) --compiler=$(FPC) -bu
|
||||
smart: fpmake
|
||||
$(LOCALFPMAKE) compile --localunitdir=../.. --globalunitdir=.. $(FPC_TARGETOPT) $(addprefix -o ,$(FPCOPT)) --compiler=$(FPC) -bu -o -XX -o -CX
|
||||
release: fpmake
|
||||
$(LOCALFPMAKE) compile --localunitdir=../.. --globalunitdir=.. $(FPC_TARGETOPT) $(addprefix -o ,$(FPCOPT)) --compiler=$(FPC) -bu -o -dRELEASE
|
||||
debug: fpmake
|
||||
$(LOCALFPMAKE) compile --localunitdir=../.. --globalunitdir=.. $(FPC_TARGETOPT) $(addprefix -o ,$(FPCOPT)) --compiler=$(FPC) -bu -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 --localunitdir=../.. --globalunitdir=.. $(FPC_TARGETOPT) $(addprefix -o ,$(FPCOPT)) --compiler=$(FPC)
|
||||
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 --localunitdir=../.. --globalunitdir=.. $(FPC_TARGETOPT) $(addprefix -o ,$(FPCOPT)) --compiler=$(FPC); 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 --localunitdir=../.. --globalunitdir=.. $(FPC_TARGETOPT) $(addprefix -o ,$(FPCOPT)) --compiler=$(FPC)
|
||||
endif
|
||||
-$(DEL) $(LOCALFPMAKE)
|
||||
endif
|
||||
install: fpmake
|
||||
ifdef UNIXHier
|
||||
$(LOCALFPMAKE) install --localunitdir=../.. --globalunitdir=.. $(FPC_TARGETOPT) $(addprefix -o ,$(FPCOPT)) --compiler=$(FPC) --prefix=$(INSTALL_PREFIX) --baseinstalldir=$(INSTALL_LIBDIR)/fpc/$(FPC_VERSION) --unitinstalldir=$(INSTALL_UNITDIR)
|
||||
else
|
||||
$(LOCALFPMAKE) install --localunitdir=../.. --globalunitdir=.. $(FPC_TARGETOPT) $(addprefix -o ,$(FPCOPT)) --compiler=$(FPC) --prefix=$(INSTALL_BASEDIR) --unitinstalldir=$(INSTALL_UNITDIR)
|
||||
endif
|
||||
# distinstall also installs the example-sources
|
||||
distinstall: fpmake
|
||||
ifdef UNIXHier
|
||||
$(LOCALFPMAKE) install --localunitdir=../.. --globalunitdir=.. $(FPC_TARGETOPT) $(addprefix -o ,$(FPCOPT)) --compiler=$(FPC) --prefix=$(INSTALL_PREFIX) --baseinstalldir=$(INSTALL_LIBDIR)/fpc/$(FPC_VERSION) --unitinstalldir=$(INSTALL_UNITDIR) -ie
|
||||
else
|
||||
$(LOCALFPMAKE) install --localunitdir=../.. --globalunitdir=.. $(FPC_TARGETOPT) $(addprefix -o ,$(FPCOPT)) --compiler=$(FPC) --prefix=$(INSTALL_BASEDIR) --unitinstalldir=$(INSTALL_UNITDIR) -ie
|
||||
endif
|
||||
|
||||
|
24
packages/hash/Makefile.fpc.fpcmake
Normal file
24
packages/hash/Makefile.fpc.fpcmake
Normal file
@ -0,0 +1,24 @@
|
||||
#
|
||||
# Makefile.fpc for MD5 checksum.
|
||||
#
|
||||
|
||||
[package]
|
||||
name=hash
|
||||
version=2.7.1
|
||||
|
||||
[target]
|
||||
units=md5 crc ntlm sha1 uuid
|
||||
units_linux=unixcrypt
|
||||
exampledirs=examples
|
||||
|
||||
[install]
|
||||
fpcpackage=y
|
||||
|
||||
[compiler]
|
||||
sourcedir=src
|
||||
|
||||
[default]
|
||||
fpcdir=../..
|
||||
|
||||
[rules]
|
||||
.NOTPARALLEL:
|
File diff suppressed because it is too large
Load Diff
@ -1,5 +1,5 @@
|
||||
#
|
||||
# Makefile.fpc for PasZLib
|
||||
# Makefile.fpc for running fpmake
|
||||
#
|
||||
|
||||
[package]
|
||||
@ -7,22 +7,109 @@ name=paszlib
|
||||
version=2.7.1
|
||||
|
||||
[require]
|
||||
packages=hash
|
||||
|
||||
[target]
|
||||
units=paszlib zip unzip zipper
|
||||
implicitunits=adler gzio infblock infcodes inffast inftrees infutil trees zcompres zdeflate zinflate zbase zuncompr ziputils zstream
|
||||
exampledirs=examples
|
||||
packages=rtl
|
||||
|
||||
[install]
|
||||
fpcpackage=y
|
||||
|
||||
[compiler]
|
||||
sourcedir=src
|
||||
|
||||
[default]
|
||||
fpcdir=../..
|
||||
|
||||
[prerules]
|
||||
FPMAKE_BIN_CLEAN=$(wildcard .$(PATHSEP)fpmake$(SRCEXEEXT))
|
||||
ifdef OS_TARGET
|
||||
FPC_TARGETOPT+=--os=$(OS_TARGET)
|
||||
endif
|
||||
ifdef CPU_TARGET
|
||||
FPC_TARGETOPT+=--cpu=$(CPU_TARGET)
|
||||
endif
|
||||
LOCALFPMAKE=.$(PATHSEP)fpmake$(SRCEXEEXT)
|
||||
# Adding a dependency on fpmkunit is not possbile due to an infinite loop. So
|
||||
# the fpmkunit-searchpath is added here:
|
||||
PACKAGEDIR_FPMKUNIT:=$(firstword $(subst /Makefile.fpc,,$(strip $(wildcard $(addsuffix /fpmkunit/Makefile.fpc,$(PACKAGESDIR))))))
|
||||
ifneq ($(PACKAGEDIR_FPMKUNIT),)
|
||||
ifneq ($(wildcard $(PACKAGEDIR_FPMKUNIT)/units/$(TARGETSUFFIX)),)
|
||||
UNITDIR_FPMKUNIT=$(PACKAGEDIR_FPMKUNIT)/units/$(TARGETSUFFIX)
|
||||
else
|
||||
UNITDIR_FPMKUNIT=$(PACKAGEDIR_FPMKUNIT)
|
||||
endif
|
||||
ifneq ($(wildcard $(PACKAGEDIR_FPMKUNIT)/units/$(SOURCESUFFIX)),)
|
||||
UNITDIR_FPMAKE_FPMKUNIT=$(PACKAGEDIR_FPMKUNIT)/units/$(SOURCESUFFIX)
|
||||
else
|
||||
ifneq ($(wildcard $(PACKAGEDIR_FPMKUNIT)/units_bs/$(SOURCESUFFIX)),)
|
||||
UNITDIR_FPMAKE_FPMKUNIT=$(PACKAGEDIR_FPMKUNIT)/units_bs/$(SOURCESUFFIX)
|
||||
else
|
||||
UNITDIR_FPMAKE_FPMKUNIT=$(PACKAGEDIR_FPMKUNIT)
|
||||
endif
|
||||
endif
|
||||
ifdef CHECKDEPEND
|
||||
$(PACKAGEDIR_FPMKUNIT)/$(FPCMADE):
|
||||
$(MAKE) -C $(PACKAGEDIR_FPMKUNIT) $(FPCMADE)
|
||||
override ALLDEPENDENCIES+=$(PACKAGEDIR_FPMKUNIT)/$(FPCMADE)
|
||||
endif
|
||||
else
|
||||
PACKAGEDIR_FPMKUNIT=
|
||||
UNITDIR_FPMKUNIT:=$(subst /Package.fpc,,$(strip $(wildcard $(addsuffix /fpmkunit/Package.fpc,$(UNITSDIR)))))
|
||||
ifneq ($(UNITDIR_FPMKUNIT),)
|
||||
UNITDIR_FPMKUNIT:=$(firstword $(UNITDIR_FPMKUNIT))
|
||||
else
|
||||
UNITDIR_FPMKUNIT=
|
||||
endif
|
||||
endif
|
||||
ifdef UNITDIR_FPMKUNIT
|
||||
override COMPILER_UNITDIR+=$(UNITDIR_FPMKUNIT)
|
||||
endif
|
||||
ifdef UNITDIR_FPMAKE_FPMKUNIT
|
||||
override COMPILER_FPMAKE_UNITDIR+=$(UNITDIR_FPMAKE_FPMKUNIT)
|
||||
endif
|
||||
|
||||
|
||||
[rules]
|
||||
.NOTPARALLEL:
|
||||
|
||||
fpmake: fpmake.pp
|
||||
$(FPCFPMAKE) fpmake.pp $(FPMAKE_SKIP_CONFIG) $(addprefix -Fu,$(COMPILER_FPMAKE_UNITDIR)) $(FPCMAKEOPT)
|
||||
all: fpmake
|
||||
$(LOCALFPMAKE) compile --localunitdir=../.. --globalunitdir=.. $(FPC_TARGETOPT) $(addprefix -o ,$(FPCOPT)) --compiler=$(FPC) -bu
|
||||
smart: fpmake
|
||||
$(LOCALFPMAKE) compile --localunitdir=../.. --globalunitdir=.. $(FPC_TARGETOPT) $(addprefix -o ,$(FPCOPT)) --compiler=$(FPC) -bu -o -XX -o -CX
|
||||
release: fpmake
|
||||
$(LOCALFPMAKE) compile --localunitdir=../.. --globalunitdir=.. $(FPC_TARGETOPT) $(addprefix -o ,$(FPCOPT)) --compiler=$(FPC) -bu -o -dRELEASE
|
||||
debug: fpmake
|
||||
$(LOCALFPMAKE) compile --localunitdir=../.. --globalunitdir=.. $(FPC_TARGETOPT) $(addprefix -o ,$(FPCOPT)) --compiler=$(FPC) -bu -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 --localunitdir=../.. --globalunitdir=.. $(FPC_TARGETOPT) $(addprefix -o ,$(FPCOPT)) --compiler=$(FPC)
|
||||
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 --localunitdir=../.. --globalunitdir=.. $(FPC_TARGETOPT) $(addprefix -o ,$(FPCOPT)) --compiler=$(FPC); 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 --localunitdir=../.. --globalunitdir=.. $(FPC_TARGETOPT) $(addprefix -o ,$(FPCOPT)) --compiler=$(FPC)
|
||||
endif
|
||||
-$(DEL) $(LOCALFPMAKE)
|
||||
endif
|
||||
install: fpmake
|
||||
ifdef UNIXHier
|
||||
$(LOCALFPMAKE) install --localunitdir=../.. --globalunitdir=.. $(FPC_TARGETOPT) $(addprefix -o ,$(FPCOPT)) --compiler=$(FPC) --prefix=$(INSTALL_PREFIX) --baseinstalldir=$(INSTALL_LIBDIR)/fpc/$(FPC_VERSION) --unitinstalldir=$(INSTALL_UNITDIR)
|
||||
else
|
||||
$(LOCALFPMAKE) install --localunitdir=../.. --globalunitdir=.. $(FPC_TARGETOPT) $(addprefix -o ,$(FPCOPT)) --compiler=$(FPC) --prefix=$(INSTALL_BASEDIR) --unitinstalldir=$(INSTALL_UNITDIR)
|
||||
endif
|
||||
# distinstall also installs the example-sources
|
||||
distinstall: fpmake
|
||||
ifdef UNIXHier
|
||||
$(LOCALFPMAKE) install --localunitdir=../.. --globalunitdir=.. $(FPC_TARGETOPT) $(addprefix -o ,$(FPCOPT)) --compiler=$(FPC) --prefix=$(INSTALL_PREFIX) --baseinstalldir=$(INSTALL_LIBDIR)/fpc/$(FPC_VERSION) --unitinstalldir=$(INSTALL_UNITDIR) -ie
|
||||
else
|
||||
$(LOCALFPMAKE) install --localunitdir=../.. --globalunitdir=.. $(FPC_TARGETOPT) $(addprefix -o ,$(FPCOPT)) --compiler=$(FPC) --prefix=$(INSTALL_BASEDIR) --unitinstalldir=$(INSTALL_UNITDIR) -ie
|
||||
endif
|
||||
|
||||
|
28
packages/paszlib/Makefile.fpc.fpcmake
Normal file
28
packages/paszlib/Makefile.fpc.fpcmake
Normal file
@ -0,0 +1,28 @@
|
||||
#
|
||||
# Makefile.fpc for PasZLib
|
||||
#
|
||||
|
||||
[package]
|
||||
name=paszlib
|
||||
version=2.7.1
|
||||
|
||||
[require]
|
||||
packages=hash
|
||||
|
||||
[target]
|
||||
units=paszlib zip unzip zipper
|
||||
implicitunits=adler gzio infblock infcodes inffast inftrees infutil trees zcompres zdeflate zinflate zbase zuncompr ziputils zstream
|
||||
exampledirs=examples
|
||||
|
||||
[install]
|
||||
fpcpackage=y
|
||||
|
||||
[compiler]
|
||||
sourcedir=src
|
||||
|
||||
[default]
|
||||
fpcdir=../..
|
||||
|
||||
[rules]
|
||||
.NOTPARALLEL:
|
||||
|
40
packages/winceunits/Makefile.fpc.fpcmake
Normal file
40
packages/winceunits/Makefile.fpc.fpcmake
Normal file
@ -0,0 +1,40 @@
|
||||
#
|
||||
# Makefile.fpc for WinCE Units
|
||||
#
|
||||
|
||||
[package]
|
||||
name=winceunits
|
||||
version=2.7.1
|
||||
|
||||
[target]
|
||||
units_wince=comobj buildwinceunits
|
||||
implicitunits_wince=aygshell commctrl commdlg iphlpapi notify oleauto power shellapi simmgr tapi \
|
||||
gpsapi todaycmn windbase cesync gx winioctl msgqueue pm service htmlctrl \
|
||||
sipapi cpl bt_api bt_sdp bthapi bthutil pimstore ril sms ws2bth keybd nled \
|
||||
phone connmgr devload devmgmt mmreg mmsystem msacm wininet ras raserror \
|
||||
sip projects wap tsp extapi imm \
|
||||
activex ole2 comconst rapitypes tlhelp32
|
||||
|
||||
units_win32=rapi cesync rapitypes
|
||||
|
||||
rsts=comconst
|
||||
|
||||
[install]
|
||||
buildunit=buildwinceunits
|
||||
fpcpackage=y
|
||||
|
||||
[default]
|
||||
fpcdir=../..
|
||||
|
||||
[compiler]
|
||||
options=-Ur
|
||||
sourcedir=src
|
||||
|
||||
[prerules]
|
||||
WINDIR=../winunits-base/src
|
||||
|
||||
[rules]
|
||||
.NOTPARALLEL:
|
||||
|
||||
comobj$(PPUEXT) : $(WINDIR)/comobj.pp $(WINDIR)/activex.pp
|
||||
$(COMPILER) $(WINDIR)/comobj.pp
|
Loading…
Reference in New Issue
Block a user