head	1.9;
access;
symbols
	netbsd-11-0-RC6:1.9
	netbsd-11-0-RC5:1.9
	netbsd-11-0-RC4:1.9
	netbsd-11-0-RC3:1.9
	netbsd-11-0-RC2:1.9
	netbsd-11-0-RC1:1.9
	perseant-exfatfs-base-20250801:1.9
	netbsd-11:1.9.0.8
	netbsd-11-base:1.9
	netbsd-10-1-RELEASE:1.8.14.1
	perseant-exfatfs-base-20240630:1.9
	perseant-exfatfs:1.9.0.6
	perseant-exfatfs-base:1.9
	netbsd-8-3-RELEASE:1.7
	netbsd-9-4-RELEASE:1.8
	netbsd-10-0-RELEASE:1.8.14.1
	netbsd-10-0-RC6:1.8.14.1
	netbsd-10-0-RC5:1.8.14.1
	netbsd-10-0-RC4:1.8.14.1
	netbsd-10-0-RC3:1.8.14.1
	netbsd-10-0-RC2:1.8.14.1
	thorpej-ifq:1.9.0.4
	thorpej-ifq-base:1.9
	thorpej-altq-separation:1.9.0.2
	thorpej-altq-separation-base:1.9
	netbsd-10-0-RC1:1.8.14.1
	netbsd-10:1.8.0.14
	netbsd-10-base:1.8
	netbsd-9-3-RELEASE:1.8
	cjep_sun2x-base1:1.8
	cjep_sun2x:1.8.0.12
	cjep_sun2x-base:1.8
	cjep_staticlib_x-base1:1.8
	netbsd-9-2-RELEASE:1.8
	cjep_staticlib_x:1.8.0.10
	cjep_staticlib_x-base:1.8
	netbsd-9-1-RELEASE:1.8
	bouyer-xenpvh-base2:1.8
	phil-wifi-20200421:1.8
	bouyer-xenpvh-base1:1.8
	bouyer-xenpvh:1.8.0.8
	bouyer-xenpvh-base:1.8
	phil-wifi-20200411:1.8
	is-mlppp:1.8.0.6
	is-mlppp-base:1.8
	phil-wifi-20200406:1.8
	netbsd-8-2-RELEASE:1.7
	ad-namecache-base3:1.8
	netbsd-9-0-RELEASE:1.8
	netbsd-9-0-RC2:1.8
	ad-namecache:1.8.0.4
	ad-namecache-base:1.8
	netbsd-9-0-RC1:1.8
	phil-wifi-20191119:1.8
	netbsd-9:1.8.0.2
	netbsd-9-base:1.8
	phil-wifi-20190609:1.8
	netbsd-8-1-RELEASE:1.7
	netbsd-8-1-RC1:1.7
	pgoyette-compat-merge-20190127:1.7
	pgoyette-compat-20190127:1.7
	pgoyette-compat-20190118:1.7
	pgoyette-compat-1226:1.7
	pgoyette-compat-1126:1.7
	pgoyette-compat-1020:1.7
	pgoyette-compat-0930:1.7
	pgoyette-compat-0906:1.7
	netbsd-7-2-RELEASE:1.6.4.1
	pgoyette-compat-0728:1.7
	netbsd-8-0-RELEASE:1.7
	phil-wifi:1.7.0.16
	phil-wifi-base:1.7
	pgoyette-compat-0625:1.7
	netbsd-8-0-RC2:1.7
	pgoyette-compat-0521:1.7
	pgoyette-compat-0502:1.7
	pgoyette-compat-0422:1.7
	netbsd-8-0-RC1:1.7
	pgoyette-compat-0415:1.7
	pgoyette-compat-0407:1.7
	pgoyette-compat-0330:1.7
	pgoyette-compat-0322:1.7
	pgoyette-compat-0315:1.7
	netbsd-7-1-2-RELEASE:1.6.4.1
	pgoyette-compat:1.7.0.14
	pgoyette-compat-base:1.7
	netbsd-7-1-1-RELEASE:1.6.4.1
	tls-maxphys-20171202:1.7
	matt-nb8-mediatek:1.7.0.12
	matt-nb8-mediatek-base:1.7
	perseant-stdc-iso10646:1.7.0.10
	perseant-stdc-iso10646-base:1.7
	netbsd-8:1.7.0.8
	netbsd-8-base:1.7
	prg-localcount2-base3:1.7
	prg-localcount2-base2:1.7
	prg-localcount2-base1:1.7
	prg-localcount2:1.7.0.6
	prg-localcount2-base:1.7
	pgoyette-localcount-20170426:1.7
	bouyer-socketcan-base1:1.7
	pgoyette-localcount-20170320:1.7
	netbsd-7-1:1.6.4.1.0.6
	netbsd-7-1-RELEASE:1.6.4.1
	netbsd-7-1-RC2:1.6.4.1
	netbsd-7-nhusb-base-20170116:1.6.4.1
	bouyer-socketcan:1.7.0.4
	bouyer-socketcan-base:1.7
	pgoyette-localcount-20170107:1.7
	netbsd-7-1-RC1:1.6.4.1
	pgoyette-localcount-20161104:1.7
	netbsd-7-0-2-RELEASE:1.6.4.1
	localcount-20160914:1.7
	netbsd-7-nhusb:1.6.4.1.0.4
	netbsd-7-nhusb-base:1.6.4.1
	pgoyette-localcount-20160806:1.7
	pgoyette-localcount-20160726:1.7
	pgoyette-localcount:1.7.0.2
	pgoyette-localcount-base:1.7
	netbsd-7-0-1-RELEASE:1.6.4.1
	netbsd-7-0:1.6.4.1.0.2
	netbsd-7-0-RELEASE:1.6.4.1
	netbsd-7-0-RC3:1.6.4.1
	netbsd-7-0-RC2:1.6.4.1
	netbsd-7-0-RC1:1.6.4.1
	netbsd-5-2-3-RELEASE:1.4
	netbsd-5-1-5-RELEASE:1.4
	netbsd-6-0-6-RELEASE:1.5
	netbsd-6-1-5-RELEASE:1.5
	netbsd-7:1.6.0.4
	netbsd-7-base:1.6
	yamt-pagecache-base9:1.6
	yamt-pagecache-tag8:1.5
	netbsd-6-1-4-RELEASE:1.5
	netbsd-6-0-5-RELEASE:1.5
	tls-earlyentropy:1.6.0.2
	tls-earlyentropy-base:1.6
	riastradh-xf86-video-intel-2-7-1-pre-2-21-15:1.6
	riastradh-drm2-base3:1.6
	netbsd-6-1-3-RELEASE:1.5
	netbsd-6-0-4-RELEASE:1.5
	netbsd-5-2-2-RELEASE:1.4
	netbsd-5-1-4-RELEASE:1.4
	netbsd-6-1-2-RELEASE:1.5
	netbsd-6-0-3-RELEASE:1.5
	netbsd-5-2-1-RELEASE:1.4
	netbsd-5-1-3-RELEASE:1.4
	rmind-smpnet-nbase:1.5
	netbsd-6-1-1-RELEASE:1.5
	riastradh-drm2-base2:1.5
	riastradh-drm2-base1:1.5
	riastradh-drm2:1.5.0.18
	riastradh-drm2-base:1.5
	rmind-smpnet-base:1.5
	netbsd-6-1:1.5.0.24
	netbsd-6-0-2-RELEASE:1.5
	netbsd-6-1-RELEASE:1.5
	khorben-n900:1.5.0.22
	netbsd-6-1-RC4:1.5
	netbsd-6-1-RC3:1.5
	agc-symver:1.5.0.20
	agc-symver-base:1.5
	netbsd-6-1-RC2:1.5
	netbsd-6-1-RC1:1.5
	yamt-pagecache-base8:1.5
	netbsd-5-2:1.4.0.2
	netbsd-6-0-1-RELEASE:1.5
	yamt-pagecache-base7:1.5
	netbsd-5-2-RELEASE:1.4
	netbsd-5-2-RC1:1.4
	matt-nb6-plus-nbase:1.5
	yamt-pagecache-base6:1.5
	netbsd-6-0:1.5.0.16
	netbsd-6-0-RELEASE:1.5
	netbsd-6-0-RC2:1.5
	tls-maxphys:1.5.0.14
	tls-maxphys-base:1.6
	matt-nb6-plus:1.5.0.12
	matt-nb6-plus-base:1.5
	netbsd-6-0-RC1:1.5
	yamt-pagecache-base5:1.5
	yamt-pagecache-base4:1.5
	netbsd-6:1.5.0.10
	netbsd-6-base:1.5
	netbsd-5-1-2-RELEASE:1.4
	netbsd-5-1-1-RELEASE:1.4
	yamt-pagecache-base3:1.5
	yamt-pagecache-base2:1.5
	yamt-pagecache:1.5.0.8
	yamt-pagecache-base:1.5
	cherry-xenmp:1.5.0.4
	cherry-xenmp-base:1.5
	bouyer-quota2-nbase:1.5
	bouyer-quota2:1.5.0.6
	bouyer-quota2-base:1.5
	matt-mips64-premerge-20101231:1.5
	matt-nb5-mips64-premerge-20101231:1.4
	matt-nb5-pq3:1.4.0.12
	matt-nb5-pq3-base:1.4
	netbsd-5-1:1.4.0.10
	netbsd-5-1-RELEASE:1.4
	yamt-nfs-mp-base11:1.5
	netbsd-5-1-RC4:1.4
	matt-nb5-mips64-k15:1.4
	yamt-nfs-mp-base10:1.5
	netbsd-5-1-RC3:1.4
	netbsd-5-1-RC2:1.4
	netbsd-5-1-RC1:1.4
	rmind-uvmplock-base:1.5
	yamt-nfs-mp-base9:1.5
	netbsd-5-0-2-RELEASE:1.4
	matt-nb5-mips64-premerge-20091211:1.4
	matt-premerge-20091211:1.5
	yamt-nfs-mp-base8:1.5
	matt-nb5-mips64-u2-k2-k4-k7-k8-k9:1.4
	matt-nb4-mips64-k7-u2a-k9b:1.4
	matt-nb5-mips64-u1-k1-k5:1.4
	yamt-nfs-mp-base7:1.5
	matt-nb5-mips64:1.4.0.8
	netbsd-5-0-1-RELEASE:1.4
	jymxensuspend-base:1.5
	yamt-nfs-mp-base6:1.5
	yamt-nfs-mp-base5:1.5
	yamt-nfs-mp-base4:1.5
	jym-xensuspend-nbase:1.5
	yamt-nfs-mp-base3:1.5
	netbsd-5-0:1.4.0.6
	netbsd-5-0-RELEASE:1.4
	netbsd-5-0-RC4:1.4
	netbsd-5-0-RC3:1.4
	netbsd-5-0-RC2:1.4
	jym-xensuspend:1.5.0.2
	jym-xensuspend-base:1.5
	netbsd-5-0-RC1:1.4
	netbsd-5:1.4.0.4
	netbsd-5-base:1.4
	matt-mips64-base2:1.4
	wrstuden-revivesa-base-3:1.3
	wrstuden-revivesa-base-2:1.3
	wrstuden-revivesa-base-1:1.3
	yamt-pf42-base4:1.3
	yamt-pf42-base3:1.3
	hpcarm-cleanup-nbase:1.3
	hpcarm-cleanup-base:1.3
	yamt-pf42-baseX:1.3
	yamt-pf42-base2:1.3
	yamt-nfs-mp-base2:1.3
	wrstuden-revivesa:1.3.0.8
	wrstuden-revivesa-base:1.3
	yamt-nfs-mp-base:1.3
	yamt-pf42:1.3.0.6
	yamt-pf42-base:1.3
	yamt-lazymbuf-base15:1.3
	yamt-lazymbuf-base14:1.3
	matt-armv6:1.3.0.4
	matt-armv6-nbase:1.3
	keiichi-mipv6:1.3.0.2
	keiichi-mipv6-base:1.3;
