head	1.21;
access;
symbols
	netbsd-11-0-RC4:1.21
	netbsd-11-0-RC3:1.21
	netbsd-11-0-RC2:1.21
	netbsd-11-0-RC1:1.21
	perseant-exfatfs-base-20250801:1.21
	netbsd-11:1.21.0.6
	netbsd-11-base:1.21
	netbsd-10-1-RELEASE:1.21
	perseant-exfatfs-base-20240630:1.21
	perseant-exfatfs:1.21.0.4
	perseant-exfatfs-base:1.21
	netbsd-8-3-RELEASE:1.20
	netbsd-9-4-RELEASE:1.20
	netbsd-10-0-RELEASE:1.21
	netbsd-10-0-RC6:1.21
	netbsd-10-0-RC5:1.21
	netbsd-10-0-RC4:1.21
	netbsd-10-0-RC3:1.21
	netbsd-10-0-RC2:1.21
	netbsd-10-0-RC1:1.21
	netbsd-10:1.21.0.2
	netbsd-10-base:1.21
	netbsd-9-3-RELEASE:1.20
	cjep_sun2x-base1:1.20
	cjep_sun2x:1.20.0.24
	cjep_sun2x-base:1.20
	cjep_staticlib_x-base1:1.20
	netbsd-9-2-RELEASE:1.20
	cjep_staticlib_x:1.20.0.22
	cjep_staticlib_x-base:1.20
	netbsd-9-1-RELEASE:1.20
	phil-wifi-20200421:1.20
	phil-wifi-20200411:1.20
	is-mlppp:1.20.0.20
	is-mlppp-base:1.20
	phil-wifi-20200406:1.20
	netbsd-8-2-RELEASE:1.20
	netbsd-9-0-RELEASE:1.20
	netbsd-9-0-RC2:1.20
	netbsd-9-0-RC1:1.20
	phil-wifi-20191119:1.20
	netbsd-9:1.20.0.18
	netbsd-9-base:1.20
	phil-wifi-20190609:1.20
	netbsd-8-1-RELEASE:1.20
	netbsd-8-1-RC1:1.20
	pgoyette-compat-merge-20190127:1.20
	pgoyette-compat-20190127:1.20
	pgoyette-compat-20190118:1.20
	pgoyette-compat-1226:1.20
	pgoyette-compat-1126:1.20
	pgoyette-compat-1020:1.20
	pgoyette-compat-0930:1.20
	pgoyette-compat-0906:1.20
	netbsd-7-2-RELEASE:1.19
	pgoyette-compat-0728:1.20
	netbsd-8-0-RELEASE:1.20
	phil-wifi:1.20.0.16
	phil-wifi-base:1.20
	pgoyette-compat-0625:1.20
	netbsd-8-0-RC2:1.20
	pgoyette-compat-0521:1.20
	pgoyette-compat-0502:1.20
	pgoyette-compat-0422:1.20
	netbsd-8-0-RC1:1.20
	pgoyette-compat-0415:1.20
	pgoyette-compat-0407:1.20
	pgoyette-compat-0330:1.20
	pgoyette-compat-0322:1.20
	pgoyette-compat-0315:1.20
	netbsd-7-1-2-RELEASE:1.19
	pgoyette-compat:1.20.0.14
	pgoyette-compat-base:1.20
	netbsd-7-1-1-RELEASE:1.19
	matt-nb8-mediatek:1.20.0.12
	matt-nb8-mediatek-base:1.20
	perseant-stdc-iso10646:1.20.0.10
	perseant-stdc-iso10646-base:1.20
	netbsd-8:1.20.0.8
	netbsd-8-base:1.20
	prg-localcount2-base3:1.20
	prg-localcount2-base2:1.20
	prg-localcount2-base1:1.20
	prg-localcount2:1.20.0.6
	prg-localcount2-base:1.20
	pgoyette-localcount-20170426:1.20
	bouyer-socketcan-base1:1.20
	pgoyette-localcount-20170320:1.20
	netbsd-7-1:1.19.0.16
	netbsd-7-1-RELEASE:1.19
	netbsd-7-1-RC2:1.19
	netbsd-7-nhusb-base-20170116:1.19
	bouyer-socketcan:1.20.0.4
	bouyer-socketcan-base:1.20
	pgoyette-localcount-20170107:1.20
	netbsd-7-1-RC1:1.19
	pgoyette-localcount-20161104:1.20
	netbsd-7-0-2-RELEASE:1.19
	localcount-20160914:1.20
	netbsd-7-nhusb:1.19.0.14
	netbsd-7-nhusb-base:1.19
	pgoyette-localcount-20160806:1.20
	pgoyette-localcount-20160726:1.20
	pgoyette-localcount:1.20.0.2
	pgoyette-localcount-base:1.20
	netbsd-7-0-1-RELEASE:1.19
	netbsd-7-0:1.19.0.12
	netbsd-7-0-RELEASE:1.19
	netbsd-7-0-RC3:1.19
	netbsd-7-0-RC2:1.19
	netbsd-7-0-RC1:1.19
	netbsd-5-2-3-RELEASE:1.12
	netbsd-5-1-5-RELEASE:1.12
	netbsd-6-0-6-RELEASE:1.17
	netbsd-6-1-5-RELEASE:1.17
	netbsd-7:1.19.0.10
	netbsd-7-base:1.19
	yamt-pagecache-base9:1.19
	yamt-pagecache-tag8:1.17
	netbsd-6-1-4-RELEASE:1.17
	netbsd-6-0-5-RELEASE:1.17
	tls-earlyentropy:1.19.0.8
	tls-earlyentropy-base:1.19
	riastradh-xf86-video-intel-2-7-1-pre-2-21-15:1.19
	riastradh-drm2-base3:1.19
	netbsd-6-1-3-RELEASE:1.17
	netbsd-6-0-4-RELEASE:1.17
	netbsd-5-2-2-RELEASE:1.12
	netbsd-5-1-4-RELEASE:1.12
	netbsd-6-1-2-RELEASE:1.17
	netbsd-6-0-3-RELEASE:1.17
	netbsd-5-2-1-RELEASE:1.12
	netbsd-5-1-3-RELEASE:1.12
	netbsd-6-1-1-RELEASE:1.17
	riastradh-drm2-base2:1.19
	riastradh-drm2-base1:1.19
	riastradh-drm2:1.19.0.4
	riastradh-drm2-base:1.19
	netbsd-6-1:1.17.0.10
	netbsd-6-0-2-RELEASE:1.17
	netbsd-6-1-RELEASE:1.17
	netbsd-6-1-RC4:1.17
	netbsd-6-1-RC3:1.17
	agc-symver:1.19.0.6
	agc-symver-base:1.19
	netbsd-6-1-RC2:1.17
	netbsd-6-1-RC1:1.17
	yamt-pagecache-base8:1.19
	netbsd-5-2:1.12.0.16
	netbsd-6-0-1-RELEASE:1.17
	yamt-pagecache-base7:1.19
	netbsd-5-2-RELEASE:1.12
	netbsd-5-2-RC1:1.12
	matt-nb6-plus-nbase:1.17
	yamt-pagecache-base6:1.19
	netbsd-6-0:1.17.0.8
	netbsd-6-0-RELEASE:1.17
	netbsd-6-0-RC2:1.17
	tls-maxphys:1.19.0.2
	tls-maxphys-base:1.19
	matt-nb6-plus:1.17.0.6
	matt-nb6-plus-base:1.17
	netbsd-6-0-RC1:1.17
	yamt-pagecache-base5:1.19
	yamt-pagecache-base4:1.19
	netbsd-6:1.17.0.4
	netbsd-6-base:1.17
	netbsd-5-1-2-RELEASE:1.12
	netbsd-5-1-1-RELEASE:1.12
	yamt-pagecache-base3:1.17
	yamt-pagecache-base2:1.17
	yamt-pagecache:1.17.0.2
	yamt-pagecache-base:1.17
	cherry-xenmp:1.15.0.2
	cherry-xenmp-base:1.15
	bouyer-quota2-nbase:1.13
	bouyer-quota2:1.13.0.2
	bouyer-quota2-base:1.13
	matt-mips64-premerge-20101231:1.13
	matt-nb5-mips64-premerge-20101231:1.12
	matt-nb5-pq3:1.12.0.14
	matt-nb5-pq3-base:1.12
	netbsd-5-1:1.12.0.12
	netbsd-5-1-RELEASE:1.12
	netbsd-5-1-RC4:1.12
	matt-nb5-mips64-k15:1.12
	netbsd-5-1-RC3:1.12
	netbsd-5-1-RC2:1.12
	netbsd-5-1-RC1:1.12
	netbsd-5-0-2-RELEASE:1.12
	matt-nb5-mips64-premerge-20091211:1.12
	matt-premerge-20091211:1.13
	matt-nb5-mips64-u2-k2-k4-k7-k8-k9:1.12
	matt-nb4-mips64-k7-u2a-k9b:1.12
	matt-nb5-mips64-u1-k1-k5:1.12
	matt-nb5-mips64:1.12.0.10
	netbsd-5-0-1-RELEASE:1.12
	jym-xensuspend-nbase:1.12
	netbsd-5-0:1.12.0.8
	netbsd-5-0-RELEASE:1.12
	netbsd-5-0-RC4:1.12
	netbsd-5-0-RC3:1.12
	netbsd-5-0-RC2:1.12
	jym-xensuspend:1.12.0.6
	jym-xensuspend-base:1.12
	netbsd-5-0-RC1:1.12
	christos-time_t-nbase:1.12
	christos-time_t:1.12.0.4
	christos-time_t-base:1.12
	netbsd-5:1.12.0.2
	netbsd-5-base:1.12
	matt-mips64-base2:1.11
	matt-mips64:1.11.0.24
	mjf-devfs2:1.11.0.22
	mjf-devfs2-base:1.11
	netbsd-4-0-1-RELEASE:1.11
	wrstuden-revivesa-base-3:1.11
	wrstuden-revivesa-base-2:1.11
	wrstuden-fixsa-newbase:1.11
	wrstuden-revivesa-base-1:1.11
	yamt-pf42-base4:1.11
	yamt-pf42-base3:1.11
	hpcarm-cleanup-nbase:1.11
	yamt-pf42-baseX:1.11
	yamt-pf42-base2:1.11
	wrstuden-revivesa:1.11.0.20
	wrstuden-revivesa-base:1.11
	yamt-pf42:1.11.0.18
	yamt-pf42-base:1.11
	keiichi-mipv6:1.11.0.16
	keiichi-mipv6-base:1.11
	matt-armv6-nbase:1.11
	matt-armv6-prevmlocking:1.11
	wrstuden-fixsa-base-1:1.11
	netbsd-4-0:1.11.0.14
	netbsd-4-0-RELEASE:1.11
	cube-autoconf:1.11.0.12
	cube-autoconf-base:1.11
	netbsd-4-0-RC5:1.11
	netbsd-4-0-RC4:1.11
	netbsd-4-0-RC3:1.11
	netbsd-4-0-RC2:1.11
	netbsd-4-0-RC1:1.11
	matt-armv6:1.11.0.10
	matt-armv6-base:1.11
	matt-mips64-base:1.11
	hpcarm-cleanup:1.11.0.8
	hpcarm-cleanup-base:1.11
	netbsd-3-1-1-RELEASE:1.8
	netbsd-3-0-3-RELEASE:1.8
	wrstuden-fixsa:1.11.0.6
	wrstuden-fixsa-base:1.11
	abandoned-netbsd-4-base:1.11
	abandoned-netbsd-4:1.11.0.2
	netbsd-3-1:1.8.0.12
	netbsd-3-1-RELEASE:1.8
	netbsd-3-0-2-RELEASE:1.8
	netbsd-3-1-RC4:1.8
	netbsd-3-1-RC3:1.8
	netbsd-3-1-RC2:1.8
	netbsd-3-1-RC1:1.8
	netbsd-4:1.11.0.4
	netbsd-4-base:1.11
	netbsd-3-0-1-RELEASE:1.8
	netbsd-3-0:1.8.0.10
	netbsd-3-0-RELEASE:1.8
	netbsd-3-0-RC6:1.8
	netbsd-3-0-RC5:1.8
	netbsd-3-0-RC4:1.8
	netbsd-3-0-RC3:1.8
	netbsd-3-0-RC2:1.8
	netbsd-3-0-RC1:1.8
	netbsd-2-0-3-RELEASE:1.8
	netbsd-2-1:1.8.0.8
	netbsd-2-1-RELEASE:1.8
	netbsd-2-1-RC6:1.8
	netbsd-2-1-RC5:1.8
	netbsd-2-1-RC4:1.8
	netbsd-2-1-RC3:1.8
	netbsd-2-1-RC2:1.8
	netbsd-2-1-RC1:1.8
	netbsd-2-0-2-RELEASE:1.8
	netbsd-3:1.8.0.6
	netbsd-3-base:1.8
	netbsd-2-0-1-RELEASE:1.8
	netbsd-2:1.8.0.4
	netbsd-2-base:1.8
	netbsd-2-0-RELEASE:1.8
	netbsd-2-0-RC5:1.8
	netbsd-2-0-RC4:1.8
	netbsd-2-0-RC3:1.8
	netbsd-2-0-RC2:1.8
	netbsd-2-0-RC1:1.8
	netbsd-2-0:1.8.0.2
	netbsd-2-0-base:1.8
	netbsd-1-6-PATCH002-RELEASE:1.4.2.1
	netbsd-1-6-PATCH002:1.4.2.1
	netbsd-1-6-PATCH002-RC4:1.4.2.1
	netbsd-1-6-PATCH002-RC3:1.4.2.1
	netbsd-1-6-PATCH002-RC2:1.4.2.1
	netbsd-1-6-PATCH002-RC1:1.4.2.1
	netbsd-1-6-PATCH001:1.4.2.1
	netbsd-1-6-PATCH001-RELEASE:1.4.2.1
	netbsd-1-6-PATCH001-RC3:1.4.2.1
	netbsd-1-6-PATCH001-RC2:1.4.2.1
	netbsd-1-6-PATCH001-RC1:1.4.2.1
	nathanw_sa_end:1.1.12.6
	nathanw_sa_before_merge:1.7
	fvdl_fs64_base:1.7
	nathanw_sa_base:1.7
	netbsd-1-6-RELEASE:1.4.2.1
	netbsd-1-6-RC3:1.4.2.1
	netbsd-1-6-RC2:1.4.2.1
	netbsd-1-6-RC1:1.4.2.1
	netbsd-1-6:1.4.0.2
	netbsd-1-6-base:1.4
	netbsd-1-5-PATCH003:1.1
	netbsd-1-5-PATCH002:1.1
	netbsd-1-5-PATCH001:1.1
	nathanw_sa:1.1.0.12
	netbsd-1-5-RELEASE:1.1
	netbsd-1-5-BETA2:1.1
	netbsd-1-5-BETA:1.1
	netbsd-1-4-PATCH003:1.1
	netbsd-1-5-ALPHA2:1.1
	netbsd-1-5:1.1.0.10
	netbsd-1-5-base:1.1
	minoura-xpg4dl:1.1.0.8
	minoura-xpg4dl-base:1.1
	netbsd-1-4-PATCH002:1.1
	wrstuden-devbsize-19991221:1.1
	wrstuden-devbsize:1.1.0.6
	wrstuden-devbsize-base:1.1
	comdex-fall-1999:1.1.0.4
	comdex-fall-1999-base:1.1
	netbsd-1-4-PATCH001:1.1
	netbsd-1-4-RELEASE:1.1
	netbsd-1-4:1.1.0.2
	netbsd-1-4-base:1.1;
