head	1.23;
access;
symbols
	netbsd-11-0-RC4:1.23
	netbsd-11-0-RC3:1.23
	netbsd-11-0-RC2:1.23
	netbsd-11-0-RC1:1.23
	perseant-exfatfs-base-20250801:1.23
	netbsd-11:1.23.0.60
	netbsd-11-base:1.23
	netbsd-10-1-RELEASE:1.23
	perseant-exfatfs-base-20240630:1.23
	perseant-exfatfs:1.23.0.58
	perseant-exfatfs-base:1.23
	netbsd-8-3-RELEASE:1.23
	netbsd-9-4-RELEASE:1.23
	netbsd-10-0-RELEASE:1.23
	netbsd-10-0-RC6:1.23
	netbsd-10-0-RC5:1.23
	netbsd-10-0-RC4:1.23
	netbsd-10-0-RC3:1.23
	netbsd-10-0-RC2:1.23
	netbsd-10-0-RC1:1.23
	netbsd-10:1.23.0.56
	netbsd-10-base:1.23
	netbsd-9-3-RELEASE:1.23
	cjep_sun2x-base1:1.23
	cjep_sun2x:1.23.0.54
	cjep_sun2x-base:1.23
	cjep_staticlib_x-base1:1.23
	netbsd-9-2-RELEASE:1.23
	cjep_staticlib_x:1.23.0.52
	cjep_staticlib_x-base:1.23
	netbsd-9-1-RELEASE:1.23
	phil-wifi-20200421:1.23
	phil-wifi-20200411:1.23
	is-mlppp:1.23.0.50
	is-mlppp-base:1.23
	phil-wifi-20200406:1.23
	netbsd-8-2-RELEASE:1.23
	netbsd-9-0-RELEASE:1.23
	netbsd-9-0-RC2:1.23
	netbsd-9-0-RC1:1.23
	phil-wifi-20191119:1.23
	netbsd-9:1.23.0.48
	netbsd-9-base:1.23
	phil-wifi-20190609:1.23
	netbsd-8-1-RELEASE:1.23
	netbsd-8-1-RC1:1.23
	pgoyette-compat-merge-20190127:1.23
	pgoyette-compat-20190127:1.23
	pgoyette-compat-20190118:1.23
	pgoyette-compat-1226:1.23
	pgoyette-compat-1126:1.23
	pgoyette-compat-1020:1.23
	pgoyette-compat-0930:1.23
	pgoyette-compat-0906:1.23
	netbsd-7-2-RELEASE:1.23
	pgoyette-compat-0728:1.23
	netbsd-8-0-RELEASE:1.23
	phil-wifi:1.23.0.46
	phil-wifi-base:1.23
	pgoyette-compat-0625:1.23
	netbsd-8-0-RC2:1.23
	pgoyette-compat-0521:1.23
	pgoyette-compat-0502:1.23
	pgoyette-compat-0422:1.23
	netbsd-8-0-RC1:1.23
	pgoyette-compat-0415:1.23
	pgoyette-compat-0407:1.23
	pgoyette-compat-0330:1.23
	pgoyette-compat-0322:1.23
	pgoyette-compat-0315:1.23
	netbsd-7-1-2-RELEASE:1.23
	pgoyette-compat:1.23.0.44
	pgoyette-compat-base:1.23
	netbsd-7-1-1-RELEASE:1.23
	matt-nb8-mediatek:1.23.0.42
	matt-nb8-mediatek-base:1.23
	perseant-stdc-iso10646:1.23.0.40
	perseant-stdc-iso10646-base:1.23
	netbsd-8:1.23.0.38
	netbsd-8-base:1.23
	prg-localcount2-base3:1.23
	prg-localcount2-base2:1.23
	prg-localcount2-base1:1.23
	prg-localcount2:1.23.0.36
	prg-localcount2-base:1.23
	pgoyette-localcount-20170426:1.23
	bouyer-socketcan-base1:1.23
	pgoyette-localcount-20170320:1.23
	netbsd-7-1:1.23.0.34
	netbsd-7-1-RELEASE:1.23
	netbsd-7-1-RC2:1.23
	netbsd-7-nhusb-base-20170116:1.23
	bouyer-socketcan:1.23.0.32
	bouyer-socketcan-base:1.23
	pgoyette-localcount-20170107:1.23
	netbsd-7-1-RC1:1.23
	pgoyette-localcount-20161104:1.23
	netbsd-7-0-2-RELEASE:1.23
	localcount-20160914:1.23
	netbsd-7-nhusb:1.23.0.30
	netbsd-7-nhusb-base:1.23
	pgoyette-localcount-20160806:1.23
	pgoyette-localcount-20160726:1.23
	pgoyette-localcount:1.23.0.28
	pgoyette-localcount-base:1.23
	netbsd-7-0-1-RELEASE:1.23
	netbsd-7-0:1.23.0.26
	netbsd-7-0-RELEASE:1.23
	netbsd-7-0-RC3:1.23
	netbsd-7-0-RC2:1.23
	netbsd-7-0-RC1:1.23
	netbsd-5-2-3-RELEASE:1.19
	netbsd-5-1-5-RELEASE:1.19
	netbsd-6-0-6-RELEASE:1.23
	netbsd-6-1-5-RELEASE:1.23
	netbsd-7:1.23.0.24
	netbsd-7-base:1.23
	yamt-pagecache-base9:1.23
	yamt-pagecache-tag8:1.23
	netbsd-6-1-4-RELEASE:1.23
	netbsd-6-0-5-RELEASE:1.23
	tls-earlyentropy:1.23.0.22
	tls-earlyentropy-base:1.23
	riastradh-xf86-video-intel-2-7-1-pre-2-21-15:1.23
	riastradh-drm2-base3:1.23
	netbsd-6-1-3-RELEASE:1.23
	netbsd-6-0-4-RELEASE:1.23
	netbsd-5-2-2-RELEASE:1.19
	netbsd-5-1-4-RELEASE:1.19
	netbsd-6-1-2-RELEASE:1.23
	netbsd-6-0-3-RELEASE:1.23
	netbsd-5-2-1-RELEASE:1.19
	netbsd-5-1-3-RELEASE:1.19
	netbsd-6-1-1-RELEASE:1.23
	riastradh-drm2-base2:1.23
	riastradh-drm2-base1:1.23
	riastradh-drm2:1.23.0.16
	riastradh-drm2-base:1.23
	netbsd-6-1:1.23.0.20
	netbsd-6-0-2-RELEASE:1.23
	netbsd-6-1-RELEASE:1.23
	netbsd-6-1-RC4:1.23
	netbsd-6-1-RC3:1.23
	agc-symver:1.23.0.18
	agc-symver-base:1.23
	netbsd-6-1-RC2:1.23
	netbsd-6-1-RC1:1.23
	yamt-pagecache-base8:1.23
	netbsd-5-2:1.19.0.50
	netbsd-6-0-1-RELEASE:1.23
	yamt-pagecache-base7:1.23
	netbsd-5-2-RELEASE:1.19
	netbsd-5-2-RC1:1.19
	matt-nb6-plus-nbase:1.23
	yamt-pagecache-base6:1.23
	netbsd-6-0:1.23.0.14
	netbsd-6-0-RELEASE:1.23
	netbsd-6-0-RC2:1.23
	tls-maxphys:1.23.0.12
	tls-maxphys-base:1.23
	matt-nb6-plus:1.23.0.10
	matt-nb6-plus-base:1.23
	netbsd-6-0-RC1:1.23
	yamt-pagecache-base5:1.23
	yamt-pagecache-base4:1.23
	netbsd-6:1.23.0.8
	netbsd-6-base:1.23
	netbsd-5-1-2-RELEASE:1.19
	netbsd-5-1-1-RELEASE:1.19
	yamt-pagecache-base3:1.23
	yamt-pagecache-base2:1.23
	yamt-pagecache:1.23.0.6
	yamt-pagecache-base:1.23
	cherry-xenmp:1.23.0.4
	cherry-xenmp-base:1.23
	bouyer-quota2-nbase:1.23
	bouyer-quota2:1.23.0.2
	bouyer-quota2-base:1.23
	matt-mips64-premerge-20101231:1.19
	matt-nb5-mips64-premerge-20101231:1.19
	matt-nb5-pq3:1.19.0.48
	matt-nb5-pq3-base:1.19
	netbsd-5-1:1.19.0.46
	netbsd-5-1-RELEASE:1.19
	netbsd-5-1-RC4:1.19
	matt-nb5-mips64-k15:1.19
	netbsd-5-1-RC3:1.19
	netbsd-5-1-RC2:1.19
	netbsd-5-1-RC1:1.19
	netbsd-5-0-2-RELEASE:1.19
	matt-nb5-mips64-premerge-20091211:1.19
	matt-premerge-20091211:1.19
	matt-nb5-mips64-u2-k2-k4-k7-k8-k9:1.19
	matt-nb4-mips64-k7-u2a-k9b:1.19
	matt-nb5-mips64-u1-k1-k5:1.19
	matt-nb5-mips64:1.19.0.44
	netbsd-5-0-1-RELEASE:1.19
	jym-xensuspend-nbase:1.19
	netbsd-5-0:1.19.0.42
	netbsd-5-0-RELEASE:1.19
	netbsd-5-0-RC4:1.19
	netbsd-5-0-RC3:1.19
	netbsd-5-0-RC2:1.19
	jym-xensuspend:1.19.0.40
	jym-xensuspend-base:1.19
	netbsd-5-0-RC1:1.19
	netbsd-5:1.19.0.38
	netbsd-5-base:1.19
	matt-mips64-base2:1.19
	matt-mips64:1.19.0.36
	mjf-devfs2:1.19.0.34
	mjf-devfs2-base:1.19
	netbsd-4-0-1-RELEASE:1.19
	wrstuden-revivesa-base-3:1.19
	wrstuden-revivesa-base-2:1.19
	wrstuden-fixsa-newbase:1.19
	wrstuden-revivesa-base-1:1.19
	yamt-pf42-base4:1.19
	yamt-pf42-base3:1.19
	hpcarm-cleanup-nbase:1.19
	yamt-pf42-baseX:1.19
	yamt-pf42-base2:1.19
	wrstuden-revivesa:1.19.0.32
	wrstuden-revivesa-base:1.19
	yamt-pf42:1.19.0.30
	yamt-pf42-base:1.19
	keiichi-mipv6:1.19.0.28
	keiichi-mipv6-base:1.19
	matt-armv6-nbase:1.19
	matt-armv6-prevmlocking:1.19
	wrstuden-fixsa-base-1:1.19
	netbsd-4-0:1.19.0.26
	netbsd-4-0-RELEASE:1.19
	cube-autoconf:1.19.0.24
	cube-autoconf-base:1.19
	netbsd-4-0-RC5:1.19
	netbsd-4-0-RC4:1.19
	netbsd-4-0-RC3:1.19
	netbsd-4-0-RC2:1.19
	netbsd-4-0-RC1:1.19
	matt-armv6:1.19.0.22
	matt-armv6-base:1.19
	matt-mips64-base:1.19
	hpcarm-cleanup:1.19.0.20
	hpcarm-cleanup-base:1.19
	netbsd-3-1-1-RELEASE:1.19
	netbsd-3-0-3-RELEASE:1.19
	wrstuden-fixsa:1.19.0.18
	wrstuden-fixsa-base:1.19
	abandoned-netbsd-4-base:1.19
	abandoned-netbsd-4:1.19.0.12
	netbsd-3-1:1.19.0.14
	netbsd-3-1-RELEASE:1.19
	netbsd-3-0-2-RELEASE:1.19
	netbsd-3-1-RC4:1.19
	netbsd-3-1-RC3:1.19
	netbsd-3-1-RC2:1.19
	netbsd-3-1-RC1:1.19
	netbsd-4:1.19.0.16
	netbsd-4-base:1.19
	netbsd-3-0-1-RELEASE:1.19
	netbsd-3-0:1.19.0.10
	netbsd-3-0-RELEASE:1.19
	netbsd-3-0-RC6:1.19
	netbsd-3-0-RC5:1.19
	netbsd-3-0-RC4:1.19
	netbsd-3-0-RC3:1.19
	netbsd-3-0-RC2:1.19
	netbsd-3-0-RC1:1.19
	netbsd-2-0-3-RELEASE:1.19
	netbsd-2-1:1.19.0.8
	netbsd-2-1-RELEASE:1.19
	netbsd-2-1-RC6:1.19
	netbsd-2-1-RC5:1.19
	netbsd-2-1-RC4:1.19
	netbsd-2-1-RC3:1.19
	netbsd-2-1-RC2:1.19
	netbsd-2-1-RC1:1.19
	netbsd-2-0-2-RELEASE:1.19
	netbsd-3:1.19.0.6
	netbsd-3-base:1.19
	netbsd-2-0-1-RELEASE:1.19
	netbsd-2:1.19.0.4
	netbsd-2-base:1.19
	netbsd-2-0-RELEASE:1.19
	netbsd-2-0-RC5:1.19
	netbsd-2-0-RC4:1.19
	netbsd-2-0-RC3:1.19
	netbsd-2-0-RC2:1.19
	netbsd-2-0-RC1:1.19
	netbsd-2-0:1.19.0.2
	netbsd-2-0-base:1.19
	netbsd-1-6-PATCH002-RELEASE:1.13.2.1
	netbsd-1-6-PATCH002:1.13.2.1
	netbsd-1-6-PATCH002-RC4:1.13.2.1
	netbsd-1-6-PATCH002-RC3:1.13.2.1
	netbsd-1-6-PATCH002-RC2:1.13.2.1
	netbsd-1-6-PATCH002-RC1:1.13.2.1
	netbsd-1-6-PATCH001:1.13.2.1
	netbsd-1-6-PATCH001-RELEASE:1.13.2.1
	netbsd-1-6-PATCH001-RC3:1.13.2.1
	netbsd-1-6-PATCH001-RC2:1.13.2.1
	netbsd-1-6-PATCH001-RC1:1.13.2.1
	fvdl_fs64_base:1.15
	netbsd-1-6-RELEASE:1.13
	netbsd-1-6-RC3:1.13
	netbsd-1-6-RC2:1.13
	netbsd-1-6-RC1:1.13
	netbsd-1-6:1.13.0.2
	netbsd-1-6-base:1.13
	netbsd-1-5-PATCH003:1.11
	netbsd-1-5-PATCH002:1.11
	netbsd-1-5-PATCH001:1.11
	netbsd-1-5-RELEASE:1.11
	netbsd-1-5-BETA2:1.11
	netbsd-1-5-BETA:1.11
	netbsd-1-4-PATCH003:1.9.2.1
	netbsd-1-5-ALPHA2:1.11
	netbsd-1-5:1.11.0.6
	netbsd-1-5-base:1.11
	minoura-xpg4dl:1.11.0.4
	minoura-xpg4dl-base:1.11
	netbsd-1-4-PATCH002:1.9.2.1
	wrstuden-devbsize-19991221:1.11
	wrstuden-devbsize:1.10.0.2
	wrstuden-devbsize-base:1.11
	comdex-fall-1999:1.11.0.2
	comdex-fall-1999-base:1.11
	netbsd-1-4-PATCH001:1.9
	netbsd-1-4-RELEASE:1.9
	netbsd-1-4:1.9.0.2
	netbsd-1-4-base:1.9
	netbsd-1-3-PATCH003:1.4.2.3
	netbsd-1-3-PATCH003-CANDIDATE2:1.4.2.3
	netbsd-1-3-PATCH003-CANDIDATE1:1.4.2.3
	netbsd-1-3-PATCH003-CANDIDATE0:1.4.2.3
	netbsd-1-3-PATCH002:1.4.2.3
	netbsd-1-3-PATCH001:1.4.2.3
	netbsd-1-3-RELEASE:1.4.2.3
	netbsd-1-3-BETA:1.4.2.3
	netbsd-1-3:1.4.0.2
	netbsd-1-3-base:1.4
	cjs-build-against-obj-dir:1.3.0.2;
