mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-11 10:38:16 +02:00
103 lines
2.7 KiB
Makefile
103 lines
2.7 KiB
Makefile
#
|
|
# Makefile.fpc for Free Pascal BeOS RTL
|
|
#
|
|
|
|
[package]
|
|
main=rtl
|
|
|
|
[target]
|
|
loaders=prt0 cprt0 func dllprt
|
|
units=$(SYSTEMUNIT) $(UUCHARUNIT) $(BASEUNIXUNIT) $(UNIXTYPEUNIT) $(CTYPESUNIT) $(OBJPASUNIT) $(MACPASUNIT) $(ISO7185UNIT) $(EXTPASUNIT) $(STRINGSUNIT) \
|
|
$(ERRORSUNIT) $(DOSUNIT) $(DLUNIT) $(CTHREADSUNIIT) \
|
|
$(SYSCONSTUNIT) $(SYSUTILSUNIT) \
|
|
$(TYPESUNIT) $(CHARSETUNIT) $(CPALLUNIT) $(TYPINFOUNIT) $(SORTBASEUNIT) $(CLASSESUNIT) $(FGLUNIT) $(MATHUNIT) \
|
|
$(CPUUNIT) $(MMXUNIT) $(GETOPTSUNIT) $(HEAPTRCUNIT) $(LINEINFOUNIT) $(LNFODWRFUNIT) \
|
|
$(RTLCONSTSUNIT) $(SYSCALLUNIT) $(UNIXUNIT) $(UNIXUTILUNIT) $(TERMIOUNIT) $(INITCUNIT) \
|
|
$(UNIXCPUNIT) $(CHARACTERUNIT) $(FPWIDESTRINGUNIT) \
|
|
$(CMEMUNIT) \
|
|
$(DYNLIBSUNIT) $(CWSTRINGUNIT) \
|
|
$(SOFTFPUUNIT) $(SFPUX80UNIT) $(UFLOATX80UNIT) $(SFPU218UNIT) $(UFLOAT128UNIT)
|
|
# beos
|
|
rsts=$(MATHUNIT) $(TYPINFOUNIT) $(SYSCONSTUNIT) $(RTLCONSTSUNIT) $(UNICODEDATAUNIT)
|
|
implicitunits=$(EXEINFOUNIT) $(CP_UNITS) $(UNICODEDATAUNIT)
|
|
|
|
[require]
|
|
nortl=y
|
|
|
|
[install]
|
|
fpcpackage=y
|
|
|
|
[default]
|
|
target=beos
|
|
cpu=i386
|
|
|
|
[compiler]
|
|
includedir=$(INC) $(PROCINC) $(UNIXINC) $(CPU_TARGET) $(OSPROCINC)
|
|
sourcedir=$(INC) $(PROCINC) $(UNIXINC) $(CPU_TARGET)
|
|
targetdir=.
|
|
|
|
[lib]
|
|
libname=libfprtl.so
|
|
libversion=2.0.0
|
|
libunits=$(SYSTEMUNIT) $(OBJPASUNIT) $(STRINGSUNIT) \
|
|
$(UNIXUNIT) \
|
|
$(DOSUNIT) \
|
|
$(SYSUTILSUNIT) $(TYPINFOUNIT) $(MATHUNIT) \
|
|
$(CPU_UNITS) $(GETOPTSUNIT) $(HEAPTRCUNIT) \
|
|
$(ERRORSUNIT) $(DYNLIBSUNIT)
|
|
|
|
|
|
[prerules]
|
|
RTL=..
|
|
INC=$(RTL)/inc
|
|
PROCINC=$(RTL)/$(CPU_TARGET)
|
|
UNIXINC=$(RTL)/unix
|
|
UNITPREFIX=rtl
|
|
BASEUNIXDIR=.
|
|
ifndef FPC_DOTTEDUNITS
|
|
RTLCONSTSUNIT=rtlconst
|
|
endif
|
|
DYNLIBS_DEPS_OS=$(DLUNIT)$(PPUEXT)
|
|
DYNLIBSINCDIR=$(UNIXINC)
|
|
|
|
override FPCOPT+= -dHASUNIX -n -dFPC_USE_LIBC -Si
|
|
|
|
# Paths
|
|
OBJPASDIR=$(RTL)/objpas
|
|
|
|
[rules]
|
|
.NOTPARALLEL:
|
|
# 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)
|
|
|
|
|
|
#
|
|
# Loaders
|
|
#
|
|
|
|
prt0$(OEXT) : $(CPU_TARGET)/prt0.as
|
|
$(AS) -o $(UNITTARGETDIRPREFIX)prt0$(OEXT) $(CPU_TARGET)/prt0.as
|
|
|
|
cprt0$(OEXT) : $(CPU_TARGET)/cprt0.as
|
|
$(AS) -o $(UNITTARGETDIRPREFIX)cprt0$(OEXT) $(CPU_TARGET)/cprt0.as
|
|
|
|
func$(OEXT) : $(CPU_TARGET)/func.as
|
|
$(AS) -o $(UNITTARGETDIRPREFIX)func$(OEXT) $(CPU_TARGET)/func.as
|
|
|
|
dllprt$(OEXT) : $(CPU_TARGET)/dllprt.as
|
|
$(AS) -o $(UNITTARGETDIRPREFIX)dllprt$(OEXT) $(CPU_TARGET)/dllprt.as
|
|
|