locks; strict;
comment	@# @;


1.21
date	2021.10.31.22.24.36;	author thorpej;	state Exp;
branches;
next	1.20;
commitid	CpFE7Oz5H0UBV0fD;

1.20
date	2015.04.15.19.13.46;	author mrg;	state Exp;
branches;
next	1.19;
commitid	1Gj8YOlUlCiaJIhy;

1.19
date	2012.03.21.14.10.47;	author christos;	state Exp;
branches;
next	1.18;

1.18
date	2012.03.20.21.37.19;	author martin;	state Exp;
branches;
next	1.17;

1.17
date	2011.07.10.04.52.23;	author matt;	state Exp;
branches;
next	1.16;

1.16
date	2011.06.22.05.23.53;	author mrg;	state Exp;
branches;
next	1.15;

1.15
date	2011.03.22.12.24.53;	author martin;	state Exp;
branches;
next	1.14;

1.14
date	2011.03.06.10.32.47;	author martin;	state Exp;
branches;
next	1.13;

1.13
date	2009.12.06.07.05.50;	author uebayasi;	state Exp;
branches;
next	1.12;

1.12
date	2008.10.26.07.43.07;	author mrg;	state Exp;
branches
	1.12.4.1;
next	1.11;

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

1.10
date	2005.10.16.04.41.34;	author christos;	state Exp;
branches;
next	1.9;

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

