xref: /dragonfly/lib/libc/Makefile (revision 9e6611d4)
1#	@(#)Makefile	8.2 (Berkeley) 2/3/94
2# $FreeBSD: src/lib/libc/Makefile,v 1.24 1999/09/29 15:18:29 marcel Exp $
3#
4LIB=c
5SHLIB_MAJOR= 8
6SHLIBDIR?= /lib
7CFLAGS+= -I${.CURDIR}/include -I${.OBJDIR} -I${.CURDIR}/${MACHINE_ARCH}
8CFLAGS+= -DNLS
9CLEANFILES+=tags
10PRECIOUSLIB=	yes
11
12LDFLAGS+= -nodefaultlibs
13
14#
15# Include make rules that are shared with libc_rtld.
16#
17.include "${.CURDIR}/Makefile.inc"
18
19VERSION_DEF=	${.CURDIR}/Versions.def
20SYMBOL_MAPS=	${CMAPS}
21
22KSRCS=	bcmp.c ffs.c index.c mcount.c rindex.c strcat.c strcmp.c strcpy.c \
23	strlen.c strncpy.c
24
25libkern: libkern.gen libkern.${MACHINE_ARCH}
26
27libkern.gen: ${KSRCS}
28	cp -p ${.ALLSRC} ${DESTDIR}/sys/libkern
29
30libkern.${MACHINE_ARCH}:: ${KMSRCS}
31.if defined(KMSRCS) && !empty(KMSRCS)
32	cp -p ${.ALLSRC} ${DESTDIR}/sys/libkern/${MACHINE_ARCH}
33.endif
34
35.include <bsd.lib.mk>
36
37# Disable warnings in contributed sources.
38CWARNFLAGS:=	${.IMPSRC:N*dtoa*.c:C/^.+$/${CWARNFLAGS}/:C/^$/-w/}
39