locks; strict;
comment	@# @;


1.9
date	2023.03.30.15.03.36;	author riastradh;	state Exp;
branches;
next	1.8;
commitid	iy9xEKj1ZXa3W9jE;

1.8
date	2019.02.28.02.35.38;	author isaki;	state Exp;
branches
	1.8.14.1;
next	1.7;
commitid	NFSqRr8gRkUCItdB;

1.7
date	2014.10.12.17.53.33;	author martin;	state Exp;
branches
	1.7.16.1;
next	1.6;
commitid	5H3DNzXEbbgkeWTx;

1.6
date	2014.02.22.08.53.33;	author martin;	state Exp;
branches
	1.6.4.1;
next	1.5;
commitid	470AbsLkYj1tH4qx;

1.5
date	2009.01.04.17.54.29;	author pooka;	state Exp;
branches
	1.5.8.1
	1.5.14.1;
next	1.4;

1.4
date	2008.09.29.08.43.01;	author ad;	state Exp;
branches;
next	1.3;

1.3
date	2008.02.11.14.21.12;	author ad;	state Exp;
branches
	1.3.4.1;
next	1.2;

1.2
date	2008.02.10.18.45.41;	author ad;	state Exp;
branches;
next	1.1;

1.1
date	2008.02.03.07.46.38;	author matt;	state Exp;
branches;
next	;

