head	1.19;
access;
symbols
	netbsd-11-0-RC4:1.19
	netbsd-11-0-RC3:1.19
	netbsd-11-0-RC2:1.19
	netbsd-11-0-RC1:1.19
	perseant-exfatfs-base-20250801:1.19
	netbsd-11:1.19.0.30
	netbsd-11-base:1.19
	netbsd-10-1-RELEASE:1.19
	perseant-exfatfs-base-20240630:1.19
	perseant-exfatfs:1.19.0.28
	perseant-exfatfs-base:1.19
	netbsd-8-3-RELEASE:1.19
	netbsd-9-4-RELEASE:1.19
	netbsd-10-0-RELEASE:1.19
	netbsd-10-0-RC6:1.19
	netbsd-10-0-RC5:1.19
	netbsd-10-0-RC4:1.19
	netbsd-10-0-RC3:1.19
	netbsd-10-0-RC2:1.19
	netbsd-10-0-RC1:1.19
	netbsd-10:1.19.0.26
	netbsd-10-base:1.19
	netbsd-9-3-RELEASE:1.19
	cjep_sun2x-base1:1.19
	cjep_sun2x:1.19.0.24
	cjep_sun2x-base:1.19
	cjep_staticlib_x-base1:1.19
	netbsd-9-2-RELEASE:1.19
	cjep_staticlib_x:1.19.0.22
	cjep_staticlib_x-base:1.19
	netbsd-9-1-RELEASE:1.19
	phil-wifi-20200421:1.19
	phil-wifi-20200411:1.19
	is-mlppp:1.19.0.20
	is-mlppp-base:1.19
	phil-wifi-20200406:1.19
	netbsd-8-2-RELEASE:1.19
	netbsd-9-0-RELEASE:1.19
	netbsd-9-0-RC2:1.19
	netbsd-9-0-RC1:1.19
	phil-wifi-20191119:1.19
	netbsd-9:1.19.0.18
	netbsd-9-base:1.19
	phil-wifi-20190609:1.19
	netbsd-8-1-RELEASE:1.19
	netbsd-8-1-RC1:1.19
	pgoyette-compat-merge-20190127:1.19
	pgoyette-compat-20190127:1.19
	pgoyette-compat-20190118:1.19
	pgoyette-compat-1226:1.19
	pgoyette-compat-1126:1.19
	pgoyette-compat-1020:1.19
	pgoyette-compat-0930:1.19
	pgoyette-compat-0906:1.19
	netbsd-7-2-RELEASE:1.18
	pgoyette-compat-0728:1.19
	netbsd-8-0-RELEASE:1.19
	phil-wifi:1.19.0.16
	phil-wifi-base:1.19
	pgoyette-compat-0625:1.19
	netbsd-8-0-RC2:1.19
	pgoyette-compat-0521:1.19
	pgoyette-compat-0502:1.19
	pgoyette-compat-0422:1.19
	netbsd-8-0-RC1:1.19
	pgoyette-compat-0415:1.19
	pgoyette-compat-0407:1.19
	pgoyette-compat-0330:1.19
	pgoyette-compat-0322:1.19
	pgoyette-compat-0315:1.19
	netbsd-7-1-2-RELEASE:1.18
	pgoyette-compat:1.19.0.14
	pgoyette-compat-base:1.19
	netbsd-7-1-1-RELEASE:1.18
	matt-nb8-mediatek:1.19.0.12
	matt-nb8-mediatek-base:1.19
	perseant-stdc-iso10646:1.19.0.10
	perseant-stdc-iso10646-base:1.19
	netbsd-8:1.19.0.8
	netbsd-8-base:1.19
	prg-localcount2-base3:1.19
	prg-localcount2-base2:1.19
	prg-localcount2-base1:1.19
	prg-localcount2:1.19.0.6
	prg-localcount2-base:1.19
	pgoyette-localcount-20170426:1.19
	bouyer-socketcan-base1:1.19
	pgoyette-localcount-20170320:1.19
	netbsd-7-1:1.18.0.8
	netbsd-7-1-RELEASE:1.18
	netbsd-7-1-RC2:1.18
	netbsd-7-nhusb-base-20170116:1.18
	bouyer-socketcan:1.19.0.4
	bouyer-socketcan-base:1.19
	pgoyette-localcount-20170107:1.19
	netbsd-7-1-RC1:1.18
	pgoyette-localcount-20161104:1.19
	netbsd-7-0-2-RELEASE:1.18
	localcount-20160914:1.19
	netbsd-7-nhusb:1.18.0.6
	netbsd-7-nhusb-base:1.18
	pgoyette-localcount-20160806:1.19
	pgoyette-localcount-20160726:1.19
	pgoyette-localcount:1.19.0.2
	pgoyette-localcount-base:1.19
	netbsd-7-0-1-RELEASE:1.18
	netbsd-7-0:1.18.0.4
	netbsd-7-0-RELEASE:1.18
	netbsd-7-0-RC3:1.18
	netbsd-7-0-RC2:1.18
	netbsd-7-0-RC1:1.18
	netbsd-5-2-3-RELEASE:1.1
	netbsd-5-1-5-RELEASE:1.1
	netbsd-6-0-6-RELEASE:1.16.2.1
	netbsd-6-1-5-RELEASE:1.16.2.1
	netbsd-7:1.18.0.2
	netbsd-7-base:1.18
	yamt-pagecache-base9:1.17
	yamt-pagecache-tag8:1.15.2.1
	netbsd-6-1-4-RELEASE:1.16.2.1
	netbsd-6-0-5-RELEASE:1.16.2.1
	tls-earlyentropy:1.17.0.10
	tls-earlyentropy-base:1.18
	riastradh-xf86-video-intel-2-7-1-pre-2-21-15:1.17
	riastradh-drm2-base3:1.17
	netbsd-6-1-3-RELEASE:1.16.2.1
	netbsd-6-0-4-RELEASE:1.16.2.1
	netbsd-5-2-2-RELEASE:1.1
	netbsd-5-1-4-RELEASE:1.1
	netbsd-6-1-2-RELEASE:1.16.2.1
	netbsd-6-0-3-RELEASE:1.16.2.1
	netbsd-5-2-1-RELEASE:1.1
	netbsd-5-1-3-RELEASE:1.1
	netbsd-6-1-1-RELEASE:1.16.2.1
	riastradh-drm2-base2:1.17
	riastradh-drm2-base1:1.17
	riastradh-drm2:1.17.0.4
	riastradh-drm2-base:1.17
	netbsd-6-1:1.16.2.1.0.6
	netbsd-6-0-2-RELEASE:1.16.2.1
	netbsd-6-1-RELEASE:1.16.2.1
	khorben-n900:1.17.0.8
	netbsd-6-1-RC4:1.16.2.1
	netbsd-6-1-RC3:1.16.2.1
	agc-symver:1.17.0.6
	agc-symver-base:1.17
	netbsd-6-1-RC2:1.16.2.1
	netbsd-6-1-RC1:1.16.2.1
	yamt-pagecache-base8:1.17
	netbsd-5-2:1.1.0.4
	netbsd-6-0-1-RELEASE:1.16.2.1
	yamt-pagecache-base7:1.17
	netbsd-5-2-RELEASE:1.1
	netbsd-5-2-RC1:1.1
	matt-nb6-plus-nbase:1.16.2.1
	yamt-pagecache-base6:1.17
	netbsd-6-0:1.16.2.1.0.4
	netbsd-6-0-RELEASE:1.16.2.1
	netbsd-6-0-RC2:1.16.2.1
	tls-maxphys:1.17.0.2
	tls-maxphys-base:1.18
	matt-nb6-plus:1.16.2.1.0.2
	matt-nb6-plus-base:1.16.2.1
	netbsd-6-0-RC1:1.16.2.1
	yamt-pagecache-base5:1.17
	yamt-pagecache-base4:1.17
	netbsd-6:1.16.0.2
	netbsd-6-base:1.16
	netbsd-5-1-2-RELEASE:1.1
	netbsd-5-1-1-RELEASE:1.1
	yamt-pagecache-base3:1.15
	yamt-pagecache-base2:1.15
	yamt-pagecache:1.15.0.2
	yamt-pagecache-base:1.15
	cherry-xenmp:1.11.0.4
	cherry-xenmp-base:1.11
	bouyer-quota2-nbase:1.11
	bouyer-quota2:1.11.0.2
	bouyer-quota2-base:1.11
	matt-mips64-premerge-20101231:1.11
	matt-nb5-mips64-premerge-20101231:1.1
	matt-nb5-pq3:1.1.0.18
	matt-nb5-pq3-base:1.1
	netbsd-5-1:1.1.0.16
	netbsd-5-1-RELEASE:1.1
	netbsd-5-1-RC4:1.1
	matt-nb5-mips64-k15:1.1
	netbsd-5-1-RC3:1.1
	netbsd-5-1-RC2:1.1
	netbsd-5-1-RC1:1.1
	netbsd-5-0-2-RELEASE:1.1
	matt-nb5-mips64-premerge-20091211:1.1
	matt-premerge-20091211:1.1
	matt-nb5-mips64-u2-k2-k4-k7-k8-k9:1.1
	matt-nb4-mips64-k7-u2a-k9b:1.1
	matt-nb5-mips64-u1-k1-k5:1.1
	matt-nb5-mips64:1.1.0.14
	netbsd-5-0-1-RELEASE:1.1
	jym-xensuspend-nbase:1.1
	netbsd-5-0:1.1.0.12
	netbsd-5-0-RELEASE:1.1
	netbsd-5-0-RC4:1.1
	netbsd-5-0-RC3:1.1
	netbsd-5-0-RC2:1.1
	jym-xensuspend:1.1.0.10
	jym-xensuspend-base:1.1
	netbsd-5-0-RC1:1.1
	haad-dm-base:1.1
	haad-dm-base2:1.1
	haad-nbase2:1.1
	netbsd-5:1.1.0.8
	netbsd-5-base:1.1
	matt-mips64-base2:1.1
	haad-dm:1.1.0.6
	haad-dm-base1:1.1
	wrstuden-revivesa-base-3:1.1
	wrstuden-revivesa:1.1.0.2
	wrstuden-revivesa-base-2:1.1;
