head	1.5;
access;
symbols;
locks; strict;
comment	@# @;


1.5
date	94.06.07.21.44.28;	author md;	state Exp;
branches;
next	1.4;

1.4
date	94.04.28.19.43.22;	author roger;	state Exp;
branches;
next	1.3;

1.3
date	94.02.27.13.17.48;	author md;	state Exp;
branches;
next	1.2;

1.2
date	94.02.20.21.46.50;	author md;	state Exp;
branches;
next	1.1;

1.1
date	90.06.25.07.56.43;	author md;	state Exp;
branches;
next	;


desc
@@


1.5
log
@Update with 4.4 version
@
text
@#	@@(#)Makefile	8.1 (Berkeley) 6/12/93
#
# All library objects contain sccsid strings by default; they may be
# excluded as a space-saving measure.  To produce a library that does
# not contain these strings, delete -DLIBC_SCCS and -DSYSLIBC_SCCS
# from CFLAGS below.  To remove these strings from just the system call
# stubs, remove just -DSYSLIBC_SCCS from CFLAGS.
LIB=c
CFLAGS+=-DLIBC_SCCS -DSYSLIBC_SCCS
AINC=	-I${.CURDIR}/${MACHINE}
CLEANFILES+=tags

.include "${.CURDIR}/db/Makefile.inc"
.include "${.CURDIR}/compat-43/Makefile.inc"
.include "${.CURDIR}/gen/Makefile.inc"
#.include "${.CURDIR}/gmon/Makefile.inc"
.include "${.CURDIR}/locale/Makefile.inc"
.include "${.CURDIR}/net/Makefile.inc"
#.include "${.CURDIR}/quad/Makefile.inc"
.include "${.CURDIR}/regex/Makefile.inc"
.include "${.CURDIR}/stdio/Makefile.inc"
.include "${.CURDIR}/stdlib/Makefile.inc"
.include "${.CURDIR}/string/Makefile.inc"
.include "${.CURDIR}/sys/Makefile.inc"

KQSRCS=	adddi3.c anddi3.c ashldi3.c ashrdi3.c cmpdi2.c divdi3.c iordi3.c \
	lshldi3.c lshrdi3.c moddi3.c muldi3.c negdi2.c notdi2.c qdivrem.c \
	subdi3.c ucmpdi2.c udivdi3.c umoddi3.c xordi3.c
KSRCS=	bcmp.c ffs.c mcount.c rindex.c strcat.c strcmp.c strcpy.c \
	strlen.c strncpy.c

libkern: libkern.gen libkern.${MACHINE}

libkern.gen: ${KQSRCS} ${KSRCS}
	cp -p ${.CURDIR}/quad/quad.h ${.ALLSRC} /sys/libkern

libkern.${MACHINE}:: ${KMSRCS}
.if defined(KMSRCS) && !empty(KMSRCS)
	cp -p ${.ALLSRC} /sys/libkern/${MACHINE}
.endif

beforeinstall: tags
	install -c -o bin -g bin -m 444 tags /var/db/libc.tags

tags: ${SRCS}
	ctags ${.ALLSRC:M*.c}
	egrep -o "^ENTRY(.*)|^FUNC(.*)|^SYSCALL(.*)" ${.ALLSRC:M*.s} | \
	    sed "s;\([^:]*\):\([^(]*\)(\([^, )]*\)\(.*\);\3 \1 /^\2(\3\4$$/;" \
	    >> tags; sort -o tags tags

.include <bsd.lib.mk>
@


1.4
log
@added locale and regex directories from '44.
@
text
@d1 1
a1 1
#	@@(#)Makefile	4.40 (Berkeley) 6/25/90
d9 1
a9 1
CFLAGS+=-DLIBC_SCCS -DSYSLIBC_SCCS 
d11 1
d26 16
a42 4
	ar ma findiop.o libc.a exit.o
	ar ma exit.o libc.a fakcu.o
	ar ma findiop.po libc_p.a exit.po
	ar ma exit.po libc_p.a fakcu.po
@


1.3
log
@add rules to install tags into /var/db for nvi
@
text
@d9 1
a9 1
CFLAGS+=-DLIBC_SCCS -DSYSLIBC_SCCS
d13 1
d15 5
a19 1
.include "${.CURDIR}/sys/Makefile.inc"
a21 1
.include "${.CURDIR}/net/Makefile.inc"
d23 1
a23 1
.include "${.CURDIR}/compat-43/Makefile.inc"
@


1.2
log
@include new db directory Makefile
@
text
@d21 1
a21 1
beforeinstall:
d26 7
@


1.1
log
@Initial revision
@
text
@d12 1
@
