mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-09-11 11:29:29 +02:00
+ added wasip1threads rtl
This commit is contained in:
parent
698e16a12d
commit
1d85913234
2972
rtl/wasip1threads/Makefile
Normal file
2972
rtl/wasip1threads/Makefile
Normal file
File diff suppressed because it is too large
Load Diff
118
rtl/wasip1threads/Makefile.fpc
Normal file
118
rtl/wasip1threads/Makefile.fpc
Normal file
@ -0,0 +1,118 @@
|
||||
#
|
||||
# Makefile.fpc for WASI
|
||||
#
|
||||
[package]
|
||||
main=rtl
|
||||
[target]
|
||||
loaders=
|
||||
units=$(SYSTEMUNIT) $(SYSINIT_UNITS) $(OBJPASUNIT) $(EXTPASUNIT) $(MACPASUNIT) $(ISO7185UNIT) $(UUCHARUNIT) \
|
||||
$(WASIAPIUNIT) $(CTYPESUNIT) $(STRINGSUNIT) $(SYSCONSTUNIT) $(SYSUTILSUNIT) \
|
||||
$(SORTBASEUNIT) $(MATHUNIT) $(RTLCONSTSUNIT) $(TYPESUNIT) $(TYPINFOUNIT) $(FGLUNIT) $(GETOPTSUNIT) \
|
||||
$(CHARSETUNIT) $(CPALLUNIT) $(CHARACTERUNIT) $(FPWIDESTRINGUNIT) $(NOTHREADSUNIT) \
|
||||
$(CLASSESUNIT) $(DOSUNIT) $(RESUNIT) $(HEAPTRCUNIT) $(WASIUTILUNIT) $(WEBASSEMBLYUNIT)
|
||||
|
||||
implicitunits= $(CP_UNITS) $(UNICODEDATAUNIT)
|
||||
|
||||
[require]
|
||||
nortl=y
|
||||
|
||||
[install]
|
||||
fpcpackage=y
|
||||
|
||||
[default]
|
||||
target=wasip1threads
|
||||
cpu=wasm32
|
||||
|
||||
[compiler]
|
||||
includedir=$(INC) $(PROCINC) $(WASIP1INC)
|
||||
sourcedir=$(INC) $(PROCINC) $(COMMON)
|
||||
|
||||
[prerules]
|
||||
RTL=..
|
||||
INC=../inc
|
||||
WASIP1INC=$(RTL)/wasip1
|
||||
SYSTEMDIR=$(WASIP1INC)
|
||||
DOSDIR=$(WASIP1INC)
|
||||
NSOSDIR=$(NSDIR)/wasi
|
||||
COMMON=$(RTL)/common
|
||||
PROCINC=../$(CPU_TARGET)
|
||||
UNITPREFIX=rtl
|
||||
SYSINIT_UNITS=si_prc si_dll
|
||||
RESUNIT=$(FPINTRESUNIT)
|
||||
# Paths
|
||||
OBJPASDIR=$(RTL)/objpas
|
||||
# Insert exception handler in system unit
|
||||
ifdef EXCEPTIONS_IN_SYSTEM
|
||||
override FPCOPT+=-dEXCEPTIONS_IN_SYSTEM
|
||||
endif
|
||||
# Insert exception handler in system unit
|
||||
ifdef NO_EXCEPTIONS_IN_SYSTEM
|
||||
override FPCOPT+=-dNO_EXCEPTIONS_IN_SYSTEM
|
||||
endif
|
||||
|
||||
override FPC_SYSTEM_OPT += -Fi$(WASIP1INC)/wasiinc
|
||||
|
||||
DOS_DEPS_OS=$(WASIAPIUNIT)$(PPUEXT) $(WASIUTILUNIT)$(PPUEXT)
|
||||
|
||||
[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) $(WASIP1INC)/wasiinc/wasitypes.inc $(WASIP1INC)/wasiinc/wasiprocs.inc
|
||||
|
||||
SYSUTILS_DEPS_OS=$(WASIUTILUNIT)$(PPUEXT)
|
||||
|
||||
#
|
||||
# $(SYSINIT_UNITS) Units
|
||||
#
|
||||
si_prc$(PPUEXT) : $(WASIP1INC)/si_prc.pp $(SYSTEMUNIT)$(PPUEXT)
|
||||
$(COMPILER) $<
|
||||
|
||||
si_dll$(PPUEXT) : $(WASIP1INC)/si_dll.pp $(SYSTEMUNIT)$(PPUEXT)
|
||||
$(COMPILER) $<
|
||||
|
||||
#
|
||||
# Other $(SYSTEMUNIT)-dependent RTL Units
|
||||
#
|
||||
|
||||
WEBASSEMBLYDEPS=$(PROCINC)/webassembly.pp $(SYSTEMUNIT)$(PPUEXT) $(PROCINC)/cpuh.inc $(PROCINC)/cpuinnr.inc $(OBJPASUNIT)$(PPUEXT)
|
||||
|
||||
webassembly$(PPUEXT) : $(WEBASSEMBLYDEPS)
|
||||
$(COMPILER) $<
|
||||
|
||||
Wasm.Api$(PPUEXT) : $(NSDIR)/wasm32/Wasm.Api.pp $(WEBASSEMBLYDEPS)
|
||||
$(COMPILER) $<
|
||||
|
||||
#
|
||||
# WASIAPI
|
||||
#
|
||||
|
||||
WASIAPIDEPS=$(WASIP1INC)/wasiinc/wasitypes.inc $(WASIP1INC)/wasiinc/wasiprocs.inc $(SYSTEMUNIT)$(PPUEXT)
|
||||
|
||||
wasiapi$(PPUEXT) : wasiapi.pp $(WASIAPIDEPS)
|
||||
$(COMPILER) $< -Fiwasiinc
|
||||
|
||||
WASIApi.WASIApi$(PPUEXT) : $(NSOSDIR)/WASIApi.WASIApi.pp $(WASIAPIDEPS)
|
||||
$(COMPILER) $< -Fiwasiinc
|
||||
|
||||
#
|
||||
# wasiutils
|
||||
#
|
||||
|
||||
WASIUTILDEPS=$(WASIAPIUNIT)$(PPUEXT) $(OBJPASUNIT)$(PPUEXT) $(SYSTEMUNIT)$(PPUEXT)
|
||||
|
||||
wasiutil$(PPUEXT) : wasiutil.pp $(WASIUTILDEPS)
|
||||
$(COMPILER) $<
|
||||
|
||||
WASIApi.WASIUtil$(PPUEXT) : $(NSOSDIR)/WASIApi.WASIUtil.pp $(WASIUTILDEPS)
|
||||
$(COMPILER) $<
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user