Home | History | Annotate | Line # | Download | only in atomic
      1 # $NetBSD: Makefile,v 1.2 2019/02/26 10:01:41 isaki Exp $
      2 
      3 .include <bsd.own.mk>
      4 
      5 TESTSDIR=	${TESTSBASE}/lib/libc/atomic
      6 
      7 TESTS_C+=	t_atomic_add
      8 TESTS_C+=	t_atomic_and
      9 TESTS_C+=	t_atomic_cas
     10 TESTS_C+=	t_atomic_dec
     11 TESTS_C+=	t_atomic_inc
     12 TESTS_C+=	t_atomic_or
     13 TESTS_C+=	t_atomic_swap
     14 
     15 TESTS_C+=	t___sync_add
     16 TESTS_C+=	t___sync_sub
     17 TESTS_C+=	t___sync_or
     18 TESTS_C+=	t___sync_and
     19 TESTS_C+=	t___sync_xor
     20 TESTS_C+=	t___sync_nand
     21 TESTS_C+=	t___sync_compare_and_swap
     22 TESTS_C+=	t___sync_lock
     23 
     24 # The code conforms to new NAND semantics.  So this warning is not
     25 # necessary here.
     26 .if "${ACTIVE_CC}" == "gcc"
     27 CPPFLAGS.t___sync_nand.c+=	-Wno-sync-nand
     28 .elif "${ACTIVE_CC}" == "clang"
     29 CPPFLAGS.t___sync_nand.c+=	-Wno-sync-fetch-and-nand-semantics-changed
     30 .endif
     31 
     32 MKMAN=no
     33 
     34 BINDIR=		${TESTSDIR}
     35 
     36 .include <bsd.test.mk>
     37