head	1.14;
access;
symbols
	netbsd-11-0-RC4:1.14
	netbsd-11-0-RC3:1.14
	netbsd-11-0-RC2:1.14
	netbsd-11-0-RC1:1.14
	perseant-exfatfs-base-20250801:1.14
	netbsd-11:1.14.0.30
	netbsd-11-base:1.14
	netbsd-10-1-RELEASE:1.14
	perseant-exfatfs-base-20240630:1.14
	perseant-exfatfs:1.14.0.28
	perseant-exfatfs-base:1.14
	netbsd-8-3-RELEASE:1.14
	netbsd-9-4-RELEASE:1.14
	netbsd-10-0-RELEASE:1.14
	netbsd-10-0-RC6:1.14
	netbsd-10-0-RC5:1.14
	netbsd-10-0-RC4:1.14
	netbsd-10-0-RC3:1.14
	netbsd-10-0-RC2:1.14
	netbsd-10-0-RC1:1.14
	netbsd-10:1.14.0.26
	netbsd-10-base:1.14
	netbsd-9-3-RELEASE:1.14
	cjep_sun2x-base1:1.14
	cjep_sun2x:1.14.0.24
	cjep_sun2x-base:1.14
	cjep_staticlib_x-base1:1.14
	netbsd-9-2-RELEASE:1.14
	cjep_staticlib_x:1.14.0.22
	cjep_staticlib_x-base:1.14
	netbsd-9-1-RELEASE:1.14
	phil-wifi-20200421:1.14
	phil-wifi-20200411:1.14
	is-mlppp:1.14.0.20
	is-mlppp-base:1.14
	phil-wifi-20200406:1.14
	netbsd-8-2-RELEASE:1.14
	netbsd-9-0-RELEASE:1.14
	netbsd-9-0-RC2:1.14
	netbsd-9-0-RC1:1.14
	phil-wifi-20191119:1.14
	netbsd-9:1.14.0.18
	netbsd-9-base:1.14
	phil-wifi-20190609:1.14
	netbsd-8-1-RELEASE:1.14
	netbsd-8-1-RC1:1.14
	pgoyette-compat-merge-20190127:1.14
	pgoyette-compat-20190127:1.14
	pgoyette-compat-20190118:1.14
	pgoyette-compat-1226:1.14
	pgoyette-compat-1126:1.14
	pgoyette-compat-1020:1.14
	pgoyette-compat-0930:1.14
	pgoyette-compat-0906:1.14
	netbsd-7-2-RELEASE:1.13
	pgoyette-compat-0728:1.14
	netbsd-8-0-RELEASE:1.14
	phil-wifi:1.14.0.16
	phil-wifi-base:1.14
	pgoyette-compat-0625:1.14
	netbsd-8-0-RC2:1.14
	pgoyette-compat-0521:1.14
	pgoyette-compat-0502:1.14
	pgoyette-compat-0422:1.14
	netbsd-8-0-RC1:1.14
	pgoyette-compat-0415:1.14
	pgoyette-compat-0407:1.14
	pgoyette-compat-0330:1.14
	pgoyette-compat-0322:1.14
	pgoyette-compat-0315:1.14
	netbsd-7-1-2-RELEASE:1.13
	pgoyette-compat:1.14.0.14
	pgoyette-compat-base:1.14
	netbsd-7-1-1-RELEASE:1.13
	matt-nb8-mediatek:1.14.0.12
	matt-nb8-mediatek-base:1.14
	perseant-stdc-iso10646:1.14.0.10
	perseant-stdc-iso10646-base:1.14
	netbsd-8:1.14.0.8
	netbsd-8-base:1.14
	prg-localcount2-base3:1.14
	prg-localcount2-base2:1.14
	prg-localcount2-base1:1.14
	prg-localcount2:1.14.0.6
	prg-localcount2-base:1.14
	pgoyette-localcount-20170426:1.14
	bouyer-socketcan-base1:1.14
	pgoyette-localcount-20170320:1.14
	netbsd-7-1:1.13.0.8
	netbsd-7-1-RELEASE:1.13
	netbsd-7-1-RC2:1.13
	netbsd-7-nhusb-base-20170116:1.13
	bouyer-socketcan:1.14.0.4
	bouyer-socketcan-base:1.14
	pgoyette-localcount-20170107:1.14
	netbsd-7-1-RC1:1.13
	pgoyette-localcount-20161104:1.14
	netbsd-7-0-2-RELEASE:1.13
	localcount-20160914:1.14
	netbsd-7-nhusb:1.13.0.6
	netbsd-7-nhusb-base:1.13
	pgoyette-localcount-20160806:1.14
	pgoyette-localcount-20160726:1.14
	pgoyette-localcount:1.14.0.2
	pgoyette-localcount-base:1.14
	netbsd-7-0-1-RELEASE:1.13
	netbsd-7-0:1.13.0.4
	netbsd-7-0-RELEASE:1.13
	netbsd-7-0-RC3:1.13
	netbsd-7-0-RC2:1.13
	netbsd-7-0-RC1:1.13
	netbsd-5-2-3-RELEASE:1.2
	netbsd-5-1-5-RELEASE:1.2
	netbsd-6-0-6-RELEASE:1.11
	netbsd-6-1-5-RELEASE:1.11
	netbsd-7:1.13.0.2
	netbsd-7-base:1.13
	yamt-pagecache-base9:1.12
	yamt-pagecache-tag8:1.11
	netbsd-6-1-4-RELEASE:1.11
	netbsd-6-0-5-RELEASE:1.11
	tls-earlyentropy:1.12.0.2
	tls-earlyentropy-base:1.13
	riastradh-xf86-video-intel-2-7-1-pre-2-21-15:1.12
	riastradh-drm2-base3:1.12
	netbsd-6-1-3-RELEASE:1.11
	netbsd-6-0-4-RELEASE:1.11
	netbsd-5-2-2-RELEASE:1.2
	netbsd-5-1-4-RELEASE:1.2
	netbsd-6-1-2-RELEASE:1.11
	netbsd-6-0-3-RELEASE:1.11
	netbsd-5-2-1-RELEASE:1.2
	netbsd-5-1-3-RELEASE:1.2
	netbsd-6-1-1-RELEASE:1.11
	riastradh-drm2-base2:1.11
	riastradh-drm2-base1:1.11
	riastradh-drm2:1.11.0.12
	riastradh-drm2-base:1.11
	netbsd-6-1:1.11.0.18
	netbsd-6-0-2-RELEASE:1.11
	netbsd-6-1-RELEASE:1.11
	khorben-n900:1.11.0.16
	netbsd-6-1-RC4:1.11
	netbsd-6-1-RC3:1.11
	agc-symver:1.11.0.14
	agc-symver-base:1.11
	netbsd-6-1-RC2:1.11
	netbsd-6-1-RC1:1.11
	yamt-pagecache-base8:1.11
	netbsd-5-2:1.2.0.4
	netbsd-6-0-1-RELEASE:1.11
	yamt-pagecache-base7:1.11
	netbsd-5-2-RELEASE:1.2
	netbsd-5-2-RC1:1.2
	matt-nb6-plus-nbase:1.11
	yamt-pagecache-base6:1.11
	netbsd-6-0:1.11.0.10
	netbsd-6-0-RELEASE:1.11
	netbsd-6-0-RC2:1.11
	tls-maxphys:1.11.0.8
	tls-maxphys-base:1.13
	matt-nb6-plus:1.11.0.6
	matt-nb6-plus-base:1.11
	netbsd-6-0-RC1:1.11
	yamt-pagecache-base5:1.11
	yamt-pagecache-base4:1.11
	netbsd-6:1.11.0.4
	netbsd-6-base:1.11
	netbsd-5-1-2-RELEASE:1.2
	netbsd-5-1-1-RELEASE:1.2
	yamt-pagecache-base3:1.11
	yamt-pagecache-base2:1.11
	yamt-pagecache:1.11.0.2
	yamt-pagecache-base:1.11
	cherry-xenmp:1.8.0.2
	cherry-xenmp-base:1.8
	bouyer-quota2-nbase:1.6
	bouyer-quota2:1.6.0.2
	bouyer-quota2-base:1.6
	matt-mips64-premerge-20101231:1.6
	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.14
