head	1.31;
access;
symbols
	RELENG_8_4:1.31.0.2
	RELENG_9_1_0_RELEASE:1.29.2.2.2.2
	RELENG_9_1:1.29.2.2.0.2
	RELENG_9_1_BP:1.29.2.2
	RELENG_8_3_0_RELEASE:1.26.2.1.8.1
	RELENG_8_3:1.26.2.1.0.8
	RELENG_8_3_BP:1.26.2.1
	RELENG_9_0_0_RELEASE:1.29.2.1.2.1
	RELENG_9_0:1.29.2.1.0.2
	RELENG_9_0_BP:1.29.2.1
	RELENG_9:1.29.0.2
	RELENG_9_BP:1.29
	RELENG_7_4_0_RELEASE:1.23.12.1
	RELENG_8_2_0_RELEASE:1.26.2.1.6.1
	RELENG_7_4:1.23.0.12
	RELENG_7_4_BP:1.23
	RELENG_8_2:1.26.2.1.0.6
	RELENG_8_2_BP:1.26.2.1
	RELENG_8_1_0_RELEASE:1.26.2.1.4.1
	RELENG_8_1:1.26.2.1.0.4
	RELENG_8_1_BP:1.26.2.1
	RELENG_7_3_0_RELEASE:1.23.10.1
	RELENG_7_3:1.23.0.10
	RELENG_7_3_BP:1.23
	RELENG_8_0_0_RELEASE:1.26.2.1.2.1
	RELENG_8_0:1.26.2.1.0.2
	RELENG_8_0_BP:1.26.2.1
	RELENG_8:1.26.0.2
	RELENG_8_BP:1.26
	RELENG_7_2_0_RELEASE:1.23.8.1
	RELENG_7_2:1.23.0.8
	RELENG_7_2_BP:1.23
	RELENG_7_1_0_RELEASE:1.23.6.1
	RELENG_6_4_0_RELEASE:1.20.2.1.8.1
	RELENG_7_1:1.23.0.6
	RELENG_7_1_BP:1.23
	RELENG_6_4:1.20.2.1.0.8
	RELENG_6_4_BP:1.20.2.1
	RELENG_7_0_0_RELEASE:1.23
	RELENG_6_3_0_RELEASE:1.20.2.1
	RELENG_7_0:1.23.0.4
	RELENG_7_0_BP:1.23
	RELENG_6_3:1.20.2.1.0.6
	RELENG_6_3_BP:1.20.2.1
	RELENG_7:1.23.0.2
	RELENG_7_BP:1.23
	RELENG_6_2_0_RELEASE:1.20.2.1
	RELENG_6_2:1.20.2.1.0.4
	RELENG_6_2_BP:1.20.2.1
	RELENG_5_5_0_RELEASE:1.18.2.1
	RELENG_5_5:1.18.2.1.0.4
	RELENG_5_5_BP:1.18.2.1
	RELENG_6_1_0_RELEASE:1.20.2.1
	RELENG_6_1:1.20.2.1.0.2
	RELENG_6_1_BP:1.20.2.1
	RELENG_6_0_0_RELEASE:1.20
	RELENG_6_0:1.20.0.4
	RELENG_6_0_BP:1.20
	RELENG_6:1.20.0.2
	RELENG_6_BP:1.20
	RELENG_5_4_0_RELEASE:1.18.2.1
	RELENG_5_4:1.18.2.1.0.2
	RELENG_5_4_BP:1.18.2.1
	RELENG_4_11_0_RELEASE:1.8.2.5
	RELENG_4_11:1.8.2.5.0.10
	RELENG_4_11_BP:1.8.2.5
	RELENG_5_3_0_RELEASE:1.18
	RELENG_5_3:1.18.0.4
	RELENG_5_3_BP:1.18
	RELENG_5:1.18.0.2
	RELENG_5_BP:1.18
	RELENG_4_10_0_RELEASE:1.8.2.5
	RELENG_4_10:1.8.2.5.0.8
	RELENG_4_10_BP:1.8.2.5
	RELENG_5_2_1_RELEASE:1.16
	RELENG_5_2_0_RELEASE:1.16
	RELENG_5_2:1.16.0.6
	RELENG_5_2_BP:1.16
	RELENG_4_9_0_RELEASE:1.8.2.5
	RELENG_4_9:1.8.2.5.0.6
	RELENG_4_9_BP:1.8.2.5
	RELENG_5_1_0_RELEASE:1.16
	RELENG_5_1:1.16.0.4
	RELENG_5_1_BP:1.16
	RELENG_4_8_0_RELEASE:1.8.2.5
	RELENG_4_8:1.8.2.5.0.4
	RELENG_4_8_BP:1.8.2.5
	RELENG_5_0_0_RELEASE:1.16
	RELENG_5_0:1.16.0.2
	RELENG_5_0_BP:1.16
	RELENG_4_7_0_RELEASE:1.8.2.5
	RELENG_4_7:1.8.2.5.0.2
	RELENG_4_7_BP:1.8.2.5
	RELENG_4_6_2_RELEASE:1.8.2.3
	RELENG_4_6_1_RELEASE:1.8.2.3
	RELENG_4_6_0_RELEASE:1.8.2.3
	RELENG_4_6:1.8.2.3.0.2
	RELENG_4_6_BP:1.8.2.3
	RELENG_4_5_0_RELEASE:1.8.2.2
	RELENG_4_5:1.8.2.2.0.6
	RELENG_4_5_BP:1.8.2.2
	RELENG_4_4_0_RELEASE:1.8.2.2
	RELENG_4_4:1.8.2.2.0.4
	RELENG_4_4_BP:1.8.2.2
	KSE_MILESTONE_2:1.9
	KSE_PRE_MILESTONE_2:1.9
	RELENG_4_3_0_RELEASE:1.8.2.2
	RELENG_4_3:1.8.2.2.0.2
	RELENG_4_3_BP:1.8.2.2
	RELENG_4_2_0_RELEASE:1.8.2.1
	RELENG_4_1_1_RELEASE:1.8.2.1
	RELENG_4:1.8.0.2
	old_PRE_SMPNG:1.7
	old_RELENG_4_1_0_RELEASE:1.6
	old_RELENG_3_5_0_RELEASE:1.5.2.1
	old_RELENG_4_0_0_RELEASE:1.6
	old_RELENG_4:1.6.0.2
	old_RELENG_4_BP:1.6
	old_RELENG_3_4_0_RELEASE:1.5.2.1
	old_RELENG_3_3_0_RELEASE:1.5.2.1
	old_RELENG_3_2_PAO:1.5.0.4
	old_RELENG_3_2_PAO_BP:1.5
	old_RELENG_3_2_0_RELEASE:1.5
	old_POST_VFS_BIO_NFS_PATCH:1.5
	old_PRE_VFS_BIO_NFS_PATCH:1.5
	old_POST_SMP_VMSHARE:1.5
	old_PRE_SMP_VMSHARE:1.5
	old_POST_NEWBUS:1.5
	old_PRE_NEWBUS:1.5
	old_RELENG_3_1_0_RELEASE:1.5
	old_RELENG_3:1.5.0.2
	old_RELENG_3_BP:1.5
	old_RELENG_2_2_8_RELEASE:1.1.2.3
	old_RELENG_3_0_0_RELEASE:1.4
	old_RELENG_2_2_7_RELEASE:1.1.2.3
	old_PRE_NOBDEV:1.4
	old_POST_DEVFS_SLICE:1.4
	old_PRE_DEVFS_SLICE:1.4
	old_RELENG_2_2_6_RELEASE:1.1.2.3
	old_POST_SOFTUPDATE:1.4
	old_PRE_SOFTUPDATE:1.4
	old_RELENG_2_2_5_RELEASE:1.1.2.3
	old_WOLLMAN_MBUF:1.2.0.2
	old_BP_WOLLMAN_MBUF:1.2
	old_RELENG_2_2_2_RELEASE:1.1.2.1
	old_post_smp_merge:1.2
	old_pre_smp_merge:1.2
	old_RELENG_2_2_1_RELEASE:1.1
	old_RELENG_2_1_0:1.1.0.4
	old_RELENG_2_2:1.1.0.2;
