head	1.17;
access;
symbols
	netbsd-11-0-RC4:1.17
	netbsd-11-0-RC3:1.17
	netbsd-11-0-RC2:1.17
	netbsd-11-0-RC1:1.17
	perseant-exfatfs-base-20250801:1.17
	netbsd-11:1.17.0.4
	netbsd-11-base:1.17
	netbsd-10-1-RELEASE:1.16
	perseant-exfatfs-base-20240630:1.17
	perseant-exfatfs:1.17.0.2
	perseant-exfatfs-base:1.17
	netbsd-8-3-RELEASE:1.15
	netbsd-9-4-RELEASE:1.15
	netbsd-10-0-RELEASE:1.16
	netbsd-10-0-RC6:1.16
	netbsd-10-0-RC5:1.16
	netbsd-10-0-RC4:1.16
	netbsd-10-0-RC3:1.16
	netbsd-10-0-RC2:1.16
	netbsd-10-0-RC1:1.16
	netbsd-10:1.16.0.2
	netbsd-10-base:1.16
	netbsd-9-3-RELEASE:1.15
	cjep_sun2x-base1:1.15
	cjep_sun2x:1.15.0.32
	cjep_sun2x-base:1.15
	cjep_staticlib_x-base1:1.15
	netbsd-9-2-RELEASE:1.15
	cjep_staticlib_x:1.15.0.30
	cjep_staticlib_x-base:1.15
	netbsd-9-1-RELEASE:1.15
	phil-wifi-20200421:1.15
	phil-wifi-20200411:1.15
	is-mlppp:1.15.0.28
	is-mlppp-base:1.15
	phil-wifi-20200406:1.15
	netbsd-8-2-RELEASE:1.15
	netbsd-9-0-RELEASE:1.15
	netbsd-9-0-RC2:1.15
	netbsd-9-0-RC1:1.15
	phil-wifi-20191119:1.15
	netbsd-9:1.15.0.26
	netbsd-9-base:1.15
	phil-wifi-20190609:1.15
	netbsd-8-1-RELEASE:1.15
	netbsd-8-1-RC1:1.15
	pgoyette-compat-merge-20190127:1.15
	pgoyette-compat-20190127:1.15
	pgoyette-compat-20190118:1.15
	pgoyette-compat-1226:1.15
	pgoyette-compat-1126:1.15
	pgoyette-compat-1020:1.15
	pgoyette-compat-0930:1.15
	pgoyette-compat-0906:1.15
	netbsd-7-2-RELEASE:1.15
	pgoyette-compat-0728:1.15
	netbsd-8-0-RELEASE:1.15
	phil-wifi:1.15.0.24
	phil-wifi-base:1.15
	pgoyette-compat-0625:1.15
	netbsd-8-0-RC2:1.15
	pgoyette-compat-0521:1.15
	pgoyette-compat-0502:1.15
	pgoyette-compat-0422:1.15
	netbsd-8-0-RC1:1.15
	pgoyette-compat-0415:1.15
	pgoyette-compat-0407:1.15
	pgoyette-compat-0330:1.15
	pgoyette-compat-0322:1.15
	pgoyette-compat-0315:1.15
	netbsd-7-1-2-RELEASE:1.15
	pgoyette-compat:1.15.0.22
	pgoyette-compat-base:1.15
	netbsd-7-1-1-RELEASE:1.15
	matt-nb8-mediatek:1.15.0.20
	matt-nb8-mediatek-base:1.15
	perseant-stdc-iso10646:1.15.0.18
	perseant-stdc-iso10646-base:1.15
	netbsd-8:1.15.0.16
	netbsd-8-base:1.15
	prg-localcount2-base3:1.15
	prg-localcount2-base2:1.15
	prg-localcount2-base1:1.15
	prg-localcount2:1.15.0.14
	prg-localcount2-base:1.15
	pgoyette-localcount-20170426:1.15
	bouyer-socketcan-base1:1.15
	pgoyette-localcount-20170320:1.15
	netbsd-7-1:1.15.0.12
	netbsd-7-1-RELEASE:1.15
	netbsd-7-1-RC2:1.15
	netbsd-7-nhusb-base-20170116:1.15
	bouyer-socketcan:1.15.0.10
	bouyer-socketcan-base:1.15
	pgoyette-localcount-20170107:1.15
	netbsd-7-1-RC1:1.15
	pgoyette-localcount-20161104:1.15
	netbsd-7-0-2-RELEASE:1.15
	localcount-20160914:1.15
	netbsd-7-nhusb:1.15.0.8
	netbsd-7-nhusb-base:1.15
	pgoyette-localcount-20160806:1.15
	pgoyette-localcount-20160726:1.15
	pgoyette-localcount:1.15.0.6
	pgoyette-localcount-base:1.15
	netbsd-7-0-1-RELEASE:1.15
	netbsd-7-0:1.15.0.4
	netbsd-7-0-RELEASE:1.15
	netbsd-7-0-RC3:1.15
	netbsd-7-0-RC2:1.15
	netbsd-7-0-RC1:1.15
	netbsd-5-2-3-RELEASE:1.13
	netbsd-5-1-5-RELEASE:1.13
	netbsd-6-0-6-RELEASE:1.14
	netbsd-6-1-5-RELEASE:1.14
	netbsd-7:1.15.0.2
	netbsd-7-base:1.15
	yamt-pagecache-base9:1.14
	yamt-pagecache-tag8:1.14
	netbsd-6-1-4-RELEASE:1.14
	netbsd-6-0-5-RELEASE:1.14
	tls-earlyentropy:1.14.0.20
	tls-earlyentropy-base:1.15
	riastradh-xf86-video-intel-2-7-1-pre-2-21-15:1.14
	riastradh-drm2-base3:1.14
	netbsd-6-1-3-RELEASE:1.14
	netbsd-6-0-4-RELEASE:1.14
	netbsd-5-2-2-RELEASE:1.13
	netbsd-5-1-4-RELEASE:1.13
	netbsd-6-1-2-RELEASE:1.14
	netbsd-6-0-3-RELEASE:1.14
	netbsd-5-2-1-RELEASE:1.13
	netbsd-5-1-3-RELEASE:1.13
	netbsd-6-1-1-RELEASE:1.14
	riastradh-drm2-base2:1.14
	riastradh-drm2-base1:1.14
	riastradh-drm2:1.14.0.14
	riastradh-drm2-base:1.14
	netbsd-6-1:1.14.0.18
	netbsd-6-0-2-RELEASE:1.14
	netbsd-6-1-RELEASE:1.14
	netbsd-6-1-RC4:1.14
	netbsd-6-1-RC3:1.14
	agc-symver:1.14.0.16
	agc-symver-base:1.14
	netbsd-6-1-RC2:1.14
	netbsd-6-1-RC1:1.14
	yamt-pagecache-base8:1.14
	netbsd-5-2:1.13.0.18
	netbsd-6-0-1-RELEASE:1.14
	yamt-pagecache-base7:1.14
	netbsd-5-2-RELEASE:1.13
	netbsd-5-2-RC1:1.13
	matt-nb6-plus-nbase:1.14
	yamt-pagecache-base6:1.14
	netbsd-6-0:1.14.0.12
	netbsd-6-0-RELEASE:1.14
	netbsd-6-0-RC2:1.14
	tls-maxphys:1.14.0.10
	tls-maxphys-base:1.15
	matt-nb6-plus:1.14.0.8
	matt-nb6-plus-base:1.14
	netbsd-6-0-RC1:1.14
	yamt-pagecache-base5:1.14
	yamt-pagecache-base4:1.14
	netbsd-6:1.14.0.6
	netbsd-6-base:1.14
	netbsd-5-1-2-RELEASE:1.13
	netbsd-5-1-1-RELEASE:1.13
	yamt-pagecache-base3:1.14
	yamt-pagecache-base2:1.14
	yamt-pagecache:1.14.0.4
	yamt-pagecache-base:1.14
	cherry-xenmp:1.14.0.2
	cherry-xenmp-base:1.14
	bouyer-quota2-nbase:1.13
	bouyer-quota2:1.13.0.16
	bouyer-quota2-base:1.13
	matt-mips64-premerge-20101231:1.13
	matt-nb5-mips64-premerge-20101231:1.13
	matt-nb5-pq3:1.13.0.14
	matt-nb5-pq3-base:1.13
	netbsd-5-1:1.13.0.12
	netbsd-5-1-RELEASE:1.13
	netbsd-5-1-RC4:1.13
	matt-nb5-mips64-k15:1.13
	netbsd-5-1-RC3:1.13
	netbsd-5-1-RC2:1.13
	netbsd-5-1-RC1:1.13
	netbsd-5-0-2-RELEASE:1.13
	matt-nb5-mips64-premerge-20091211:1.13
	matt-premerge-20091211:1.13
	matt-nb5-mips64-u2-k2-k4-k7-k8-k9:1.13
	matt-nb4-mips64-k7-u2a-k9b:1.13
	matt-nb5-mips64-u1-k1-k5:1.13
	matt-nb5-mips64:1.13.0.10
	netbsd-5-0-1-RELEASE:1.13
	jym-xensuspend-nbase:1.13
	netbsd-5-0:1.13.0.8
	netbsd-5-0-RELEASE:1.13
	netbsd-5-0-RC4:1.13
	netbsd-5-0-RC3:1.13
	netbsd-5-0-RC2:1.13
	jym-xensuspend:1.13.0.6
	jym-xensuspend-base:1.13
	netbsd-5-0-RC1:1.13
	christos-time_t-nbase:1.13
	christos-time_t:1.13.0.4
	christos-time_t-base:1.13
	netbsd-5:1.13.0.2
	netbsd-5-base:1.13
	matt-mips64-base2:1.12
	matt-mips64:1.12.0.24
	mjf-devfs2:1.12.0.22
	mjf-devfs2-base:1.12
	netbsd-4-0-1-RELEASE:1.12
	wrstuden-revivesa-base-3:1.12
	wrstuden-revivesa-base-2:1.12
	wrstuden-fixsa-newbase:1.12
	wrstuden-revivesa-base-1:1.12
	yamt-pf42-base4:1.12
	yamt-pf42-base3:1.12
	hpcarm-cleanup-nbase:1.12
	yamt-pf42-baseX:1.12
	yamt-pf42-base2:1.12
	wrstuden-revivesa:1.12.0.20
	wrstuden-revivesa-base:1.12
	yamt-pf42:1.12.0.18
	yamt-pf42-base:1.12
	keiichi-mipv6:1.12.0.16
	keiichi-mipv6-base:1.12
	matt-armv6-nbase:1.12
	matt-armv6-prevmlocking:1.12
	wrstuden-fixsa-base-1:1.12
	netbsd-4-0:1.12.0.14
	netbsd-4-0-RELEASE:1.12
	cube-autoconf:1.12.0.12
	cube-autoconf-base:1.12
	netbsd-4-0-RC5:1.12
	netbsd-4-0-RC4:1.12
	netbsd-4-0-RC3:1.12
	netbsd-4-0-RC2:1.12
	netbsd-4-0-RC1:1.12
	matt-armv6:1.12.0.10
	matt-armv6-base:1.12
	matt-mips64-base:1.12
	hpcarm-cleanup:1.12.0.8
	hpcarm-cleanup-base:1.12
	netbsd-3-1-1-RELEASE:1.9
	netbsd-3-0-3-RELEASE:1.9
	wrstuden-fixsa:1.12.0.6
	wrstuden-fixsa-base:1.12
	abandoned-netbsd-4-base:1.12
	abandoned-netbsd-4:1.12.0.2
	netbsd-3-1:1.9.0.12
	netbsd-3-1-RELEASE:1.9
	netbsd-3-0-2-RELEASE:1.9
	netbsd-3-1-RC4:1.9
	netbsd-3-1-RC3:1.9
	netbsd-3-1-RC2:1.9
	netbsd-3-1-RC1:1.9
	netbsd-4:1.12.0.4
	netbsd-4-base:1.12
	netbsd-3-0-1-RELEASE:1.9
	netbsd-3-0:1.9.0.10
	netbsd-3-0-RELEASE:1.9
	netbsd-3-0-RC6:1.9
	netbsd-3-0-RC5:1.9
	netbsd-3-0-RC4:1.9
	netbsd-3-0-RC3:1.9
	netbsd-3-0-RC2:1.9
	netbsd-3-0-RC1:1.9
	netbsd-2-0-3-RELEASE:1.9
	netbsd-2-1:1.9.0.8
	netbsd-2-1-RELEASE:1.9
	netbsd-2-1-RC6:1.9
	netbsd-2-1-RC5:1.9
	netbsd-2-1-RC4:1.9
	netbsd-2-1-RC3:1.9
	netbsd-2-1-RC2:1.9
	netbsd-2-1-RC1:1.9
	netbsd-2-0-2-RELEASE:1.9
	netbsd-3:1.9.0.6
	netbsd-3-base:1.9
	netbsd-2-0-1-RELEASE:1.9
	netbsd-2:1.9.0.4
	netbsd-2-base:1.9
	netbsd-2-0-RELEASE:1.9
	netbsd-2-0-RC5:1.9
	netbsd-2-0-RC4:1.9
	netbsd-2-0-RC3:1.9
	netbsd-2-0-RC2:1.9
	netbsd-2-0-RC1:1.9
	netbsd-2-0:1.9.0.2
	netbsd-2-0-base:1.9
	netbsd-1-6-PATCH002-RELEASE:1.6
	netbsd-1-6-PATCH002:1.6
	netbsd-1-6-PATCH002-RC4:1.6
	netbsd-1-6-PATCH002-RC3:1.6
	netbsd-1-6-PATCH002-RC2:1.6
	netbsd-1-6-PATCH002-RC1:1.6
	netbsd-1-6-PATCH001:1.6
	netbsd-1-6-PATCH001-RELEASE:1.6
	netbsd-1-6-PATCH001-RC3:1.6
	netbsd-1-6-PATCH001-RC2:1.6
	netbsd-1-6-PATCH001-RC1:1.6
	nathanw_sa_end:1.6.14.2
	nathanw_sa_before_merge:1.8
	fvdl_fs64_base:1.8
	nathanw_sa_base:1.8
	netbsd-1-6-RELEASE:1.6
	netbsd-1-6-RC3:1.6
	netbsd-1-6-RC2:1.6
	netbsd-1-6-RC1:1.6
	netbsd-1-6:1.6.0.16
	netbsd-1-6-base:1.6
	netbsd-1-5-PATCH003:1.6
	netbsd-1-5-PATCH002:1.6
	netbsd-1-5-PATCH001:1.6
	nathanw_sa:1.6.0.14
	netbsd-1-5-RELEASE:1.6
	netbsd-1-5-BETA2:1.6
	netbsd-1-5-BETA:1.6
	netbsd-1-4-PATCH003:1.6
	netbsd-1-5-ALPHA2:1.6
	netbsd-1-5:1.6.0.12
	netbsd-1-5-base:1.6
	minoura-xpg4dl:1.6.0.10
	minoura-xpg4dl-base:1.6
	netbsd-1-4-PATCH002:1.6
	wrstuden-devbsize-19991221:1.6
	wrstuden-devbsize:1.6.0.8
	wrstuden-devbsize-base:1.6
	comdex-fall-1999:1.6.0.6
	comdex-fall-1999-base:1.6
	netbsd-1-4-PATCH001:1.6
	netbsd-1-4-RELEASE:1.6
	netbsd-1-4:1.6.0.4
	netbsd-1-4-base:1.6
	netbsd-1-3-PATCH003:1.6
	netbsd-1-3-PATCH003-CANDIDATE2:1.6
	netbsd-1-3-PATCH003-CANDIDATE1:1.6
	netbsd-1-3-PATCH003-CANDIDATE0:1.6
	netbsd-1-3-PATCH002:1.6
	netbsd-1-3-PATCH001:1.6
	netbsd-1-3-RELEASE:1.6
	netbsd-1-3-BETA:1.6
	netbsd-1-3:1.6.0.2
	netbsd-1-3-base:1.6
	netbsd-1-2-PATCH001:1.4
	nsswitch:1.4.0.12
	ivory_soap2:1.4.0.8
	netbsd-1-2-RELEASE:1.4
	netbsd-1-2-BETA:1.4
	netbsd-1-2-base:1.4
	netbsd-1-2:1.4.0.10
	netbsd-1-1-PATCH001:1.4
	netbsd-1-1-RELEASE:1.4
	netbsd-1-1:1.4.0.6
	netbsd-1-1-base:1.4
	ivory_soap:1.4.0.4
	netbsd-1-0-PATCH06:1.4
	netbsd-1-0-PATCH05:1.4
	netbsd-1-0-PATCH04:1.4
	netbsd-1-0-PATCH03:1.4
	netbsd-1-0-PATCH02:1.4
	netbsd-1-0-PATCH1:1.4
	netbsd-1-0-PATCH0:1.4
	netbsd-1-0-RELEASE:1.4
	netbsd-1-0:1.4.0.2
	netbsd-1-0-base:1.4;
