1# 2# Copyright (c) 1989 The Regents of the University of California. 3# All rights reserved. 4# 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.4 (Berkeley) 05/10/89 18# 19CFLAGS= -DTRACE -O 20SRCS= agoto.c aminmax.c aon.c areaclear.c beep.c bitcopy.c cleara.c \ 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 34MAN= lib2648.0 35 36all: lib2648.a 37 38lib2648.a: ${OBJS} 39 @echo building normal lib2648 40 @ar cr lib2648.a `lorder ${OBJS} | tsort` 41 ranlib lib2648.a 42 43clean: 44 rm -f ${OBJS} core lib2648.a 45 46cleandir: clean 47 rm -f ${MAN} tags .depend 48 49depend: ${SRCS} 50 mkdep ${CFLAGS} ${SRCS} 51 52install: ${MAN} 53 install -o bin -g bin -m 644 lib2648.a ${DESTDIR}/usr/lib/lib2648.a 54 ranlib -t ${DESTDIR}/usr/lib/lib2648.a 55 install -c -o bin -g bin -m 444 lib2648.0 ${DESTDIR}/usr/man/cat3 56 57lint: ${SRCS} 58 lint ${CFLAGS} ${SRCS} 59 60tags: ${SRCS} 61 ctags ${SRCS} 62