locks; strict;
comment	@# @;


1.31
date	2012.11.17.01.51.34;	author svnexp;	state Exp;
branches
	1.31.2.1;
next	1.30;

1.30
date	2012.06.04.20.36.11;	author dim;	state Exp;
branches;
next	1.29;

1.29
date	2011.04.19.18.09.21;	author dim;	state Exp;
branches
	1.29.2.1;
next	1.28;

1.28
date	2010.08.17.20.39.28;	author rpaulo;	state Exp;
branches;
next	1.27;

1.27
date	2009.12.31.00.07.26;	author ed;	state Exp;
branches;
next	1.26;

1.26
date	2009.06.02.17.27.54;	author delphij;	state Exp;
branches
	1.26.2.1;
next	1.25;

1.25
date	2009.06.01.19.06.08;	author delphij;	state Exp;
branches;
next	1.24;

1.24
date	2009.06.01.18.43.33;	author delphij;	state Exp;
branches;
next	1.23;

1.23
date	2005.11.21.14.41.10;	author ru;	state Exp;
branches
	1.23.2.1
	1.23.6.1
	1.23.8.1
	1.23.10.1
	1.23.12.1;
next	1.22;

1.22
date	2005.08.03.00.47.33;	author rwatson;	state Exp;
branches;
next	1.21;

1.21
date	2005.08.03.00.18.28;	author rwatson;	state Exp;
branches;
next	1.20;

1.20
date	2004.12.21.08.47.19;	author ru;	state Exp;
branches
	1.20.2.1;
next	1.19;

1.19
date	2004.10.24.15.32.50;	author ru;	state Exp;
branches;
next	1.18;

1.18
date	2004.03.12.21.36.12;	author trhodes;	state Exp;
branches
	1.18.2.1;
next	1.17;

1.17
date	2004.02.05.22.44.24;	author ru;	state Exp;
branches;
next	1.16;

1.16
date	2002.09.26.21.46.19;	author gibbs;	state Exp;
branches;
next	1.15;

1.15
date	2002.08.31.06.39.40;	author gibbs;	state Exp;
branches;
next	1.14;

1.14
date	2002.05.14.01.18.51;	author obrien;	state Exp;
branches;
next	1.13;

1.13
date	2002.05.10.01.53.16;	author obrien;	state Exp;
branches;
next	1.12;

1.12
date	2002.05.01.06.50.59;	author peter;	state Exp;
branches;
next	1.11;

1.11
date	2002.04.24.16.24.43;	author gibbs;	state Exp;
branches;
next	1.10;

1.10
date	2002.03.11.06.45.31;	author obrien;	state Exp;
branches;
next	1.9;

1.9
date	2000.12.13.23.15.12;	author marcel;	state Exp;
branches;
next	1.8;

1.8
date	2000.09.16.20.02.39;	author gibbs;	state Exp;
branches
	1.8.2.1;
next	1.7;

1.7
date	2000.05.27.21.35.47;	author obrien;	state Exp;
branches;
next	1.6;

1.6
date	99.08.28.00.41.22;	author peter;	state Exp;
branches;
next	1.5;

1.5
date	99.01.17.19.56.02;	author peter;	state Exp;
branches
	1.5.2.1;
next	1.4;

1.4
date	97.09.27.19.37.22;	author gibbs;	state Exp;
branches;
next	1.3;

1.3
date	97.09.03.03.44.32;	author gibbs;	state Exp;
branches;
next	1.2;

1.2
date	97.04.03.05.56.00;	author gibbs;	state Exp;
branches;
next	1.1;

1.1
date	97.03.16.07.08.10;	author gibbs;	state Exp;
branches
	1.1.2.1
	1.1.4.1;
next	;

1.31.2.1
date	2012.11.17.01.51.34;	author svnexp;	state dead;
branches;
next	1.31.2.2;

1.31.2.2
date	2013.03.28.13.04.30;	author svnexp;	state Exp;
branches;
next	;