locks; strict;
comment	@# @;


1.17
date	2023.09.03.21.41.45;	author mrg;	state Exp;
branches;
next	1.16;
commitid	Qc7EQ4tSzdpl5nDE;

1.16
date	2021.10.31.22.24.35;	author thorpej;	state Exp;
branches;
next	1.15;
commitid	CpFE7Oz5H0UBV0fD;

1.15
date	2014.07.12.19.21.48;	author nakayama;	state Exp;
branches;
next	1.14;
commitid	fxUkTU1cnjnWF7Ix;

1.14
date	2011.04.12.03.35.47;	author mrg;	state Exp;
branches
	1.14.10.1
	1.14.20.1;
next	1.13;

1.13
date	2008.10.26.07.43.07;	author mrg;	state Exp;
branches
	1.13.4.1;
next	1.12;

1.12
date	2006.06.17.18.04.23;	author uwe;	state Exp;
branches;
next	1.11;

1.11
date	2005.10.15.22.11.22;	author uwe;	state Exp;
branches;
next	1.10;

1.10
date	2005.04.20.18.26.11;	author jmc;	state Exp;
branches;
next	1.9;

1.9
date	2003.10.12.14.42.03;	author pk;	state Exp;
branches;
next	1.8;

1.8
date	2002.10.27.18.45.11;	author chs;	state Exp;
branches;
next	1.7;

