1.include <bsd.own.mk> 2 3PACKAGE= clibs 4SRCDIR= ${SRCTOP}/contrib/libcxxrt 5 6SHLIB_MAJOR= 1 7SHLIBDIR?= /lib 8 9.PATH: ${SRCDIR} 10 11LIB= cxxrt 12 13SRCS+= auxhelper.cc 14SRCS+= dynamic_cast.cc 15SRCS+= exception.cc 16SRCS+= guard.cc 17SRCS+= libelftc_dem_gnu3.c 18SRCS+= memory.cc 19SRCS+= stdexcept.cc 20SRCS+= terminate.cc 21SRCS+= typeinfo.cc 22 23WARNS?= 0 24CFLAGS+= -isystem ${SRCDIR} -nostdinc++ 25CXXSTD?= c++14 26 27.if exists(Version.map.${MACHINE}) 28VERSION_MAP= ${.CURDIR}/Version.map.${MACHINE} 29.else 30.if ${MACHINE_ABI:Mlong32} 31VERSION_MAP= Version-32.map 32.else 33VERSION_MAP= Version-64.map 34.endif 35 36Version-32.map: Version.map 37 sed 's/%%NEW_DELETE_TYPE%%/int/' ${.ALLSRC} > ${.TARGET} 38 39Version-64.map: Version.map 40 sed 's/%%NEW_DELETE_TYPE%%/long/' ${.ALLSRC} > ${.TARGET} 41.endif 42 43.include <bsd.lib.mk> 44