1.29.2.1
date	2011.09.23.00.51.37;	author kensmith;	state Exp;
branches
	1.29.2.1.2.1;
next	1.29.2.2;

1.29.2.2
date	2012.06.12.21.03.24;	author dim;	state Exp;
branches
	1.29.2.2.2.1;
next	1.29.2.3;

1.29.2.3
date	2012.11.17.11.36.52;	author svnexp;	state Exp;
branches;
next	;

1.29.2.1.2.1
date	2011.11.11.04.20.22;	author kensmith;	state Exp;
branches;
next	1.29.2.1.2.2;

1.29.2.1.2.2
date	2012.11.17.08.36.50;	author svnexp;	state Exp;
branches;
next	;

1.29.2.2.2.1
date	2012.08.05.23.54.33;	author kensmith;	state Exp;
branches;
next	1.29.2.2.2.2;

1.29.2.2.2.2
date	2012.11.17.08.47.41;	author svnexp;	state Exp;
branches;
next	;

1.26.2.1
date	2009.08.03.08.13.06;	author kensmith;	state Exp;
branches
	1.26.2.1.2.1
	1.26.2.1.4.1
	1.26.2.1.6.1
	1.26.2.1.8.1;
next	1.26.2.2;

1.26.2.2
date	2012.11.17.10.36.31;	author svnexp;	state Exp;
branches;
next	;

1.26.2.1.2.1
date	2009.10.25.01.10.29;	author kensmith;	state Exp;
branches;
next	;

1.26.2.1.4.1
date	2010.06.14.02.09.06;	author kensmith;	state Exp;
branches;
next	;

1.26.2.1.6.1
date	2010.12.21.17.09.25;	author kensmith;	state Exp;
branches;
next	;

1.26.2.1.8.1
date	2012.03.03.06.15.13;	author kensmith;	state Exp;
branches;
next	1.26.2.1.8.2;

1.26.2.1.8.2
date	2012.11.17.08.25.11;	author svnexp;	state Exp;
branches;
next	;

1.23.2.1
date	2012.11.17.08.05.13;	author svnexp;	state Exp;
branches;
next	;

1.23.6.1
date	2008.11.25.02.59.29;	author kensmith;	state Exp;
branches;
next	;

1.23.8.1
date	2009.04.15.03.14.26;	author kensmith;	state Exp;
branches;
next	;

1.23.10.1
date	2010.02.10.00.26.20;	author kensmith;	state Exp;
branches;
next	;

1.23.12.1
date	2010.12.21.17.10.29;	author kensmith;	state Exp;
branches;
next	1.23.12.2;

1.23.12.2
date	2012.11.17.08.17.08;	author svnexp;	state Exp;
branches;
next	;

1.20.2.1
date	2005.12.27.21.35.40;	author ru;	state Exp;
branches
	1.20.2.1.8.1;
next	1.20.2.2;

1.20.2.2
date	2012.11.17.07.42.56;	author svnexp;	state Exp;
branches;
next	;

1.20.2.1.8.1
date	2008.10.02.02.57.24;	author kensmith;	state Exp;
branches;
next	;

1.18.2.1
date	2005.02.13.07.23.32;	author obrien;	state Exp;
branches;
next	;

1.8.2.1
date	2000.09.23.00.24.22;	author gibbs;	state Exp;
branches;
next	1.8.2.2;

1.8.2.2
date	2001.01.07.22.52.35;	author gibbs;	state Exp;
branches;
next	1.8.2.3;

1.8.2.3
date	2002.04.29.19.36.36;	author gibbs;	state Exp;
branches;
next	1.8.2.4;

1.8.2.4
date	2002.08.31.07.26.06;	author gibbs;	state Exp;
branches;
next	1.8.2.5;

1.8.2.5
date	2002.09.27.15.46.28;	author gibbs;	state Exp;
branches;
next	1.8.2.6;

1.8.2.6
date	2012.11.17.07.25.32;	author svnexp;	state Exp;
branches;
next	;

1.5.2.1
date	99.08.29.16.22.34;	author peter;	state Exp;
branches;
next	;

1.1.2.1
date	97.04.04.04.35.28;	author gibbs;	state Exp;
branches;
next	1.1.2.2;

1.1.2.2
date	97.09.03.04.25.04;	author gibbs;	state Exp;
branches;
next	1.1.2.3;

1.1.2.3
date	97.09.27.19.46.53;	author gibbs;	state Exp;
branches;
next	1.1.2.4;

1.1.2.4
date	99.09.05.08.08.59;	author peter;	state Exp;
branches;
next	;

1.1.4.1
date	97.04.06.05.07.57;	author gibbs;	state Exp;
branches;
next	1.1.4.2;

1.1.4.2
date	97.09.03.05.00.24;	author gibbs;	state Exp;
branches;
next	1.1.4.3;

1.1.4.3
date	99.09.05.08.27.46;	author peter;	state Exp;
branches;
next	;


desc
@@


1.31
log
@Switching exporter and resync
@
text
@#
# $Id: //depot/aic7xxx/freebsd/dev/aic7xxx/aicasm/Makefile#2 $
#
# $FreeBSD: head/sys/dev/aic7xxx/aicasm/Makefile 236578 2012-06-04 20:36:11Z dim $

PROG=	aicasm

CSRCS=	aicasm.c aicasm_symbol.c
YSRCS=	aicasm_gram.y aicasm_macro_gram.y
LSRCS=	aicasm_scan.l aicasm_macro_scan.l

GENHDRS=	aicasm_gram.h aicasm_macro_gram.h

SRCS=	${GENHDRS} ${CSRCS} ${YSRCS} ${LSRCS}
CLEANFILES+= ${GENHDRS} ${YSRCS:R:C/(.*)/\1.output/g}
DPADD=	${LIBL}
LDADD=	-ll
WARNS?=	5

# Correct path for kernel builds
# Don't rely on the kernel's .depend file
.ifdef MAKESRCPATH
.PATH: ${MAKESRCPATH}
DEPENDFILE=	.depend_aicasm
.endif

