fpc/rtl/os2/Makefile.fpc
2023-10-09 01:02:28 +02:00

88 lines
2.1 KiB
Makefile

# Makefile.fpc for Free Pascal OS/2 RTL
#
[package]
main=rtl
[target]
loaders=prt0
units=$(SYSTEMUNIT) $(UUCHARUNIT) $(CTYPESUNIT) $(OBJPASUNIT) $(MACPASUNIT) $(ISO7185UNIT) $(EXTPASUNIT) $(STRINGSUNIT) \
$(PORTSUNIT) $(OS2DEFUNIT) $(DOSCALLSUNIT) $(DOSCALL2UNIT) $(KBDCALLSUNIT) \
$(MOUCALLSUNIT) $(VIOCALLSUNIT) $(SO32DLLUNIT) \
$(PMBITMAPUNIT) $(PMWINUNIT) $(PMGPIUNIT) $(PMSTDDLGUNIT) \
$(PMHELPUNIT) $(PMDEVUNIT) $(PMSPLUNIT) $(PMSHLUNIT) $(PMWPUNIT) $(PMWSOCKUNIT) $(PMBIDI) \
$(DOSUNIT) \
$(SUSITILSUNIT) $(SORTBASEUNIT) $(FGLUNIT) $(CLASSESUNIT) $(MATHUNIT) $(TYPINFOUNIT) \
$(CHARSETUNIT) $(CPALLUNIT) $(CPUNIT) $(MMXUNIT) $(GETOPTSUNIT) \
$(HEAPTRCUNIT) $(LINEINFOUNIT) $(LNFODWRFUNIT) $(DYNLIBSUNIT) \
$(TYPESUNIT) $(RTLCONSTSUNIT) $(SYSCONSTUNIT) \
$(FPWIDESTRINGUNIT) $(CHARACTERUNIT) \
$(SOFTFPUUNIT) $(SFPUX80UNIT) $(UFLOATX80UNIT) $(SPFU128UNIT) $(UFLOAT128UNIT)
rsts=$(MATHUNIT) $(TYPINFOUNIT) $(PMHELPUNIT) $(CLASSESUNIT) $(SYSCONSTUNIT)
implicitunits=$(EXEINFOUNIT) $(CP_UNITS) $(UNICODEDATAUNIT)
[require]
nortl=y
[install]
fpcpackage=y
[default]
target=os2
cpu=i386
[compiler]
includedir=$(INC) $(PROCINC)
sourcedir=$(INC) $(PROCINC) $(COMMON)
[prerules]
RTL=..
INC=$(RTL)/inc
COMMON=$(RTL)/common
PROCINC=$(RTL)/$(CPU_TARGET)
SYSTEMUNITEXT=pas
DOSUNITEXT=pas
PORTSUNITEXT=pas
UNITPREFIX=rtl
DOS_DEPS_OS=$(DOSCALLSUNIT)$(PPUEXT)
SYSUTILS_DEPS_OS=$(DOSCALLSUNIT)$(PPUEXT)
DYNLIBS_DEPS_OS=$(DOSCALLSUNIT)$(PPUEXT)
ifndef FPC_DOTTEDUNITS
RTLCONSTSUNIT=rtlconst
endif
# 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
#
%$(OEXT) : %.as
$(AS) -o $(UNITTARGETDIRPREFIX)$*$(OEXT) $*.as