- build libdecnumber

- don't build protoize/unprotoize
- use libdecnumber and VER_CPPFLAGS
This commit is contained in:
mrg 2011-06-29 01:57:59 +00:00
parent a98337dbce
commit 30b4ed22df
3 changed files with 17 additions and 5 deletions

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.2 2011/06/24 05:25:24 mrg Exp $
# $NetBSD: Makefile,v 1.3 2011/06/29 01:57:59 mrg Exp $
NOOBJ=# defined
@ -11,9 +11,9 @@ NOOBJ=# defined
SUBDIR+= host-libiberty .WAIT \
backend .WAIT \
frontend .WAIT \
libcpp gcov .WAIT \
libcpp libdecnumber gcov .WAIT \
cc1 cc1obj cc1plus cpp g++ gcc \
include protoize unprotoize
include
.include <bsd.subdir.mk>

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.1 2011/06/21 06:03:13 mrg Exp $
# $NetBSD: Makefile,v 1.2 2011/06/29 01:57:59 mrg Exp $
MYOBJS= ${G_OBJC_OBJS} ${G_C_AND_OBJC_OBJS}
PROG= cc1obj
@ -9,7 +9,13 @@ CPPFLAGS.prefix.c+= -DPREFIX=\"/usr\"
.include "../Makefile.backend"
.include "../Makefile.libcpp"
.include "../Makefile.libdecnumber"
# VER_CPPFLAGS from Makefile.inc
CPPFLAGS.c-cppbuiltin.c= ${VER_CPPFLAGS}
COPTS+= -Wno-stack-protector
LDADD+= -lintl -lgmp -lmpfr -lmpc -lz
.PATH: ${DIST}/gcc/objc ${DIST}/gcc ${G_out_file:H}

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.1 2011/06/21 06:03:13 mrg Exp $
# $NetBSD: Makefile,v 1.2 2011/06/29 01:57:59 mrg Exp $
PROG= cc1plus
SRCS= ${G_CXX_OBJS:Nlibcpp.a:.o=.c} main.c ${PROG}-checksum.c
@ -8,8 +8,14 @@ CPPFLAGS.prefix.c+= -DPREFIX=\"/usr\"
.include "../Makefile.backend"
.include "../Makefile.libcpp"
.include "../Makefile.libdecnumber"
# VER_CPPFLAGS from Makefile.inc
CPPFLAGS.c-cppbuiltin.c= ${VER_CPPFLAGS}
# YUCK. but see timevar.h:POP_TIMEVAR_AND_RETURN
CFLAGS+= -Wno-error # not good enough: -Wno-return-type
LDADD+= -lintl -lgmp -lmpfr -lmpc -lz
.PATH: ${DIST}/gcc/cp ${DIST}/gcc ${G_out_file:H}