sys/vfs/hammer2: Make sure PFS exists after chain lookup on mount
[dragonfly.git] / lib / libc / Makefile
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 #
4 LIB=c
5 SHLIB_MAJOR= 8
6 SHLIBDIR?= /lib
7 CFLAGS+= -I${.CURDIR}/include -I${.OBJDIR} -I${.CURDIR}/${MACHINE_ARCH}
8 CFLAGS+= -DNLS
9 CFLAGS+= -D__LIBC
10 CLEANFILES+=tags
11 PRECIOUSLIB=    yes
12
13 LDFLAGS+= -nodefaultlibs
14
15 #
16 # Include make rules that are shared with libc_rtld.
17 #
18 .include "${.CURDIR}/Makefile.inc"
19
20 VERSION_DEF=    ${.CURDIR}/Versions.def
21 SYMBOL_MAPS=    ${CMAPS}
22
23 KSRCS=  bcmp.c ffs.c index.c rindex.c strcat.c strcmp.c strcpy.c \
24         strlen.c strncpy.c
25
26 libkern: libkern.gen libkern.${MACHINE_ARCH}
27
28 libkern.gen: ${KSRCS}
29         cp -p ${.ALLSRC} ${DESTDIR}/sys/libkern
30
31 libkern.${MACHINE_ARCH}:: ${KMSRCS}
32 .if defined(KMSRCS) && !empty(KMSRCS)
33         cp -p ${.ALLSRC} ${DESTDIR}/sys/libkern/${MACHINE_ARCH}
34 .endif
35
36 .include <bsd.lib.mk>
37
38 # Disable warnings in contributed sources.
39 CWARNFLAGS:=    ${.IMPSRC:N*dtoa*.c:C/^.+$/${CWARNFLAGS}/:C/^$/-w/}