mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-06-28 02:09:46 +02:00
* removed makefile.fpc
* use Makefile.fpc for the top Makefile
This commit is contained in:
parent
46ae55d3cd
commit
dd588ce47b
1007
base/Makefile
1007
base/Makefile
File diff suppressed because it is too large
Load Diff
400
base/Makefile.fpc
Normal file
400
base/Makefile.fpc
Normal file
@ -0,0 +1,400 @@
|
|||||||
|
#
|
||||||
|
# Makefile.fpc for Free Pascal Source Tree
|
||||||
|
#
|
||||||
|
|
||||||
|
[defaults]
|
||||||
|
defaultrule=info
|
||||||
|
|
||||||
|
[rules]
|
||||||
|
#####################################################################
|
||||||
|
# Config
|
||||||
|
#####################################################################
|
||||||
|
|
||||||
|
# Try to determine which modules are installed
|
||||||
|
MODULES+=$(wildcard compiler)
|
||||||
|
MODULES+=$(wildcard rtl)
|
||||||
|
MODULES+=$(wildcard utils)
|
||||||
|
MODULES+=$(wildcard fcl)
|
||||||
|
MODULES+=$(wildcard gtk)
|
||||||
|
MODULES+=$(wildcard api)
|
||||||
|
MODULES+=$(wildcard fv)
|
||||||
|
MODULES+=$(wildcard gdbint)
|
||||||
|
MODULES+=$(wildcard ide)
|
||||||
|
|
||||||
|
###############################
|
||||||
|
# Default paths
|
||||||
|
###############################
|
||||||
|
|
||||||
|
ifndef RTLDIR
|
||||||
|
RTLDIR=rtl
|
||||||
|
endif
|
||||||
|
|
||||||
|
ifndef COMPILERDIR
|
||||||
|
COMPILERDIR=compiler
|
||||||
|
endif
|
||||||
|
|
||||||
|
ifndef UTILSDIR
|
||||||
|
UTILSDIR=utils
|
||||||
|
endif
|
||||||
|
|
||||||
|
ifndef FCLDIR
|
||||||
|
FCLDIR=fcl
|
||||||
|
endif
|
||||||
|
|
||||||
|
ifndef GTKDIR
|
||||||
|
GTKDIR=gtk
|
||||||
|
endif
|
||||||
|
|
||||||
|
ifndef APIDIR
|
||||||
|
APIDIR=api
|
||||||
|
endif
|
||||||
|
|
||||||
|
ifndef FVDIR
|
||||||
|
FVDIR=fv
|
||||||
|
endif
|
||||||
|
|
||||||
|
ifndef GDBDIR
|
||||||
|
GDBDIR=gdbint
|
||||||
|
endif
|
||||||
|
|
||||||
|
ifndef FPINSTDIR
|
||||||
|
FPINSTDIR=fpinst
|
||||||
|
endif
|
||||||
|
|
||||||
|
ifndef IDEDIR
|
||||||
|
IDEDIR=ide
|
||||||
|
endif
|
||||||
|
|
||||||
|
#####################################################################
|
||||||
|
# Defaults
|
||||||
|
#####################################################################
|
||||||
|
|
||||||
|
export RELEASE=1
|
||||||
|
|
||||||
|
|
||||||
|
#####################################################################
|
||||||
|
# Main targets
|
||||||
|
#####################################################################
|
||||||
|
|
||||||
|
.PHONY: all clean install staticinstall sharedinstall \
|
||||||
|
$(addsuffix _all,$(MODULES)) \
|
||||||
|
$(addsuffix _clean,$(MODULES)) \
|
||||||
|
$(addsuffix _install,$(MODULES)) \
|
||||||
|
$(addsuffix _staticinstall,$(MODULES)) \
|
||||||
|
$(addsuffix _sharedinstall,$(MODULES))\
|
||||||
|
compiler_cycle \
|
||||||
|
idezips ide_allzip ide_gdbzip ide_fullzip ide_fullgdbzip \
|
||||||
|
fclzip gtkzip fvzip compilerzip utilszip
|
||||||
|
|
||||||
|
info:
|
||||||
|
@echo
|
||||||
|
@echo Please use one of the following targets:
|
||||||
|
@echo
|
||||||
|
@echo $(MODULES)
|
||||||
|
@echo
|
||||||
|
@echo All targets can follow after a _ with:
|
||||||
|
@echo all,clean,install,staticinstall,sharedinstall
|
||||||
|
@echo
|
||||||
|
@echo example: make api_staticinstall
|
||||||
|
@exit
|
||||||
|
|
||||||
|
all: $(addsuffix _all,$(MODULES))
|
||||||
|
|
||||||
|
clean: $(addsuffix _clean,$(MODULES))
|
||||||
|
|
||||||
|
install: $(addsuffix _install,$(MODULES))
|
||||||
|
|
||||||
|
staticinstall: $(addsuffix _staticinstall,$(MODULES))
|
||||||
|
|
||||||
|
sharedinstall: $(addsuffix _sharedinstall,$(MODULES))
|
||||||
|
|
||||||
|
#####################################################################
|
||||||
|
# Dependencies
|
||||||
|
#####################################################################
|
||||||
|
|
||||||
|
#######################################
|
||||||
|
# RTL
|
||||||
|
#######################################
|
||||||
|
|
||||||
|
override RTLDIR:=$(RTLDIR)/$(OS_TARGET)
|
||||||
|
|
||||||
|
rtl_all:
|
||||||
|
$(MAKE) -C $(RTLDIR) all
|
||||||
|
|
||||||
|
rtl_clean:
|
||||||
|
$(MAKE) -C $(RTLDIR) clean
|
||||||
|
|
||||||
|
rtl_install:
|
||||||
|
$(MAKE) -C $(RTLDIR) install
|
||||||
|
|
||||||
|
rtl_staticinstall:
|
||||||
|
$(MAKE) -C $(RTLDIR) staticlibinstall
|
||||||
|
|
||||||
|
rtl_sharedinstall:
|
||||||
|
$(MAKE) -C $(RTLDIR) sharedlibinstall
|
||||||
|
|
||||||
|
|
||||||
|
#######################################
|
||||||
|
# Compiler
|
||||||
|
#######################################
|
||||||
|
|
||||||
|
compiler_cycle:
|
||||||
|
$(MAKE) -C $(COMPILERDIR) cycle
|
||||||
|
|
||||||
|
compiler_all: rtl_all
|
||||||
|
$(MAKE) -C $(COMPILERDIR) all
|
||||||
|
|
||||||
|
compiler_clean:
|
||||||
|
$(MAKE) -C $(COMPILERDIR) distclean
|
||||||
|
|
||||||
|
compiler_install:
|
||||||
|
$(MAKE) -C $(COMPILERDIR) install
|
||||||
|
|
||||||
|
compiler_installlib:
|
||||||
|
$(MAKE) -C $(COMPILERDIR) installlib
|
||||||
|
|
||||||
|
compiler_staticinstall:
|
||||||
|
|
||||||
|
compiler_sharedinstall:
|
||||||
|
|
||||||
|
|
||||||
|
#######################################
|
||||||
|
# Utils
|
||||||
|
#######################################
|
||||||
|
|
||||||
|
utils_all: rtl_all fcl_all
|
||||||
|
$(MAKE) -C $(UTILSDIR) all
|
||||||
|
|
||||||
|
utils_clean:
|
||||||
|
$(MAKE) -C $(UTILSDIR) clean
|
||||||
|
|
||||||
|
utils_install:
|
||||||
|
$(MAKE) -C $(UTILSDIR) install
|
||||||
|
|
||||||
|
utils_installlib:
|
||||||
|
$(MAKE) -C $(UTILSDIR) installlib
|
||||||
|
|
||||||
|
utils_staticinstall:
|
||||||
|
|
||||||
|
utils_sharedinstall:
|
||||||
|
|
||||||
|
|
||||||
|
#######################################
|
||||||
|
# FCL
|
||||||
|
#######################################
|
||||||
|
|
||||||
|
override FCLDIR:=$(FCLDIR)/$(OS_TARGET)
|
||||||
|
|
||||||
|
fcl_all: rtl_all
|
||||||
|
$(MAKE) -C $(FCLDIR) all
|
||||||
|
|
||||||
|
fcl_clean:
|
||||||
|
$(MAKE) -C $(FCLDIR) clean
|
||||||
|
|
||||||
|
fcl_install:
|
||||||
|
$(MAKE) -C $(FCLDIR) install
|
||||||
|
|
||||||
|
fcl_staticinstall:
|
||||||
|
$(MAKE) -C $(FCLDIR) staticlibinstall
|
||||||
|
|
||||||
|
fcl_sharedinstall:
|
||||||
|
$(MAKE) -C $(FCLDIR) sharedlibinstall
|
||||||
|
|
||||||
|
|
||||||
|
#######################################
|
||||||
|
# GTK
|
||||||
|
#######################################
|
||||||
|
|
||||||
|
gtk_all: rtl_all
|
||||||
|
$(MAKE) -C $(GTKDIR) all
|
||||||
|
|
||||||
|
gtk_clean:
|
||||||
|
$(MAKE) -C $(GTKDIR) clean
|
||||||
|
|
||||||
|
gtk_install:
|
||||||
|
$(MAKE) -C $(GTKDIR) install
|
||||||
|
|
||||||
|
gtk_staticinstall:
|
||||||
|
$(MAKE) -C $(GTKDIR) staticlibinstall
|
||||||
|
|
||||||
|
gtk_sharedinstall:
|
||||||
|
$(MAKE) -C $(GTKDIR) sharedlibinstall
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
#######################################
|
||||||
|
# API
|
||||||
|
#######################################
|
||||||
|
|
||||||
|
api_all: rtl_all
|
||||||
|
$(MAKE) -C $(APIDIR) all
|
||||||
|
|
||||||
|
api_clean:
|
||||||
|
$(MAKE) -C $(APIDIR) clean
|
||||||
|
|
||||||
|
api_install:
|
||||||
|
$(MAKE) -C $(APIDIR) install
|
||||||
|
|
||||||
|
api_staticinstall:
|
||||||
|
$(MAKE) -C $(APIDIR) staticlibinstall
|
||||||
|
|
||||||
|
api_sharedinstall:
|
||||||
|
$(MAKE) -C $(APIDIR) sharedlibinstall
|
||||||
|
|
||||||
|
|
||||||
|
#######################################
|
||||||
|
# FV
|
||||||
|
#######################################
|
||||||
|
|
||||||
|
fv_all: rtl_all api_all
|
||||||
|
$(MAKE) -C $(FVDIR) all
|
||||||
|
|
||||||
|
fv_clean:
|
||||||
|
$(MAKE) -C $(FVDIR) clean
|
||||||
|
|
||||||
|
fv_install:
|
||||||
|
$(MAKE) -C $(FVDIR) install
|
||||||
|
|
||||||
|
fv_staticinstall:
|
||||||
|
$(MAKE) -C $(FVDIR) staticlibinstall
|
||||||
|
|
||||||
|
fv_sharedinstall:
|
||||||
|
$(MAKE) -C $(FVDIR) sharedlibinstall
|
||||||
|
|
||||||
|
|
||||||
|
#######################################
|
||||||
|
# GDB
|
||||||
|
#######################################
|
||||||
|
|
||||||
|
gdbint_all: rtl_all
|
||||||
|
$(MAKE) -C $(GDBDIR) all
|
||||||
|
|
||||||
|
gdbint_clean:
|
||||||
|
$(MAKE) -C $(GDBDIR) clean
|
||||||
|
|
||||||
|
gdbint_install:
|
||||||
|
$(MAKE) -C $(GDBDIR) install
|
||||||
|
|
||||||
|
gdbint_staticinstall:
|
||||||
|
$(MAKE) -C $(GDBDIR) staticlibinstall
|
||||||
|
|
||||||
|
gdbint_sharedinstall:
|
||||||
|
$(MAKE) -C $(GDBDIR) sharedlibinstall
|
||||||
|
|
||||||
|
|
||||||
|
#######################################
|
||||||
|
# FPC fpinst
|
||||||
|
#######################################
|
||||||
|
|
||||||
|
fpinst_all: rtl_all api_all fv_all
|
||||||
|
$(MAKE) -C $(FPINSTDIR) all
|
||||||
|
|
||||||
|
fpinst_clean:
|
||||||
|
$(MAKE) -C $(FPINSTDIR) clean
|
||||||
|
|
||||||
|
fpinst_install:
|
||||||
|
$(MAKE) -C $(FPINSTDIR) install
|
||||||
|
|
||||||
|
fpinst_staticinstall:
|
||||||
|
$(MAKE) -C $(FPINSTDIR) staticlibinstall
|
||||||
|
|
||||||
|
fpinst_sharedinstall:
|
||||||
|
$(MAKE) -C $(FPINSTDIR) sharedlibinstall
|
||||||
|
|
||||||
|
|
||||||
|
#######################################
|
||||||
|
# IDE
|
||||||
|
#######################################
|
||||||
|
|
||||||
|
ide_all: rtl_all api_all fv_all
|
||||||
|
$(MAKE) -C $(IDEDIR) all
|
||||||
|
|
||||||
|
ide_gdb: rtl_all api_all fv_all gdbnt_all
|
||||||
|
$(MAKE) -C $(IDEDIR) gdb
|
||||||
|
|
||||||
|
ide_full: rtl_all api_all fv_all
|
||||||
|
$(MAKE) -C $(IDEDIR) full
|
||||||
|
|
||||||
|
ide_fullgdb: rtl_all api_all fv_all gdbint_all
|
||||||
|
$(MAKE) -C $(IDEDIR) fullgdb
|
||||||
|
|
||||||
|
ide_clean:
|
||||||
|
$(MAKE) -C $(IDEDIR) clean
|
||||||
|
|
||||||
|
ide_install:
|
||||||
|
$(MAKE) -C $(IDEDIR) install
|
||||||
|
|
||||||
|
ide_staticinstall:
|
||||||
|
$(MAKE) -C $(IDEDIR) staticlibinstall
|
||||||
|
|
||||||
|
ide_sharedinstall:
|
||||||
|
$(MAKE) -C $(IDEDIR) sharedlibinstall
|
||||||
|
|
||||||
|
|
||||||
|
#######################################
|
||||||
|
# Install targets
|
||||||
|
#######################################
|
||||||
|
|
||||||
|
base_install:
|
||||||
|
$(INSTALL) base/Makefile $(LIBINSTALLDIR)
|
||||||
|
$(INSTALL) base/makefile.fpc $(LIBINSTALLDIR)
|
||||||
|
|
||||||
|
demo_install:
|
||||||
|
$(MAKE) -C demo installdemo
|
||||||
|
|
||||||
|
man_install:
|
||||||
|
$(MAKE) -C man installman
|
||||||
|
|
||||||
|
|
||||||
|
#######################################
|
||||||
|
# Packaging targets
|
||||||
|
#######################################
|
||||||
|
|
||||||
|
ifndef ZIPTARGET
|
||||||
|
ZIPTARGET=install
|
||||||
|
endif
|
||||||
|
|
||||||
|
export ZIPTARGET
|
||||||
|
export PACKAGEDIR=$(BASEDIR)
|
||||||
|
|
||||||
|
idezips: clean ide_allzip ide_gdbzip ide_fullzip ide_fullgdbzip
|
||||||
|
|
||||||
|
ide_allzip:
|
||||||
|
$(MAKE) ide_clean
|
||||||
|
$(MAKE) ide_all
|
||||||
|
$(MAKE) -C $(IDEDIR)/text fpc_zipinstall ZIPNAME=ide-fake-$(PACKAGESUFFIX)
|
||||||
|
ide_gdbzip:
|
||||||
|
$(MAKE) ide_clean
|
||||||
|
$(MAKE) ide_gdb
|
||||||
|
$(MAKE) -C $(IDEDIR)/text fpc_zipinstall ZIPNAME=ide-gdb-$(PACKAGESUFFIX)
|
||||||
|
ide_fullzip:
|
||||||
|
$(MAKE) ide_clean
|
||||||
|
$(MAKE) ide_full
|
||||||
|
$(MAKE) -C $(IDEDIR)/text fpc_zipinstall ZIPNAME=ide-comp-$(PACKAGESUFFIX)
|
||||||
|
ide_fullgdbzip:
|
||||||
|
$(MAKE) ide_clean
|
||||||
|
$(MAKE) ide_fullgdb
|
||||||
|
$(MAKE) -C $(IDEDIR)/text fpc_zipinstall ZIPNAME=ide-full-$(PACKAGESUFFIX)
|
||||||
|
|
||||||
|
fvzip: rtl_clean api_clean fv_clean
|
||||||
|
$(MAKE) api_all
|
||||||
|
$(MAKE) -C $(APIDIR) fpc_zipinstall ZIPNAME=fv-$(PACKAGESUFFIX)
|
||||||
|
$(MAKE) fv_all
|
||||||
|
$(MAKE) -C $(FVDIR) fpc_zipinstalladd ZIPNAME=fv-$(PACKAGESUFFIX)
|
||||||
|
|
||||||
|
fclzip: rtl_clean fcl_clean
|
||||||
|
$(MAKE) fcl_all
|
||||||
|
$(MAKE) -C $(FCLDIR) fpc_zipinstall ZIPNAME=fcl-$(PACKAGESUFFIX)
|
||||||
|
|
||||||
|
gtkzip: rtl_clean gtk_clean
|
||||||
|
$(MAKE) gtk_all
|
||||||
|
$(MAKE) -C $(GTKDIR) fpc_zipinstall ZIPNAME=gtk-$(PACKAGESUFFIX)
|
||||||
|
|
||||||
|
compilerzip: compiler_clean rtl_clean
|
||||||
|
$(MAKE) compiler_all
|
||||||
|
$(MAKE) -C $(COMPILERDIR) fpc_zipinstall ZIPTARGET=quickinstall ZIPNAME=compiler-$(PACKAGESUFFIX)
|
||||||
|
$(MAKE) -C $(RTLDIR) fpc_zipinstalladd ZIPNAME=compiler-$(PACKAGESUFFIX)
|
||||||
|
|
||||||
|
utilszip: utils_clean rtl_clean
|
||||||
|
$(MAKE) utils_all
|
||||||
|
$(MAKE) -C $(UTILSDIR) fpc_zipinstall ZIPNAME=utils-$(PACKAGESUFFIX)
|
18
base/README
18
base/README
@ -9,8 +9,8 @@ OS_TARGET The target operating system you are going to compile for
|
|||||||
OS_SOURCE The source operating system you compiling under
|
OS_SOURCE The source operating system you compiling under
|
||||||
(Note: This has autodetection for go32v2,linux,winnt)
|
(Note: This has autodetection for go32v2,linux,winnt)
|
||||||
|
|
||||||
CPU The target CPU that is used (currently m68k,i386)
|
CPU_TARGET The target CPU that is used (currently m68k,i386)
|
||||||
Default: CPU=i386
|
Default: CPU_TARGET=i386
|
||||||
|
|
||||||
OPT General commandline options you want to give
|
OPT General commandline options you want to give
|
||||||
Example to compile with debug info: OPT=-g
|
Example to compile with debug info: OPT=-g
|
||||||
@ -23,8 +23,8 @@ NEEDOPT Realy needed commandline options, also used when
|
|||||||
|
|
||||||
NEEDUNITDIR Realy needed unitdir
|
NEEDUNITDIR Realy needed unitdir
|
||||||
|
|
||||||
PP compiler to use, default is ppc386
|
FPC compiler to use, default is ppc386
|
||||||
Example to compile with version 0.99.8: PP=ppc998
|
Example to compile with version 0.99.8: FPC=ppc998
|
||||||
|
|
||||||
AS assembler to use to compile the loaders
|
AS assembler to use to compile the loaders
|
||||||
Default: AS=as
|
Default: AS=as
|
||||||
@ -63,13 +63,7 @@ NODEFAULTRULES Don't include the default compiler rules. This is needed for
|
|||||||
Location:
|
Location:
|
||||||
---------
|
---------
|
||||||
INC Where to find the .inc files.
|
INC Where to find the .inc files.
|
||||||
Example: INC=inc
|
Example: INC=inc $(OS_TARGET)
|
||||||
|
|
||||||
PROCINC Where to find processor dependent .inc files
|
|
||||||
Example: PROCINC=$(CPU)
|
|
||||||
|
|
||||||
OSINC Where to find operating system dependent .inc files
|
|
||||||
Example: OSINC=$(OS_TARGET)
|
|
||||||
|
|
||||||
TARGETDIR Where to place all the .o,.ppu,.exe files
|
TARGETDIR Where to place all the .o,.ppu,.exe files
|
||||||
Example: TARGETDIR=. (this is needed when you compile
|
Example: TARGETDIR=. (this is needed when you compile
|
||||||
@ -101,6 +95,8 @@ DIFF GNU Diff
|
|||||||
DATE GNU Date (automaticly searched)
|
DATE GNU Date (automaticly searched)
|
||||||
SED GNU Sed (automaticly searched)
|
SED GNU Sed (automaticly searched)
|
||||||
PWD GNU PWD (automaticly searched)
|
PWD GNU PWD (automaticly searched)
|
||||||
|
UPXPROG UPX ExeFile compressor (automaticly searched)
|
||||||
|
ZIPPROG ZIP compressor (automaticly searched)
|
||||||
|
|
||||||
|
|
||||||
Directories:
|
Directories:
|
||||||
|
1199
base/makefile.fpc
1199
base/makefile.fpc
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user