2013-12-06 12:04:52 +01:00
|
|
|
# $NetBSD: Makefile,v 1.4 2013/08/22 00:16:54 matt Exp $
|
2012-06-06 15:06:52 +02:00
|
|
|
|
|
|
|
LIBISPRIVATE= yes
|
|
|
|
|
|
|
|
.include <bsd.own.mk>
|
|
|
|
|
2013-12-06 12:04:52 +01:00
|
|
|
GCC_MACHINE_ARCH?=${MACHINE_ARCH:S/earmv5/earm/}
|
|
|
|
|
2012-06-06 15:06:52 +02:00
|
|
|
LIB= iberty
|
|
|
|
|
|
|
|
.include "${.CURDIR}/defs.mk"
|
|
|
|
|
|
|
|
DIST= ${NETBSDSRCDIR}/external/gpl3/gcc/dist
|
|
|
|
GNUHOSTDIST= ${DIST}
|
|
|
|
|
|
|
|
SRCS= ${G_REQUIRED_OFILES:.o=.c} ${G_EXTRA_OFILES:.o=.c} \
|
|
|
|
${G_LIBOBJS:.o=.c} ${G_ALLOCA:.o=.c}
|
|
|
|
|
2013-12-06 12:04:52 +01:00
|
|
|
CPPFLAGS+= -DHAVE_CONFIG_H -I${.CURDIR}/arch/${GCC_MACHINE_ARCH} \
|
2012-06-06 15:06:52 +02:00
|
|
|
-I${DIST}/include
|
|
|
|
|
|
|
|
COPTS.argv.c = -Wno-stack-protector
|
|
|
|
COPTS.cp-demangle.c = -Wno-stack-protector
|
|
|
|
COPTS.make-relative-prefix.c = -Wno-stack-protector
|
|
|
|
COPTS.regex.c = -Wno-stack-protector
|
|
|
|
|
|
|
|
CWARNFLAGS.clang+= -Wno-unused-value
|
|
|
|
|
|
|
|
.PATH: ${DIST}/libiberty
|
|
|
|
|
|
|
|
.include <bsd.lib.mk>
|