add man page
[unix-history] / usr / src / old / lib2648 / Makefile
CommitLineData
3c04567b 1#
f3c2752f
KB
2# Copyright (c) 1989 The Regents of the University of California.
3# All rights reserved.
61d96e53 4#
f3c2752f
KB
5# Redistribution and use in source and binary forms are permitted
6# provided that the above copyright notice and this paragraph are
7# duplicated in all such forms and that any documentation,
8# advertising materials, and other materials related to such
9# distribution and use acknowledge that the software was developed
10# by the University of California, Berkeley. The name of the
11# University may not be used to endorse or promote products derived
12# from this software without specific prior written permission.
13# THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
14# IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
15# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
16#
17# @(#)Makefile 5.3 (Berkeley) %G%
3c04567b 18#
3c04567b 19CFLAGS= -DTRACE -O
67867afc 20SRCS= agoto.c aminmax.c aon.c areaclear.c beep.c bitcopy.c cleara.c \
3c04567b
RC
21 clearg.c curon.c dispmsg.c draw.c drawbox.c dumpmat.c \
22 emptyrow.c error.c escseq.c gdefault.c gon.c kon.c line.c mat.c \
23 message.c minmax.c motion.c move.c movecurs.c newmat.c outchar.c \
24 outstr.c printg.c rawchar.c rbon.c rdchar.c readline.c set.c \
25 setmat.c sync.c texton.c ttyinit.c update.c video.c zermat.c \
26 zoomn.c zoomon.c zoomout.c
27OBJS= agoto.o aminmax.o aon.o areaclear.o beep.o bitcopy.o cleara.o \
28 clearg.o curon.o dispmsg.o draw.o drawbox.o dumpmat.o \
29 emptyrow.o error.o escseq.o gdefault.o gon.o kon.o line.o mat.o \
30 message.o minmax.o motion.o move.o movecurs.o newmat.o outchar.o \
31 outstr.o printg.o rawchar.o rbon.o rdchar.o readline.o set.o \
32 setmat.o sync.o texton.o ttyinit.o update.o video.o zermat.o \
33 zoomn.o zoomon.o zoomout.o
f3c2752f 34MAN= lib2648.0
3c04567b 35
67867afc
KB
36all: lib2648.a
37
38lib2648.a: ${OBJS}
3c04567b
RC
39 ar cr lib2648.a `lorder ${OBJS} | tsort`
40
f3c2752f 41clean:
67867afc
KB
42 rm -f ${OBJS} core lib2648.a
43
f3c2752f
KB
44cleandir: clean
45 rm -f ${MAN} tags .depend
46
47depend: ${SRCS}
67867afc
KB
48 mkdep ${CFLAGS} ${SRCS}
49
f3c2752f 50install: ${MAN}
67867afc
KB
51 install -o bin -g bin -m 644 lib2648.a ${DESTDIR}/usr/lib/lib2648.a
52 ranlib ${DESTDIR}/usr/lib/lib2648.a
f3c2752f 53 install -c -o bin -g bin -m 444 lib2648.0 ${DESTDIR}/usr/man/cat3
3c04567b 54
f3c2752f 55lint: ${SRCS}
67867afc
KB
56 lint ${CFLAGS} ${SRCS}
57
f3c2752f 58tags: ${SRCS}
3c04567b 59 ctags ${SRCS}