CFLAGS+= -I.
.ifdef MAKESRCPATH
CFLAGS+= -I${MAKESRCPATH}
.endif
NO_MAN=
YFLAGS= -b ${.TARGET:R} ${.TARGET:M*macro*:S/$(.TARGET)/-p mm/} -d
LFLAGS+= ${.TARGET:M*macro*:S/$(.TARGET)/-Pmm/}

.ifdef AICASM_DEBUG
CFLAGS+= -DDEBUG -g
YFLAGS+= -t -v
LFLAGS+= -d
.endif

.include <bsd.prog.mk>
@


1.31.2.1
log
@file Makefile was added on branch RELENG_8_4 on 2013-03-28 13:04:30 +0000
@
text
@d1 41
@


1.31.2.2
log
@## SVN ## Exported commit - http://svnweb.freebsd.org/changeset/base/248810
## SVN ## CVS IS DEPRECATED: http://wiki.freebsd.org/CvsIsDeprecated
@
text
@a0 47
#
# $Id: //depot/aic7xxx/freebsd/dev/aic7xxx/aicasm/Makefile#2 $
#
# $FreeBSD: releng/8.4/sys/dev/aic7xxx/aicasm/Makefile 193314 2009-06-02 17:27:54Z delphij $

PROG=	aicasm

CSRCS=	aicasm.c aicasm_symbol.c
YSRCS=	aicasm_gram.y aicasm_macro_gram.y
LSRCS=	aicasm_scan.l aicasm_macro_scan.l

GENHDRS=	aicasm_gram.h aicasm_macro_gram.h

SRCS=	${GENHDRS} ${CSRCS} ${YSRCS} ${LSRCS}
CLEANFILES+= ${GENHDRS} ${YSRCS:R:C/(.*)/\1.output/g}
DPADD=	${LIBL}
LDADD=	-ll
WARNS?=	6

# Correct path for kernel builds
# Don't rely on the kernel's .depend file
.ifdef MAKESRCPATH
.PATH: ${MAKESRCPATH}
DEPENDFILE=	.depend_aicasm
.endif

.if ${CC} == "icc"
CFLAGS+=	-restrict
NOSTDINC=	-X
.else
NOSTDINC=	-nostdinc
.endif
CFLAGS+= ${NOSTDINC} -I/usr/include -I.
.ifdef MAKESRCPATH
CFLAGS+= -I${MAKESRCPATH}
.endif
NO_MAN=
YFLAGS= -b ${.TARGET:R} ${.TARGET:M*macro*:S/$(.TARGET)/-p mm/} -d
LFLAGS+= ${.TARGET:M*macro*:S/$(.TARGET)/-Pmm/}

.ifdef AICASM_DEBUG
CFLAGS+= -DDEBUG -g
YFLAGS+= -t -v
LFLAGS+= -d
.endif

.include <bsd.prog.mk>
@


1.30
log
@SVN rev 236578 on 2012-06-04 20:36:11Z by dim

Fix build of aicasm when CC=clang.  This was due to a side-effect of the
EARLY_BUILD macro: the -Qunused-arguments flag isn't passed anymore when
building this particular program.  However, with clang 3.1 and -Werror,
such unused argument warnings are flagged as errors, causing buildkernel
to fail at this stage, due to the -nostdinc flag passed during linking.
Since the -nostdinc flag isn't actually needed, just remove it.

X-MFC-With:	r236528
@
text
@d4 1
a4 1
# $FreeBSD$
@


1.29
log
@SVN rev 220863 on 2011-04-19 18:09:21Z by dim

Remove support for the Intel C Compiler from the build infrastructure.
This support has not worked for several years, and is not likely to work
again, unless Intel decides to release a native FreeBSD version of their
compiler. ;)
@
text
@d27 1
a27 2
NOSTDINC=	-nostdinc
CFLAGS+= ${NOSTDINC} -I/usr/include -I.
@


1.29.2.1
log
@SVN rev 225736 on 2011-09-23 00:51:37Z by kensmith

Copy head to stable/9 as part of 9.0-RELEASE release cycle.

Approved by:	re (implicit)
@
text
@@


1.29.2.2
log
@SVN rev 236975 on 2012-06-12 21:03:24Z by dim

MFC r236578:

Fix build of aicasm when CC=clang.  This was due to a side-effect of the
EARLY_BUILD macro: the -Qunused-arguments flag isn't passed anymore when
building this particular program.  However, with clang 3.1 and -Werror,
such unused argument warnings are flagged as errors, causing buildkernel
to fail at this stage, due to the -nostdinc flag passed during linking.
Since the -nostdinc flag isn't actually needed, just remove it.
@
text
@d27 2
a28 1
CFLAGS+= -I.
@


1.29.2.3
log
@## SVN ##
## SVN ## Exported commit - http://svnweb.freebsd.org/changeset/base/ 242902
## SVN ## CVS IS DEPRECATED: http://wiki.freebsd.org/CvsIsDeprecated
## SVN ##
## SVN ## ------------------------------------------------------------------------
## SVN ## r242902 | dteske | 2012-11-11 23:29:45 +0000 (Sun, 11 Nov 2012) | 10 lines
## SVN ##
## SVN ## Fix a regression introduced by SVN r211417 that saw the breakage of a feature
## SVN ## documented in usr.sbin/sysinstall/help/shortcuts.hlp (reproduced below):
## SVN ##
## SVN ## If /usr/sbin/sysinstall is linked to another filename, say
## SVN ## `/usr/local/bin/configPackages', then the basename will be used
## SVN ## as an implicit command name.
## SVN ##
## SVN ## Reviewed by:	adrian (co-mentor)
## SVN ## Approved by:	adrian (co-mentor)
## SVN ##
## SVN ## ------------------------------------------------------------------------
## SVN ##
@
text
@d4 1
a4 1
# $FreeBSD: stable/9/sys/dev/aic7xxx/aicasm/Makefile 236975 2012-06-12 21:03:24Z dim $
@


1.29.2.2.2.1
log
@SVN rev 239080 on 2012-08-05 23:54:33Z by kensmith

Copy stable/9 to releng/9.1 as part of the 9.1-RELEASE release process.