1.8
date	2003.10.27.00.46.05;	author christos;	state Exp;
branches;
next	1.7;

1.7
date	2002.10.27.18.45.12;	author chs;	state Exp;
branches;
next	1.6;

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

1.5
date	2002.05.22.10.20.20;	author bjh21;	state Exp;
branches;
next	1.4;

1.4
date	2002.03.04.21.26.39;	author jmc;	state Exp;
branches
	1.4.2.1;
next	1.3;

1.3
date	2002.02.05.07.54.01;	author jmc;	state Exp;
branches;
next	1.2;

1.2
date	2001.12.19.21.17.59;	author tv;	state Exp;
branches;
next	1.1;

1.1
date	98.09.11.04.56.19;	author eeh;	state Exp;
branches
	1.1.12.1;
next	;

1.12.4.1
date	2008.10.26.07.43.07;	author mrg;	state dead;
branches;
next	1.12.4.2;

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

1.4.2.1
date	2002.05.24.22.28.22;	author perry;	state Exp;
branches;
next	;

1.1.12.1
date	2002.01.28.20.50.16;	author nathanw;	state Exp;
branches;
next	1.1.12.2;

1.1.12.2
date	2002.03.08.21.34.52;	author nathanw;	state Exp;
branches;
next	1.1.12.3;

