head	1.7;
access;
symbols
	RELENG_5_2_1_RELEASE:1.5
	RELENG_5_2_0_RELEASE:1.5
	RELENG_5_2:1.5.0.6
	RELENG_5_2_BP:1.5
	RELENG_5_1_0_RELEASE:1.5
	RELENG_5_1:1.5.0.4
	RELENG_5_1_BP:1.5
	RELENG_5_0_0_RELEASE:1.5
	RELENG_5_0:1.5.0.2
	RELENG_5_0_BP:1.5
	WIP_GCC31:1.1.0.2;
locks; strict;
comment	@# @;


1.7
date	2004.05.29.04.03.54;	author kan;	state dead;
branches;
next	1.6;

1.6
date	2004.02.05.22.44.22;	author ru;	state Exp;
branches;
next	1.5;

1.5
date	2002.05.13.03.27.03;	author obrien;	state Exp;
branches;
next	1.4;

1.4
date	2002.05.12.12.06.19;	author obrien;	state Exp;
branches;
next	1.3;

1.3
date	2002.05.10.08.54.47;	author obrien;	state Exp;
branches;
next	1.2;

1.2
date	2002.05.10.02.46.01;	author obrien;	state Exp;
branches;
next	1.1;

1.1
date	2001.12.18.03.24.18;	author obrien;	state dead;
branches
	1.1.2.1;
next	;

1.1.2.1
date	2001.12.18.03.24.18;	author obrien;	state Exp;
branches;
next	1.1.2.2;

1.1.2.2
date	2002.04.06.23.15.15;	author obrien;	state Exp;
branches;
next	1.1.2.3;

1.1.2.3
date	2002.05.08.02.46.10;	author obrien;	state Exp;
branches;
next	;


desc
@@


1.7
log
@Remove componenst which are not part of GCC 3.3 and which are not likely
to get used again in the future.
@
text
@# $FreeBSD: src/gnu/usr.bin/cc/cpp0/Makefile,v 1.6 2004/02/05 22:44:22 ru Exp $

.include "../Makefile.inc"

.PATH: ${GCCDIR}

PROG=	cpp0
SRCS=	cppmain.c c-parse+%DIKED.c c-lang.c c-decl.c

BINDIR=	/usr/libexec
NOMAN=	1
NOSHARED?=yes

DPADD=	${LIBCC_INT}
LDADD=	${LIBCC_INT}

#-----------------------------------------------------------------------
# C parser

c-parse+%DIKED.c: c-parse.c
	sed -e "s/malloc/xmalloc/g" \
	    -e "s/realloc/xrealloc/g" \
	    ${.ALLSRC} > ${.TARGET}

c-parse.y: c-parse.in
	sed -e "/^ifobjc$$/,/^end ifobjc$$/d" \
	    -e "/^ifc$$/d" \
	    -e "/^end ifc$$/d" \
	    ${.ALLSRC} > ${.TARGET}

CLEANFILES=	c-parse+%DIKED.c c-parse.c c-parse.y
CLEANFILES+=	y.tab.h # we don't use it, but the system YACC rules are naive

#-----------------------------------------------------------------------

.include <bsd.prog.mk>
@


1.6
log
@Fixed style of DPADD and LDADD assignments as per style.Makefile(5).
@
text
@d1 1
a1 1
# $FreeBSD$
@


1.5
log
@Restore some of the implementation from the Bmake gcc 2.95 bits.
In the end, I can do things more like the previous Bmake bits than was
apparent in the middle of the gcc31 WIP.
@
text
@d14 2
a15 2
DPADD+=	${LIBCC_INT}
LDADD+=	${LIBCC_INT}
@


1.4
log
@Tidy up the cleanfiles.
@
text
@d8 1
a8 1
SRCS=	cppmain.c c-parse.c c-lang.c c-decl.c
d19 7
a25 2
.ORDER: c-parse.c
c-parse.c: c-parse.in
d29 1
a29 5
	    ${GCCDIR}/c-parse.in > c-parse.y
	${YACC} -o c-parse.c.in c-parse.y
	sed -e "s/malloc/xmalloc/g" \
	    -e "s/realloc/xrealloc/g" \
	    c-parse.c.in >c-parse.c
d31 2
a32 1
CLEANFILES=	c-parse.c c-parse.y
@


1.3
log
@Bmake bits for Gcc 3.1.

Partially made possible by:	Wilko.Bulte@@compaq.com
@
text
@d30 1
a30 1
CLEANFILES+=	c-parse.c c-parse.y		# insurance
@


1.2
log
@Gcc 3.1 now offers both a C99 and a K&R traditional C preprocessor.
This is the ISO C99 one.
@
text
@d2 33
@


1.1
log
@file Makefile was initially added on branch WIP_GCC31.
@
text
@d1 1
@


1.1.2.1
log
@I used this for one of the gcc 2.97 snapshots.
It is here in case we decide we want the directory to match the binary name
since neither the binary nor the source file(s) are named 'cccp' any longer.
@
text
@a0 16
# $FreeBSD$

.include "../Makefile.inc"

.PATH: ${GCCDIR}

PROG=	cpp0
SRCS=	cppdefault.c cpperror.c cppexp.c cppfiles.c cpphash.c cppinit.c cpplex.c cpplib.c \
	cppmain.c cppulp.c mkdeps.c
BINDIR=	/usr/libexec
NOMAN=	1

DPADD+=	${LIBCC_INT}
LDADD+=	${LIBCC_INT}

.include <bsd.prog.mk>
@


1.1.2.2
log
@Bmake bits for GCC 3.1.
@
text
@d8 2
a9 2
SRCS=	cppmain.c c-parse.c c-lang.c c-decl.c

a11 1
NOSHARED?=yes
a14 17

#-----------------------------------------------------------------------
# C parser
.ORDER: c-parse.c
c-parse.c: c-parse.in
	sed -e "/^ifobjc$$/,/^end ifobjc$$/d" \
	    -e "/^ifc$$/d" \
	    -e "/^end ifc$$/d" \
	    ${.ALLSRC} > c-parse.y
	${YACC} -o c-parse.c.in c-parse.y
	sed -e "s/malloc/xmalloc/g" \
	    -e "s/realloc/xrealloc/g" \
	    c-parse.c.in >c-parse.c

CLEANFILES+=	c-parse.c c-parse.y		# insurance

#-----------------------------------------------------------------------
@


1.1.2.3
log
@Using ${.ALLSRC} here is dangerious as it sometimes picks up more
"sources" than desired.
@
text
@d24 1
a24 1
	    ${GCCDIR}/c-parse.in > c-parse.y
@