date	2016.02.09.20.40.45;	author plunky;	state Exp;
branches;
next	1.13;
commitid	Xe824bR1X1f4zhUy;

1.13
date	2014.07.24.20.20.49;	author plunky;	state Exp;
branches;
next	1.12;
commitid	CbVE8jaIdOWeCFJx;

1.12
date	2014.03.14.00.06.52;	author christos;	state Exp;
branches
	1.12.2.1;
next	1.11;
commitid	CMh01lJMPTWV8Bsx;

1.11
date	2011.09.01.13.00.14;	author plunky;	state Exp;
branches
	1.11.2.1
	1.11.8.1;
next	1.10;

1.10
date	2011.08.10.08.10.39;	author plunky;	state Exp;
branches;
next	1.9;

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

1.8
date	2011.05.22.11.53.46;	author plunky;	state Exp;
branches
	1.8.2.1;
next	1.7;

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

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

1.5
date	2010.02.05.08.37.48;	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.05;	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.12.2.1
date	2014.08.10.07.10.08;	author tls;	state Exp;
branches;
next	;
commitid	aDVUZLJXv0vdHMLx;

1.11.2.1
date	2014.05.22.15.50.55;	author yamt;	state Exp;
branches;
next	;
commitid	zQV9YsiDKNvk9yBx;

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