1.1.12.3
date	2002.03.22.20.41.54;	author nathanw;	state Exp;
branches;
next	1.1.12.4;

1.1.12.4
date	2002.06.21.18.18.02;	author nathanw;	state Exp;
branches;
next	1.1.12.5;

1.1.12.5
date	2002.08.01.03.28.06;	author nathanw;	state Exp;
branches;
next	1.1.12.6;

1.1.12.6
date	2002.11.11.22.21.53;	author nathanw;	state Exp;
branches;
next	;


desc
@@


1.21
log
@Tidy up how __sigaction14_sigtramp.c is added to SRCS.
@
text
@#	$NetBSD: Makefile.inc,v 1.20 2015/04/15 19:13:46 mrg Exp $

SRCS+=	__sigtramp2.S

# Some assembler files use v9a extensions.
AFLAGS+= -Wa,-Av9a

.PATH: ${ARCHDIR}/softfloat
SRCS+= qp.c
CPPFLAGS+=	-DSOFTFLOATSPARC64_FOR_GCC -DEXCEPTIONS_WITH_SOFTFLOAT
CPPFLAGS+=	-DSOFTFLOAT_NEED_FIXUNS
.if ${MKSOFTFLOAT} != "no"
.include <softfloat/Makefile.inc>
.else
#
# Can't directly use softfloat.c due to .PATH issues with the other source
# in softfloat. Just provide a wrapper which pulls it in via a #include
SRCS.softfloat= softfloat-wrapper.c
SRCS+= ${SRCS.softfloat}
CPPFLAGS+=      -I${ARCHDIR}/softfloat -I${.CURDIR}/softfloat \
		-I${.CURDIR}/softfloat/bits64