locks; strict;
comment	@# @;


1.23
date	2011.01.18.16.41.51;	author matt;	state Exp;
branches;
next	1.22;

1.22
date	2011.01.17.09.43.56;	author matt;	state Exp;
branches;
next	1.21;

1.21
date	2011.01.16.03.29.36;	author matt;	state Exp;
branches;
next	1.20;

1.20
date	2011.01.14.05.20.00;	author matt;	state Exp;
branches;
next	1.19;

1.19
date	2004.02.08.22.55.27;	author lukem;	state Exp;
branches;
next	1.18;

1.18
date	2003.08.01.17.03.59;	author lukem;	state Exp;
branches;
next	1.17;

1.17
date	2003.05.08.13.23.14;	author christos;	state Exp;
branches;
next	1.16;

1.16
date	2003.01.28.00.35.36;	author thorpej;	state Exp;
branches;
next	1.15;

1.15
date	2002.09.14.21.16.43;	author thorpej;	state Exp;
branches;
next	1.14;

1.14
date	2002.08.19.09.41.33;	author lukem;	state Exp;
branches;
next	1.13;

1.13
date	2002.01.29.19.03.01;	author tv;	state Exp;
branches
	1.13.2.1;
next	1.12;

1.12
date	2001.11.13.18.55.00;	author tv;	state Exp;
branches;
next	1.11;

