# Copyright (c) 1980 Regents of the University of California.
# All rights reserved. The Berkeley software License Agreement
# specifies the terms and conditions for redistribution.
# @(#)Makefile 5.1 (Berkeley) 6/5/85
CFLAGS
= -O
-DCM_N
-DCM_GT
-DCM_B
-DCM_D
SRCS
= termcap.c tgoto.c tputs.c
OBJS
= termcap.o tgoto.o tputs.o
$(CC
) $(CFLAGS
) -c
-p
$*.c
$(LD
) $(LDFLAGS
) -x
-r
-o profiled
/$*.o
$*.o
$(LD
) $(LDFLAGS
) -X
-r
$*.o
termcap.a termcap_p.a
: ${OBJS}
cd profiled
; ar cr ..
/termcap_p.a
${OBJS}
install: termcap.a termcap_p.a
install -c termcap.a
${DESTDIR}/usr
/lib
/libtermcap.a
-rm -f
${DESTDIR}/usr
/lib
/libtermlib.a
ln
${DESTDIR}/usr
/lib
/libtermcap.a
${DESTDIR}/usr
/lib
/libtermlib.a
ranlib
${DESTDIR}/usr
/lib
/libtermcap.a
install -c termcap_p.a
${DESTDIR}/usr
/lib
/libtermcap_p.a
-rm -f
${DESTDIR}/usr
/lib
/libtermlib_p.a
ln
${DESTDIR}/usr
/lib
/libtermcap_p.a
${DESTDIR}/usr
/lib
/libtermlib_p.a
ranlib
${DESTDIR}/usr
/lib
/libtermcap_p.a
ctags
-a
-f
${TAGSFILE} $$cwd/$$i; \
-rm -f termcap.a termcap_p.a
VGRIND
= csh
/usr
/ucb
/vgrind
${VGRIND} -h
"Termcap library" termcap.c tputs.c tgoto.c
${VGRIND} -h
"Termcap library" -x index