1.7
date	2002.07.10.04.29.09;	author thorpej;	state Exp;
branches;
next	1.6;

1.6
date	97.10.09.10.07.50;	author lukem;	state Exp;
branches
	1.6.14.1;
next	1.5;

1.5
date	96.11.18.22.37.28;	author pk;	state Exp;
branches;
next	1.4;

1.4
date	94.06.30.06.46.37;	author deraadt;	state Exp;
branches;
next	1.3;

1.3
date	93.12.08.13.30.16;	author pk;	state Exp;
branches;
next	1.2;

1.2
date	93.12.04.02.34.01;	author cgd;	state Exp;
branches;
next	1.1;

1.1
date	93.10.07.00.21.18;	author cgd;	state Exp;
branches;
next	;

1.14.10.1
date	2014.08.20.00.02.11;	author tls;	state Exp;
branches;
next	;
commitid	jTnpym9Qu0o4R1Nx;

1.14.20.1
date	2014.08.10.06.51.49;	author tls;	state Exp;
branches;
next	;
commitid	lXZyR8D6WjIWAMLx;

1.13.4.1
date	2008.10.26.07.43.07;	author mrg;	state dead;
branches;
next	1.13.4.2;

1.13.4.2
date	2008.10.26.07.43.08;	author mrg;	state Exp;
branches;
next	;

