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