BSD 4_4 release
[unix-history] / usr / src / lib / libterm / Makefile
index cf861eb..ba4218b 100644 (file)
@@ -1,35 +1,13 @@
-#      Makefile        4.1     83/06/27
-#
-CFLAGS=        -O -DCM_N -DCM_GT -DCM_B -DCM_D
-LD = ld
+#      @(#)Makefile    8.1 (Berkeley) 6/4/93
 
 
-.c.o:
-       $(CC) $(CFLAGS) -c -p $*.c
-       $(LD) $(LDFLAGS) -x -r -o profiled/$*.o $*.o
-       $(CC) $(CFLAGS) -c $*.c
-       $(LD) $(LDFLAGS) -X -r $*.o
-       mv a.out $*.o
+LIB=   termcap
+CFLAGS+=-DCM_N -DCM_GT -DCM_B -DCM_D
+SRCS=  termcap.c tgoto.c tputs.c
 
 
-termcap.a termcap_p.a: termcap.o tgoto.o tputs.o
-       ar cr termcap.a termcap.o tgoto.o tputs.o
-       cd profiled; ar cr ../termcap_p.a termcap.o tgoto.o tputs.o
+MAN3=  termcap.0
+MLINKS=        termcap.3 tgetent.3 termcap.3 tgetflag.3 termcap.3 tgetnum.3 \
+       termcap.3 tgetstr.3 termcap.3 tgoto.3 termcap.3 tputs.3
+LINKS= ${LIBDIR}/libtermcap.a ${LIBDIR}/libtermlib.a \
+       ${LIBDIR}/libtermcap_p.a ${LIBDIR}/libtermlib_p.a
 
 
-clean:
-       -rm -f *.o profiled/*.o
-       -rm -f termcap.a termcap_p.a
-
-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
-
-VGRIND=        csh /usr/ucb/vgrind
-vgrind:
-       cp /dev/null index
-       ${VGRIND} -h "Termcap library" termcap.c tputs.c tgoto.c
-       ${VGRIND} -h "Termcap library" -x index
+.include <bsd.lib.mk>