mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-12 10:09:36 +02:00
126 lines
3.9 KiB
Makefile
126 lines
3.9 KiB
Makefile
#
|
|
# Makefile.fpc for Free Pascal Darwin RTL
|
|
#
|
|
|
|
[package]
|
|
main=rtl
|
|
|
|
# disabled units: serial
|
|
[target]
|
|
loaders=
|
|
units=$(SYSTEMUNIT) sysinit $(UUCHARUNIT) $(UNIXTYPEUNIT) $(CTYPESUNIT) $(OBJPASUNIT) $(MACPASUNIT) $(ISO7185UNIT) $(EXTPASUNIT) \
|
|
$(STRINGSUNIT) $(SYSCTLUNIT) $(BASEUNIXUNIT) $(UNIXUTILUNIT) \
|
|
$(UNIXUNIT) $(INITCUNIT) $(CMEMUNIT) $(DYNLIBSUNIT) $(CPU_UNITS) \
|
|
$(DOSUNIT) $(DLUNIT) $(BLOCKRTLUNIT) \
|
|
$(TYPINFOUNIT) $(SORTBASEUNIT) $(FGLUNIT) $(CLASSESUNIT) $(MATHUNIT) $(TYPESUNIT) \
|
|
$(CHARSETUNIT) $(CPALLUNIT) $(CHARACTERUNIT) $(GETOPTSUNIT) heaptrc $(LINEINFOUNIT) $(LNFODWRFUNIT) $(LNFOGDBUNIT) \
|
|
$(ERRORSUNIT) $(TERMIOUNIT) \
|
|
$(SYSCONSTUNIT) $(CTHREADSUNIT) $(RTLCONSTSUNIT) $(CWSTRINGUNIT) $(BSDUNIT) $(SYSUTILSUNIT) $(FPWIDESTRINGUNIT) \
|
|
$(FPINTRESUNIT) fpextres $(OBJCUNIT) $(OBJCBASEUNIT) $(UNIXCPUNIT) \
|
|
$(SOFTFPUUNIT) $(SFPUX80UNIT) $(UFLOATX80UNIT) $(SFPU128UNIT) $(UFLOAT128UNIT)
|
|
implicitunits=$(EXEINFOUNIT) \
|
|
$(CP1250UNIT) $(CP1251UNIT) $(CP1252UNIT) $(CP1253UNIT) $(CP1254UNIT) $(CP1255UNIT) $(CP1256UNIT) $(CP1257UNIT) $(CP1258UNIT) \
|
|
$(CP437UNIT) $(CP646UNIT) $(CP737UNIT) $(CP775UNIT) $(CP850UNIT) $(CP852UNIT) $(CP855UNIT) $(CP856UNIT) $(CP857UNIT) $(CP860UNIT) $(CP861UNIT) $(CP862UNIT) \
|
|
$(CP863UNIT) $(CP864UNIT) $(CP865UNIT) $(CP866UNIT) $(CP869UNIT) $(CP874UNIT) $(CP3021UNIT) $(CP8859_1UNIT) $(CP8859_2UNIT) $(CP8859_3UNIT) $(CP8859_4UNIT) \
|
|
$(CP8859_5UNIT) $(CP8859_6UNIT) $(CP8859_7UNIT) $(CP8859_8UNIT) $(CP8859_9UNIT) $(CP8859_10UNIT) $(CP8859_11UNIT) \
|
|
$(CP8859_13UNIT) $(CP8859_14UNIT) $(CP8859_15UNIT) $(CP8859_16UNIT) $(CPKOI8_RUNIT) $(CPKOI8_UUNIT) \
|
|
$(UNICODEDATAUNIT)
|
|
|
|
rsts=math typinfo classes sysconst rtlconsts
|
|
|
|
[require]
|
|
nortl=y
|
|
|
|
[install]
|
|
fpcpackage=y
|
|
|
|
[default]
|
|
target=darwin
|
|
|
|
[compiler]
|
|
includedir=$(INC) $(PROCINC) $(UNIXINC) $(BSDINC) $(BSDPROCINC) $(OSPROCINC)
|
|
sourcedir=$(INC) $(PROCINC) $(UNIXINC) $(BSDINC) $(COMMON)
|
|
|
|
|
|
[lib]
|
|
libname=libfprtl.so
|
|
libversion=2.0.0
|
|
libunits=$(SYSTEMUNIT) $(OBJPASUNIT) $(STRINGSUNIT) \
|
|
$(UNIXUNIT) \
|
|
$(DOSUNIT) $(CRTUNIT) $(OBJECTSUNIT) \
|
|
$(SYSUTILSUNIT) $(TYPINFOUNIT) $(MATHUNIT) \
|
|
$(CPUUNIT) $(MMXUNIT) $(GETOPTSUNIT) $(HEAPTRCUNIT) \
|
|
$(ERRORSUNIT)
|
|
|
|
[prerules]
|
|
ifeq ($(CPU_TARGET),i386)
|
|
CPU_UNITS=$(MMXUNIT) $(CPUUNIT)
|
|
endif
|
|
|
|
ifeq ($(ARCH),x86_64)
|
|
CPU_UNITS=$(CPUUNIT)
|
|
endif
|
|
|
|
RTL=..
|
|
INC=$(RTL)/inc
|
|
COMMON=$(RTL)/common
|
|
PROCINC=$(RTL)/$(CPU_TARGET)
|
|
BSDINC=$(RTL)/bsd
|
|
BSDPROCINC=$(BSDINC)/$(CPU_TARGET)
|
|
OSPROCINC=$(RTL)/darwin/$(CPU_TARGET)
|
|
UNIXINC=$(RTL)/unix
|
|
UNITPREFIX=rtl
|
|
INITCDIR=$(UNIXINC)
|
|
|
|
SYSUTILS_DEPS_OS=$(SYSCTLUNIT)$(PPUEXT) $(BASEUNIXUNIT)$(PPUEXT) $(UNIXUNIT)$(PPUEXT) $(ERRORSUNIT)$(PPUEXT) $(SYSCONSTUNIT)$(PPUEXT) $(UNIXTYPEUNIT)$(PPUEXT)
|
|
BASEUNIX_DEPS_OS=$(SYSCTLUNIT)$(PPUEXT)
|
|
DYNLIBS_DEPS_OS=$(DLUNIT)$(PPUEXT)
|
|
CTYPES_DEPS_OS=$(UNIXTYPEUNIT)$(PPUEXT)
|
|
EXEINFO_DEPS_OS=$(BASEUNIXUNIT)$(PPUEXT)
|
|
FPEXTRES_DEPS_OS=$(BASEUNIXUNIT)$(PPUEXT)
|
|
DOS_DEPS_OS=$(BASEUNIXUNIT)$(PPUEXT) $(UNIXUTILUNIT)$(PPUEXT) $(UNIXUNIT)$(PPUEXT)
|
|
|
|
SYSTEMUNIT=system
|
|
|
|
# Use new feature from 1.0.5 version
|
|
# that generates release PPU files
|
|
# which will not be recompiled
|
|
ifdef RELEASE
|
|
override FPCOPT+=-Ur
|
|
endif
|
|
|
|
# Darwin requires libc, no syscalls
|
|
override FPCOPT+=-dFPC_USE_LIBC
|
|
|
|
# Paths
|
|
OBJPASDIR=$(RTL)/objpas
|
|
|
|
[rules]
|
|
# Get the system independent include file names.
|
|
# This will set the following variables :
|
|
# SYSINCNAMES
|
|
include $(INC)/makefile.inc
|
|
SYSINCDEPS=$(addprefix $(INC)/,$(SYSINCNAMES))
|
|
|
|
# Get the processor dependent include file names.
|
|
# This will set the following variables :
|
|
# CPUINCNAMES
|
|
include $(PROCINC)/makefile.cpu
|
|
SYSCPUDEPS=$(addprefix $(PROCINC)/,$(CPUINCNAMES))
|
|
|
|
# Put system unit dependencies together.
|
|
SYSDEPS=$(SYSINCDEPS) $(SYSCPUDEPS) $(OSPROCINC)/sighnd.inc $(OSPROCINC)/sig_cpu.inc
|
|
|
|
|
|
#
|
|
# System Units (System, Objpas, Strings)
|
|
#
|
|
|
|
|
|
|
|
SYSINIT_DEPS=sysinit.pas $(SYSTEMUNIT)$(PPUEXT) \
|
|
$(SYSINIT_DEPS_OS) $(SYSINIT_DEPS_CPU)
|
|
|
|
sysinit$(PPUEXT) : $(SYSINIT_DEPS)
|
|
$(COMPILER) $<
|