1.6.14.1
date	2002.08.01.03.28.05;	author nathanw;	state Exp;
branches;
next	1.6.14.2;

1.6.14.2
date	2002.11.11.22.21.52;	author nathanw;	state Exp;
branches;
next	;


desc
@@


1.17
log
@avoid array-bounds issues by using more complete types.

also, don't cast to a type that includes an extra, unused, member.

while here, replace the hard coded offsets in setjmp.S and some
asserts in longjmp.c with assym.h and shared structures for all
the movings parts, and asserts based upon those structures.

avoids GCC 12 warnings.
@
text
@#	$NetBSD: Makefile.inc,v 1.16 2021/10/31 22:24:35 thorpej Exp $

SRCS+=	__sigtramp2.S

CPPFLAGS.assym.h+=	-I${LIBCDIR}/arch/sparc/gen

.if ${MACHINE} != "sparc64"
# `source' files built from m4 source
# the name `div.o' is taken for the ANSI C `div' function, hence sdiv here
SRCS+=	rem.S sdiv.S udiv.S urem.S
CLEANFILES+=rem.S sdiv.S udiv.S urem.S

sdiv.S: ${LIBCDIR}/arch/sparc/gen/divrem.m4
	@@echo 'building ${.TARGET} from ${.ALLSRC}'
	@@rm -f ${.TARGET}
	@@(echo "define(NAME,\`.div')define(OP,\`div')define(S,\`true')"; \
	 cat ${.ALLSRC}) | ${TOOL_M4} > ${.TARGET}
	@@chmod 444 ${.TARGET}