.endif
@


1.20
log
@remove various HAVE_GCC=45 fragments.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.19 2012/03/21 14:10:47 christos Exp $
d3 1
a3 1
SRCS+=	__sigaction14_sigtramp.c __sigtramp2.S
@


1.19
log
@do not need lint overrides anymore
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.18 2012/03/20 21:37:19 martin Exp $
a22 4
.if ${HAVE_GCC} == 45
COPTS.softfloat-wrapper.c+=	-Wno-enum-compare
.endif

@


1.18
log
@We do not care about portability when instantiating softfloats for our
concrete environment - add appropriate lintflags.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.17 2011/07/10 04:52:23 matt Exp $
a26 2
LINTFLAGS.softfloat-wrapper.c+=	-X117,132,218,259,298

@


1.17
log
@Fix so that float128_to_uint64_round_to_zero is defined for sparc64.
(isn't tha a namespace violation?)
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.16 2011/06/22 05:23:53 mrg Exp $
d27 2
@


1.16
log
@apply some -Wno-error/-Wno-enum-compare/-Wno-array-bounds.

this should be looked at more closely.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.15 2011/03/22 12:24:53 martin Exp $
d11 1
@


1.15
log
@Remove the sparc-v7 compatibility wrapper functions (.div, .mul, ... .urem),
the compiler never generates (or did generate in the past) 64bit code to call
them, and they are still present in our 32bit compat library.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.14 2011/03/06 10:32:47 martin Exp $
d21 5
@


1.14
log
@While we use hardware (for float and double), but cooperate with softfloat
(to do long double), we need to not only handle the hardware exception
mask and cummulated flags, but also update/query the softfloat variables.
Since this may go away sometime (to make us psABI compliant), ifdef it
properly.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.13 2009/12/06 07:05:50 uebayasi Exp $
a7 29
# `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/sparc64/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/sparc64/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/sparc64/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/sparc64/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.13
log
@Set ${SRCS.softfloat}.
@
text
@d1 1
a1 1
#	$NetBSD$
d39 1
a39 1
CPPFLAGS+=	-DSOFTFLOATSPARC64_FOR_GCC
@


1.12
log
@define and use LIBCDIR in terms of .CURDIR.  fixes compat/lib/libc build.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.11 2006/06/17 18:04:23 uwe Exp $
d46 2
a47 1
SRCS+= softfloat-wrapper.c
@


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


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

SRCS+=	__sigaction14_sigtramp.c __sigtramp2.S

# Some assembler files use v9a extensions.
AFLAGS+= -Wa,-Av9a

# `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/sparc64/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/sparc64/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/sparc64/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/sparc64/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}

.PATH: ${ARCHDIR}/softfloat
SRCS+= qp.c
CPPFLAGS+=	-DSOFTFLOATSPARC64_FOR_GCC
.if ${MKSOFTFLOAT} != "no"
.include <softfloat/Makefile.inc>
.else
#
# Can't directly use softfloat.c due to .PATH issues with the other source
# in softfloat. Just provide a wrapper which pulls it in via a #include
SRCS+= softfloat-wrapper.c
CPPFLAGS+=      -I${ARCHDIR}/softfloat -I${.CURDIR}/softfloat \
		-I${.CURDIR}/softfloat/bits64
.endif
@


1.11
log
@G/c KMSRCS and KMINCLUDES now that we have common/lib/libc
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.10 2005/10/16 04:41:34 christos Exp $
d13 1
a13 1
sdiv.S: ${.CURDIR}/arch/sparc64/gen/divrem.m4
d19 1
a19 1
udiv.S: ${.CURDIR}/arch/sparc64/gen/divrem.m4
d25 1
a25 1
rem.S: ${.CURDIR}/arch/sparc64/gen/divrem.m4
d31 1
a31 1
urem.S: ${.CURDIR}/arch/sparc64/gen/divrem.m4
@


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

KMINCLUDES= arch/sparc64/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.9
log
@Don't use 'm4' here. Use $TOOL_M4 instead.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.8 2003/10/27 00:46:05 christos Exp $
d8 1
a8 1
SRCS+=	__sigaction14_sigtramp.c __sigtramp1.S __sigtramp2.S
@


1.8
log
@Add __sigtramp2
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.7 2002/10/27 18:45:12 chs Exp $
d21 1
a21 1
	 cat ${.ALLSRC}) | m4 > ${.TARGET}