1.8.2.1
date	2011.06.23.14.18.32;	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.14
log
@update build machinery for pcc-20160208
@
text
@#	$NetBSD: Makefile,v 1.13 2014/07/24 20:20:49 plunky Exp $

WARNS?=	2

.include <bsd.init.mk>

.PATH:	${PCC_DIST}/cc/ccom \
	${PCC_DIST}/arch/${TARGMACH} \
	${PCC_DIST}/mip

PROG=	ccom

SRCS=	cgram.y
SRCS+=	scan.l
SRCS+=	optim.c pftn.c trees.c inline.c symtabs.c
SRCS+=	gcc_compat.c init.c local.c code.c stabs.c builtins.c
SRCS+=	match.c reader.c optim2.c regs.c local2.c order.c table.c
SRCS+=	common.c main.c external.c unicode.c

MAN=	ccom.1

# generate cgram.h
YHEADER=

CPPFLAGS+=	-I${.OBJDIR}
CPPFLAGS+=	-I${PCC_DIST}/mip
CPPFLAGS+=	-I${PCC_DIST}/os/${TARGOS}
CPPFLAGS+=	-I${PCC_DIST}/arch/${TARGMACH}
CPPFLAGS+=	-I${PCC_DIST}/cc/ccom

COPTS+=		${${ACTIVE_CC} == "gcc" :? -Wno-error=stack-protector :}

DPSRCS=	external.c

MKEXTDIR!=	cd ${.CURDIR}/../mkext && ${PRINTOBJDIR}

external.c:	${MKEXTDIR}/mkext
	${_MKTARGET_CREATE}
	${MKEXTDIR}/mkext

CLEANFILES+=	external.c external.h

.include <bsd.prog.mk>
@


1.13
log
@update build framework for import of pcc-20140706
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.12 2014/03/14 00:06:52 christos Exp $
d13 1
a13 1
SRCS=   cgram.y
d20 1
a20 1
MAN=    ccom.1
d31 1
a31 1
COPTS.pftn.c+=	${${ACTIVE_CC} == "gcc" :? -Wno-uninitialized :}
@


1.12
log
@make this compile again
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.11 2011/09/01 13:00:14 plunky Exp $
d18 1
a18 1
SRCS+=	common.c main.c external.c
d31 1
a31 1
COPTS.pftn.c+=	-Wno-uninitialized
@


1.12.2.1
log
@Rebase.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.13 2014/07/24 20:20:49 plunky Exp $
d18 1
a18 1
SRCS+=	common.c main.c external.c unicode.c
d31 1
a31 1
COPTS.pftn.c+=	${${ACTIVE_CC} == "gcc" :? -Wno-uninitialized :}
@