udiv.S: ${LIBCDIR}/arch/sparc/gen/divrem.m4
	@@echo 'building ${.TARGET} from ${.ALLSRC}'
	@@rm -f ${.TARGET}
	@@(echo "define(NAME,\`.udiv')define(OP,\`div')define(S,\`false')"; \
	 cat ${.ALLSRC}) | ${TOOL_M4} > ${.TARGET}
	@@chmod 444 ${.TARGET}

rem.S: ${LIBCDIR}/arch/sparc/gen/divrem.m4
	@@echo 'building ${.TARGET} from ${.ALLSRC}'
	@@rm -f ${.TARGET}
	@@(echo "define(NAME,\`.rem')define(OP,\`rem')define(S,\`true')"; \
	 cat ${.ALLSRC}) | ${TOOL_M4} > ${.TARGET}
	@@chmod 444 ${.TARGET}

urem.S: ${LIBCDIR}/arch/sparc/gen/divrem.m4
	@@echo 'building ${.TARGET} from ${.ALLSRC}'
	@@rm -f ${.TARGET}
	@@(echo "define(NAME,\`.urem')define(OP,\`rem')define(S,\`false')"; \
	 cat ${.ALLSRC}) | ${TOOL_M4} > ${.TARGET}
	@@chmod 444 ${.TARGET}
