mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-18 16:19:27 +02:00
178 lines
4.8 KiB
Makefile
178 lines
4.8 KiB
Makefile
#
|
|
# Makefile.fpc for Free Pascal AIX RTL
|
|
#
|
|
|
|
[package]
|
|
main=rtl
|
|
|
|
[target]
|
|
loaders=
|
|
units=$(SYSTEMUNIT) $(UUCHARUNIT) $(UNIXTYPEUNIT) $(CTYPESUNIT) $(STRINGSUNIT) $(OBJPASUNIT) $(ISO7185UNIT) $(EXTPASUNIT) $(MACPASUNIT) \
|
|
$(HEAPTRCUNIT) \
|
|
$(BASEUNIXUNIT) $(UNIXUTILUNIT) \
|
|
$(TERMIOUNIT) unix $(INITCUNIT) $(CMEMUNIT) \
|
|
$(LNFOGDBUNIT) \
|
|
sysutils typinfo $(MATHUNIT) $(SORTBASEUNIT) $(FGLUNIT) classes \
|
|
$(CHARSETUNIT) $(CPALLUNIT) $(CHARACTERUNIT) $(UNIXCPUNIT) $(GETOPTSUNIT) \
|
|
$(ERRORSUNIT) \
|
|
# ipc
|
|
$(DLUNIT) $(DYNLIBSUNIT) \
|
|
types $(SYSCONSTUNIT) \
|
|
$(RTLCONSTSUNIT) $(CTHREADSUNIT) \
|
|
dos \
|
|
cwstring $(FPWIDESTRINGUNIT) $(FPINTRESUNIT) $(CPU_UNITS) \
|
|
$(SOFTFPUUNIT) $(SFPUX80UNIT) $(UFLOATX80UNIT) $(SFPU128UNIT) $(UFLOAT128UNIT)
|
|
implicitunits=$(CP_UNITS) $(UNICODEDATAUNIT)
|
|
|
|
rsts=$(MATHUNIT) typinfo classes $(SYSCONSTUNIT) $(RTLCONSTSUNIT)
|
|
|
|
[require]
|
|
nortl=y
|
|
|
|
[install]
|
|
fpcpackage=y
|
|
|
|
[default]
|
|
target=aix
|
|
|
|
[compiler]
|
|
includedir=$(INC) $(PROCINC) $(UNIXINC) # $(OSPROCINC)
|
|
sourcedir=$(INC) $(PROCINC) $(UNIXINC) $(COMMON)
|
|
|
|
|
|
[lib]
|
|
libname=libfprtl.so
|
|
libversion=2.0.0
|
|
libunits=$(SYSTEMUNIT) $(OBJPASUNIT) $(STRINGSUNIT) \
|
|
unix \
|
|
dos crt \
|
|
sysutils typinfo $(MATHUNIT) \
|
|
$(CPU_UNITS) $(GETOPTSUNIT) $(HEAPTRCUNIT) \
|
|
$(ERRORSUNIT) sockets
|
|
|
|
[prerules]
|
|
RTL=..
|
|
INC=$(RTL)/inc
|
|
COMMON=$(RTL)/common
|
|
PROCINC=$(RTL)/$(CPU_TARGET)
|
|
OSPROCINC=$(RTL)/aix/$(CPU_TARGET)
|
|
UNIXINC=$(RTL)/unix
|
|
UNITPREFIX=rtl
|
|
CPU_UNITS=
|
|
DYNLIBS_DEPS_OS=$(DLUNIT)$(PPUEXT)
|
|
DYNLIBSINCDIR=$(UNIXINC)
|
|
DL_DEPS_OS=$(DLUNIT)aix.inc
|
|
TERMIO_DEPS_OS=$(UNIXTYPEUNIT)$(PPUEXT) $(CTYPESUNIT)$(PPUEXT)
|
|
|
|
SYSTEMUNIT=system
|
|
|
|
|
|
ifeq ($(ARCH),i386)
|
|
CPU_UNITS=cpu $(MMXUNIT)
|
|
endif
|
|
|
|
ifeq ($(ARCH),x86_64)
|
|
CPU_UNITS=cpu
|
|
SYSINIT_UNITS= # si_prc si_c si_dll
|
|
endif
|
|
|
|
|
|
# Use new feature from 1.0.5 version
|
|
# that generates release PPU files
|
|
# which will not be recompiled
|
|
ifdef RELEASE
|
|
override FPCOPT+=-Ur
|
|
endif
|
|
|
|
# AIX requires libc, no syscalls
|
|
override FPCOPT+=-dFPC_USE_LIBC
|
|
|
|
# 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)
|
|
|
|
|
|
#
|
|
# System Units (System, Objpas, Strings)
|
|
#
|
|
|
|
$(SYSTEMUNIT)$(PPUEXT) : $(SYSTEMUNIT).pp $(SYSDEPS)
|
|
$(COMPILER) $(FPC_SYSTEM_OPT) -Us -Sg $(SYSTEMUNIT).pp
|
|
|
|
#
|
|
# System Dependent Units
|
|
#
|
|
|
|
unix$(PPUEXT) : $(UNIXTYPEUNIT)$(PPUEXT) $(BASEUNIXUNIT)$(PPUEXT) $(UNIXUTILUNIT)$(PPUEXT) strings$(PPUEXT) $(UNIXINC)/unix.pp strings$(PPUEXT) $(INC)/textrec.inc $(INC)/filerec.inc \
|
|
unxconst.inc $(UNIXINC)/timezone.inc \
|
|
unxfunc.inc $(SYSTEMUNIT)$(PPUEXT)
|
|
$(COMPILER) $(UNIXINC)/unix.pp
|
|
|
|
#
|
|
# TP7 Compatible RTL Units
|
|
#
|
|
|
|
dos$(PPUEXT) : strings$(PPUEXT) unix$(PPUEXT) $(UNIXINC)/dos.pp $(INC)/filerec.inc $(INC)/textrec.inc strings$(PPUEXT) \
|
|
unix$(PPUEXT) $(SYSTEMUNIT)$(PPUEXT)
|
|
$(COMPILER) $(UNIXINC)/dos.pp
|
|
#
|
|
# Graph
|
|
#
|
|
|
|
#
|
|
# Delphi Compatible Units
|
|
#
|
|
|
|
sysutils$(PPUEXT) : $(UNIXINC)/sysutils.pp $(wildcard $(OBJPASDIR)/sysutils/*.inc) \
|
|
$(OBJPASUNIT)$(PPUEXT) unix$(PPUEXT) $(ERRORSUNIT)$(PPUEXT) $(SYSCONSTUNIT)$(PPUEXT) $(SYSTEMUNIT)$(PPUEXT)
|
|
$(COMPILER) -Fi$(OBJPASDIR)/sysutils $(UNIXINC)/sysutils.pp
|
|
|
|
classes$(PPUEXT) : $(UNIXINC)/classes.pp $(wildcard $(OBJPASDIR)/classes/*.inc) \
|
|
sysutils$(PPUEXT) typinfo$(PPUEXT) $(RTLCONSTSUNIT)$(PPUEXT) types$(PPUEXT) \
|
|
$(SYSTEMUNIT)$(PPUEXT) $(FGLUNIT)$(PPUEXT) sortbase$(PPUEXT)
|
|
$(COMPILER) -Fi$(OBJPASDIR)/classes $(UNIXINC)/classes.pp
|
|
|
|
typinfo$(PPUEXT): $(OBJPASDIR)/typinfo.pp $(OBJPASUNIT)$(PPUEXT) sysutils$(PPUEXT) $(RTLCONSTSUNIT)$(PPUEXT) $(SYSTEMUNIT)$(PPUEXT)
|
|
$(COMPILER) -Sg $(OBJPASDIR)/typinfo.pp
|
|
|
|
types$(PPUEXT) : $(OBJPASDIR)/types.pp $(OBJPASUNIT)$(PPUEXT) $(MATHUNIT)$(PPUEXT) $(SYSTEMUNIT)$(PPUEXT)
|
|
$(COMPILER) $(OBJPASDIR)/types.pp
|
|
|
|
#
|
|
# Other system-independent RTL Units
|
|
#
|
|
|
|
ifeq ($(ARCH),x86_64)
|
|
cpu$(PPUEXT) : $(PROCINC)/cpu.pp $(SYSTEMUNIT)$(PPUEXT) sysutils$(PPUEXT)
|
|
$(COMPILER) $(PROCINC)/cpu.pp
|
|
else
|
|
cpu$(PPUEXT) : $(PROCINC)/cpu.pp $(SYSTEMUNIT)$(PPUEXT)
|
|
$(COMPILER) $(PROCINC)/cpu.pp
|
|
endif
|
|
|
|
#
|
|
# Other system-dependent RTL Units
|
|
#
|
|
|
|
cwstring$(PPUEXT) : $(UNIXINC)/cwstring.pp $(SYSTEMUNIT)$(PPUEXT) sysutils$(PPUEXT) $(BASEUNIXUNIT)$(PPUEXT) unix$(PPUEXT) $(UNIXTYPEUNIT)$(PPUEXT) $(CTYPESUNIT)$(PPUEXT) $(DYNLIBSUNIT)$(PPUEXT)
|
|
$(COMPILER) $(UNIXINC)/cwstring.pp
|
|
|
|
gpm$(PPUEXT): gpm.pp unix$(PPUEXT) $(BASEUNIXUNIT)$(PPUEXT) sockets$(PPUEXT)
|
|
|