Commit | Line | Data |
---|---|---|
09e465ed | 1 | # @(#)Makefile 8.1 (Berkeley) %G% |
1b597941 | 2 | # |
770d844a KB |
3 | # All library objects contain sccsid strings by default; they may be |
4 | # excluded as a space-saving measure. To produce a library that does | |
5 | # not contain these strings, delete -DLIBC_SCCS and -DSYSLIBC_SCCS | |
6 | # from CFLAGS below. To remove these strings from just the system call | |
7 | # stubs, remove just -DSYSLIBC_SCCS from CFLAGS. | |
8 | LIB=c | |
9 | CFLAGS+=-DLIBC_SCCS -DSYSLIBC_SCCS | |
4af61811 | 10 | AINC= -I${.CURDIR}/${MACHINE} |
5cde4b60 | 11 | CLEANFILES+=tags |
dff79c37 | 12 | |
edcab917 | 13 | .include "${.CURDIR}/db/Makefile.inc" |
51a5a002 | 14 | .include "${.CURDIR}/compat-43/Makefile.inc" |
9a4d880a | 15 | .include "${.CURDIR}/gen/Makefile.inc" |
8445213f | 16 | .include "${.CURDIR}/gmon/Makefile.inc" |
edcab917 | 17 | .include "${.CURDIR}/locale/Makefile.inc" |
942e9380 | 18 | .include "${.CURDIR}/net/Makefile.inc" |
52f27732 | 19 | .include "${.CURDIR}/quad/Makefile.inc" |
3fb6e5ee | 20 | .include "${.CURDIR}/regex/Makefile.inc" |
9a4d880a KB |
21 | .include "${.CURDIR}/stdio/Makefile.inc" |
22 | .include "${.CURDIR}/stdlib/Makefile.inc" | |
9a4d880a | 23 | .include "${.CURDIR}/string/Makefile.inc" |
942e9380 | 24 | .include "${.CURDIR}/sys/Makefile.inc" |
770d844a | 25 | |
edf787ba KB |
26 | KQSRCS= adddi3.c anddi3.c ashldi3.c ashrdi3.c cmpdi2.c divdi3.c iordi3.c \ |
27 | lshldi3.c lshrdi3.c moddi3.c muldi3.c negdi2.c notdi2.c qdivrem.c \ | |
28 | subdi3.c ucmpdi2.c udivdi3.c umoddi3.c xordi3.c | |
9b8eba41 CT |
29 | KSRCS= bcmp.c ffs.c mcount.c rindex.c strcat.c strcmp.c strcpy.c \ |
30 | strlen.c strncpy.c | |
8445213f | 31 | |
9b8eba41 | 32 | libkern: libkern.gen libkern.${MACHINE} |
edf787ba | 33 | |
9b8eba41 | 34 | libkern.gen: ${KQSRCS} ${KSRCS} |
edf787ba | 35 | cp -p ${.CURDIR}/quad/quad.h ${.ALLSRC} /sys/libkern |
9b8eba41 CT |
36 | |
37 | libkern.${MACHINE}:: ${KMSRCS} | |
38 | .if defined(KMSRCS) && !empty(KMSRCS) | |
39 | cp -p ${.ALLSRC} /sys/libkern/${MACHINE} | |
40 | .endif | |
41 | ||
942e9380 | 42 | beforeinstall: tags |
8d724e11 | 43 | install -c -o bin -g bin -m 444 tags /var/db/libc.tags |
edcab917 KB |
44 | |
45 | tags: ${SRCS} | |
edf787ba KB |
46 | ctags ${.ALLSRC:M*.c} |
47 | egrep -o "^ENTRY(.*)|^FUNC(.*)|^SYSCALL(.*)" ${.ALLSRC:M*.s} | \ | |
edcab917 KB |
48 | sed "s;\([^:]*\):\([^(]*\)(\([^, )]*\)\(.*\);\3 \1 /^\2(\3\4$$/;" \ |
49 | >> tags; sort -o tags tags | |
770d844a KB |
50 | |
51 | .include <bsd.lib.mk> |