2013-12-06 12:04:52 +01:00
|
|
|
# $NetBSD: Makefile,v 1.5 2013/08/22 00:17:48 matt Exp $
|
2012-06-06 15:06:52 +02:00
|
|
|
|
|
|
|
LIBISPRIVATE= yes
|
|
|
|
|
2013-08-26 18:43:05 +02:00
|
|
|
.if defined(__MINIX)
|
|
|
|
NOGCCERROR=yes
|
|
|
|
NOCLANGERROR=yes
|
|
|
|
.endif
|
|
|
|
|
2012-06-06 15:06:52 +02:00
|
|
|
LIB= cpp
|
|
|
|
|
|
|
|
SRCS= ${G_libcpp_a_OBJS:.o=.c}
|
|
|
|
|
2013-12-06 12:04:52 +01:00
|
|
|
CPPFLAGS+= -I${.CURDIR} -I${.CURDIR}/arch/${GCC_MACHINE_ARCH} \
|
2012-06-06 15:06:52 +02:00
|
|
|
-I${GCCARCH} -I${BACKENDOBJ} -I. \
|
|
|
|
${G_INCLUDES:M-I*:N-I.*} \
|
|
|
|
-DPREFIX=\"/usr\"
|
|
|
|
|
|
|
|
.include <bsd.lib.mk>
|
|
|
|
COPTS+= -Wno-stack-protector
|
|
|
|
|
|
|
|
${OBJS}: ${G_LIBCPP_DEPS}
|
|
|
|
|
|
|
|
.PATH: ${DIST}/libcpp
|
|
|
|
# ${DIST}/gcc
|
|
|
|
|
|
|
|
localedir.h:
|
|
|
|
echo '#define LOCALEDIR "/usr/share/locale"' > ${.TARGET}
|
2013-12-06 12:04:52 +01:00
|
|
|
CLEANFILES+= localedir.h
|
2012-06-06 15:06:52 +02:00
|
|
|
|
|
|
|
init.d init.o: localedir.h
|