Date: Fri, 10 May 2002 18:04:27 +0300 From: Ruslan Ermilov <ru@FreeBSD.org> To: "David E. O'Brien" <obrien@FreeBSD.org> Cc: current@FreeBSD.org Subject: Re: cvs commit: src/gnu/lib/csu Makefile src/gnu/lib/libgcc Makefile src/gnu/lib/libiberty Makefile src/gnu/lib/libobjc Makefile src/gnu/lib/libstdc++ Makefile config.h src/gnu/lib/libsupc++ Makefile src/gnu/usr.bin/cc Makefile Makefile.fe Makefile.inc ... Message-ID: <20020510150427.GA14295@sunbay.com> In-Reply-To: <200205100854.g4A8soc37068@freefall.freebsd.org> References: <200205100854.g4A8soc37068@freefall.freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
--ew6BAiZeqk4r7MaW Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, May 10, 2002 at 01:54:50AM -0700, David E. O'Brien wrote: > obrien 2002/05/10 01:54:50 PDT >=20 > Modified files: > gnu/lib/csu Makefile=20 > gnu/lib/libgcc Makefile=20 > gnu/lib/libiberty Makefile=20 > gnu/lib/libobjc Makefile=20 > gnu/lib/libstdc++ Makefile config.h=20 > gnu/lib/libsupc++ Makefile=20 > gnu/usr.bin/cc Makefile Makefile.fe Makefile.inc=20 > Makefile.tgt=20 > gnu/usr.bin/cc/c++ Makefile=20 > gnu/usr.bin/cc/c++filt Makefile=20 > gnu/usr.bin/cc/cc Makefile=20 > gnu/usr.bin/cc/cc1 Makefile=20 > gnu/usr.bin/cc/cc1obj Makefile=20 > gnu/usr.bin/cc/cc1plus Makefile=20 > gnu/usr.bin/cc/cc_drv Makefile=20 > gnu/usr.bin/cc/cc_fbsd Makefile=20 > gnu/usr.bin/cc/cc_int Makefile=20 > gnu/usr.bin/cc/cc_tools Makefile auto-host.h freebsd-native.h=20 > gnu/usr.bin/cc/cccp Makefile=20 > gnu/usr.bin/cc/collect2 Makefile=20 > gnu/usr.bin/cc/cpp Makefile=20 > gnu/usr.bin/cc/cpp0 Makefile=20 > gnu/usr.bin/cc/doc Makefile=20 > gnu/usr.bin/cc/f77 Makefile=20 > gnu/usr.bin/cc/f771 Makefile=20 > gnu/usr.bin/cc/f77doc Makefile=20 > gnu/usr.bin/cc/gcov Makefile=20 > gnu/usr.bin/cc/protoize Makefile=20 > gnu/usr.bin/cc/tradcpp0 Makefile=20 > Log: > Bmake bits for Gcc 3.1. > =20 > Partially made possible by: Wilko.Bulte@compaq.com > =20 This also vanished my YACC building fixes and broke world while attempting to build `cc1plus' in a cross-tools stage. The changes below fix this and CLEANFILES. (David, I'm copying -current so that others may benefit from this patch while you're asleep.) %%% Index: cc1/Makefile =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D RCS file: /home/ncvs/src/gnu/usr.bin/cc/cc1/Makefile,v retrieving revision 1.26 diff -u -r1.26 Makefile --- cc1/Makefile 10 May 2002 08:54:45 -0000 1.26 +++ cc1/Makefile 10 May 2002 14:54:51 -0000 @@ -2,10 +2,10 @@ =20 .include "../Makefile.inc" =20 -.PATH: ../cc_tools ${GCCDIR} +.PATH: ${GCCDIR} =20 PROG=3D cc1 -SRCS=3D main.c c-parse.c c-lang.c c-decl.c +SRCS=3D main.c c-parse.y c-lang.c c-decl.c BINDIR=3D /usr/libexec NOMAN=3D 1 NOSHARED?=3Dyes @@ -17,17 +17,14 @@ =20 #----------------------------------------------------------------------- # C parser -.ORDER: c-parse.c -c-parse.c: c-parse.in +c-parse.y: c-parse.in sed -e "/^ifobjc$$/,/^end ifobjc$$/d" \ -e "/^ifc$$/d" \ -e "/^end ifc$$/d" \ - ${GCCDIR}/c-parse.in > c-parse.y - ${YACC} -o c-parse.c.in c-parse.y - sed -e "s/malloc/xmalloc/g" \ + -e "s/malloc/xmalloc/g" \ -e "s/realloc/xrealloc/g" \ - c-parse.c.in >c-parse.c + ${.ALLSRC} > ${.TARGET} =20 -CLEANFILES+=3D c-parse.c c-parse.y # insurance +CLEANFILES=3D c-parse.y =20 .include <bsd.prog.mk> Index: cc1obj/Makefile =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D RCS file: /home/ncvs/src/gnu/usr.bin/cc/cc1obj/Makefile,v retrieving revision 1.20 diff -u -r1.20 Makefile --- cc1obj/Makefile 10 May 2002 08:54:46 -0000 1.20 +++ cc1obj/Makefile 10 May 2002 14:54:51 -0000 @@ -2,10 +2,10 @@ =20 .include "../Makefile.inc" =20 -.PATH: ../cc_tools ${GCCDIR}/objc ${GCCDIR} +.PATH: ${GCCDIR}/objc ${GCCDIR} =20 PROG=3D cc1obj -SRCS=3D objc-parse.c objc-act.c objc-lang.c main.c c-decl.c +SRCS=3D objc-parse.y objc-act.c objc-lang.c main.c c-decl.c BINDIR=3D /usr/libexec NOMAN=3D 1 NOSHARED?=3Dyes @@ -17,18 +17,16 @@ =20 #----------------------------------------------------------------------- # objc parser -.ORDER: objc-parse.c -objc-parse.c: c-parse.in + +objc-parse.y: c-parse.in sed -e "/^ifc$$/,/^end ifc$$/d" \ -e "/^ifobjc$$/d" \ -e "/^end ifobjc$$/d" \ - ${GCCDIR}/c-parse.in > objc-parse.y - ${YACC} -o objc-parse.c.in objc-parse.y - sed -e "s/malloc/xmalloc/g" \ + -e "s/malloc/xmalloc/g" \ -e "s/realloc/xrealloc/g" \ - objc-parse.c.in >objc-parse.c + ${.ALLSRC} > ${.TARGET} =20 -CLEANFILES+=3D objc-parse.c objc-parse.y # insurance +CLEANFILES+=3D objc-parse.y =20 #----------------------------------------------------------------------- =20 Index: cc1plus/Makefile =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D RCS file: /home/ncvs/src/gnu/usr.bin/cc/cc1plus/Makefile,v retrieving revision 1.27 diff -u -r1.27 Makefile --- cc1plus/Makefile 10 May 2002 08:54:46 -0000 1.27 +++ cc1plus/Makefile 10 May 2002 14:54:51 -0000 @@ -5,7 +5,7 @@ .PATH: ${GCCDIR}/cp ${GCCDIR} =20 PROG=3D cc1plus -SRCS=3D parse.y cfns.h +SRCS=3D parse.y y.tab.h parse.h cfns.h SRCS+=3D main.c cp-lang.c SRCS+=3D call.c class.c cvt.c decl.c decl2.c error.c except.c expr= .c \ friend.c init.c lex.c mangle.c method.c pt.c ptree.c repo.c rtti.c \ @@ -20,21 +20,19 @@ DPADD+=3D ${LIBCC_INT}=20 LDADD+=3D ${LIBCC_INT} =20 -CLEANFILES+=3D parse.c parse.h y.tab.c y.tab.h cfns.h +CLEANFILES=3D parse.y parse.h cfns.h =20 -.ORDER: parse.c parse.h -parse.c: parse.y - ${YACC} ${YFLAGS} ${GCCDIR}/cp/${.TARGET:S/c$/y/} +parse.y: ${GCCDIR}/cp/parse.y sed -e "s/malloc/xmalloc/g" \ -e "s/realloc/xrealloc/g" \ - y.tab.c >${.TARGET} + ${.ALLSRC} > ${.TARGET} =20 parse.h: parse.c y.tab.h - cp -pf y.tab.h ${.TARGET} - grep '^#define[ ]*YYEMPTY' ${.TARGET:S/h$/c/} >>${.TARGET} + cp -p y.tab.h ${.TARGET} + grep '^#define[ ]*YYEMPTY' parse.c >>${.TARGET} =20 -cfns.h: +cfns.h: cfns.gperf gperf -o -C -E -k '1-6,$$' -j1 -D -N 'libc_name_p' \ - ${GCCDIR}/cp/cfns.gperf > ${.TARGET} + ${.ALLSRC} > ${.TARGET} =20 .include <bsd.prog.mk> Index: cpp0/Makefile =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D RCS file: /home/ncvs/src/gnu/usr.bin/cc/cpp0/Makefile,v retrieving revision 1.3 diff -u -r1.3 Makefile --- cpp0/Makefile 10 May 2002 08:54:47 -0000 1.3 +++ cpp0/Makefile 10 May 2002 14:54:51 -0000 @@ -5,7 +5,7 @@ .PATH: ${GCCDIR} =20 PROG=3D cpp0 -SRCS=3D cppmain.c c-parse.c c-lang.c c-decl.c +SRCS=3D cppmain.c c-parse.y c-lang.c c-decl.c =20 BINDIR=3D /usr/libexec NOMAN=3D 1 @@ -16,18 +16,16 @@ =20 #----------------------------------------------------------------------- # C parser -.ORDER: c-parse.c -c-parse.c: c-parse.in + +c-parse.y: c-parse.in sed -e "/^ifobjc$$/,/^end ifobjc$$/d" \ -e "/^ifc$$/d" \ -e "/^end ifc$$/d" \ - ${GCCDIR}/c-parse.in > c-parse.y - ${YACC} -o c-parse.c.in c-parse.y - sed -e "s/malloc/xmalloc/g" \ + -e "s/malloc/xmalloc/g" \ -e "s/realloc/xrealloc/g" \ - c-parse.c.in >c-parse.c + ${.ALLSRC} > ${.TARGET} =20 -CLEANFILES+=3D c-parse.c c-parse.y # insurance +CLEANFILES+=3D c-parse.y =20 #----------------------------------------------------------------------- =20 Index: tradcpp0/Makefile =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D RCS file: /home/ncvs/src/gnu/usr.bin/cc/tradcpp0/Makefile,v retrieving revision 1.2 diff -u -r1.2 Makefile --- tradcpp0/Makefile 10 May 2002 08:54:50 -0000 1.2 +++ tradcpp0/Makefile 10 May 2002 14:54:51 -0000 @@ -5,18 +5,18 @@ .PATH: ${GCCDIR} =20 PROG=3D tradcpp0 -SRCS=3D tradcpp.c tradcif.c +SRCS=3D tradcpp.c tradcif.y BINDIR=3D /usr/libexec NOMAN=3D 1 =20 DPADD+=3D ${LIBCC_INT} LDADD+=3D ${LIBCC_INT} =20 -# ${YACC} ${GCCDIR}/tradcif.y -tradcif.c: tradcif.y - ${YACC} ${.ALLSRC} +tradcif.y: ${GCCDIR}/tradcif.y sed -e "s/malloc/xmalloc/g" \ -e "s/realloc/xrealloc/g" \ - y.tab.c >${.TARGET} + ${.ALLSRC} > ${.TARGET} + +CLEANFILES=3D tradcif.y =20 .include <bsd.prog.mk> %%% Now back to my <bsd.inc.mk> testing... Cheers, --=20 Ruslan Ermilov Sysadmin and DBA, ru@sunbay.com Sunbay Software AG, ru@FreeBSD.org FreeBSD committer, +380.652.512.251 Simferopol, Ukraine http://www.FreeBSD.org The Power To Serve http://www.oracle.com Enabling The Information Age --ew6BAiZeqk4r7MaW Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.7 (FreeBSD) iD8DBQE82+F7Ukv4P6juNwoRAqp8AJ9KjyN58Ye1Cv407c7ZluncfHf+kACfWfLv Oom/xo9N+DKCwyyh7bCIl4A= =AiPa -----END PGP SIGNATURE----- --ew6BAiZeqk4r7MaW-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020510150427.GA14295>