1.11
date	99.10.27.14.58.30;	author is;	state Exp;
branches;
next	1.10;

1.10
date	99.07.05.15.54.18;	author kleink;	state Exp;
branches
	1.10.2.1;
next	1.9;

1.9
date	99.02.24.15.10.17;	author drochner;	state Exp;
branches
	1.9.2.1;
next	1.8;

1.8
date	98.02.14.20.44.06;	author kleink;	state Exp;
branches;
next	1.7;

1.7
date	97.11.06.22.34.03;	author cgd;	state Exp;
branches;
next	1.6;

1.6
date	97.11.05.05.46.21;	author thorpej;	state Exp;
branches;
next	1.5;

1.5
date	97.10.23.02.59.00;	author lukem;	state Exp;
branches;
next	1.4;

1.4
date	97.05.31.21.21.53;	author cjs;	state Exp;
branches
	1.4.2.1;
next	1.3;

1.3
date	97.05.30.14.16.59;	author cjs;	state Exp;
branches;
next	1.2;

1.2
date	97.05.24.03.29.22;	author jonathan;	state Exp;
branches;
next	1.1;

1.1
date	97.05.18.20.14.22;	author kleink;	state Exp;
branches;
next	;

1.13.2.1
date	2002.11.15.00.09.41;	author lukem;	state Exp;
branches;
next	;

