head	1.11;
access;
symbols
	netbsd-11-0-RC4:1.11
	netbsd-11-0-RC3:1.11
	netbsd-11-0-RC2:1.11
	netbsd-11-0-RC1:1.11
	perseant-exfatfs-base-20250801:1.11
	netbsd-11:1.11.0.30
	netbsd-11-base:1.11
	netbsd-10-1-RELEASE:1.11
	perseant-exfatfs-base-20240630:1.11
	perseant-exfatfs:1.11.0.28
	perseant-exfatfs-base:1.11
	netbsd-8-3-RELEASE:1.11
	netbsd-9-4-RELEASE:1.11
	netbsd-10-0-RELEASE:1.11
	netbsd-10-0-RC6:1.11
	netbsd-10-0-RC5:1.11
	netbsd-10-0-RC4:1.11
	netbsd-10-0-RC3:1.11
	netbsd-10-0-RC2:1.11
	netbsd-10-0-RC1:1.11
	netbsd-10:1.11.0.26
	netbsd-10-base:1.11
	netbsd-9-3-RELEASE:1.11
	cjep_sun2x-base1:1.11
	cjep_sun2x:1.11.0.24
	cjep_sun2x-base:1.11
	cjep_staticlib_x-base1:1.11
	netbsd-9-2-RELEASE:1.11
	cjep_staticlib_x:1.11.0.22
	cjep_staticlib_x-base:1.11
	netbsd-9-1-RELEASE:1.11
	phil-wifi-20200421:1.11
	phil-wifi-20200411:1.11
	is-mlppp:1.11.0.20
	is-mlppp-base:1.11
	phil-wifi-20200406:1.11
	netbsd-8-2-RELEASE:1.11
	netbsd-9-0-RELEASE:1.11
	netbsd-9-0-RC2:1.11
	netbsd-9-0-RC1:1.11
	phil-wifi-20191119:1.11
	netbsd-9:1.11.0.18
	netbsd-9-base:1.11
	phil-wifi-20190609:1.11
	netbsd-8-1-RELEASE:1.11
	netbsd-8-1-RC1:1.11
	pgoyette-compat-merge-20190127:1.11
	pgoyette-compat-20190127:1.11
	pgoyette-compat-20190118:1.11
	pgoyette-compat-1226:1.11
	pgoyette-compat-1126:1.11
	pgoyette-compat-1020:1.11
	pgoyette-compat-0930:1.11
	pgoyette-compat-0906:1.11
	netbsd-7-2-RELEASE:1.10
	pgoyette-compat-0728:1.11
	netbsd-8-0-RELEASE:1.11
	phil-wifi:1.11.0.16
	phil-wifi-base:1.11
	pgoyette-compat-0625:1.11
	netbsd-8-0-RC2:1.11
	pgoyette-compat-0521:1.11
	pgoyette-compat-0502:1.11
	pgoyette-compat-0422:1.11
	netbsd-8-0-RC1:1.11
	pgoyette-compat-0415:1.11
	pgoyette-compat-0407:1.11
	pgoyette-compat-0330:1.11
	pgoyette-compat-0322:1.11
	pgoyette-compat-0315:1.11
	netbsd-7-1-2-RELEASE:1.10
	pgoyette-compat:1.11.0.14
	pgoyette-compat-base:1.11
	netbsd-7-1-1-RELEASE:1.10
	matt-nb8-mediatek:1.11.0.12
	matt-nb8-mediatek-base:1.11
	perseant-stdc-iso10646:1.11.0.10
	perseant-stdc-iso10646-base:1.11
	netbsd-8:1.11.0.8
	netbsd-8-base:1.11
	prg-localcount2-base3:1.11
	prg-localcount2-base2:1.11
	prg-localcount2-base1:1.11
	prg-localcount2:1.11.0.6
	prg-localcount2-base:1.11
	pgoyette-localcount-20170426:1.11
	bouyer-socketcan-base1:1.11
	pgoyette-localcount-20170320:1.11
	netbsd-7-1:1.10.0.8
	netbsd-7-1-RELEASE:1.10
	netbsd-7-1-RC2:1.10
	netbsd-7-nhusb-base-20170116:1.10
	bouyer-socketcan:1.11.0.4
	bouyer-socketcan-base:1.11
	pgoyette-localcount-20170107:1.11
	netbsd-7-1-RC1:1.10
	pgoyette-localcount-20161104:1.11
	netbsd-7-0-2-RELEASE:1.10
	localcount-20160914:1.11
	netbsd-7-nhusb:1.10.0.6
	netbsd-7-nhusb-base:1.10
	pgoyette-localcount-20160806:1.11
	pgoyette-localcount-20160726:1.11
	pgoyette-localcount:1.11.0.2
	pgoyette-localcount-base:1.11
	netbsd-7-0-1-RELEASE:1.10
	netbsd-7-0:1.10.0.4
	netbsd-7-0-RELEASE:1.10
	netbsd-7-0-RC3:1.10
	netbsd-7-0-RC2:1.10
	netbsd-7-0-RC1:1.10
	netbsd-5-2-3-RELEASE:1.2
	netbsd-5-1-5-RELEASE:1.2
	netbsd-6-0-6-RELEASE:1.9
	netbsd-6-1-5-RELEASE:1.9
	netbsd-7:1.10.0.2
	netbsd-7-base:1.10
	yamt-pagecache-base9:1.9
	yamt-pagecache-tag8:1.9
	netbsd-6-1-4-RELEASE:1.9
	netbsd-6-0-5-RELEASE:1.9
	tls-earlyentropy:1.9.0.20
	tls-earlyentropy-base:1.10
	riastradh-xf86-video-intel-2-7-1-pre-2-21-15:1.9
	riastradh-drm2-base3:1.9
	netbsd-6-1-3-RELEASE:1.9
	netbsd-6-0-4-RELEASE:1.9
	netbsd-5-2-2-RELEASE:1.2
	netbsd-5-1-4-RELEASE:1.2
	netbsd-6-1-2-RELEASE:1.9
	netbsd-6-0-3-RELEASE:1.9
	netbsd-5-2-1-RELEASE:1.2
	netbsd-5-1-3-RELEASE:1.2
	netbsd-6-1-1-RELEASE:1.9
	riastradh-drm2-base2:1.9
	riastradh-drm2-base1:1.9
	riastradh-drm2:1.9.0.12
	riastradh-drm2-base:1.9
	netbsd-6-1:1.9.0.18
	netbsd-6-0-2-RELEASE:1.9
	netbsd-6-1-RELEASE:1.9
	khorben-n900:1.9.0.16
	netbsd-6-1-RC4:1.9
	netbsd-6-1-RC3:1.9
	agc-symver:1.9.0.14
	agc-symver-base:1.9
	netbsd-6-1-RC2:1.9
	netbsd-6-1-RC1:1.9
	yamt-pagecache-base8:1.9
	netbsd-5-2:1.2.0.4
	netbsd-6-0-1-RELEASE:1.9
	yamt-pagecache-base7:1.9
	netbsd-5-2-RELEASE:1.2
	netbsd-5-2-RC1:1.2
	matt-nb6-plus-nbase:1.9
	yamt-pagecache-base6:1.9
	netbsd-6-0:1.9.0.10
	netbsd-6-0-RELEASE:1.9
	netbsd-6-0-RC2:1.9
	tls-maxphys:1.9.0.8
	tls-maxphys-base:1.10
	matt-nb6-plus:1.9.0.6
	matt-nb6-plus-base:1.9
	netbsd-6-0-RC1:1.9
	yamt-pagecache-base5:1.9
	yamt-pagecache-base4:1.9
	netbsd-6:1.9.0.4
	netbsd-6-base:1.9
	netbsd-5-1-2-RELEASE:1.2
	netbsd-5-1-1-RELEASE:1.2
	yamt-pagecache-base3:1.9
	yamt-pagecache-base2:1.9
	yamt-pagecache:1.9.0.2
	yamt-pagecache-base:1.9
	cherry-xenmp:1.8.0.4
	cherry-xenmp-base:1.8
	bouyer-quota2-nbase:1.8
	bouyer-quota2:1.8.0.2
	bouyer-quota2-base:1.8
	matt-mips64-premerge-20101231:1.8
	matt-nb5-mips64-premerge-20101231:1.2
	matt-nb5-pq3:1.2.0.18
	matt-nb5-pq3-base:1.2
	netbsd-5-1:1.2.0.16
	netbsd-5-1-RELEASE:1.2
	netbsd-5-1-RC4:1.2
	matt-nb5-mips64-k15:1.2
	netbsd-5-1-RC3:1.2
	netbsd-5-1-RC2:1.2
	netbsd-5-1-RC1:1.2
	netbsd-5-0-2-RELEASE:1.2
	matt-nb5-mips64-premerge-20091211:1.2
	matt-premerge-20091211:1.3
	matt-nb5-mips64-u2-k2-k4-k7-k8-k9:1.2
	matt-nb4-mips64-k7-u2a-k9b:1.2
	matt-nb5-mips64-u1-k1-k5:1.2
	matt-nb5-mips64:1.2.0.14
	netbsd-5-0-1-RELEASE:1.2
	jym-xensuspend-nbase:1.2
	netbsd-5-0:1.2.0.12
	netbsd-5-0-RELEASE:1.2
	netbsd-5-0-RC4:1.2
	netbsd-5-0-RC3:1.2
	netbsd-5-0-RC2:1.2
	jym-xensuspend:1.2.0.10
	jym-xensuspend-base:1.2
	netbsd-5-0-RC1:1.2
	haad-dm-base:1.2
	haad-dm-base2:1.2
	haad-nbase2:1.2
	netbsd-5:1.2.0.8
	netbsd-5-base:1.2
	matt-mips64-base2:1.2
	haad-dm:1.2.0.6
	haad-dm-base1:1.2
	wrstuden-revivesa-base-3:1.2
	wrstuden-revivesa:1.2.0.2
	wrstuden-revivesa-base-2:1.2;