.endif
@


1.16
log
@Tidy up how __sigaction14_sigtramp.c is added to SRCS.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.15 2014/07/12 19:21:48 nakayama Exp $
d5 2
@


1.15
log
@Include sparc_v8 library into sparc64 32-bit compat libc library.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.14 2011/04/12 03:35:47 mrg Exp $
d3 1
a3 1
SRCS+=	__sigaction14_sigtramp.c __sigtramp2.S
@


1.14
log
@rm -f ${.TARGET} before trying to > write to it; some how mine ended up
being mode 444 and the build failed.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.13 2008/10/26 07:43:07 mrg Exp $
d5 1
d38 1
@


1.14.10.1
log
@Rebase to HEAD as of a few days ago.
@
text
@d1 1
a1 1
#	$NetBSD$
a4 1
.if ${MACHINE} != "sparc64"
a36 1
.endif
@


1.14.20.1
log
@Rebase.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.15 2014/07/12 19:21:48 nakayama Exp $
a4 1
.if ${MACHINE} != "sparc64"
a36 1
.endif
@


1.13
log
@define and use LIBCDIR in terms of .CURDIR.  fixes compat/lib/libc build.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.12 2006/06/17 18:04:23 uwe Exp $
d12 1
d19 1
d26 1
d33 1
@