locks; strict;
comment	@# @;


1.19
date	2016.02.09.20.40.45;	author plunky;	state Exp;
branches;
next	1.18;
commitid	Xe824bR1X1f4zhUy;

1.18
date	2014.07.24.20.20.48;	author plunky;	state Exp;
branches;
next	1.17;
commitid	CbVE8jaIdOWeCFJx;

1.17
date	2012.03.26.14.31.12;	author plunky;	state Exp;
branches
	1.17.2.1
	1.17.10.1;
next	1.16;

1.16
date	2012.01.11.20.36.26;	author plunky;	state Exp;
branches
	1.16.2.1;
next	1.15;

1.15
date	2011.09.01.13.00.14;	author plunky;	state Exp;
branches
	1.15.2.1;
next	1.14;

1.14
date	2011.06.07.13.30.35;	author plunky;	state Exp;
branches;
next	1.13;

1.13
date	2011.06.07.13.07.26;	author plunky;	state Exp;
branches;
next	1.12;

1.12
date	2011.06.03.13.31.25;	author plunky;	state Exp;
branches;
next	1.11;

1.11
date	2010.06.03.19.17.22;	author plunky;	state Exp;
branches
	1.11.4.1;
next	1.10;

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

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

1.8
date	2010.02.11.14.18.45;	author plunky;	state Exp;
branches;
next	1.7;

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

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

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

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