locks; strict;
comment	@# @;


1.11
date	2016.02.09.20.40.45;	author plunky;	state Exp;
branches;
next	1.10;
commitid	Xe824bR1X1f4zhUy;

1.10
date	2014.07.24.20.20.49;	author plunky;	state Exp;
branches;
next	1.9;
commitid	CbVE8jaIdOWeCFJx;

1.9
date	2011.06.07.13.30.35;	author plunky;	state Exp;
branches
	1.9.8.1
	1.9.20.1;
next	1.8;

1.8
date	2010.06.03.19.17.22;	author plunky;	state Exp;
branches
	1.8.4.1;
next	1.7;

1.7
date	2010.03.07.16.27.18;	author plunky;	state Exp;
branches;
next	1.6;

1.6
date	2010.02.05.08.37.48;	author plunky;	state Exp;
branches;
next	1.5;

1.5
date	2010.02.03.22.03.56;	author plunky;	state Exp;
branches;
next	1.4;

1.4
date	2010.01.20.11.45.55;	author plunky;	state Exp;
branches;
next	1.3;

1.3
date	2009.09.04.00.50.06;	author gmcgarry;	state Exp;
branches;
next	1.2;

1.2
date	2008.08.27.13.15.53;	author gmcgarry;	state Exp;
branches
	1.2.2.1
	1.2.6.1;
