| @@ -1,17 +1,28 @@ | | | @@ -1,17 +1,28 @@ |
1 | # $NetBSD: Makefile.inc,v 1.5 2009/01/04 17:54:29 pooka Exp $ | | 1 | # $NetBSD: Makefile.inc,v 1.6 2014/02/22 08:53:33 martin Exp $ |
2 | | | 2 | |
3 | .if defined(LIB) && (${LIB} == "kern" || ${LIB} == "c" || ${LIB} == "pthread" \ | | 3 | .if defined(LIB) && (${LIB} == "kern" || ${LIB} == "c" || ${LIB} == "pthread" \ |
4 | || ${LIB} == "rump") | | 4 | || ${LIB} == "rump") |
5 | | | 5 | |
6 | SRCS+= atomic_add_32_cas.c atomic_add_32_nv_cas.c atomic_and_32_cas.c \ | | 6 | SRCS+= atomic_add_32_cas.c atomic_add_32_nv_cas.c atomic_and_32_cas.c \ |
7 | atomic_and_32_nv_cas.c atomic_dec_32_cas.c atomic_dec_32_nv_cas.c \ | | 7 | atomic_and_32_nv_cas.c atomic_dec_32_cas.c atomic_dec_32_nv_cas.c \ |
8 | atomic_inc_32_cas.c atomic_inc_32_nv_cas.c atomic_or_32_cas.c \ | | 8 | atomic_inc_32_cas.c atomic_inc_32_nv_cas.c atomic_or_32_cas.c \ |
9 | atomic_or_32_nv_cas.c atomic_swap_32_cas.c membar_ops_nop.c | | 9 | atomic_or_32_nv_cas.c atomic_swap_32_cas.c membar_ops_nop.c |
10 | | | 10 | |
| | | 11 | .if ${LIB} == "c" |
| | | 12 | SRCS+= atomic_add_16_cas.c atomic_add_8_cas.c \ |
| | | 13 | atomic_sub_32_cas.c atomic_sub_16_cas.c atomic_sub_8_cas.c \ |
| | | 14 | atomic_or_16_cas.c atomic_or_8_cas.c \ |
| | | 15 | atomic_xor_32_cas.c atomic_xor_16_cas.c atomic_xor_8_cas.c \ |
| | | 16 | atomic_and_16_cas.c atomic_and_8_cas.c \ |
| | | 17 | atomic_nand_32_cas.c atomic_nand_16_cas.c atomic_nand_8_cas.c \ |
| | | 18 | atomic_cas_32_cas.c atomic_cas_16_cas.c atomic_cas_8_cas.c \ |
| | | 19 | atomic_swap_16_cas.c atomic_swap_8_cas.c |
| | | 20 | .endif |
| | | 21 | |
11 | .endif | | 22 | .endif |
12 | | | 23 | |
13 | .if defined(LIB) && (${LIB} == "c" || ${LIB} == "pthread") | | 24 | .if defined(LIB) && (${LIB} == "c" || ${LIB} == "pthread") |
14 | | | 25 | |
15 | SRCS+= atomic_init_testset.c | | 26 | SRCS+= atomic_init_testset.c |
16 | | | 27 | |
17 | .endif | | 28 | .endif |