1.3
date	2010.02.03.22.13.13;	author plunky;	state Exp;
branches;
next	1.2;

1.2
date	2010.01.20.11.45.54;	author plunky;	state Exp;
branches;
next	1.1;

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

1.17.2.1
date	2014.08.19.23.52.08;	author tls;	state Exp;
branches;
next	;
commitid	jTnpym9Qu0o4R1Nx;

1.17.10.1
date	2014.08.10.07.10.05;	author tls;	state Exp;
branches;
next	;
commitid	aDVUZLJXv0vdHMLx;

1.16.2.1
date	2012.04.03.16.36.20;	author riz;	state Exp;
branches;
next	;

1.15.2.1
date	2012.04.17.00.04.02;	author yamt;	state Exp;
branches;
next	;

1.11.4.1
date	2011.06.23.14.18.32;	author cherry;	state Exp;
branches;
next	;

1.1.2.1
date	2008.08.24.05.47.05;	author wrstuden;	state dead;
branches;
next	1.1.2.2;

1.1.2.2
date	2008.09.18.05.15.35;	author wrstuden;	state Exp;
branches;
next	;

1.1.6.1
date	2008.08.24.05.47.05;	author haad;	state dead;
branches;
next	1.1.6.2;

1.1.6.2
date	2008.10.19.22.40.12;	author haad;	state Exp;
branches;
next	;