d27 1
a27 1
	 cat ${.ALLSRC}) | m4 > ${.TARGET}
d33 1
a33 1
	 cat ${.ALLSRC}) | m4 > ${.TARGET}
d39 1
a39 1
	 cat ${.ALLSRC}) | m4 > ${.TARGET}
@


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


1.6
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.5 2002/05/22 10:20:20 bjh21 Exp $
d6 1
a6 1
	_setjmp.S mul.S saveregs.S setjmp.S umul.S
@


1.5
log
@Adapt for recent lib/libc/softfloat changes.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.4 2002/03/04 21:26:39 jmc Exp $
d7 2
@


1.4
log
@Move names for softfloat lib that _Qp functions call into _softfloat_
namespace
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.3 2002/02/05 07:54:01 jmc Exp $
d50 2
a51 1
CPPFLAGS+=      -I${ARCHDIR}/softfloat -I${.CURDIR}/softfloat
@


1.4.2.1
log
@resolve 1.6 pullup ticket #16 by bjh21
necessary to get sparc64 builds working again.
pulls up revision 1.5
Original commit message:

> Adapt for recent lib/libc/softfloat changes.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.4 2002/03/04 21:26:39 jmc Exp $
d50 1
a50 2
CPPFLAGS+=      -I${ARCHDIR}/softfloat -I${.CURDIR}/softfloat \
		-I${.CURDIR}/softfloat/bits64