next	1.1;

1.1
date	2008.08.24.05.47.05;	author gmcgarry;	state Exp;
branches;
next	;

1.9.8.1
date	2014.08.19.23.52.10;	author tls;	state Exp;
branches;
next	;
commitid	jTnpym9Qu0o4R1Nx;

1.9.20.1
date	2014.08.10.07.10.08;	author tls;	state Exp;
branches;
next	;
commitid	aDVUZLJXv0vdHMLx;

1.8.4.1
date	2011.06.23.14.18.33;	author cherry;	state Exp;
branches;
next	;

1.2.2.1
date	2008.08.27.13.15.53;	author wrstuden;	state dead;
branches;
next	1.2.2.2;

1.2.2.2
date	2008.09.18.05.15.50;	author wrstuden;	state Exp;
branches;
next	;

1.2.6.1
date	2008.08.27.13.15.53;	author haad;	state dead;
branches;
next	1.2.6.2;

1.2.6.2
date	2008.10.19.22.40.48;	author haad;	state Exp;
branches;
next	;


desc
@@


1.11
log
@update build machinery for pcc-20160208
@
text
@#	$NetBSD: Makefile,v 1.10 2014/07/24 20:20:49 plunky Exp $

.include <bsd.init.mk>

.PATH:	${PCC_DIST}/cc/cpp

#
# We build cpp(1) as pcpp(1) to avoid confusion with GCC
#

PROG=	pcpp

SRCS+=	cpc.c cpp.c token.c