1.11
log
@update build machinery for pcc-20110901
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.10 2011/08/10 08:10:39 plunky Exp $
d35 1
a35 1
MKEXTDIR!=	cd ../mkext && ${PRINTOBJDIR}
@


1.11.8.1
log
@Rebase to HEAD as of a few days ago.
@
text
@d1 1
a1 1
#	$NetBSD$
d18 1
a18 1
SRCS+=	common.c main.c external.c unicode.c
d31 1
a31 1
COPTS.pftn.c+=	${${ACTIVE_CC} == "gcc" :? -Wno-uninitialized :}
d35 1
a35 1
MKEXTDIR!=	cd ${.CURDIR}/../mkext && ${PRINTOBJDIR}
@


1.11.2.1
log
@sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs.  ("Protocol error: too many arguments")
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.11 2011/09/01 13:00:14 plunky Exp $
d35 1
a35 1
MKEXTDIR!=	cd ${.CURDIR}/../mkext && ${PRINTOBJDIR}
@


1.10
log
@disable some warnings to appease gcc-4.5
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.9 2011/06/07 13:30:35 plunky Exp $
a30 1
COPTS.scan.c+=	-Wno-unused
@


1.9
log
@make PCC_DEBUG a global flag (will not compile without, currently)
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.8 2011/05/22 11:53:46 plunky Exp $
d31 3
@


1.8
log
@let external.h be built as a side effect of external.c, as
listing it explicitly means that mkext is run concurrently
twice when MAKE_JOBS > 1
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.7 2011/04/14 09:31:25 plunky Exp $
a24 1
CPPFLAGS+=	-DPCC_DEBUG
@


1.8.2.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 $
d25 1
@


1.7
log
@use HOSTPROG to build the mkext program (which creates external.c and
external.h for ccom) rather than HOST_CC directly.

because PROG and HOSTPROG don't play nicely together, put mkext in its
own SUBDIR
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.6 2010/06/03 19:17:22 plunky Exp $
d32 1
a32 1
DPSRCS=	external.c external.h
d36 1
a36 1
external.c external.h:	${MKEXTDIR}/mkext
@


1.6
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.5 2010/02/05 08:37:48 plunky Exp $
d34 1
a34 3
external.c external.h: mkext.c table.c common.c
	${HOST_CC} ${CFLAGS} ${CPPFLAGS} -DMKEXT -o ${.OBJDIR}/mkext ${.ALLSRC}
	${.OBJDIR}/mkext
d36 5
a40 1
CLEANFILES+=	external.c external.h mkext
@


1.5
log
@only go to WARNS=2 on these by default
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.4 2010/01/20 11:45:55 plunky Exp $
d16 1
a16 1
SRCS+=	gcc_compat.c init.c local.c code.c stabs.c
a25 1
CPPFLAGS+=	-DGCC_COMPAT
a31 4
COPTS.scan.c+= -Wno-error
COPTS.cgram.c+=-Wno-uninitialized
COPTS.local.c+=-Wno-unused

@


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 3
a3 1
#	$NetBSD: Makefile,v 1.3 2009/09/04 00:50:05 gmcgarry Exp $
@


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 3
a7 1
# USE_FORT?= yes
d9 1
a9 2
DIST=	${NETBSDSRCDIR}/external/bsd/pcc/dist/pcc
SUBDIST=${DIST}/cc/ccom
a10 1
PROG=	ccom
d12 5
a16 3
SRCS+=  optim.c pftn.c scan.c trees.c inline.c symtabs.c
SRCS+=	gcc_compat.c init.c local.c code.c stabs.c match.c reader.c optim2.c
SRCS+=	regs.c local2.c order.c table.c common.c main.c external.c
d20 2
a21 1
BINDIR= /usr/libexec
d23 2
a24 2
CPPFLAGS+=	-I${SUBDIST} -I${.CURDIR} -I${DIST}/mip
CPPFLAGS+=	-I${.CURDIR}/../..
d26 8
a33 2
CPPFLAGS+=	-DPCC_DEBUG -DGCC_COMPAT
YFLAGS+=	-d
d35 1
a35 1
COPTS.scan.c += -Wno-error
d37 3
a39 7
DPSRCS=	external.h