1.13.4.1
log
@file Makefile.inc was added on branch christos-time_t on 2008-10-26 07:43:08 +0000
@
text
@d1 32
@


1.13.4.2
log
@define and use LIBCDIR in terms of .CURDIR.  fixes compat/lib/libc build.
@
text
@a0 32
#	$NetBSD: Makefile.inc,v 1.13 2008/10/26 07:43:07 mrg Exp $

SRCS+=	__sigaction14_sigtramp.c __sigtramp2.S

# `source' files built from m4 source
# the name `div.o' is taken for the ANSI C `div' function, hence sdiv here
SRCS+=	rem.S sdiv.S udiv.S urem.S
CLEANFILES+=rem.S sdiv.S udiv.S urem.S

sdiv.S: ${LIBCDIR}/arch/sparc/gen/divrem.m4
	@@echo 'building ${.TARGET} from ${.ALLSRC}'
	@@(echo "define(NAME,\`.div')define(OP,\`div')define(S,\`true')"; \
	 cat ${.ALLSRC}) | ${TOOL_M4} > ${.TARGET}
	@@chmod 444 ${.TARGET}

udiv.S: ${LIBCDIR}/arch/sparc/gen/divrem.m4
	@@echo 'building ${.TARGET} from ${.ALLSRC}'
	@@(echo "define(NAME,\`.udiv')define(OP,\`div')define(S,\`false')"; \
	 cat ${.ALLSRC}) | ${TOOL_M4} > ${.TARGET}
	@@chmod 444 ${.TARGET}

rem.S: ${LIBCDIR}/arch/sparc/gen/divrem.m4
	@@echo 'building ${.TARGET} from ${.ALLSRC}'
	@@(echo "define(NAME,\`.rem')define(OP,\`rem')define(S,\`true')"; \
	 cat ${.ALLSRC}) | ${TOOL_M4} > ${.TARGET}
	@@chmod 444 ${.TARGET}

urem.S: ${LIBCDIR}/arch/sparc/gen/divrem.m4
	@@echo 'building ${.TARGET} from ${.ALLSRC}'
	@@(echo "define(NAME,\`.urem')define(OP,\`rem')define(S,\`false')"; \
	 cat ${.ALLSRC}) | ${TOOL_M4} > ${.TARGET}
	@@chmod 444 ${.TARGET}
@


1.12
log
@G/c KMSRCS and KMINCLUDES now that we have common/lib/libc
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.11 2005/10/15 22:11:22 uwe Exp $
d10 1
a10 1
sdiv.S: ${.CURDIR}/arch/sparc/gen/divrem.m4
d16 1
a16 1
udiv.S: ${.CURDIR}/arch/sparc/gen/divrem.m4
d22 1
a22 1
rem.S: ${.CURDIR}/arch/sparc/gen/divrem.m4
d28 1
a28 1
urem.S: ${.CURDIR}/arch/sparc/gen/divrem.m4
@


1.11
log
@Switch sparc to the new compat code layout.
@
text
@d1 1
a1 6
#	$NetBSD: Makefile.inc,v 1.10 2005/04/20 18:26:11 jmc Exp $

KMINCLUDES= arch/sparc/SYS.h
KMSRCS=	bzero.S ffs.S strlen.S htonl.S htons.S \
	ntohl.S ntohs.S divrem.m4 \
	mul.S saveregs.S umul.S
@


