NetBSD/tests/lib/libobjc/Makefile
joerg 3b8335f4ee Test case requires the GCC specific thread extension for Objective C, so
only enable the test if GCC is present and disable other compiler.
2011-05-20 13:03:45 +00:00

22 lines
392 B
Makefile

# $NetBSD: Makefile,v 1.2 2011/05/20 13:03:45 joerg Exp $
TESTSDIR= ${TESTSBASE}/lib/libobjc
.include <bsd.own.mk>
UNSUPPORTED_COMPILER.clang= # defined
UNSUPPORTED_COMPILER.pcc= # defined
.if !empty(AVAILABLE_COMPILER:Mgcc)
TESTS_C= t_threads
.endif
SRCS.t_threads= t_threads.m
WARNS?= 4
CFLAGS+= -pthread
LDFLAGS+= -pthread
DPADD+= ${LIBOBJC}
LDADD+= -lobjc
.include <bsd.test.mk>