CLEANFILES+=	external.h external.c ccom.cat1 cgram.h mkext scan.c
CLEANFILES+=    ccom.cat1


.include "../../Makefile.inc"
d41 1
a41 5
trees.c: pass2.h

pass2.h: external.h

optim2.o reader.o: external.h
a43 7

.PATH:	${SUBDIST} ${MIPDIR} ${MDIR}

external.h external.c: ${MIPDIR}/mkext.c $(MDIR)/table.c
	$(HOST_CC) $(DEFS) $(CPPFLAGS) $(CFLAGS) -DMKEXT -o ${.OBJDIR}/mkext ${MIPDIR}/mkext.c \
	$(MDIR)/table.c ${MIPDIR}/common.c
	${.OBJDIR}/mkext
@


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 $
d26 2
@


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


1.2.6.2
log
@Sync with HEAD.
@
text
@a0 47
#	$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/ccom

PROG=	ccom
SRCS=   cgram.y
SRCS+=  optim.c pftn.c scan.c trees.c inline.c symtabs.c
SRCS+=	gcc_compat.c init.c local.c code.c stabs.c match.c reader.c optim2.c
SRCS+=	regs.c local2.c order.c table.c common.c main.c external.c

MAN=    ccom.1

BINDIR= /usr/libexec

CPPFLAGS+=	-I${SUBDIST} -I${.CURDIR} -I${DIST}/mip
CPPFLAGS+=	-I${.CURDIR}/../..
CPPFLAGS+=	-I${.OBJDIR}
CPPFLAGS+=	-DPCC_DEBUG -DGCC_COMPAT
YFLAGS+=	-d

DPSRCS=	external.h

CLEANFILES+=	external.h external.c ccom.cat1 cgram.h mkext scan.c
CLEANFILES+=    ccom.cat1


.include "../../Makefile.inc"

trees.c: pass2.h

pass2.h: external.h

optim2.o reader.o: external.h

.include <bsd.prog.mk>

.PATH:	${SUBDIST} ${MIPDIR} ${MDIR}

external.h external.c: ${MIPDIR}/mkext.c $(MDIR)/table.c
	$(HOST_CC) $(DEFS) $(CPPFLAGS) $(CFLAGS) -DMKEXT -o ${.OBJDIR}/mkext ${MIPDIR}/mkext.c \
	$(MDIR)/table.c ${MIPDIR}/common.c
	${.OBJDIR}/mkext
@


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


1.2.2.2
log
@Sync with wrstuden-revivesa-base-2.
@
text
@a0 47
#	$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/ccom

PROG=	ccom
SRCS=   cgram.y
SRCS+=  optim.c pftn.c scan.c trees.c inline.c symtabs.c
SRCS+=	gcc_compat.c init.c local.c code.c stabs.c match.c reader.c optim2.c
SRCS+=	regs.c local2.c order.c table.c common.c main.c external.c

MAN=    ccom.1

BINDIR= /usr/libexec

CPPFLAGS+=	-I${SUBDIST} -I${.CURDIR} -I${DIST}/mip
CPPFLAGS+=	-I${.CURDIR}/../..
CPPFLAGS+=	-I${.OBJDIR}
CPPFLAGS+=	-DPCC_DEBUG -DGCC_COMPAT
YFLAGS+=	-d

DPSRCS=	external.h

CLEANFILES+=	external.h external.c ccom.cat1 cgram.h mkext scan.c
CLEANFILES+=    ccom.cat1


.include "../../Makefile.inc"

trees.c: pass2.h

pass2.h: external.h

optim2.o reader.o: external.h

.include <bsd.prog.mk>

.PATH:	${SUBDIST} ${MIPDIR} ${MDIR}

external.h external.c: ${MIPDIR}/mkext.c $(MDIR)/table.c
	$(HOST_CC) $(DEFS) $(CPPFLAGS) $(CFLAGS) -DMKEXT -o ${.OBJDIR}/mkext ${MIPDIR}/mkext.c \
	$(MDIR)/table.c ${MIPDIR}/common.c
	${.OBJDIR}/mkext
@


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
@
