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