Approved by:	re (implicit)
@
text
@@


1.29.2.2.2.2
log
@Switch importer
@
text
@d4 1
a4 1
# $FreeBSD: releng/9.1/sys/dev/aic7xxx/aicasm/Makefile 236975 2012-06-12 21:03:24Z dim $
@


1.29.2.1.2.1
log
@SVN rev 227445 on 2011-11-11 04:20:22Z by kensmith

Copy stable/9 to releng/9.0 as part of the FreeBSD 9.0-RELEASE release
cycle.

Approved by:	re (implicit)
@
text
@@


1.29.2.1.2.2
log
@Switch importer
@
text
@d4 1
a4 1
# $FreeBSD: releng/9.0/sys/dev/aic7xxx/aicasm/Makefile 220863 2011-04-19 18:09:21Z dim $
@


1.28
log
@SVN rev 211437 on 2010-08-17 20:39:28Z by rpaulo

For every instance of '.if ${CC} == "foo"' or '.if ${CC} != "foo"' in
Makefiles or *.mk files, use ${CC:T:Mfoo} instead, so only the basename
of the compiler command (excluding any arguments) is considered.

This allows you to use, for example, CC="/nondefault/path/clang -xxx",
and still have the various tests in bsd.*.mk identify your compiler as
clang correctly.

ICC if cases were also changed.

Submitted by:	Dimitry Andric <dimitry at andric.com>
@
text
@a26 4
.if ${CC:T:Micc} == "icc"
CFLAGS+=	-restrict
NOSTDINC=	-X
.else
a27 1
.endif
@


1.27
log
@SVN rev 201300 on 2009-12-31 00:07:26Z by ed

Disable K&R style function definitions for WARNS=6.

Unfortunately there are two slight problems with that:

- Yacc and lex might generate code that generates warnings because of
  this. Require yacc and lex to be rebuilt during bootstrap. I'm not
  incrementing __FreeBSD_version here, because I assume someone else
  will do this eventually.

