Initial C++ runtime work. Much more to do.

This commit is contained in:
2015-05-02 23:32:01 -04:00
parent 772476ea85
commit db2bda84c8
35 changed files with 7920 additions and 0 deletions

14
Makefile Normal file
View File

@ -0,0 +1,14 @@
KMOD = libcpprt
SRCS = libcpprt_entry.c libcpprt.cc
RUNTIME_SOURCES = c++_runtime.cc c++_exceptions_runtime.cc
.PATH: ${.CURDIR}/runtime
#RUNTIME_SOURCES+= typeinfo.cc libelftc_dem_gnu3.c dynamic_cast.cc
#RUNTIME_SOURCES+= exception.cc
SRCS+= $(RUNTIME_SOURCES)
CXXFLAGS+= -I. -Iinclude -std=c++11 -fno-rtti -fno-exceptions
CFLAGS+= -I. -Iinclude
.include <bsd.kmod.mk>