libc/libpthread: Add clock_getcpuclockid() and pthread_getcpuclockid().
[dragonfly.git] / lib / libc / Makefile
blobdd1ba5136b02204e1998114f8d48a816a1169acb
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 $
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 CLEANFILES+=tags
10 PRECIOUSLIB= yes
12 LDFLAGS+= -nodefaultlibs
15 # Include make rules that are shared with libc_r.
17 .include "${.CURDIR}/Makefile.inc"
19 VERSION_DEF= ${.CURDIR}/Versions.def
20 SYMBOL_MAPS= ${CMAPS}
22 KSRCS= bcmp.c ffs.c index.c mcount.c rindex.c strcat.c strcmp.c strcpy.c \
23 strlen.c strncpy.c
25 libkern: libkern.gen libkern.${MACHINE_ARCH}
27 libkern.gen: ${KSRCS}
28 cp -p ${.ALLSRC} ${DESTDIR}/sys/libkern
30 libkern.${MACHINE_ARCH}:: ${KMSRCS}
31 .if defined(KMSRCS) && !empty(KMSRCS)
32 cp -p ${.ALLSRC} ${DESTDIR}/sys/libkern/${MACHINE_ARCH}
33 .endif
35 .include <bsd.lib.mk>
37 # Disable warnings in contributed sources.
38 CWARNFLAGS:= ${.IMPSRC:N*dtoa*.c:C/^.+$/${CWARNFLAGS}/:C/^$/-w/}