- When running `make buildkernel', it uses share/mk from the source
  treeo to build aicasm. Because aicasm also depends on lex, this would
  break. Lower WARNS to 5 for now. We should just increment it to 6
  again somewhere in the very far future.
@
text
@d27 1
a27 1
.if ${CC} == "icc"
@


1.26
log
@SVN rev 193314 on 2009-06-02 17:27:54Z by delphij

Re-enable WARNS=6 after my universe test.
@
text
@d18 1
a18 1
WARNS?=	6
@


1.26.2.1
log
@SVN rev 196045 on 2009-08-03 08:13:06Z by kensmith

Copy head to stable/8 as part of 8.0 Release cycle.

Approved by:	re (Implicit)
@
text
@@


1.26.2.2
log
@## SVN ##
## SVN ## Exported commit - http://svnweb.freebsd.org/changeset/base/ 242909
## SVN ## CVS IS DEPRECATED: http://wiki.freebsd.org/CvsIsDeprecated
## SVN ##
## SVN ## ------------------------------------------------------------------------
## SVN ## r242909 | dim | 2012-11-12 07:47:19 +0000 (Mon, 12 Nov 2012) | 20 lines
## SVN ##
## SVN ## MFC r242625:
## SVN ##
## SVN ## Remove duplicate const specifiers in many drivers (I hope I got all of
## SVN ## them, please let me know if not).  Most of these are of the form:
## SVN ##
## SVN ## static const struct bzzt_type {
## SVN ##       [...list of members...]
## SVN ## } const bzzt_devs[] = {
## SVN ##       [...list of initializers...]
## SVN ## };
## SVN ##
## SVN ## The second const is unnecessary, as arrays cannot be modified anyway,
## SVN ## and if the elements are const, the whole thing is const automatically
## SVN ## (e.g. it is placed in .rodata).
## SVN ##
## SVN ## I have verified this does not change the binary output of a full kernel
## SVN ## build (except for build timestamps embedded in the object files).
## SVN ##
## SVN ## Reviewed by:	yongari, marius
## SVN ##
## SVN ## ------------------------------------------------------------------------
## SVN ##
@
text
@d4 1
a4 1
# $FreeBSD: stable/8/sys/dev/aic7xxx/aicasm/Makefile 193314 2009-06-02 17:27:54Z delphij $
@


1.26.2.1.8.1
log
@SVN rev 232438 on 2012-03-03 06:15:13Z by kensmith

Copy stable/8 to releng/8.3 as part of 8.3-RELEASE release cycle.

Approved by:	re (implicit)
@
text
@@


1.26.2.1.8.2
log
@Switch importer
@
text
@d4 1
a4 1
# $FreeBSD: releng/8.3/sys/dev/aic7xxx/aicasm/Makefile 193314 2009-06-02 17:27:54Z delphij $
@


1.26.2.1.6.1
log
@SVN rev 216617 on 2010-12-21 17:09:25Z by kensmith

Copy stable/8 to releng/8.2 in preparation for FreeBSD-8.2 release.

Approved by:	re (implicit)
@
text
@@


1.26.2.1.4.1
log
@SVN rev 209145 on 2010-06-14 02:09:06Z by kensmith

Copy stable/8 to releng/8.1 in preparation for 8.1-RC1.

Approved by:	re (implicit)
@
text
@@


1.26.2.1.2.1
log
@SVN rev 198460 on 2009-10-25 01:10:29Z by kensmith

Copy stable/8 to releng/8.0 as part of 8.0-RELEASE release procedure.

Approved by:	re (implicit)
@
text
@@


1.25
log
@SVN rev 193247 on 2009-06-01 19:06:08Z by delphij

Revert the WARNS change for now, need some time to fix the real problem.
@
text
@d18 1
@


1.24
log
@SVN rev 193245 on 2009-06-01 18:43:33Z by delphij

Mark as WARNS=6.
@
text
@a17 1
WARNS?=	6
@


1.23
log
@Fix mysterious build failures (with parallel make) early in
buildkernel: provide a real but dummy name to ${DEPENDFILE}
so that the relevant exists() check in bsd.prog.mk fails and
ensures that ${GENHDRS} are built before any other objects.

MFC after:	3 days
@
text
@d18 1
@


1.23.2.1
log
@Switch importer
@
text
@d4 1
a4 1
# $FreeBSD: stable/7/sys/dev/aic7xxx/aicasm/Makefile 152648 2005-11-21 14:41:10Z ru $
@


1.23.12.1
log
@SVN rev 216618 on 2010-12-21 17:10:29Z by kensmith

Copy stable/7 to releng/7.4 in preparation for FreeBSD-7.4 release.

Approved by:	re (implicit)
@
text
@@


1.23.12.2
log
@Switch importer
@
text
@d4 1
a4 1
# $FreeBSD: releng/7.4/sys/dev/aic7xxx/aicasm/Makefile 152648 2005-11-21 14:41:10Z ru $
@


1.23.10.1
log
@SVN rev 203736 on 2010-02-10 00:26:20Z by kensmith

Copy stable/7 to releng/7.3 as part of the 7.3-RELEASE process.

Approved by:	re (implicit)
@
text
@@


1.23.8.1
log
@SVN rev 191087 on 2009-04-15 03:14:26Z by kensmith

Create releng/7.2 from stable/7 in preparation for 7.2-RELEASE.

Approved by:	re (implicit)
@
text
@@


1.23.6.1
log
@SVN rev 185281 on 2008-11-25 02:59:29Z by kensmith

Create releng/7.1 in preparation for moving into RC phase of 7.1 release
cycle.

Approved by:	re (implicit)
@
text
@@


1.22
log
@Back out change accidentally committed as Makefile:1.21 -- a local
tweak to let the 6.x/7.x kernel series build on a 5.x userland.

Pointed out by:		njl
@
text
@d23 1
a23 1
DEPENDFILE=
@


1.21
log
@Modify device drivers supporting multicast addresses to lock if_addr_mtx
over iteration of their multicast address lists when synchronizing the
hardware address filter with the network stack-maintained list.

Problem reported by:	Ed Maste (emaste at phaedrus dot sandvine dot ca>
MFC after:		1 week
@
text
@a35 1
NOMAN=
@


1.20
log
@Start the dreaded NOFOO -> NO_FOO conversion.

OK'ed by:	core
@
text
@d36 1
@


1.20.2.1
log
@MFC: 1.23: Fix mysterious parallel build failures.
@
text
@d23 1
a23 1
DEPENDFILE=	.depend_aicasm
@


1.20.2.2
log
@Switch importer
@
text
@d4 1
a4 1
# $FreeBSD: stable/6/sys/dev/aic7xxx/aicasm/Makefile 153763 2005-12-27 21:35:40Z ru $
@


1.20.2.1.8.1
log
@SVN rev 183531 on 2008-10-02 02:57:24Z by kensmith

Create releng/6.4 from stable/6 in preparation for 6.4-RC1.

Approved by:	re (implicit)
@
text
@@


1.19
log
@For variables that are only checked with defined(), don't provide
any fake value.
@
text
@d36 1
a36 1
NOMAN=
@


1.18
log
@This are the build infrastructure changes to allow to use the
Intel C/C++ compiler (lang/icc) to build the kernel.

The icc CPUTYPE CFLAGS use icc v7 syntax, icc v8 moans about them, but
doesn't abort. They also produce CPU specific code (new instructions
of the CPU, not only CPU specific scheduling), so if you get coredumps
with signal 4 (SIGILL, illegal instruction) you've used the wrong
CPUTYPE.

Incarnations of this patch survive gcc compiles and my make universe.
I use it on my desktop.

To use it update share/mk, add
	/usr/local/intel/compiler70/ia32/bin	(icc v7, works)
or
	/usr/local/intel_cc_80/bin		(icc v8, doesn't work)
to your PATH, make sure you have a new kernel compile directory
(e.g. MYKERNEL_icc) and run
	CFLAGS="-O2 -ip" CC=icc make depend
	CFLAGS="-O2 -ip" CC=icc make
in it.

Don't compile with -ipo, the build infrastructure uses ld directly to
link the kernel and the modules, but -ipo needs the link step to be
performed with Intel's linker.

Problems with icc v8:
 - panic: npx0 cannot be emulated on an SMP system
 - UP: first start of /bin/sh results in a FP exception

Parts of this commit contains suggestions or submissions from
Marius Strobl <marius@@alchemy.franken.de>.

Reviewed by:	silence on -arch
Submitted by:	netchild
@
text
@d36 1
a36 1
NOMAN=	noman
@


1.18.2.1
log
@MFC: For variables that are only checked with defined(), don't provide
     any fake value.
@
text
@d36 1
a36 1
NOMAN=
@


1.17
log
@Fixed style of DPADD and LDADD assignments as per style.Makefile(5).
@
text
@d1 1
d26 7
a32 1
CFLAGS+= -nostdinc -I/usr/include -I.
@


1.16
log
@Use inttypes.h

Upgrade assembler to allow a move immediate of 0.
This is helpful in certain macros where we can't know the value of the
immediate in advance.
@
text
@d15 2
a16 2
DPADD+=	${LIBL}
LDADD+=	-ll
@


1.15
log
@Update assembler syntax and assembler to allow generation of register
description tables used for diagnostic "pretty printing".
@
text
@d1 1
a1 1
# $Id: //depot/aic7xxx/freebsd/dev/aic7xxx/aicasm/Makefile#1 $
@


1.14
log
@Tweak the include dirs w/o incurring extra warnings
@
text
@d1 1
a1 1
# $Id$
d25 1
a25 1
CFLAGS+= -nostdinc -I${.CURDIR}/../../../dev/aic7xxx/aicasm -I/usr/include -I.
@


1.13
log
@Use only bits w/in /sys if at all possible.
@
text
@d25 1
a25 1
CFLAGS+= -I${.CURDIR}/../../../dev/aic7xxx/aicasm -I/usr/include -I.
@


1.12
log
@Add "CFLAGS+= -I${MAKESRCPATH}" when running under the kernel build,
otherwise #include "aicasm.h" etc do not work with gcc-3 and later.
@
text
@d25 1
a25 1
CFLAGS+= -I/usr/include -I.
@


1.11
log
@Add macro functionality.

Staticize and allow unique naming of data structures so that more
than on sequencer program can be statically compiled into the kernel
at a time.
@
text
@d26 3
@


1.10
log
@Due to changes in the handling of the #line directive by GCC(cpp) 3.1,
we must now explicitly list the source directory with -I.
@
text
@d8 2
a9 1
GENSRCS= aicasm_gram.c aicasm_scan.c
d11 1
a11 1
GENHDRS=	y.tab.h
d13 2
a14 2
SRCS=	${GENSRCS} ${CSRCS}
CLEANFILES+= ${GENSRCS} ${GENHDRS} y.output
d25 1
a25 1
CFLAGS+= -I/usr/include -I. -I../../../dev/aic7xxx/aicasm
d27 2
d30 1
a30 1
.ifdef DEBUG
@


1.9
log
@Fix include directories for crossbuilding.

aicasm is run on the build machine and therefore needs to be
compiled and linked against the headers and libraries (resp)
of the build machine. Since normally the default include
directories are search after any specified on the command
line, make sure we don't accidentally pick up machine
dependent headers from the kernel compile directory by
specifying /usr/include first.

This solves the (cross) build problem for ia64.

Approved by: gibbs
@
text
@d3 1
a3 1
# $FreeBSD: src/sys/dev/aic7xxx/aicasm/Makefile,v 1.8 2000/09/16 20:02:39 gibbs Exp $
d24 1
a24 1
CFLAGS+= -I/usr/include -I.
@


1.8
log
@Move aicasm to its own subdirectory.
@
text
@d3 1
a3 1
# $FreeBSD: src/sys/dev/aic7xxx/aicasm/Makefile,v 1.7 2000/05/27 21:35:47 obrien Exp $
d24 1
a24 1
CFLAGS+= -nostdinc -I${.CURDIR}/../../.. -I. -I/usr/include
@


1.8.2.1
log
@MFC: Move aicasm to its own subdir.
@
text
@d3 1
a3 1
# $FreeBSD$
@


1.8.2.2
log
@MFC: Sync perforce ids.
@
text
@d3 1
a3 1
# $FreeBSD: src/sys/dev/aic7xxx/aicasm/Makefile,v 1.8.2.1 2000/09/23 00:24:22 gibbs Exp $
d24 1
a24 1
CFLAGS+= -I/usr/include -I.
@


1.8.2.3
log
@MFC: aic7xxx driver as of today.
@
text
@d3 1
a3 1
# $FreeBSD$
d8 1
a8 2
YSRCS=	aicasm_gram.y aicasm_macro_gram.y
LSRCS=	aicasm_scan.l aicasm_macro_scan.l
d10 1
a10 1
GENHDRS=	aicasm_gram.h aicasm_macro_gram.h
d12 2
a13 2
SRCS=	${GENHDRS} ${CSRCS} ${YSRCS} ${LSRCS}
CLEANFILES+= ${GENHDRS} ${YSRCS:R:C/(.*)/\1.output/g}
a25 2
YFLAGS= -b ${.TARGET:R} ${.TARGET:M*macro*:S/$(.TARGET)/-p mm/} -d
LFLAGS+= ${.TARGET:M*macro*:S/$(.TARGET)/-Pmm/}
d27 1
a27 1
.ifdef AICASM_DEBUG
@


1.8.2.4
log
@MFC: The latest aicasm from -current.
@
text
@d1 1
a1 1
# $Id: //depot/aic7xxx/freebsd/dev/aic7xxx/aicasm/Makefile#1 $
d25 1
a25 4
CFLAGS+= -nostdinc -I/usr/include -I.
.ifdef MAKESRCPATH
CFLAGS+= -I${MAKESRCPATH}
.endif
@


1.8.2.5
log
@MFC: Add support for move with immediate of 0.  Use inttypes.h.

Approved by:	RE (jhb)
@
text
@d1 1
a1 1
# $Id: //depot/aic7xxx/freebsd/dev/aic7xxx/aicasm/Makefile#2 $
@


1.8.2.6
log
@Switch importer
@
text
@d3 1
a3 1
# $FreeBSD: stable/4/sys/dev/aic7xxx/aicasm/Makefile 104033 2002-09-27 15:46:28Z gibbs $
@


1.7
log
@Use /sys/sys/*.h over /usr/include/sys.

No repsonce from:	Maintainer
@
text
@d1 3
a3 1
# $FreeBSD: src/sys/dev/aic7xxx/Makefile,v 1.6 1999/08/28 00:41:22 peter Exp $
d24 1
a24 1
CFLAGS+= -nostdinc -I${.CURDIR}/../.. -I. -I/usr/include
d29 1
a29 1
YFLAGS+= -t
@


1.6
log
@$Id$ -> $FreeBSD$
@
text
@d1 1
a1 1
# $FreeBSD$
d22 1
a22 1
CFLAGS+= -I/usr/include -I.
@


1.5
log
@"fix" long standing aicasm build glitch.  The problem was the
reorganization in rev 1.16 of i386/include/types.h which changed
stdlib.h's use of <machine/types.h>.  The problem was the -I. was causing
machine/types.h to come from the current kernel source, while stdlib.h was
coming from /usr/include.  /usr/include/stdlib.h is as old as the last
'make world', the machine/types.h was as new as the current source.
@
text
@d1 1
a1 1
#	$Id: Makefile,v 1.4 1997/09/27 19:37:22 gibbs Exp $
@


1.5.2.1
log
@$Id$ -> $FreeBSD$
@
text
@d1 1
a1 1
# $FreeBSD$
@


1.4
log
@Add support to aicasm for "downloaded constants".  These are immediate
operands that are set during seqeuncer program download instead of at
assembly time.

Convert the sequencer code to use" downloaded constants" for four run time
constants that vary depending on the board type.  This frees up 4 bytes
of sequencer scratch ram space where these constants used to be stored and
also removes the additional instructions required to load their values
into the accumulator prior to using them.

Remove the REJBYTE sram variable.  The host driver can just as easly
read the accumulator to get this value.

The scratch ram savings is important as the old code used to clober the
SCSICONF register on 274X cards which sits near the top of scratch ram
space.  The SCSICONF register controls bus termination, and clobbering
it is not a good thing.  Now we have 4 bytes to spare.

This should fix the reported problems with cards that don't have devices
attached to them failing with a stream of "Somone reset bus X" messages.

Doug Ledford determined the cause of the problem, fixes by me.
@
text
@d1 1
a1 1
#	$Id: Makefile,v 1.3 1997/09/03 03:44:32 gibbs Exp $
d22 1
a22 1
CFLAGS+= -I.
@


1.3
log
@Make the aic7xxx sequencer assembler compile in the kernel's object
directory.  Rename (via repository copy) some files so that the potential
for future conflicts is minimized.

PR: conf/4363
@
text
@d1 1
a1 1
#	$Id: Makefile,v 1.2 1997/04/03 05:56:00 gibbs Exp $
d24 7
@


1.2
log
@CFLAGS += -I. so that building in an obj directory works.
@
text
@d1 1
a1 1
#	$Id: Makefile,v 1.1 1997/03/16 07:08:10 gibbs Exp $
d3 1
a3 1
PROG=	aic7xxx_asm
d5 2
a6 2
CSRCS=	aic7xxx_asm.c symbol.c
GENSRCS=	gram.c scan.c
d8 1
a8 4
GENHDRS=	y.tab.h token.h
# Hack so non root users you can build kernels
BINOWN!= id -u -n
BINGRP!= id -g -n
d11 1
a11 1
CLEANFILES+=	${GENSRCS} ${GENHDRS} y.output
d14 7
@


1.1
log
@Makefile gram.y scan.l sequencer.h symbol.c symbol.h aic7xxx_asm.c:
	New sequencer assembler for the aic7xxx adapters.  This assembler
	performs some amount of register type checking, allows bit
	manipulation of symbolic constants, and generates "patch tables"
	for conditionalized downloading of portions of the program.
	This makes it easier to take full advantage of the different
	features of the aic7xxx cards without imposing run time penalies
	or being bound to the small memory footprints of the low end
	cards for features like target mode.

aic7xxx.reg:
	New, assembler parsed, register definitions fo the aic7xxx cards.
	This was done primarily in anticipation of 7810 support which
	will have a different register layout, but should be able to use
	the same assembler.  The kernel aic7xxx driver consumes a generated
	file in the compile directory to get the definitions of the register
	locations.

aic7xxx.seq:
	Convert to the slighly different syntax of the new assembler.

	Conditionalize SCB_PAGING, ultra, and twin features which shaves
	quite a bit of space once the program is downloaded.

	Add code to leave the selection hardware enabled during reconnects
	that win bus arbitration.  This ensures that we will rearbitrate
	as soon as the bus goes free instead of delaying for a bit.

	When we expect the bus to go free, perform all of the cleanup
	associated with that event "up front" and enter a loop awaiting
	bus free.  If we see a REQ first, complain, but attempt to
	continue.  This will hopefully address, or at least help diagnose,
	the "target didn't send identify" messages that have been reported.

Spelling corrections obtained from NetBSD.
@
text
@d1 1
a1 1
#	$Id$
d17 2
@


1.1.4.1
log
@By popular demand: Sync with current.
@
text
@d1 1
a1 1
#	$Id: Makefile,v 1.1 1997/03/16 07:08:10 gibbs Exp $
a16 2

CFLAGS+= -I.
@


1.1.4.2
log
@Merge sequencer assembler build changes from current.
@
text
@d1 1
a1 1
#	$Id: Makefile,v 1.1.4.1 1997/04/06 05:07:57 gibbs Exp $
d3 1
a3 1
PROG=	aicasm
d5 2
a6 2
CSRCS=	aicasm.c aicasm_symbol.c
GENSRCS= aicasm_gram.c aicasm_scan.c
d8 4
a11 1
GENHDRS=	y.tab.h
d14 1
a14 1
CLEANFILES+= ${GENSRCS} ${GENHDRS} y.output
a16 7

# Correct path for kernel builds
# Don't rely on the kernel's .depend file
.ifdef MAKESRCPATH
.PATH: ${MAKESRCPATH}
DEPENDFILE=
.endif
@


1.1.4.3
log
@$Id$ -> $FreeBSD$
@
text
@d1 1
a1 1
# $FreeBSD$
@


1.1.2.1
log
@Sync with current
@
text
@d1 1
a1 1
#	$Id: Makefile,v 1.1 1997/03/16 07:08:10 gibbs Exp $
a16 2

CFLAGS+= -I.
@


1.1.2.2
log
@Merge from current.
@
text
@d1 1
a1 1
#	$Id: Makefile,v 1.1.2.1 1997/04/04 04:35:28 gibbs Exp $
d3 1
a3 1
PROG=	aicasm
d5 2
a6 2
CSRCS=	aicasm.c aicasm_symbol.c
GENSRCS= aicasm_gram.c aicasm_scan.c
d8 4
a11 1
GENHDRS=	y.tab.h
d14 1
a14 1
CLEANFILES+= ${GENSRCS} ${GENHDRS} y.output
a16 7

# Correct path for kernel builds
# Don't rely on the kernel's .depend file
.ifdef MAKESRCPATH
.PATH: ${MAKESRCPATH}
DEPENDFILE=
.endif
@


1.1.2.3
log
@MFC: Add "downloaded constant" support and reduce scratch ram usage so that
SCSI CONF isn't clobbered on the 274X.
@
text
@d1 1
a1 1
#	$Id: Makefile,v 1.1.2.2 1997/09/03 04:25:04 gibbs Exp $
a23 7

.ifdef DEBUG
CFLAGS+= -DDEBUG -g
YFLAGS+= -t
LFLAGS+= -d
.endif

@


1.1.2.4
log
@$Id$ -> $FreeBSD$
@
text
@d1 1
a1 1
# $FreeBSD$
@