1.8.14.1
date	2023.07.31.16.10.26;	author martin;	state Exp;
branches;
next	;
commitid	cfOnKB4jJHtQlYyE;

1.7.16.1
date	2019.06.10.21.41.06;	author christos;	state Exp;
branches;
next	1.7.16.2;
commitid	jtc8rnCzWiEEHGqB;

1.7.16.2
date	2020.04.21.18.41.21;	author martin;	state dead;
branches;
next	1.7.16.3;
commitid	86tA4aEmdr3VCh5C;

1.7.16.3
date	2020.04.21.19.37.47;	author martin;	state Exp;
branches;
next	;
commitid	x6IB64bYH9UmWh5C;

1.6.4.1
date	2014.11.12.19.20.06;	author snj;	state Exp;
branches;
next	;
commitid	KOPudYQ4xiLYHVXx;

1.5.8.1
date	2014.05.22.11.26.30;	author yamt;	state Exp;
branches;
next	;
commitid	cEEO2r50Gg5BGwBx;

1.5.14.1
date	2014.08.19.23.45.14;	author tls;	state Exp;
branches;
next	;
commitid	jTnpym9Qu0o4R1Nx;

1.3.4.1
date	2008.02.11.14.21.12;	author matt;	state dead;
branches;
next	1.3.4.2;