1.10.2.1
date	99.12.27.18.30.07;	author wrstuden;	state Exp;
branches;
next	;

1.9.2.1
date	99.11.11.21.35.18;	author he;	state Exp;
branches;
next	;

1.4.2.1
date	97.11.05.05.52.10;	author thorpej;	state Exp;
branches;
next	1.4.2.2;

1.4.2.2
date	97.11.07.23.16.09;	author mellon;	state Exp;
branches;
next	1.4.2.3;

1.4.2.3
date	97.11.09.01.00.43;	author lukem;	state Exp;
branches;
next	;


desc
@@


1.23
log
@Use PRINTOBJDIR to get the object directory of libc and use that with -I.
@
text
@#	$NetBSD: Makefile.inc,v 1.22 2011/01/17 09:43:56 matt Exp $

# sys sources
.PATH: ${.CURDIR}/sys
.PATH: ${ARCHDIR}/sys

# stubs providing an entry "foo" but calling "__posix_foo()"
PSEUDO=		chown.S fchown.S lchown.S rename.S

SRCS+=		${PSEUDO}
CLEANFILES+=	${PSEUDO}

LIBCDIR!=	cd ${NETBSDSRCDIR}/lib/libc && ${PRINTOBJDIR}

SRCS+=		cerror.S
CPPFLAGS+=	-D__cerror=__posix_cerror -I${LIBCDIR} -D_REENTRANT

