xref: /netbsd-src/regress/lib/libc/Makefile (revision 274254cdae52594c1aa480a736aef78313d15c9c)
1#	$NetBSD: Makefile,v 1.55 2008/01/19 04:12:20 ginsbach Exp $
2
3SUBDIR+= _setjmp atexit basename citrus clone context convfp db dirname \
4	div divrem gen getaddrinfo hsearch inet int_fmtio locale md5sha \
5	nsdispatch popen pty randomid regex rpc servent setjmp sigsetjmp \
6	stdio stdlib string strptime sys time
7
8.include <bsd.own.mk>
9.include <bsd.sys.mk>
10
11.if (${HAS_SSP} == "yes")
12SUBDIR+= ssp
13.endif
14.if (${MACHINE_ARCH} != "vax" && ${MACHINE_ARCH} != "m68000")
15SUBDIR+= ieeefp
16.endif
17.if (${MACHINE_ARCH} != "vax")
18SUBDIR+= ldexp
19.endif
20
21.if !make(obj) && !make(cleandir)
22HAVE_SIGINFO != if (echo "\#include <signal.h>" && echo "SA_SIGINFO") | ${CC} -E -I${DESTDIR}/usr/include - | grep -sq 0x0040; then echo yes; else echo no; fi
23.endif
24
25.if make(obj) || make(cleandir) || (${HAVE_SIGINFO} == "yes")
26SUBDIR+= siginfo
27.endif
28
29.if exists(arch/${MACHINE_ARCH})
30SUBDIR+= arch/${MACHINE_ARCH}
31.endif
32
33.include <bsd.subdir.mk>
34