1.3.4.2
date	2008.03.23.00.12.43;	author matt;	state Exp;
branches;
next	;


desc
@@


1.9
log
@libc: Define __atomic_is_lock_free.

Limited to architectures where it is actually needed by gcc for any
calls to stdatomic.h atomic_is_lock_free for now.

We should also add it to other architectures too, along with lockful
atomic r/m/w operations for sizes that can't be handled natively, but
that's a lot more work.  It is also necessary for -fno-inline-atomics
but we're missing a lot of other symbols for that too, to be fixed.
For now, this should enable the OpenSSL build to complete on these
architectures again after I reverted a local change.

XXX pullup-10
@
text
@#	$NetBSD: Makefile.inc,v 1.8 2019/02/28 02:35:38 isaki Exp $

.if defined(LIB) && (${LIB} == "kern" || ${LIB} == "c" || ${LIB} == "pthread" \
	|| ${LIB} == "rump")

SRCS+=	atomic_add_32_cas.c atomic_add_32_nv_cas.c atomic_and_32_cas.c \
	atomic_and_32_nv_cas.c atomic_dec_32_cas.c atomic_dec_32_nv_cas.c \
	atomic_inc_32_cas.c atomic_inc_32_nv_cas.c atomic_or_32_cas.c \
	atomic_or_32_nv_cas.c atomic_swap_32_cas.c membar_ops_nop.c

.if ${LIB} == "c"
SRCS+=	atomic_add_16_cas.c atomic_add_8_cas.c	\
	atomic_sub_32_cas.c atomic_sub_16_cas.c atomic_sub_8_cas.c	\
	atomic_or_16_cas.c atomic_or_8_cas.c	\
	atomic_xor_32_cas.c atomic_xor_16_cas.c atomic_xor_8_cas.c	\
	atomic_and_16_cas.c atomic_and_8_cas.c	\
	atomic_and_16_nv_cas.c atomic_and_8_nv_cas.c	\
	atomic_nand_32_cas.c atomic_nand_16_cas.c atomic_nand_8_cas.c	\
	atomic_cas_32_cas.c atomic_cas_16_cas.c atomic_cas_8_cas.c	\
	atomic_swap_16_cas.c atomic_swap_8_cas.c \
	atomic_c11_compare_exchange_cas_32.c	\
	atomic_c11_compare_exchange_cas_16.c	\
	atomic_c11_compare_exchange_cas_8.c	\
	atomic_is_lock_free.c
.endif

.endif

.if defined(LIB) && (${LIB} == "c" || ${LIB} == "pthread")

SRCS+=	atomic_init_testset.c

.endif
@


1.8
log
@Add missing atomic_and_{8,16}_nv_cas.c for __sync_and_and_fetch_{1,2}.
XXX why is not only atomic_and_* symmetric unlike the others?
    (in common/lib/libc/atomic/)
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.7 2014/10/12 17:53:33 martin Exp $
d23 2
a24 1
	atomic_c11_compare_exchange_cas_8.c