@


1.3
log
@Enable the _Qp* routines to be built always and allow full softfloat to be
pulled in if MKSOFTFLOAT gets enabled.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.2 2001/12/19 21:17:59 tv Exp $
d42 1
a42 1
CPPFLAGS+=	-DSOFTQUADFLOAT_FOR_GCC
@


1.2
log
@Remove -Wa,-Av9a hack from <sys.mk> and relegate it to the places that need
it (kernel and libc).

The current version of the gas assembler in the tree (2.11.2) already
defaults to generating object files for "-Av9 -64", supporting V9
instructions in ELF64 object format.  "-Av9a" is only needed for specific
parts of the NetBSD base sources, and not for all third-party code.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.1 1998/09/11 04:56:19 eeh Exp $
d39 13
@


1.1
log
@Add sparc64-specific libc.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.6 1997/10/09 10:07:50 lukem Exp $
d7 3
@


1.1.12.1
log
@Catch up to -current.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.1 1998/09/11 04:56:19 eeh Exp $
a6 3

# Some assembler files use v9a extensions.
AFLAGS+= -Wa,-Av9a
@


1.1.12.2
log
@Catch up to -current.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.1.12.1 2002/01/28 20:50:16 nathanw Exp $
a38 13

.PATH: ${ARCHDIR}/softfloat
SRCS+= qp.c
CPPFLAGS+=	-DSOFTFLOATSPARC64_FOR_GCC
.if ${MKSOFTFLOAT} != "no"
.include <softfloat/Makefile.inc>
.else
#
# Can't directly use softfloat.c due to .PATH issues with the other source
# in softfloat. Just provide a wrapper which pulls it in via a #include
SRCS+= softfloat-wrapper.c
CPPFLAGS+=      -I${ARCHDIR}/softfloat -I${.CURDIR}/softfloat
.endif
@


1.1.12.3
log
@Catch up to -current.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.1.12.2 2002/03/08 21:34:52 nathanw Exp $
@


1.1.12.4
log
@Catch up to -current.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.1.12.3 2002/03/22 20:41:54 nathanw Exp $
d50 1
a50 2
CPPFLAGS+=      -I${ARCHDIR}/softfloat -I${.CURDIR}/softfloat \
		-I${.CURDIR}/softfloat/bits64
@


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

SRCS+=	__sigaction14_sigtramp.c __sigtramp1.S
@


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


