mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-06 02:47:55 +02:00
* moved the common WASI RTL source files and includes to a 'wasicommon' dir
This commit is contained in:
parent
40e41a846f
commit
7703ff9b34
@ -914,6 +914,9 @@ CP_UNITS_SRC=$(addsuffix .pas,$(addprefix $(RTL)/charmaps/,$(CP_UNITS)))
|
|||||||
endif
|
endif
|
||||||
RTL=..
|
RTL=..
|
||||||
INC=../inc
|
INC=../inc
|
||||||
|
WASICOMMONINC=$(RTL)/wasicommon
|
||||||
|
SYSTEMDIR=$(WASICOMMONINC)
|
||||||
|
DOSDIR=$(WASICOMMONINC)
|
||||||
NSOSDIR=$(NSDIR)/wasi
|
NSOSDIR=$(NSDIR)/wasi
|
||||||
COMMON=$(RTL)/common
|
COMMON=$(RTL)/common
|
||||||
PROCINC=../$(CPU_TARGET)
|
PROCINC=../$(CPU_TARGET)
|
||||||
@ -927,7 +930,7 @@ endif
|
|||||||
ifdef NO_EXCEPTIONS_IN_SYSTEM
|
ifdef NO_EXCEPTIONS_IN_SYSTEM
|
||||||
override FPCOPT+=-dNO_EXCEPTIONS_IN_SYSTEM
|
override FPCOPT+=-dNO_EXCEPTIONS_IN_SYSTEM
|
||||||
endif
|
endif
|
||||||
override FPC_SYSTEM_OPT += -Fiwasiinc
|
override FPC_SYSTEM_OPT += -Fi$(WASICOMMONINC)/wasiinc
|
||||||
DOS_DEPS_OS=$(WASIAPIUNIT)$(PPUEXT) $(WASIUTILUNIT)$(PPUEXT)
|
DOS_DEPS_OS=$(WASIAPIUNIT)$(PPUEXT) $(WASIUTILUNIT)$(PPUEXT)
|
||||||
ifeq ($(CPU_OS_TARGET),wasm32-wasip1)
|
ifeq ($(CPU_OS_TARGET),wasm32-wasip1)
|
||||||
override TARGET_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)
|
override TARGET_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)
|
||||||
@ -937,7 +940,7 @@ override TARGET_IMPLICITUNITS+=$(CP_UNITS) $(UNICODEDATAUNIT)
|
|||||||
endif
|
endif
|
||||||
override INSTALL_FPCPACKAGE=y y
|
override INSTALL_FPCPACKAGE=y y
|
||||||
ifeq ($(CPU_OS_TARGET),wasm32-wasip1)
|
ifeq ($(CPU_OS_TARGET),wasm32-wasip1)
|
||||||
override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC)
|
override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC) $(WASICOMMONINC)
|
||||||
endif
|
endif
|
||||||
ifeq ($(CPU_OS_TARGET),wasm32-wasip1)
|
ifeq ($(CPU_OS_TARGET),wasm32-wasip1)
|
||||||
override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(COMMON)
|
override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(COMMON)
|
||||||
@ -2946,18 +2949,18 @@ include $(INC)/makefile.inc
|
|||||||
SYSINCDEPS=$(addprefix $(INC)/,$(SYSINCNAMES))
|
SYSINCDEPS=$(addprefix $(INC)/,$(SYSINCNAMES))
|
||||||
include $(PROCINC)/makefile.cpu
|
include $(PROCINC)/makefile.cpu
|
||||||
SYSCPUDEPS=$(addprefix $(PROCINC)/,$(CPUINCNAMES))
|
SYSCPUDEPS=$(addprefix $(PROCINC)/,$(CPUINCNAMES))
|
||||||
SYSDEPS=$(SYSINCDEPS) $(SYSCPUDEPS) wasiinc/wasitypes.inc wasiinc/wasiprocs.inc
|
SYSDEPS=$(SYSINCDEPS) $(SYSCPUDEPS) $(WASICOMMONINC)/wasiinc/wasitypes.inc $(WASICOMMONINC)/wasiinc/wasiprocs.inc
|
||||||
SYSUTILS_DEPS_OS=$(WASIUTILUNIT)$(PPUEXT)
|
SYSUTILS_DEPS_OS=$(WASIUTILUNIT)$(PPUEXT)
|
||||||
si_prc$(PPUEXT) : si_prc.pp $(SYSTEMUNIT)$(PPUEXT)
|
si_prc$(PPUEXT) : $(WASICOMMONINC)/si_prc.pp $(SYSTEMUNIT)$(PPUEXT)
|
||||||
$(COMPILER) $<
|
$(COMPILER) $<
|
||||||
si_dll$(PPUEXT) : si_dll.pp $(SYSTEMUNIT)$(PPUEXT)
|
si_dll$(PPUEXT) : $(WASICOMMONINC)/si_dll.pp $(SYSTEMUNIT)$(PPUEXT)
|
||||||
$(COMPILER) $<
|
$(COMPILER) $<
|
||||||
WEBASSEMBLYDEPS=$(PROCINC)/webassembly.pp $(SYSTEMUNIT)$(PPUEXT) $(PROCINC)/cpuh.inc $(PROCINC)/cpuinnr.inc $(OBJPASUNIT)$(PPUEXT)
|
WEBASSEMBLYDEPS=$(PROCINC)/webassembly.pp $(SYSTEMUNIT)$(PPUEXT) $(PROCINC)/cpuh.inc $(PROCINC)/cpuinnr.inc $(OBJPASUNIT)$(PPUEXT)
|
||||||
webassembly$(PPUEXT) : $(WEBASSEMBLYDEPS)
|
webassembly$(PPUEXT) : $(WEBASSEMBLYDEPS)
|
||||||
$(COMPILER) $<
|
$(COMPILER) $<
|
||||||
Wasm.Api$(PPUEXT) : $(NSDIR)/wasm32/Wasm.Api.pp $(WEBASSEMBLYDEPS)
|
Wasm.Api$(PPUEXT) : $(NSDIR)/wasm32/Wasm.Api.pp $(WEBASSEMBLYDEPS)
|
||||||
$(COMPILER) $<
|
$(COMPILER) $<
|
||||||
WASIAPIDEPS=wasiinc/wasitypes.inc wasiinc/wasiprocs.inc $(SYSTEMUNIT)$(PPUEXT)
|
WASIAPIDEPS=$(WASICOMMONINC)/wasiinc/wasitypes.inc $(WASICOMMONINC)/wasiinc/wasiprocs.inc $(SYSTEMUNIT)$(PPUEXT)
|
||||||
wasiapi$(PPUEXT) : wasiapi.pp $(WASIAPIDEPS)
|
wasiapi$(PPUEXT) : wasiapi.pp $(WASIAPIDEPS)
|
||||||
$(COMPILER) $< -Fiwasiinc
|
$(COMPILER) $< -Fiwasiinc
|
||||||
WASIApi.WASIApi$(PPUEXT) : $(NSOSDIR)/WASIApi.WASIApi.pp $(WASIAPIDEPS)
|
WASIApi.WASIApi$(PPUEXT) : $(NSOSDIR)/WASIApi.WASIApi.pp $(WASIAPIDEPS)
|
||||||
|
@ -24,12 +24,15 @@ target=wasip1
|
|||||||
cpu=wasm32
|
cpu=wasm32
|
||||||
|
|
||||||
[compiler]
|
[compiler]
|
||||||
includedir=$(INC) $(PROCINC)
|
includedir=$(INC) $(PROCINC) $(WASICOMMONINC)
|
||||||
sourcedir=$(INC) $(PROCINC) $(COMMON)
|
sourcedir=$(INC) $(PROCINC) $(COMMON)
|
||||||
|
|
||||||
[prerules]
|
[prerules]
|
||||||
RTL=..
|
RTL=..
|
||||||
INC=../inc
|
INC=../inc
|
||||||
|
WASICOMMONINC=$(RTL)/wasicommon
|
||||||
|
SYSTEMDIR=$(WASICOMMONINC)
|
||||||
|
DOSDIR=$(WASICOMMONINC)
|
||||||
NSOSDIR=$(NSDIR)/wasi
|
NSOSDIR=$(NSDIR)/wasi
|
||||||
COMMON=$(RTL)/common
|
COMMON=$(RTL)/common
|
||||||
PROCINC=../$(CPU_TARGET)
|
PROCINC=../$(CPU_TARGET)
|
||||||
@ -47,7 +50,7 @@ ifdef NO_EXCEPTIONS_IN_SYSTEM
|
|||||||
override FPCOPT+=-dNO_EXCEPTIONS_IN_SYSTEM
|
override FPCOPT+=-dNO_EXCEPTIONS_IN_SYSTEM
|
||||||
endif
|
endif
|
||||||
|
|
||||||
override FPC_SYSTEM_OPT += -Fiwasiinc
|
override FPC_SYSTEM_OPT += -Fi$(WASICOMMONINC)/wasiinc
|
||||||
|
|
||||||
DOS_DEPS_OS=$(WASIAPIUNIT)$(PPUEXT) $(WASIUTILUNIT)$(PPUEXT)
|
DOS_DEPS_OS=$(WASIAPIUNIT)$(PPUEXT) $(WASIUTILUNIT)$(PPUEXT)
|
||||||
|
|
||||||
@ -63,17 +66,17 @@ SYSINCDEPS=$(addprefix $(INC)/,$(SYSINCNAMES))
|
|||||||
include $(PROCINC)/makefile.cpu
|
include $(PROCINC)/makefile.cpu
|
||||||
SYSCPUDEPS=$(addprefix $(PROCINC)/,$(CPUINCNAMES))
|
SYSCPUDEPS=$(addprefix $(PROCINC)/,$(CPUINCNAMES))
|
||||||
# Put system unit dependencies together.
|
# Put system unit dependencies together.
|
||||||
SYSDEPS=$(SYSINCDEPS) $(SYSCPUDEPS) wasiinc/wasitypes.inc wasiinc/wasiprocs.inc
|
SYSDEPS=$(SYSINCDEPS) $(SYSCPUDEPS) $(WASICOMMONINC)/wasiinc/wasitypes.inc $(WASICOMMONINC)/wasiinc/wasiprocs.inc
|
||||||
|
|
||||||
SYSUTILS_DEPS_OS=$(WASIUTILUNIT)$(PPUEXT)
|
SYSUTILS_DEPS_OS=$(WASIUTILUNIT)$(PPUEXT)
|
||||||
|
|
||||||
#
|
#
|
||||||
# $(SYSINIT_UNITS) Units
|
# $(SYSINIT_UNITS) Units
|
||||||
#
|
#
|
||||||
si_prc$(PPUEXT) : si_prc.pp $(SYSTEMUNIT)$(PPUEXT)
|
si_prc$(PPUEXT) : $(WASICOMMONINC)/si_prc.pp $(SYSTEMUNIT)$(PPUEXT)
|
||||||
$(COMPILER) $<
|
$(COMPILER) $<
|
||||||
|
|
||||||
si_dll$(PPUEXT) : si_dll.pp $(SYSTEMUNIT)$(PPUEXT)
|
si_dll$(PPUEXT) : $(WASICOMMONINC)/si_dll.pp $(SYSTEMUNIT)$(PPUEXT)
|
||||||
$(COMPILER) $<
|
$(COMPILER) $<
|
||||||
|
|
||||||
#
|
#
|
||||||
@ -92,7 +95,7 @@ Wasm.Api$(PPUEXT) : $(NSDIR)/wasm32/Wasm.Api.pp $(WEBASSEMBLYDEPS)
|
|||||||
# WASIAPI
|
# WASIAPI
|
||||||
#
|
#
|
||||||
|
|
||||||
WASIAPIDEPS=wasiinc/wasitypes.inc wasiinc/wasiprocs.inc $(SYSTEMUNIT)$(PPUEXT)
|
WASIAPIDEPS=$(WASICOMMONINC)/wasiinc/wasitypes.inc $(WASICOMMONINC)/wasiinc/wasiprocs.inc $(SYSTEMUNIT)$(PPUEXT)
|
||||||
|
|
||||||
wasiapi$(PPUEXT) : wasiapi.pp $(WASIAPIDEPS)
|
wasiapi$(PPUEXT) : wasiapi.pp $(WASIAPIDEPS)
|
||||||
$(COMPILER) $< -Fiwasiinc
|
$(COMPILER) $< -Fiwasiinc
|
||||||
|
@ -914,9 +914,9 @@ CP_UNITS_SRC=$(addsuffix .pas,$(addprefix $(RTL)/charmaps/,$(CP_UNITS)))
|
|||||||
endif
|
endif
|
||||||
RTL=..
|
RTL=..
|
||||||
INC=../inc
|
INC=../inc
|
||||||
WASIP1INC=$(RTL)/wasip1
|
WASICOMMONINC=$(RTL)/wasicommon
|
||||||
SYSTEMDIR=$(WASIP1INC)
|
SYSTEMDIR=$(WASICOMMONINC)
|
||||||
DOSDIR=$(WASIP1INC)
|
DOSDIR=$(WASICOMMONINC)
|
||||||
NSOSDIR=$(NSDIR)/wasi
|
NSOSDIR=$(NSDIR)/wasi
|
||||||
COMMON=$(RTL)/common
|
COMMON=$(RTL)/common
|
||||||
PROCINC=../$(CPU_TARGET)
|
PROCINC=../$(CPU_TARGET)
|
||||||
@ -930,7 +930,7 @@ endif
|
|||||||
ifdef NO_EXCEPTIONS_IN_SYSTEM
|
ifdef NO_EXCEPTIONS_IN_SYSTEM
|
||||||
override FPCOPT+=-dNO_EXCEPTIONS_IN_SYSTEM
|
override FPCOPT+=-dNO_EXCEPTIONS_IN_SYSTEM
|
||||||
endif
|
endif
|
||||||
override FPC_SYSTEM_OPT += -Fi$(WASIP1INC)/wasiinc
|
override FPC_SYSTEM_OPT += -Fi$(WASICOMMONINC)/wasiinc
|
||||||
DOS_DEPS_OS=$(WASIAPIUNIT)$(PPUEXT) $(WASIUTILUNIT)$(PPUEXT)
|
DOS_DEPS_OS=$(WASIAPIUNIT)$(PPUEXT) $(WASIUTILUNIT)$(PPUEXT)
|
||||||
ifeq ($(CPU_OS_TARGET),wasm32-wasip1threads)
|
ifeq ($(CPU_OS_TARGET),wasm32-wasip1threads)
|
||||||
override TARGET_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)
|
override TARGET_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)
|
||||||
@ -940,7 +940,7 @@ override TARGET_IMPLICITUNITS+=$(CP_UNITS) $(UNICODEDATAUNIT)
|
|||||||
endif
|
endif
|
||||||
override INSTALL_FPCPACKAGE=y y
|
override INSTALL_FPCPACKAGE=y y
|
||||||
ifeq ($(CPU_OS_TARGET),wasm32-wasip1threads)
|
ifeq ($(CPU_OS_TARGET),wasm32-wasip1threads)
|
||||||
override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC) $(WASIP1INC)
|
override COMPILER_INCLUDEDIR+=$(INC) $(PROCINC) $(WASICOMMONINC)
|
||||||
endif
|
endif
|
||||||
ifeq ($(CPU_OS_TARGET),wasm32-wasip1threads)
|
ifeq ($(CPU_OS_TARGET),wasm32-wasip1threads)
|
||||||
override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(COMMON)
|
override COMPILER_SOURCEDIR+=$(INC) $(PROCINC) $(COMMON)
|
||||||
@ -2949,18 +2949,18 @@ include $(INC)/makefile.inc
|
|||||||
SYSINCDEPS=$(addprefix $(INC)/,$(SYSINCNAMES))
|
SYSINCDEPS=$(addprefix $(INC)/,$(SYSINCNAMES))
|
||||||
include $(PROCINC)/makefile.cpu
|
include $(PROCINC)/makefile.cpu
|
||||||
SYSCPUDEPS=$(addprefix $(PROCINC)/,$(CPUINCNAMES))
|
SYSCPUDEPS=$(addprefix $(PROCINC)/,$(CPUINCNAMES))
|
||||||
SYSDEPS=$(SYSINCDEPS) $(SYSCPUDEPS) $(WASIP1INC)/wasiinc/wasitypes.inc $(WASIP1INC)/wasiinc/wasiprocs.inc
|
SYSDEPS=$(SYSINCDEPS) $(SYSCPUDEPS) $(WASICOMMONINC)/wasiinc/wasitypes.inc $(WASICOMMONINC)/wasiinc/wasiprocs.inc
|
||||||
SYSUTILS_DEPS_OS=$(WASIUTILUNIT)$(PPUEXT)
|
SYSUTILS_DEPS_OS=$(WASIUTILUNIT)$(PPUEXT)
|
||||||
si_prc$(PPUEXT) : $(WASIP1INC)/si_prc.pp $(SYSTEMUNIT)$(PPUEXT)
|
si_prc$(PPUEXT) : $(WASICOMMONINC)/si_prc.pp $(SYSTEMUNIT)$(PPUEXT)
|
||||||
$(COMPILER) $<
|
$(COMPILER) $<
|
||||||
si_dll$(PPUEXT) : $(WASIP1INC)/si_dll.pp $(SYSTEMUNIT)$(PPUEXT)
|
si_dll$(PPUEXT) : $(WASICOMMONINC)/si_dll.pp $(SYSTEMUNIT)$(PPUEXT)
|
||||||
$(COMPILER) $<
|
$(COMPILER) $<
|
||||||
WEBASSEMBLYDEPS=$(PROCINC)/webassembly.pp $(SYSTEMUNIT)$(PPUEXT) $(PROCINC)/cpuh.inc $(PROCINC)/cpuinnr.inc $(OBJPASUNIT)$(PPUEXT)
|
WEBASSEMBLYDEPS=$(PROCINC)/webassembly.pp $(SYSTEMUNIT)$(PPUEXT) $(PROCINC)/cpuh.inc $(PROCINC)/cpuinnr.inc $(OBJPASUNIT)$(PPUEXT)
|
||||||
webassembly$(PPUEXT) : $(WEBASSEMBLYDEPS)
|
webassembly$(PPUEXT) : $(WEBASSEMBLYDEPS)
|
||||||
$(COMPILER) $<
|
$(COMPILER) $<
|
||||||
Wasm.Api$(PPUEXT) : $(NSDIR)/wasm32/Wasm.Api.pp $(WEBASSEMBLYDEPS)
|
Wasm.Api$(PPUEXT) : $(NSDIR)/wasm32/Wasm.Api.pp $(WEBASSEMBLYDEPS)
|
||||||
$(COMPILER) $<
|
$(COMPILER) $<
|
||||||
WASIAPIDEPS=$(WASIP1INC)/wasiinc/wasitypes.inc $(WASIP1INC)/wasiinc/wasiprocs.inc $(SYSTEMUNIT)$(PPUEXT)
|
WASIAPIDEPS=$(WASICOMMONINC)/wasiinc/wasitypes.inc $(WASICOMMONINC)/wasiinc/wasiprocs.inc $(SYSTEMUNIT)$(PPUEXT)
|
||||||
wasiapi$(PPUEXT) : wasiapi.pp $(WASIAPIDEPS)
|
wasiapi$(PPUEXT) : wasiapi.pp $(WASIAPIDEPS)
|
||||||
$(COMPILER) $< -Fiwasiinc
|
$(COMPILER) $< -Fiwasiinc
|
||||||
WASIApi.WASIApi$(PPUEXT) : $(NSOSDIR)/WASIApi.WASIApi.pp $(WASIAPIDEPS)
|
WASIApi.WASIApi$(PPUEXT) : $(NSOSDIR)/WASIApi.WASIApi.pp $(WASIAPIDEPS)
|
||||||
|
@ -24,15 +24,15 @@ target=wasip1threads
|
|||||||
cpu=wasm32
|
cpu=wasm32
|
||||||
|
|
||||||
[compiler]
|
[compiler]
|
||||||
includedir=$(INC) $(PROCINC) $(WASIP1INC)
|
includedir=$(INC) $(PROCINC) $(WASICOMMONINC)
|
||||||
sourcedir=$(INC) $(PROCINC) $(COMMON)
|
sourcedir=$(INC) $(PROCINC) $(COMMON)
|
||||||
|
|
||||||
[prerules]
|
[prerules]
|
||||||
RTL=..
|
RTL=..
|
||||||
INC=../inc
|
INC=../inc
|
||||||
WASIP1INC=$(RTL)/wasip1
|
WASICOMMONINC=$(RTL)/wasicommon
|
||||||
SYSTEMDIR=$(WASIP1INC)
|
SYSTEMDIR=$(WASICOMMONINC)
|
||||||
DOSDIR=$(WASIP1INC)
|
DOSDIR=$(WASICOMMONINC)
|
||||||
NSOSDIR=$(NSDIR)/wasi
|
NSOSDIR=$(NSDIR)/wasi
|
||||||
COMMON=$(RTL)/common
|
COMMON=$(RTL)/common
|
||||||
PROCINC=../$(CPU_TARGET)
|
PROCINC=../$(CPU_TARGET)
|
||||||
@ -50,7 +50,7 @@ ifdef NO_EXCEPTIONS_IN_SYSTEM
|
|||||||
override FPCOPT+=-dNO_EXCEPTIONS_IN_SYSTEM
|
override FPCOPT+=-dNO_EXCEPTIONS_IN_SYSTEM
|
||||||
endif
|
endif
|
||||||
|
|
||||||
override FPC_SYSTEM_OPT += -Fi$(WASIP1INC)/wasiinc
|
override FPC_SYSTEM_OPT += -Fi$(WASICOMMONINC)/wasiinc
|
||||||
|
|
||||||
DOS_DEPS_OS=$(WASIAPIUNIT)$(PPUEXT) $(WASIUTILUNIT)$(PPUEXT)
|
DOS_DEPS_OS=$(WASIAPIUNIT)$(PPUEXT) $(WASIUTILUNIT)$(PPUEXT)
|
||||||
|
|
||||||
@ -66,17 +66,17 @@ SYSINCDEPS=$(addprefix $(INC)/,$(SYSINCNAMES))
|
|||||||
include $(PROCINC)/makefile.cpu
|
include $(PROCINC)/makefile.cpu
|
||||||
SYSCPUDEPS=$(addprefix $(PROCINC)/,$(CPUINCNAMES))
|
SYSCPUDEPS=$(addprefix $(PROCINC)/,$(CPUINCNAMES))
|
||||||
# Put system unit dependencies together.
|
# Put system unit dependencies together.
|
||||||
SYSDEPS=$(SYSINCDEPS) $(SYSCPUDEPS) $(WASIP1INC)/wasiinc/wasitypes.inc $(WASIP1INC)/wasiinc/wasiprocs.inc
|
SYSDEPS=$(SYSINCDEPS) $(SYSCPUDEPS) $(WASICOMMONINC)/wasiinc/wasitypes.inc $(WASICOMMONINC)/wasiinc/wasiprocs.inc
|
||||||
|
|
||||||
SYSUTILS_DEPS_OS=$(WASIUTILUNIT)$(PPUEXT)
|
SYSUTILS_DEPS_OS=$(WASIUTILUNIT)$(PPUEXT)
|
||||||
|
|
||||||
#
|
#
|
||||||
# $(SYSINIT_UNITS) Units
|
# $(SYSINIT_UNITS) Units
|
||||||
#
|
#
|
||||||
si_prc$(PPUEXT) : $(WASIP1INC)/si_prc.pp $(SYSTEMUNIT)$(PPUEXT)
|
si_prc$(PPUEXT) : $(WASICOMMONINC)/si_prc.pp $(SYSTEMUNIT)$(PPUEXT)
|
||||||
$(COMPILER) $<
|
$(COMPILER) $<
|
||||||
|
|
||||||
si_dll$(PPUEXT) : $(WASIP1INC)/si_dll.pp $(SYSTEMUNIT)$(PPUEXT)
|
si_dll$(PPUEXT) : $(WASICOMMONINC)/si_dll.pp $(SYSTEMUNIT)$(PPUEXT)
|
||||||
$(COMPILER) $<
|
$(COMPILER) $<
|
||||||
|
|
||||||
#
|
#
|
||||||
@ -95,7 +95,7 @@ Wasm.Api$(PPUEXT) : $(NSDIR)/wasm32/Wasm.Api.pp $(WEBASSEMBLYDEPS)
|
|||||||
# WASIAPI
|
# WASIAPI
|
||||||
#
|
#
|
||||||
|
|
||||||
WASIAPIDEPS=$(WASIP1INC)/wasiinc/wasitypes.inc $(WASIP1INC)/wasiinc/wasiprocs.inc $(SYSTEMUNIT)$(PPUEXT)
|
WASIAPIDEPS=$(WASICOMMONINC)/wasiinc/wasitypes.inc $(WASICOMMONINC)/wasiinc/wasiprocs.inc $(SYSTEMUNIT)$(PPUEXT)
|
||||||
|
|
||||||
wasiapi$(PPUEXT) : wasiapi.pp $(WASIAPIDEPS)
|
wasiapi$(PPUEXT) : wasiapi.pp $(WASIAPIDEPS)
|
||||||
$(COMPILER) $< -Fiwasiinc
|
$(COMPILER) $< -Fiwasiinc
|
||||||
|
Loading…
Reference in New Issue
Block a user