desc
@@


1.19
log
@update build machinery for pcc-20160208
@
text
@#	$NetBSD: Makefile.inc,v 1.18 2014/07/24 20:20:48 plunky Exp $

PCC_DIR:=${.PARSEDIR}
PCC_DIST=${PCC_DIR}/dist/pcc
PCC_LIBS=${PCC_DIR}/dist/pcc-libs

# (these strings will be updated by the prepare-import.sh script)
PCC_VERSION=1.2.0.DEVEL
PCC_DATESTAMP=20160208

TARGOS = netbsd

.if ${MACHINE_ARCH} == "mipsel" || ${MACHINE_ARCH} == "mipseb"
TARGMACH = mips
.elif ${MACHINE_ARCH} == "x86_64"
TARGMACH = amd64
.else
TARGMACH = ${MACHINE_ARCH}
.endif

.if !exists(${PCC_DIST}/arch/${TARGMACH})
ERROR!= echo "ERROR: ${TARGMACH} not yet supported - write code!" >&2;echo
.endif

VERSSTR="pcc ${PCC_VERSION} ${PCC_DATESTAMP} for ${TARGMACH}--${TARGOS}"

CPPFLAGS+=	-DGCC_COMPAT
CPPFLAGS+=	-DPCC_DEBUG
CPPFLAGS+=	-D_ISOC99_SOURCE
CPPFLAGS+=	-DVERSSTR=${VERSSTR:Q}
CPPFLAGS+=	-Dos_${TARGOS}
CPPFLAGS+=	-Dmach_${TARGMACH}
CPPFLAGS+=	-I${PCC_DIR}/include

.include <bsd.endian.mk>

# We only build binaries from here where the pcc host and target architectures
# will be the same. For a cross-compiler, use the tools/pcc build.
#
.if ${TARGET_ENDIANNESS} == "1234"
CPPFLAGS+=	-DHOST_LITTLE_ENDIAN
CPPFLAGS+=	-DTARGET_LITTLE_ENDIAN
.elif ${TARGET_ENDIANNESS} == "4321"
CPPFLAGS+=	-DHOST_BIG_ENDIAN
CPPFLAGS+=	-DTARGET_BIG_ENDIAN
.else
ERROR!= echo "ERROR: Unknown TARGET_ENDIANNESS" >&2;echo
.endif

# top-level Makefile.inc
.include "../../../Makefile.inc"
@


1.18
log
@update build framework for import of pcc-20140706
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.17 2012/03/26 14:31:12 plunky Exp $
d8 2
a9 2
PCC_VERSION=1.1.0.DEVEL
PCC_DATESTAMP=20140706
d25 1
a25 1
VERSSTR="pcc ${PCC_VERSION} ${PCC_DATESTAMP} for ${TARGOS}-${TARGMACH}"
d29 1
@


1.17
log
@update for pcc-20120325
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.16 2012/01/11 20:36:26 plunky Exp $
d9 1
a9 1
PCC_DATESTAMP=20120325
@