1.10
log
@Don't use 'm4' here. Use $TOOL_M4 instead.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.9 2003/10/12 14:42:03 pk Exp $
d8 1
a8 1
SRCS+=	__sigaction14_sigtramp.c __sigtramp1.S __sigtramp2.S
@


1.9
log
@SIGINFO __sigaction & trampoline code.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.8 2002/10/27 18:45:11 chs Exp $
d18 1
a18 1
	 cat ${.ALLSRC}) | m4 > ${.TARGET}
d24 1
a24 1
	 cat ${.ALLSRC}) | m4 > ${.TARGET}
d30 1
a30 1
	 cat ${.ALLSRC}) | m4 > ${.TARGET}
d36 1
a36 1
	 cat ${.ALLSRC}) | m4 > ${.TARGET}
@


1.8
log
@remove setjmp/longjmp from libkern, they're not used.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.7 2002/07/10 04:29:09 thorpej Exp $
d8 1
a8 1
SRCS+=	__sigaction14_sigtramp.c __sigtramp1.S
@


1.7
log
@Enable the libc-provided signal trampoline.  The old __sigaction14
entry point has been replaced by the new __sigaction14() which is a
wrapper around the __sigaction_sigtramp system call (which is itself
not directly exposed outside of libc).

No shared library version change is necessary; no new symbols
are exposed outside of libc.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.6 1997/10/09 10:07:50 lukem Exp $
d6 1
a6 1
	_setjmp.S mul.S saveregs.S setjmp.S umul.S
@


1.6
log
@rcsid police
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.5 1996/11/18 22:37:28 pk Exp $
d7 2
@


1.6.14.1
log
@Catch up to -current.
@
text
@d1 1
a1 1
#	$NetBSD$
a6 2

SRCS+=	__sigaction14_sigtramp.c __sigtramp1.S
@


1.6.14.2
log
@Catch up to -current
@
text
@d6 1
a6 1
	mul.S saveregs.S umul.S
@


1.5
log
@Remove reference to DEFS.h
@
text
@d1 1
a1 1
#	$Id: Makefile.inc,v 1.4 1994/06/30 06:46:37 deraadt Exp $
@


1.4
log
@set KMSRCS & friends
@
text
@d1 1
a1 1
#	$Id: Makefile.inc,v 1.3 1993/12/08 13:30:16 pk Exp $
d3 1
a3 1
KMINCLUDES= arch/sparc/SYS.h arch/sparc/DEFS.h
@


1.3
log
@Fix location of sources -> arch/sparc
@
text
@d1 6
a6 1
#	$Id: Makefile.inc,v 1.2 1993/12/04 02:34:01 cgd Exp $
@


1.2
log
@update for .S and MACHINE_ARCH
@
text
@d1 1
a1 1
#	$Id: Makefile.inc,v 1.1 1993/10/07 00:21:18 cgd Exp $
d8 1
a8 1
sdiv.S: ${.CURDIR}/sparc/gen/divrem.m4
d14 1
a14 1
udiv.S: ${.CURDIR}/sparc/gen/divrem.m4
d20 1
a20 1
rem.S: ${.CURDIR}/sparc/gen/divrem.m4
d26 1
a26 1
urem.S: ${.CURDIR}/sparc/gen/divrem.m4
@


1.1
log
@make an arch directory in libc, and move all machine dirs into it
@
text
@d1 1
a1 1
#	$Id: Makefile.inc,v 1.1 1993/09/05 22:14:56 deraadt Exp $
d5 2
a6 2
SRCS+=	rem.s sdiv.s udiv.s urem.s
CLEANFILES+=rem.s sdiv.s udiv.s urem.s
d8 1
a8 1
sdiv.s: ${.CURDIR}/sparc/gen/divrem.m4
d14 1
a14 1
udiv.s: ${.CURDIR}/sparc/gen/divrem.m4
d20 1
a20 1
rem.s: ${.CURDIR}/sparc/gen/divrem.m4
d26 1
a26 1
urem.s: ${.CURDIR}/sparc/gen/divrem.m4
@
