1# 2# Copyright (c) 1987 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 MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. 16# 17# @(#)Makefile 4.13 (Berkeley) 07/24/89 18# 19CFLAGS= -O 20LIBC= /lib/libc.a 21SRCS= atoplot.c chrtab.c crtdriver.c crtplot.c debug.c driver.c plottoa.c 22OBJS= atoplot.o chrtab.o crtdriver.o crtplot.o debug.o driver.o plottoa.o 23ALL= tek t4013 t300 t300s t450 aedplot bgplot crtplot dumbplot gigiplot \ 24 hpplot hp7221plot implot atoplot plottoa grnplot 25MAN= plot.0 26 27all: ${ALL} debug 28 29tek: driver.o 30 ${CC} ${CFLAGS} -o $@ driver.o -l4014 -lm -lcompat 31 32t4013: driver.o 33 ${CC} ${CFLAGS} -o $@ driver.o -l4013 -lm -lcompat 34 35t300: driver.o 36 ${CC} ${CFLAGS} -o $@ driver.o -l300 -lm -lcompat 37 38t300s: driver.o 39 ${CC} ${CFLAGS} -o $@ driver.o -l300s -lm -lcompat 40 41t450: driver.o 42 ${CC} ${CFLAGS} -o $@ driver.o -l450 -lm -lcompat 43 44aedplot: driver.o 45 ${CC} ${CFLAGS} -o $@ driver.o -lplotaed -lcompat 46 47bgplot: driver.o 48 ${CC} ${CFLAGS} -o $@ driver.o -lplotbg -lm -lcompat 49 50crtplot: crtdriver.o crtplot.o 51 ${CC} ${CFLAGS} -o $@ crtdriver.o crtplot.o -lcurses -ltermcap -lm -lcompat 52 53dumbplot: driver.o 54 ${CC} ${CFLAGS} -o $@ driver.o -lplotdumb -ltermcap -lm -lcompat 55 56gigiplot: driver.o 57 ${CC} ${CFLAGS} -o $@ driver.o -lplotgigi -lm -lcompat 58 59hpplot: driver.o 60 ${CC} ${CFLAGS} -o $@ driver.o -lplot2648 -lm -lcompat 61 62hp7221plot: driver.o 63 ${CC} ${CFLAGS} -o $@ driver.o -lplot7221 -lm -lcompat 64 65implot: driver.o 66 ${CC} ${CFLAGS} -o $@ driver.o -lplotimagen -lm -lcompat 67 68atoplot: atoplot.o 69 ${CC} ${CFLAGS} -o $@ atoplot.o -lplot -lm -lcompat 70 71plottoa: plottoa.o 72 ${CC} ${CFLAGS} -o $@ plottoa.o 73 74grnplot: driver.o 75 ${CC} ${CFLAGS} -o $@ driver.o -lplotgrn -lm -lcompat 76 77debug: debug.o 78 ${CC} ${CFLAGS} -o $@ debug.o 79 80clean: 81 rm -f ${OBJS} ${ALL} debug core 82 83cleandir: clean 84 rm -f ${MAN} tags .depend 85 86depend: ${SRCS} 87 mkdep ${CFLAGS} ${SRCS} 88 89install: ${MAN} 90 install -s -o bin -g bin -m 755 ${ALL} ${DESTDIR}/usr/libexec/plot 91 install -c -o bin -g bin -m 755 plot.sh ${DESTDIR}/usr/bin/plot 92 install -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat1 93 94lint: ${SRCS} 95 lint ${CFLAGS} ${SRCS} 96 97tags: ${SRCS} 98 ctags ${SRCS} 99