MAN=	pcpp.1

pcpp.1:	cpp.1
	${TOOL_SED} -e "s,Nm cpp,Nm pcpp,"	\
		    -e "s,Dt CPP,Dt PCPP,"	\
		    ${.ALLSRC} > ${.TARGET}

CPPFLAGS+=	-I${.OBJDIR}
CPPFLAGS+=	-I${PCC_DIST}/mip
CPPFLAGS+=	-I${PCC_DIST}/cc/cpp

COPTS.cpp.c+=	${${ACTIVE_CC} == "gcc" :? -Wno-error=cast-qual :}

CLEANFILES+=	pcpp.1

.include <bsd.prog.mk>
@


1.10
log
@update build framework for import of pcc-20140706
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.9 2011/06/07 13:30:35 plunky Exp $
d13 1
a13 2
SRCS=	cpy.y
SRCS+=	cpp.c token.c
d26 1
a26 2
# generate cpy.h
YHEADER=
@


1.9
log
@make PCC_DEBUG a global flag (will not compile without, currently)
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.8 2010/06/03 19:17:22 plunky Exp $
d5 1
a5 2
.PATH:	${PCC_DIST}/cc/cpp \
	${PCC_DIST}/mip
d30 1
a30 7
# some files include y.tab.h instead
DPSRCS=		y.tab.h

y.tab.h:	cpy.h
	${HOST_LN} -f ${.ALLSRC} ${.TARGET}

CLEANFILES+=	pcpp.1 y.tab.h
@


1.9.8.1
log
@Rebase to HEAD as of a few days ago.
@
text
@d1 1
a1 1
#	$NetBSD$
d5 2
a6 1
.PATH:	${PCC_DIST}/cc/cpp
d31 7
a37 1
CLEANFILES+=	pcpp.1
@


1.9.20.1
log
@Rebase.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.10 2014/07/24 20:20:49 plunky Exp $
d5 2
a6 1
.PATH:	${PCC_DIST}/cc/cpp
d31 7
a37 1
CLEANFILES+=	pcpp.1
@


1.8
log
@apply build framework and config changes for pcc-100602, plus add a
prepare-import.sh script for future updates
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.7 2010/03/07 16:27:18 plunky Exp $
a23 1
CPPFLAGS+=	-DCPP_DEBUG
@


1.8.4.1
log
@Catchup with rmind-uvmplock merge.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.9 2011/06/07 13:30:35 plunky Exp $
d24 1
@


1.7
log
@Install PCC cpp as libexec/pcpp to avoid name conflicts with other
compilers (eg GCC), and to match the manpage which is already installed
as pcpp.1

(Gregory McGarry: "I think it's a good idea")
@
text
@d1 1
a1 3
#	$NetBSD: Makefile,v 1.6 2010/02/05 08:37:48 plunky Exp $

WARNS?=	2
@


1.6
log
@only go to WARNS=2 on these by default
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.5 2010/02/03 22:03:56 plunky Exp $
d10 5
a14 1
PROG=	cpp
a18 1
# avoid conflicts with the GCC cpp.1 page
d22 3
a24 1
	cp ${.ALLSRC} ${.TARGET}
@


1.5
log
@Install the CPP manpage as pcpp(1) to avoid conflicts with the GCC version
@
text
@d1 3
a3 1
#	$NetBSD: Makefile,v 1.4 2010/01/20 11:45:55 plunky Exp $
@


1.4
log
@Clean up the build framework for pcc

  - use <bsd.init.mk> to include <../Makefile.inc> files
  - add Makefile.inc files that pull in appropriate build settings
  - fix the LIBEXECDIR definition (should have trailing /)
  - make cc.1 install as pcc.1 to match the binary
  - use YHEADER= to build the yacc headers
  - general consistency tidy up
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.3 2009/09/04 00:50:06 gmcgarry Exp $
d13 5
a17 1
MAN=	cpp.1
d33 1
a33 1
CLEANFILES+=	y.tab.h
@


1.3
log
@Update build system and merge changes for pcc 0.9.9 090902.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.2 2008/08/27 13:15:53 gmcgarry Exp $
d3 1
a3 1
.include <bsd.own.mk>
d5 2
a6 5
# USE_FORT?= yes

