| @@ -1,14 +1,14 @@ | | | @@ -1,14 +1,14 @@ |
1 | # $NetBSD: Makefile.inc,v 1.10 2009/12/14 00:38:59 matt Exp $ | | 1 | # $NetBSD: Makefile.inc,v 1.11 2014/02/21 19:05: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 | .if ${MACHINE_ARCH:Mmips64*} == "" | | 6 | .if ${MACHINE_ARCH:Mmips64*} == "" |
7 | SRCS+= atomic_add_32_cas.c atomic_add_32_nv_cas.c \ | | 7 | SRCS+= atomic_add_32_cas.c atomic_add_32_nv_cas.c \ |
8 | atomic_and_32_cas.c atomic_and_32_nv_cas.c \ | | 8 | atomic_and_32_cas.c atomic_and_32_nv_cas.c \ |
9 | atomic_dec_32_cas.c atomic_dec_32_nv_cas.c \ | | 9 | atomic_dec_32_cas.c atomic_dec_32_nv_cas.c \ |
10 | atomic_inc_32_cas.c atomic_inc_32_nv_cas.c \ | | 10 | atomic_inc_32_cas.c atomic_inc_32_nv_cas.c \ |
11 | atomic_or_32_cas.c atomic_or_32_nv_cas.c \ | | 11 | atomic_or_32_cas.c atomic_or_32_nv_cas.c \ |
12 | atomic_swap_32_cas.c \ | | 12 | atomic_swap_32_cas.c \ |
13 | atomic_add_64_cas.c atomic_add_64_nv_cas.c \ | | 13 | atomic_add_64_cas.c atomic_add_64_nv_cas.c \ |
14 | atomic_and_64_cas.c atomic_and_64_nv_cas.c \ | | 14 | atomic_and_64_cas.c atomic_and_64_nv_cas.c \ |
| @@ -28,18 +28,29 @@ SRCS+= atomic_swap.S | | | @@ -28,18 +28,29 @@ SRCS+= atomic_swap.S |
28 | SRCS+= membar_ops.S | | 28 | SRCS+= membar_ops.S |
29 | .endif | | 29 | .endif |
30 | | | 30 | |
31 | .if defined(LIB) && (${LIB} == "c" || ${LIB} == "pthread") | | 31 | .if defined(LIB) && (${LIB} == "c" || ${LIB} == "pthread") |
32 | | | 32 | |
33 | .if ${MACHINE_ARCH:Mmips64*} == "" | | 33 | .if ${MACHINE_ARCH:Mmips64*} == "" |
34 | SRCS+= atomic_init_testset.c atomic_cas_up.S | | 34 | SRCS+= atomic_init_testset.c atomic_cas_up.S |
35 | .else | | 35 | .else |
36 | SRCS+= atomic_cas.S atomic_init_cas.c | | 36 | SRCS+= atomic_cas.S atomic_init_cas.c |
37 | .endif | | 37 | .endif |
38 | | | 38 | |
39 | .endif | | 39 | .endif |
40 | | | 40 | |
| | | 41 | .if defined(LIB) && ${LIB} == "c" |
| | | 42 | SRCS+= atomic_xor_32_cas.c atomic_xor_16_cas.c atomic_xor_8_cas.c \ |
| | | 43 | atomic_sub_32_cas.c atomic_sub_16_cas.c atomic_sub_8_cas.c \ |
| | | 44 | atomic_nand_32_cas.c atomic_nand_16_cas.c atomic_nand_8_cas.c \ |
| | | 45 | atomic_or_16_cas.c atomic_or_8_cas.c \ |
| | | 46 | atomic_and_16_cas.c atomic_and_8_cas.c \ |
| | | 47 | atomic_add_16_cas.c atomic_add_8_cas.c \ |
| | | 48 | atomic_swap_16_cas.c atomic_swap_8_cas.c \ |
| | | 49 | atomic_cas_32_cas.c atomic_cas_16_cas.c atomic_cas_8_cas.c |
| | | 50 | .endif |
| | | 51 | |
41 | .if defined(LIB) && (${LIB} == "kern" || ${LIB} == "rump") | | 52 | .if defined(LIB) && (${LIB} == "kern" || ${LIB} == "rump") |
42 | | | 53 | |
43 | SRCS+= membar_ops.S | | 54 | SRCS+= membar_ops.S |
44 | | | 55 | |
45 | .endif | | 56 | .endif |