1.17.2.1
log
@Rebase to HEAD as of a few days ago.
@
text
@d1 1
a1 1
#	$NetBSD$
d9 1
a9 1
PCC_DATESTAMP=20140706
@


1.17.10.1
log
@Rebase.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.18 2014/07/24 20:20:48 plunky Exp $
d9 1
a9 1
PCC_DATESTAMP=20140706
@


1.16
log
@update for pcc-20120105
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.15 2011/09/01 13:00:14 plunky Exp $
d9 1
a9 1
PCC_DATESTAMP=20120105
@


1.16.2.1
log
@Pull up following revision(s) (requested by plunky in ticket #157):
external/bsd/pcc/Makefile.inc
external/bsd/pcc/dist/pcc/DATESTAMP
external/bsd/pcc/dist/pcc/arch/amd64/local.c
external/bsd/pcc/dist/pcc/arch/i386/local2.c
external/bsd/pcc/dist/pcc/arch/vax/local2.c
external/bsd/pcc/dist/pcc/cc/cc/Makefile.in
external/bsd/pcc/dist/pcc/cc/ccom/Makefile.in
external/bsd/pcc/dist/pcc/cc/ccom/builtins.c
external/bsd/pcc/dist/pcc/cc/ccom/ccom.1
external/bsd/pcc/dist/pcc/cc/ccom/cgram.y
external/bsd/pcc/dist/pcc/cc/ccom/gcc_compat.c
external/bsd/pcc/dist/pcc/cc/ccom/init.c
external/bsd/pcc/dist/pcc/cc/ccom/inline.c
external/bsd/pcc/dist/pcc/cc/ccom/main.c
external/bsd/pcc/dist/pcc/cc/ccom/optim.c
external/bsd/pcc/dist/pcc/cc/ccom/pass1.h
external/bsd/pcc/dist/pcc/cc/ccom/pftn.c
external/bsd/pcc/dist/pcc/cc/ccom/stabs.c
external/bsd/pcc/dist/pcc/cc/ccom/trees.c
external/bsd/pcc/dist/pcc/cc/cpp/Makefile.in
external/bsd/pcc/dist/pcc/cc/cxxcom/Makefile.in
external/bsd/pcc/dist/pcc/cc/cxxcom/builtins.c
external/bsd/pcc/dist/pcc/cc/cxxcom/gcc_compat.c
external/bsd/pcc/dist/pcc/cc/cxxcom/init.c
external/bsd/pcc/dist/pcc/cc/cxxcom/inline.c
external/bsd/pcc/dist/pcc/cc/cxxcom/main.c
external/bsd/pcc/dist/pcc/cc/cxxcom/optim.c
external/bsd/pcc/dist/pcc/cc/cxxcom/pass1.h
external/bsd/pcc/dist/pcc/cc/cxxcom/pftn.c
external/bsd/pcc/dist/pcc/cc/cxxcom/stabs.c
external/bsd/pcc/dist/pcc/cc/cxxcom/trees.c
external/bsd/pcc/dist/pcc/cc/driver/Makefile.in
external/bsd/pcc/dist/pcc/f77/f77/Makefile.in
external/bsd/pcc/dist/pcc/f77/fcom/Makefile.in
external/bsd/pcc/dist/pcc/f77/fcom/main.c
external/bsd/pcc/dist/pcc/mip/common.c
external/bsd/pcc/dist/pcc/mip/manifest.h
external/bsd/pcc/dist/pcc/mip/match.c
external/bsd/pcc/dist/pcc/mip/pass2.h
external/bsd/pcc/dist/pcc/mip/reader.c
external/bsd/pcc/dist/pcc/mip/regs.c
external/bsd/pcc/include/config.h

Update to pcc-20120325

The full changelog is at

 http://pcc.ludd.ltu.se/fisheye/changelog/~date=2012-03-25T06%3A00%3A00/pcc

and includes some bug and documentation fixes.

The siginifcant improvements were that the __returns_twice__ attribute is
now accepted, and a problem parsing attributes on parameters of function
prototypes was fixed.

(both of these issues caused problems compiling with the NetBSD headers)
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.17 2012/03/26 14:31:12 plunky Exp $
d9 1
a9 1
PCC_DATESTAMP=20120325
@


1.15
log
@update build machinery for pcc-20110901
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.14 2011/06/07 13:30:35 plunky Exp $
d9 1
a9 1
PCC_DATESTAMP=20110901
@


1.15.2.1
log
@sync with head
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.15 2011/09/01 13:00:14 plunky Exp $
d9 1
a9 1
PCC_DATESTAMP=20120325
@


1.14
log
@make PCC_DEBUG a global flag (will not compile without, currently)
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.13 2011/06/07 13:07:26 plunky Exp $
d7 4
d25 1
a25 2
# this string will be updated by the prepare-import.sh script
VERSSTR = PACKAGE_STRING " for ${TARGOS}-${TARGMACH}"
@


1.13
log
@use better method of creating version string, current method can
introduce spurious " characters during stringification
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.12 2011/06/03 13:31:25 plunky Exp $
d25 1
@


1.12
log
@INCLUDEDIR and LIBEXECDIR only need to be defined for the
pcc front end
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.11 2010/06/03 19:17:22 plunky Exp $
d21 1
@


1.11
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.inc,v 1.10 2010/02/11 14:36:32 plunky Exp $
a22 3
libexecdir = /usr/libexec
includedir = /usr/include

a24 2
CPPFLAGS+=	-DLIBEXECDIR=\"${libexecdir}/\"
CPPFLAGS+=	-DINCLUDEDIR=\"${includedir}/\"
@


1.11.4.1
log
@Catchup with rmind-uvmplock merge.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.14 2011/06/07 13:30:35 plunky Exp $
a20 1
# this string will be updated by the prepare-import.sh script
d23 3
a26 1
CPPFLAGS+=	-DPCC_DEBUG
d28 2
@


1.10
log
@actually include the top-level Makefile.inc
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.9 2010/02/11 14:22:30 plunky Exp $
d26 1
@


1.9
log
@keep generated config.h file in a subdir
(avoids potential inclusion errors)
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.8 2010/02/11 14:18:45 plunky Exp $
d48 2
a49 3
.if exists(${.CURDIR}/../../../Makefile.inc)
.include "${.CURDIR}/../../../Makefile.inc"
.endif
@


1.8
log
@provide endian information at build time rather than embedding it
in the config.h file.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.7 2010/02/05 18:41:25 plunky Exp $
d31 1
a31 1
CPPFLAGS+=	-I${PCC_DIR}
@


1.7
log
@amd64 provides MACHINE_ARCH=x86_64 but pcc wants TARGMACH=amd64. handle that
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.6 2010/02/05 17:18:31 plunky Exp $
d33 15
@


1.6
log
@when making VERSSTR, provide the target os/machine rather than the host.
have the CVS checkout date in the PACKAGE_STRING rather than in a separate
definition
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.5 2010/02/05 08:58:47 plunky Exp $
d11 2
@


1.5
log
@be more adaptable when choosing the target arch, try to relate
the MACHINE_ARCH to the supported architectures before failing.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.4 2010/02/05 08:52:25 plunky Exp $
d19 1
a19 1
VERSSTR = PACKAGE_STRING " [" PACKAGE_CHECKOUT "] for ${HOST_OSTYPE}"
@


1.4
log
@just use the actual date in PACKAGE_CHECKOUT definition
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.3 2010/02/03 22:13:13 plunky Exp $
d9 1
a9 3
.if ${MACHINE_ARCH} == "i386"
TARGMACH = i386
.elif ${MACHINE_ARCH} == "mipsel" || ${MACHINE_ARCH} == "mipseb"
a10 2
.elif ${MACHINE_ARCH} == "vax"
TARGMACH = vax
d12 5
a16 1
ERROR!= echo "ERROR: ${MACHINE_ARCH} not yet supported - write code!" >&2;echo
@


1.3
log
@fix the embedded VERSSTR by providing the correct machine architecture
at build time, and adding an import date to the version.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.2 2010/01/20 11:45:54 plunky Exp $
d19 1
a19 1
VERSSTR = PACKAGE_STRING PACKAGE_CHECKOUT "for ${HOST_OSTYPE}"
@


1.2
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.inc,v 1.1 2008/08/24 05:47:05 gmcgarry Exp $
d19 2
d24 1
@


1.1
log
@Add pcc build framework.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.4 2008/03/25 00:30:11 yamt Exp $
d3 3
a5 2
MDIR=	${DIST}/arch/${TARGMACH}
MIPDIR=	${DIST}/mip
d8 1
a8 1
# XXX Currently only handles i386
d22 5
a26 3
CPPFLAGS+= -DLIBEXECDIR=\"${libexecdir}\" -DINCLUDEDIR=\"${includedir}\"
CPPFLAGS+= -I${DIST}/os/${TARGOS} -I${MDIR} -Dmach_${TARGMACH} -Dos_${TARGOS}
CPPFLAGS+= -I${.CURDIR} -I${.CURDIR}/..
@


1.1.6.1
log
@file Makefile.inc was added on branch haad-dm on 2008-10-19 22:40:12 +0000
@
text
@d1 27
@


1.1.6.2
log
@Sync with HEAD.
@
text
@a0 27
#	$NetBSD: Makefile.inc,v 1.1 2008/08/24 05:47:05 gmcgarry Exp $

MDIR=	${DIST}/arch/${TARGMACH}
MIPDIR=	${DIST}/mip

TARGOS = netbsd
# XXX Currently only handles i386
.if ${MACHINE_ARCH} == "i386"
TARGMACH = i386
.elif ${MACHINE_ARCH} == "mipsel" || ${MACHINE_ARCH} == "mipseb"
TARGMACH = mips
.elif ${MACHINE_ARCH} == "vax"
TARGMACH = vax
.else
ERROR!= echo "ERROR: ${MACHINE_ARCH} not yet supported - write code!" >&2;echo
.endif

libexecdir = /usr/libexec
includedir = /usr/include

CPPFLAGS+= -DLIBEXECDIR=\"${libexecdir}\" -DINCLUDEDIR=\"${includedir}\"
CPPFLAGS+= -I${DIST}/os/${TARGOS} -I${MDIR} -Dmach_${TARGMACH} -Dos_${TARGOS}
CPPFLAGS+= -I${.CURDIR} -I${.CURDIR}/..

.if exists(${.CURDIR}/../../../Makefile.inc)
.include "${.CURDIR}/../../../Makefile.inc"
.endif
@


1.1.2.1
log
@file Makefile.inc was added on branch wrstuden-revivesa on 2008-09-18 05:15:35 +0000
@
text
@d1 27
@


1.1.2.2
log
@Sync with wrstuden-revivesa-base-2.
@
text
@a0 27
#	$NetBSD: Makefile.inc,v 1.1 2008/08/24 05:47:05 gmcgarry Exp $

MDIR=	${DIST}/arch/${TARGMACH}
MIPDIR=	${DIST}/mip

TARGOS = netbsd
# XXX Currently only handles i386
.if ${MACHINE_ARCH} == "i386"
TARGMACH = i386
.elif ${MACHINE_ARCH} == "mipsel" || ${MACHINE_ARCH} == "mipseb"
TARGMACH = mips
.elif ${MACHINE_ARCH} == "vax"
TARGMACH = vax
.else
ERROR!= echo "ERROR: ${MACHINE_ARCH} not yet supported - write code!" >&2;echo
.endif

libexecdir = /usr/libexec
includedir = /usr/include

CPPFLAGS+= -DLIBEXECDIR=\"${libexecdir}\" -DINCLUDEDIR=\"${includedir}\"
CPPFLAGS+= -I${DIST}/os/${TARGOS} -I${MDIR} -Dmach_${TARGMACH} -Dos_${TARGOS}
CPPFLAGS+= -I${.CURDIR} -I${.CURDIR}/..

.if exists(${.CURDIR}/../../../Makefile.inc)
.include "${.CURDIR}/../../../Makefile.inc"
.endif
@
