mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-18 23:09:18 +02:00
+ added WASI RTL makefile
git-svn-id: branches/wasm@47992 -
This commit is contained in:
parent
e7cd823692
commit
67206943e8
2
.gitattributes
vendored
2
.gitattributes
vendored
@ -12187,6 +12187,8 @@ rtl/unix/unxdeclh.inc svneol=native#text/plain
|
|||||||
rtl/unix/unxovl.inc svneol=native#text/plain
|
rtl/unix/unxovl.inc svneol=native#text/plain
|
||||||
rtl/unix/unxovlh.inc svneol=native#text/plain
|
rtl/unix/unxovlh.inc svneol=native#text/plain
|
||||||
rtl/unix/x86.pp svneol=native#text/plain
|
rtl/unix/x86.pp svneol=native#text/plain
|
||||||
|
rtl/wasi/Makefile svneol=native#text/plain
|
||||||
|
rtl/wasi/Makefile.fpc svneol=native#text/plain
|
||||||
rtl/wasi/rtldefs.inc svneol=native#text/plain
|
rtl/wasi/rtldefs.inc svneol=native#text/plain
|
||||||
rtl/wasi/sysos.inc svneol=native#text/plain
|
rtl/wasi/sysos.inc svneol=native#text/plain
|
||||||
rtl/wasi/sysosh.inc svneol=native#text/plain
|
rtl/wasi/sysosh.inc svneol=native#text/plain
|
||||||
|
2618
rtl/wasi/Makefile
Normal file
2618
rtl/wasi/Makefile
Normal file
File diff suppressed because it is too large
Load Diff
58
rtl/wasi/Makefile.fpc
Normal file
58
rtl/wasi/Makefile.fpc
Normal file
@ -0,0 +1,58 @@
|
|||||||
|
#
|
||||||
|
# Makefile.fpc for WASI
|
||||||
|
#
|
||||||
|
[package]
|
||||||
|
main=rtl
|
||||||
|
[target]
|
||||||
|
loaders=
|
||||||
|
units=system
|
||||||
|
|
||||||
|
[require]
|
||||||
|
nortl=y
|
||||||
|
[install]
|
||||||
|
fpcpackage=y
|
||||||
|
[default]
|
||||||
|
fpcdir=../..
|
||||||
|
target=wasi
|
||||||
|
cpu=wasm32
|
||||||
|
[compiler]
|
||||||
|
includedir=$(INC) $(PROCINC)
|
||||||
|
sourcedir=$(INC) $(PROCINC) $(COMMON)
|
||||||
|
[prerules]
|
||||||
|
RTL=..
|
||||||
|
INC=../inc
|
||||||
|
COMMON=$(RTL)/common
|
||||||
|
PROCINC=../$(CPU_TARGET)
|
||||||
|
UNITPREFIX=rtl
|
||||||
|
SYSTEMUNIT=system
|
||||||
|
|
||||||
|
# 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
|
||||||
|
[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)
|
||||||
|
|
||||||
|
#
|
||||||
|
# System Units (System, Objpas, Strings)
|
||||||
|
#
|
||||||
|
system$(PPUEXT) : system.pp $(SYSDEPS)
|
||||||
|
$(COMPILER) $(FPC_SYSTEM_OPT) -Us -Sg system.pp
|
||||||
|
$(EXECPPAS)
|
Loading…
Reference in New Issue
Block a user