Commit | Line | Data |
---|---|---|
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 | # | |
d87f5d64 | 17 | # @(#)Makefile 5.4 (Berkeley) %G% |
3c04567b | 18 | # |
3c04567b | 19 | CFLAGS= -DTRACE -O |
67867afc | 20 | SRCS= 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 | |
27 | OBJS= 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 | 34 | MAN= lib2648.0 |
3c04567b | 35 | |
67867afc KB |
36 | all: lib2648.a |
37 | ||
38 | lib2648.a: ${OBJS} | |
d87f5d64 KB |
39 | @echo building normal lib2648 |
40 | @ar cr lib2648.a `lorder ${OBJS} | tsort` | |
41 | ranlib lib2648.a | |
3c04567b | 42 | |
f3c2752f | 43 | clean: |
67867afc KB |
44 | rm -f ${OBJS} core lib2648.a |
45 | ||
f3c2752f KB |
46 | cleandir: clean |
47 | rm -f ${MAN} tags .depend | |
48 | ||
49 | depend: ${SRCS} | |
67867afc KB |
50 | mkdep ${CFLAGS} ${SRCS} |
51 | ||
f3c2752f | 52 | install: ${MAN} |
67867afc | 53 | install -o bin -g bin -m 644 lib2648.a ${DESTDIR}/usr/lib/lib2648.a |
d87f5d64 | 54 | ranlib -t ${DESTDIR}/usr/lib/lib2648.a |
f3c2752f | 55 | install -c -o bin -g bin -m 444 lib2648.0 ${DESTDIR}/usr/man/cat3 |
3c04567b | 56 | |
f3c2752f | 57 | lint: ${SRCS} |
67867afc KB |
58 | lint ${CFLAGS} ${SRCS} |
59 | ||
f3c2752f | 60 | tags: ${SRCS} |
3c04567b | 61 | ctags ${SRCS} |