ASMDEPS=	${.CURDIR}/sys/Makefile.inc ${ARCHDIR}/SYS.h \
		${DESTDIR}/usr/include/sys/syscall.h

${PSEUDO}: ${ASMDEPS}
	${_MKTARGET_CREATE}
	printf '#include "SYS.h"\nPSEUDO(${.PREFIX},${.PREFIX:S/^/__posix_/})\n' \
		>${.TARGET}

# Lint stubs for all automatically-generated assembly stubs (GENERATED)
.if ${MKLINT} != "no"
LSRCS+=		LintSysPseudo.c
DPSRCS+=	LintSysPseudo.c
CLEANFILES+=	LintSysPseudo.c
.endif

LintSysPseudo.c: ${NETBSDSRCDIR}/lib/libc/sys/makelintstub \
    ${DESTDIR}/usr/include/sys/syscall.h
	${_MKTARGET_CREATE}
	CPP=${CPP:Q} ${HOST_SH} ${NETBSDSRCDIR}/lib/libc/sys/makelintstub \
	    -o ${.TARGET} -p -s ${DESTDIR}/usr/include/sys/syscall.h ${PSEUDO}
@


1.22
log
@Add -D_REENTRANT
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.21 2011/01/16 03:29:36 matt Exp $
d13 2
d16 1
a16 1
CPPFLAGS+=	-D__cerror=__posix_cerror -I../libc -D_REENTRANT
@


1.21
log
@For cerror, allow -I../libc to allow inclusion of any assym.h, if up.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.20 2011/01/14 05:20:00 matt Exp $
d14 1
a14 1
CPPFLAGS+=	-D__cerror=__posix_cerror -I../libc
@


1.20
log
@Let libposix and librt have their own version of __cerror (__posix_cerror and
__rt_cerror).  This enables each library (including libc) the oppurtunity to
make its __cerror hidden and avoid being called via the PLT.  No user visible
differences to no need to bump the minor number.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.19 2004/02/08 22:55:27 lukem Exp $
d14 1
a14 1
CPPFLAGS+=	-D__cerror=__posix_cerror
@


1.19
log
@MAKEVERBOSE messages
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.18 2003/08/01 17:03:59 lukem Exp $
d5 1
d13 3
@


1.18
log
@Rework how dependency generation is performed:

* DPSRCS contains extra dependencies, but is _NOT_ added to CLEANFILES.
  This is a change of behaviour.  If a Makefile wants the clean semantics
  it must specifically append to CLEANFILES.
  Resolves PR toolchain/5204.

* To recap: .d (depend) files are generated for all files in SRCS and DPSRCS
  that have a suffix of: .c .m .s .S .C .cc .cpp .cxx

* If YHEADER is set, automatically add the .y->.h to DPSRCS & CLEANFILES

* Ensure that ${OBJS} ${POBJS} ${LOBJS} ${SOBJS} *.d  depend upon ${DPSRCS}

* Deprecate the (short lived) DEPENDSRCS