DIST=	${NETBSDSRCDIR}/external/bsd/pcc/dist/pcc
SUBDIST=${DIST}/cc/cpp
.PATH:	${SUBDIST}
a8 1
SRCS=   cpy.y cpp.c token.c
d10 2
a11 1
MAN=    cpp.1
d13 1
a13 1
BINDIR= /usr/libexec
d15 1
a15 3
YFLAGS+=	-d
CPPFLAGS+=	-I${DIST}/cc/cpp -I${.CURDIR} -I${DIST} -I${DIST}/mip
CPPFLAGS+=	-I${.CURDIR}/../..
d17 8
a24 1
CPPFLAGS+=	-DCPP_DEBUG
d26 2
a27 2
CLEANFILES+=	lex.yy.c y.tab.h cpp.cat1 scanner.c
CLEANFILES+=    cpp.cat1
d29 1
a29 4
# scanner.l expects to include y.tab.h
cpy.c: cpy.y
	${YACC} ${YFLAGS} -o ${.TARGET} ${.ALLSRC}
	mv cpy.h y.tab.h
@


1.2
log
@Fix path to correct source directory.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.1 2008/08/24 05:47:05 gmcgarry Exp $
d12 1
a12 1
SRCS=   cpy.y scanner.c cpp.c
@


1.2.6.1
log
@file Makefile was added on branch haad-dm on 2008-10-19 22:40:48 +0000
@
text
@d1 32
@


1.2.6.2
log
@Sync with HEAD.
@
text
@a0 32
#	$NetBSD: Makefile,v 1.2 2008/08/27 13:15:53 gmcgarry Exp $

.include <bsd.own.mk>

# USE_FORT?= yes

DIST=	${NETBSDSRCDIR}/external/bsd/pcc/dist/pcc
SUBDIST=${DIST}/cc/cpp
.PATH:	${SUBDIST}

PROG=	cpp
SRCS=   cpy.y scanner.c cpp.c

MAN=    cpp.1

BINDIR= /usr/libexec

YFLAGS+=	-d
CPPFLAGS+=	-I${DIST}/cc/cpp -I${.CURDIR} -I${DIST} -I${DIST}/mip
CPPFLAGS+=	-I${.CURDIR}/../..
CPPFLAGS+=	-I${.OBJDIR}
CPPFLAGS+=	-DCPP_DEBUG

CLEANFILES+=	lex.yy.c y.tab.h cpp.cat1 scanner.c
CLEANFILES+=    cpp.cat1

# scanner.l expects to include y.tab.h
cpy.c: cpy.y
	${YACC} ${YFLAGS} -o ${.TARGET} ${.ALLSRC}
	mv cpy.h y.tab.h

.include <bsd.prog.mk>
@


1.2.2.1
log
@file Makefile was added on branch wrstuden-revivesa on 2008-09-18 05:15:50 +0000
@
text
@d1 32
@


1.2.2.2
log
@Sync with wrstuden-revivesa-base-2.
@
text
@a0 32
#	$NetBSD: Makefile,v 1.2 2008/08/27 13:15:53 gmcgarry Exp $

.include <bsd.own.mk>

# USE_FORT?= yes

DIST=	${NETBSDSRCDIR}/external/bsd/pcc/dist/pcc
SUBDIST=${DIST}/cc/cpp
.PATH:	${SUBDIST}

PROG=	cpp
SRCS=   cpy.y scanner.c cpp.c

MAN=    cpp.1

BINDIR= /usr/libexec

YFLAGS+=	-d
CPPFLAGS+=	-I${DIST}/cc/cpp -I${.CURDIR} -I${DIST} -I${DIST}/mip
CPPFLAGS+=	-I${.CURDIR}/../..
CPPFLAGS+=	-I${.OBJDIR}
CPPFLAGS+=	-DCPP_DEBUG

CLEANFILES+=	lex.yy.c y.tab.h cpp.cat1 scanner.c
CLEANFILES+=    cpp.cat1

# scanner.l expects to include y.tab.h
cpy.c: cpy.y
	${YACC} ${YFLAGS} -o ${.TARGET} ${.ALLSRC}
	mv cpy.h y.tab.h

.include <bsd.prog.mk>
@


1.1
log
@Add pcc build framework.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.2 2008/02/10 20:32:25 ragge Exp $
d7 1
a7 1
DIST=	${NETBSDSRCDIR}/dist/pcc
@
