
This brings our tree to NetBSD 7.0, as found on -current on the 10-10-2015. This updates: - LLVM to 3.6.1 - GCC to GCC 5.1 - Replace minix/commands/zdump with usr.bin/zdump - external/bsd/libelf has moved to /external/bsd/elftoolchain/ - Import ctwm - Drop sprintf from libminc Change-Id: I149836ac18e9326be9353958bab9b266efb056f0
35 lines
615 B
Makefile
35 lines
615 B
Makefile
# $NetBSD: Makefile,v 1.7 2014/03/05 21:37:02 tron Exp $
|
|
|
|
LIBISPRIVATE= yes
|
|
|
|
LIB= cpp
|
|
|
|
SRCS= ${G_libcpp_a_OBJS:.o=.c}
|
|
|
|
CPPFLAGS+= -I${.CURDIR} -I${.CURDIR}/arch/${GCC_MACHINE_ARCH} \
|
|
-I${GCCARCH} -I${BACKENDOBJ} -I. \
|
|
${G_INCLUDES:M-I*:N-I.*} \
|
|
-DPREFIX=\"/usr\"
|
|
|
|
HOSTPROG_CXX= 1
|
|
|
|
.include <bsd.lib.mk>
|
|
|
|
COPTS+= -Wno-stack-protector
|
|
|
|
# Force using C++ for this
|
|
HOST_CC:= ${HOST_CXX}
|
|
CC:= ${CXX}
|
|
CFLAGS:= ${CXXFLAGS}
|
|
|
|
${OBJS}: ${G_LIBCPP_DEPS}
|
|
|
|
.PATH: ${DIST}/libcpp
|
|
# ${DIST}/gcc
|
|
|
|
localedir.h:
|
|
echo '#define LOCALEDIR "/usr/share/locale"' > ${.TARGET}
|
|
CLEANFILES+= localedir.h
|
|
|
|
init.d init.o: localedir.h
|