Update the various Makefiles to these new semantics; generally either
adding to CLEANFILES (because DPSRCS doesn't do that anymore), or replacing
specific .o dependencies with DPSRCS entries.

Tested with "make -j 8 distribution" and "make distribution".
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.17 2003/05/08 13:23:14 christos Exp $
d16 2
a17 1
	@@printf '#include "SYS.h"\nPSEUDO(${.PREFIX},${.PREFIX:S/^/__posix_/})\n' \
d29 1
@


1.17
log
@Use ${HOST_SH}
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.16 2003/01/28 00:35:36 thorpej Exp $
d23 1
@


1.16
log
@Make the generated .S files depend on ${.CURDIR}/sys/Makefile.inc.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.15 2002/09/14 21:16:43 thorpej Exp $
d27 1
a27 1
	CPP=${CPP:Q} sh ${NETBSDSRCDIR}/lib/libc/sys/makelintstub \
@


1.15
log
@Invoke makelintstub with CPP in the environment.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.14 2002/08/19 09:41:33 lukem Exp $
d12 4
a15 1
${PSEUDO}: ${ARCHDIR}/SYS.h ${DESTDIR}/usr/include/sys/syscall.h
@


1.14
log
@Use ${NETBSDSRCDIR}/some/path instead of ${.CURDIR}/../../some/path (etc).
(Reduces make output by ~ 20%)
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.13 2002/01/29 19:03:01 tv Exp $
d24 2
a25 2
	sh ${NETBSDSRCDIR}/lib/libc/sys/makelintstub -o ${.TARGET} -p \
	    -s ${DESTDIR}/usr/include/sys/syscall.h ${PSEUDO}
@


1.13
log
@Don't run makelintstub if MKLINT=no.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.12 2001/11/13 18:55:00 tv Exp $
d22 1
a22 1
LintSysPseudo.c: ${.CURDIR}/../libc/sys/makelintstub \
d24 1
a24 1
	sh ${.CURDIR}/../libc/sys/makelintstub -o ${.TARGET} -p \
@


1.13.2.1
log
@Pull up revision 1.15 (requested by grant in ticket #988):
Invoke makelintstub with CPP in the environment.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.13 2002/01/29 19:03:01 tv Exp $
d24 2
a25 2
	CPP=${CPP:Q} sh ${NETBSDSRCDIR}/lib/libc/sys/makelintstub \
	    -o ${.TARGET} -p -s ${DESTDIR}/usr/include/sys/syscall.h ${PSEUDO}
@


1.12
log
@Update to match libc's new .S build rules.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.11 1999/10/27 14:58:30 is Exp $
d17 1
d20 1
@


1.11
log
@Actually profile system calls.
Problem and most of the fix reported by Anders Hjalmarsson in PR 4976; libposix
mentioned by Chris G. Demetriou.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.10 1999/07/05 15:54:18 kleink Exp $
d7 1
a7 3
PSEUDO=	chown.o fchown.o lchown.o rename.o
PPSEUDO=${PSEUDO:.o=.po}
SPSEUDO=${PSEUDO:.o=.so}
d9 2
a10 1
OBJS+=	${PSEUDO}
d12 3
a14 25
${PPSEUDO}: ${ARCHDIR}/SYS.h \
    ${DESTDIR}/usr/include/sys/syscall.h
	@@echo creating ${.TARGET}
	@@printf '#include "SYS.h"\n \
	    PSEUDO(${.PREFIX},${.PREFIX:S/^/__posix_/})\n' | \
	    ${CPP} -DGPROF ${CPPFLAGS:M-[ID]*} ${AINC} | ${AS} -o ${.TARGET}.o
	@@${LD} -X -r ${.TARGET}.o -o ${.TARGET}
	@@rm -f ${.TARGET}.o

${SPSEUDO}: ${ARCHDIR}/SYS.h \
    ${DESTDIR}/usr/include/sys/syscall.h
	@@echo creating ${.TARGET}
	@@printf '#include "SYS.h"\n \
	    PSEUDO(${.PREFIX},${.PREFIX:S/^/__posix_/})\n' | \
	    ${CPP} ${CPPPICFLAGS} ${CPPFLAGS:M-[ID]*} ${AINC} | \
	    ${AS} ${APICFLAGS} -o ${.TARGET}

${PSEUDO}: ${ARCHDIR}/SYS.h \
    ${DESTDIR}/usr/include/sys/syscall.h
	@@echo creating ${.TARGET}
	@@printf '#include "SYS.h"\n \
	    PSEUDO(${.PREFIX},${.PREFIX:S/^/__posix_/})\n' | \
	    ${CPP} ${CPPFLAGS:M-[ID]*} ${AINC} | ${AS} -o ${.TARGET}.o
	@@${LD} -X -r ${.TARGET}.o -o ${.TARGET}
	@@rm -f ${.TARGET}.o
d17 2
a18 4
LSRCS+=	LintSysPseudo.c
DPSRCS+=LintSysPseudo.c

CLEANFILES+= LintSysPseudo.c
d22 1
a22 2
	@@echo creating ${.TARGET}
	@@sh ${.CURDIR}/../libc/sys/makelintstub -o ${.TARGET} -p \
@


1.10
log
@Some cleanup; g/c unneeded lint stub files.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.9 1999/02/24 15:10:17 drochner Exp $
d18 1
a18 1
	    ${CPP} -DPROF ${CPPFLAGS:M-[ID]*} ${AINC} | ${AS} -o ${.TARGET}.o
@


1.10.2.1
log
@Pull up to last week's -current.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.11 1999/10/27 14:58:30 is Exp $
d18 1
a18 1
	    ${CPP} -DGPROF ${CPPFLAGS:M-[ID]*} ${AINC} | ${AS} -o ${.TARGET}.o
@


1.9
log
@make this build again after the mips->mipse? transition
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.8 1998/02/14 20:44:06 kleink Exp $
d4 1
a4 1
.PATH: ${ARCHDIR}/sys ${.CURDIR}/sys
d40 2
a41 2
LSRCS+=	LintSysNormal.c LintSysNoerr.c LintSysPseudo.c
DPSRCS+= LintSysNormal.c LintSysNoerr.c LintSysPseudo.c
d43 1
a43 13
CLEANFILES+= LintSysNormal.c LintSysNoerr.c LintSysPseudo.c

LintSysNormal.c: ${.CURDIR}/../libc/sys/makelintstub \
    ${DESTDIR}/usr/include/sys/syscall.h
	@@echo creating ${.TARGET}
	@@sh ${.CURDIR}/../libc/sys/makelintstub -o ${.TARGET} \
	    -s ${DESTDIR}/usr/include/sys/syscall.h ${ASM}

LintSysNoerr.c: ${.CURDIR}/../libc/sys/makelintstub \
    ${DESTDIR}/usr/include/sys/syscall.h
	@@echo creating ${.TARGET}
	@@sh ${.CURDIR}/../libc/sys/makelintstub -o ${.TARGET} -n \
	    -s ${DESTDIR}/usr/include/sys/syscall.h ${NOERR}
@


1.9.2.1
log
@Pull up revision 1.11 (requested by is):
  Do call graph profiling for system calls.  Fixes PR#4976.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.9 1999/02/24 15:10:17 drochner Exp $
d18 1
a18 1
	    ${CPP} -DGPROF ${CPPFLAGS:M-[ID]*} ${AINC} | ${AS} -o ${.TARGET}.o
@


1.8
log
@Generate PSEUDO-stubs for chown(), fchown() and lchown().  Also, change the
prefix of the actual syscall from "posix_" to "__posix_".
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.7 1997/11/06 22:34:03 cgd Exp $
d4 1
a4 1
.PATH: ${.CURDIR}/../libc/arch/${MACHINE_ARCH}/sys ${.CURDIR}/sys
d13 1
a13 1
${PPSEUDO}: ${.CURDIR}/../libc/arch/${MACHINE_ARCH}/SYS.h \
d22 1
a22 1
${SPSEUDO}: ${.CURDIR}/../libc/arch/${MACHINE_ARCH}/SYS.h \
d30 1
a30 1
${PSEUDO}: ${.CURDIR}/../libc/arch/${MACHINE_ARCH}/SYS.h \
@


1.7
log
@sh makelintstub, rather than trying to execute it directly
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.6 1997/11/05 05:46:21 thorpej Exp $
d6 2
a7 2
# stubs providing an entry "foo" but calling "posix_foo()"
PSEUDO=	rename.o
d17 1
a17 1
	    PSEUDO(${.PREFIX},${.PREFIX:S/^/posix_/})\n' | \
d26 1
a26 1
	    PSEUDO(${.PREFIX},${.PREFIX:S/^/posix_/})\n' | \
d34 1
a34 1
	    PSEUDO(${.PREFIX},${.PREFIX:S/^/posix_/})\n' | \
@


1.6
log
@Instead of creating a .ln for each syscall stub, create one (big) .ln
per class of syscall stubs.  This is much more efficient (though it's still
pretty inefficient).

This also fixes a problem with syscall.h and DESTDIR which was pretty
well buried in the old implementation.

From Chris Demetriou <cgd@@pa.dec.com>.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.5 1997/10/23 02:59:00 lukem Exp $
d48 1
a48 1
	@@${.CURDIR}/../libc/sys/makelintstub -o ${.TARGET} \
d54 1
a54 1
	@@${.CURDIR}/../libc/sys/makelintstub -o ${.TARGET} -n \
d60 1
a60 1
	@@${.CURDIR}/../libc/sys/makelintstub -o ${.TARGET} -p \
@


1.5
log
@use CPPFLAGS instead of CFLAGS
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.4 1997/05/31 21:21:53 cjs Exp $
a9 1
LPSEUDO=${PSEUDO:.o=.ln}
a11 2
LOBJS+=	${LPSEUDO}

d39 20
a58 1
${LPSEUDO}: ${DESTDIR}/usr/include/sys/syscall.h ${.CURDIR}/sys/makelintstub
d60 2
a61 2
	@@${.CURDIR}/sys/makelintstub ${.PREFIX:S/posix_//} ${.PREFIX} | \
	    ${LINT} -z ${LINTFLAGS} ${CPPFLAGS:M-[IDU]*} -i -o ${.TARGET} -
@


1.4
log
@Back out BUILDDIR and NOINSTALL changes.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.2 1997/05/24 03:29:22 jonathan Exp $
d21 1
a21 1
	    ${CPP} -DPROF ${CFLAGS:M-[ID]*} ${AINC} | ${AS} -o ${.TARGET}.o
d30 1
a30 1
	    ${CPP} ${CPPPICFLAGS} ${CFLAGS:M-[ID]*} ${AINC} | \
d38 1
a38 1
	    ${CPP} ${CFLAGS:M-[ID]*} ${AINC} | ${AS} -o ${.TARGET}.o
d45 1
a45 1
	    ${LINT} -z ${LINTFLAGS} ${CFLAGS:M-[IDU]*} -i -o ${.TARGET} -
@


1.4.2.1
log
@Update from trunk: fix lint syscall stub generation.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.4 1997/05/31 21:21:53 cjs Exp $
d10 1
d13 2
d42 1
a42 20
# Lint stubs for all automatically-generated assembly stubs (GENERATED)
LSRCS+=	LintSysNormal.c LintSysNoerr.c LintSysPseudo.c
DPSRCS+= LintSysNormal.c LintSysNoerr.c LintSysPseudo.c

CLEANFILES+= LintSysNormal.c LintSysNoerr.c LintSysPseudo.c

LintSysNormal.c: ${.CURDIR}/../libc/sys/makelintstub \
    ${DESTDIR}/usr/include/sys/syscall.h
	@@echo creating ${.TARGET}
	@@${.CURDIR}/../libc/sys/makelintstub -o ${.TARGET} \
	    -s ${DESTDIR}/usr/include/sys/syscall.h ${ASM}

LintSysNoerr.c: ${.CURDIR}/../libc/sys/makelintstub \
    ${DESTDIR}/usr/include/sys/syscall.h
	@@echo creating ${.TARGET}
	@@${.CURDIR}/../libc/sys/makelintstub -o ${.TARGET} -n \
	    -s ${DESTDIR}/usr/include/sys/syscall.h ${NOERR}

LintSysPseudo.c: ${.CURDIR}/../libc/sys/makelintstub \
    ${DESTDIR}/usr/include/sys/syscall.h
d44 2
a45 2
	@@${.CURDIR}/../libc/sys/makelintstub -o ${.TARGET} -p \
	    -s ${DESTDIR}/usr/include/sys/syscall.h ${PSEUDO}
@


1.4.2.2
log
@Pull rev 1.7 up from trunk (cgd)
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.4.2.1 1997/11/05 05:52:10 thorpej Exp $
d48 1
a48 1
	@@sh ${.CURDIR}/../libc/sys/makelintstub -o ${.TARGET} \
d54 1
a54 1
	@@sh ${.CURDIR}/../libc/sys/makelintstub -o ${.TARGET} -n \
d60 1
a60 1
	@@sh ${.CURDIR}/../libc/sys/makelintstub -o ${.TARGET} -p \
@


1.4.2.3
log
@sync with trunk (approved by thorpej)
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.7 1997/11/06 22:34:03 cgd Exp $
d18 1
a18 1
	    ${CPP} -DPROF ${CPPFLAGS:M-[ID]*} ${AINC} | ${AS} -o ${.TARGET}.o
d27 1
a27 1
	    ${CPP} ${CPPPICFLAGS} ${CPPFLAGS:M-[ID]*} ${AINC} | \
d35 1
a35 1
	    ${CPP} ${CPPFLAGS:M-[ID]*} ${AINC} | ${AS} -o ${.TARGET}.o
@


1.3
log
@DESTDIR -> BUILDDIR
@
text
@a2 2
.include <bsd.own.mk>	# for BUILDDIR

d17 1
a17 1
    ${BUILDDIR}/usr/include/sys/syscall.h
d26 1
a26 1
    ${BUILDDIR}/usr/include/sys/syscall.h
d34 1
a34 1
    ${BUILDDIR}/usr/include/sys/syscall.h
d42 1
a42 1
${LPSEUDO}: ${BUILDDIR}/usr/include/sys/syscall.h ${.CURDIR}/sys/makelintstub
@


1.2
log
@Use toolchain-driven PIC flags to build .so files from assembler source,
instead of inline tests on ${arch} and duplicate rules.
@
text
@d1 3
a3 1
#	$NetBSD: Makefile.inc,v 1.1 1997/05/18 20:14:22 kleink Exp $
d19 1
a19 1
    ${DESTDIR}/usr/include/sys/syscall.h
d28 1
a28 1
    ${DESTDIR}/usr/include/sys/syscall.h
d36 1
a36 1
    ${DESTDIR}/usr/include/sys/syscall.h
d44 1
a44 1
${LPSEUDO}: ${DESTDIR}/usr/include/sys/syscall.h ${.CURDIR}/sys/makelintstub
@


1.1
log
@Add POSIX compatibility library.
@
text
@d1 1
a1 1
#	$NetBSD$
a24 1
.if (${MACHINE_ARCH} != "alpha")
d30 2
a31 9
	    ${CPP} -DPIC ${CFLAGS:M-[ID]*} ${AINC} | ${AS} -k -o ${.TARGET}
.else
${SPSEUDO}: ${.CURDIR}/../libc/arch/${MACHINE_ARCH}/SYS.h \
    ${DESTDIR}/usr/include/sys/syscall.h
	@@echo creating ${.TARGET}
	@@printf '#include "SYS.h"\n \
	    PSEUDO(${.PREFIX},${.PREFIX:S/^/posix_/})\n' | \
	    ${CPP} -DPIC ${CFLAGS:M-[ID]*} ${AINC} | ${AS} -o ${.TARGET}
.endif
@