@


1.8.14.1
log
@Pull up following revision(s) (requested by riastradh in ticket #275):

	common/lib/libc/arch/sparc/atomic/Makefile.inc: revision 1.24
	common/lib/libc/arch/m68k/atomic/Makefile.inc: revision 1.16
	common/lib/libc/arch/mips/atomic/Makefile.inc: revision 1.16
	common/lib/libc/arch/hppa/atomic/Makefile.inc: revision 1.15
	common/lib/libc/arch/vax/atomic/Makefile.inc: revision 1.9
	common/lib/libc/atomic/atomic_is_lock_free.c: revision 1.1
	common/lib/libc/arch/sh3/atomic/Makefile.inc: revision 1.9

libc: Define __atomic_is_lock_free.

Limited to architectures where it is actually needed by gcc for any
calls to stdatomic.h atomic_is_lock_free for now.

We should also add it to other architectures too, along with lockful
atomic r/m/w operations for sizes that can't be handled natively, but
that's a lot more work.  It is also necessary for -fno-inline-atomics
but we're missing a lot of other symbols for that too, to be fixed.

For now, this should enable the OpenSSL build to complete on these
architectures again after I reverted a local change.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.8 2019/02/28 02:35:38 isaki Exp $
d23 1
a23 2
	atomic_c11_compare_exchange_cas_8.c	\
	atomic_is_lock_free.c
@


1.7
log
@Hook __atomic_compare_exchange_N into vax libc.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.6 2014/02/22 08:53:33 martin Exp $
d17 1
@


1.7.16.1
log
@Sync with HEAD
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.8 2019/02/28 02:35:38 isaki Exp $
a16 1
	atomic_and_16_nv_cas.c atomic_and_8_nv_cas.c	\
@


1.7.16.2
log
@Sync with HEAD
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.7.16.1 2019/06/10 21:41:06 christos Exp $
@


1.7.16.3
log
@Ooops, restore accidently removed files from merge mishap
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.8 2019/02/28 02:35:38 isaki Exp $
@


1.6
log
@Add the missing __sync_* ops to libc
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.5 2009/01/04 17:54:29 pooka Exp $
d19 4
a22 1
	atomic_swap_16_cas.c atomic_swap_8_cas.c
@


1.6.4.1
log
@Pull up following revision(s) (requested by martin in ticket #218):
	common/lib/libc/arch/arm/atomic/Makefile.inc: revision 1.24-1.26
	common/lib/libc/arch/hppa/atomic/Makefile.inc: revision 1.13
	common/lib/libc/arch/mips/atomic/Makefile.inc: revision 1.13
	common/lib/libc/arch/sh3/atomic/Makefile.inc: revision 1.7
	common/lib/libc/arch/sparc/atomic/Makefile.inc: revision 1.18
	common/lib/libc/arch/vax/atomic/Makefile.inc: revision 1.7
	common/lib/libc/atomic/atomic_and_16_nv_cas.c: revision 1.2
	common/lib/libc/atomic/atomic_and_8_nv_cas.c: revision 1.2
	common/lib/libc/atomic/atomic_c11_compare_exchange_cas_16.c: revision 1.1-1.2
	common/lib/libc/atomic/atomic_c11_compare_exchange_cas_32.c: revision 1.1-1.2
	common/lib/libc/atomic/atomic_c11_compare_exchange_cas_8.c: revision 1.1-1.2
	common/lib/libc/atomic/atomic_cas_by_cas32.c: revision 1.4
	common/lib/libc/atomic/atomic_op_namespace.h: revision 1.7
Add __sync_val_compare_and_swap_{1,2} aliases for _atomic_cas_{8,16}
--
Provide __atomic_compare_exchange_N (as needed for the C11 2011 <atomic>
ops) via the corresponding CAS.
--
Hook __atomic_compare_exchange_N into vax libc.
--
Provide __sync_and_and_fetch_2 and __sync_and_and_fetch_1 for pre-ARMv6,
they are needed for the C++ 2011 <atomic> stuff.
--
Add C++ 2011 <atomic> support functions.
--
Move the and_{16,8}_nv sources into the right (libc only) block.
--
Provide <atomic> C++ 2011 support functions for mips and sh3.
--
Provide C++ 2011 <atomic> support functions for hppa and arm.
--
Provide prototypes to fix build with clang.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.6 2014/02/22 08:53:33 martin Exp $
d19 1
a19 4
	atomic_swap_16_cas.c atomic_swap_8_cas.c \
	atomic_c11_compare_exchange_cas_32.c	\
	atomic_c11_compare_exchange_cas_16.c	\
	atomic_c11_compare_exchange_cas_8.c
@


1.5
log
@allow inclusion of atomic ops in librump
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.4 2008/09/29 08:43:01 ad Exp $
d11 11
@


1.5.14.1
log
@Rebase to HEAD as of a few days ago.
@
text
@d1 1
a1 1
#	$NetBSD$
a10 11
.if ${LIB} == "c"
SRCS+=	atomic_add_16_cas.c atomic_add_8_cas.c	\
	atomic_sub_32_cas.c atomic_sub_16_cas.c atomic_sub_8_cas.c	\
	atomic_or_16_cas.c atomic_or_8_cas.c	\
	atomic_xor_32_cas.c atomic_xor_16_cas.c atomic_xor_8_cas.c	\
	atomic_and_16_cas.c atomic_and_8_cas.c	\
	atomic_nand_32_cas.c atomic_nand_16_cas.c atomic_nand_8_cas.c	\
	atomic_cas_32_cas.c atomic_cas_16_cas.c atomic_cas_8_cas.c	\
	atomic_swap_16_cas.c atomic_swap_8_cas.c
.endif

@


1.5.8.1
log
@sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs.  ("Protocol error: too many arguments")
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.5 2009/01/04 17:54:29 pooka Exp $
a10 11
.if ${LIB} == "c"
SRCS+=	atomic_add_16_cas.c atomic_add_8_cas.c	\
	atomic_sub_32_cas.c atomic_sub_16_cas.c atomic_sub_8_cas.c	\
	atomic_or_16_cas.c atomic_or_8_cas.c	\
	atomic_xor_32_cas.c atomic_xor_16_cas.c atomic_xor_8_cas.c	\
	atomic_and_16_cas.c atomic_and_8_cas.c	\
	atomic_nand_32_cas.c atomic_nand_16_cas.c atomic_nand_8_cas.c	\
	atomic_cas_32_cas.c atomic_cas_16_cas.c atomic_cas_8_cas.c	\
	atomic_swap_16_cas.c atomic_swap_8_cas.c
.endif

@


1.4
log
@Allow atomic ops to be built as part of libpthread.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.3 2008/02/11 14:21:12 ad Exp $
d3 2
a4 1
.if defined(LIB) && (${LIB} == "kern" || ${LIB} == "c" || ${LIB} == "pthread")
@


1.3
log
@Only build atomic ops for libkern/libc.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.2 2008/02/10 18:45:41 ad Exp $
d3 1
a3 1
.if defined(LIB) && (${LIB} == "kern" || ${LIB} == "c")
d12 1
a12 1
.if defined(LIB) && (${LIB} == "c")
@


1.3.4.1
log
@file Makefile.inc was added on branch matt-armv6 on 2008-03-23 00:12:43 +0000
@
text
@d1 16
@


1.3.4.2
log
@sync with HEAD
@
text
@a0 16
#	$NetBSD: Makefile.inc,v 1.3 2008/02/11 14:21:12 ad Exp $

.if defined(LIB) && (${LIB} == "kern" || ${LIB} == "c")

SRCS+=	atomic_add_32_cas.c atomic_add_32_nv_cas.c atomic_and_32_cas.c \
	atomic_and_32_nv_cas.c atomic_dec_32_cas.c atomic_dec_32_nv_cas.c \
	atomic_inc_32_cas.c atomic_inc_32_nv_cas.c atomic_or_32_cas.c \
	atomic_or_32_nv_cas.c atomic_swap_32_cas.c membar_ops_nop.c

.endif

.if defined(LIB) && (${LIB} == "c")

SRCS+=	atomic_init_testset.c

.endif
@


1.2
log
@Enable the atomic ops in userspace.
@
text
@d1 3
a3 1
#	$NetBSD: Makefile.inc,v 1.1 2008/02/03 07:46:38 matt Exp $
d10 2
@


1.1
log
@Add the .C versions for the atomic ops.
@
text
@d1 1
a1 3
#	$NetBSD: Makefile.inc,v 1.3 2007/11/29 15:29:46 ad Exp $

.if defined(LIB) && (${LIB} == "kern")
d8 4
@
