Oops - make work on older (4.2) systems.
[unix-history] / usr / src / usr.bin / plot / Makefile
... / ...
CommitLineData
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#
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
31
32t4013: driver.o
33 ${CC} ${CFLAGS} -o $@ driver.o -l4013 -lm
34
35t300: driver.o
36 ${CC} ${CFLAGS} -o $@ driver.o -l300 -lm
37
38t300s: driver.o
39 ${CC} ${CFLAGS} -o $@ driver.o -l300s -lm
40
41t450: driver.o
42 ${CC} ${CFLAGS} -o $@ driver.o -l450 -lm
43
44aedplot: driver.o
45 ${CC} ${CFLAGS} -o $@ driver.o -lplotaed
46
47bgplot: driver.o
48 ${CC} ${CFLAGS} -o $@ driver.o -lplotbg -lm
49
50crtplot: crtdriver.o crtplot.o
51 ${CC} ${CFLAGS} -o $@ crtdriver.o crtplot.o -lcurses -ltermcap -lm
52
53dumbplot: driver.o
54 ${CC} ${CFLAGS} -o $@ driver.o -lplotdumb -ltermcap -lm
55
56gigiplot: driver.o
57 ${CC} ${CFLAGS} -o $@ driver.o -lplotgigi -lm
58
59hpplot: driver.o
60 ${CC} ${CFLAGS} -o $@ driver.o -lplot2648 -lm
61
62hp7221plot: driver.o
63 ${CC} ${CFLAGS} -o $@ driver.o -lplot7221 -lm
64
65implot: driver.o
66 ${CC} ${CFLAGS} -o $@ driver.o -lplotimagen -lm
67
68atoplot: atoplot.o
69 ${CC} ${CFLAGS} -o $@ atoplot.o -lplot -lm
70
71plottoa: plottoa.o
72 ${CC} ${CFLAGS} -o $@ plottoa.o
73
74grnplot: driver.o
75 ${CC} ${CFLAGS} -o $@ driver.o -lplotgrn -lm
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 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
96lint: ${SRCS}
97 lint ${CFLAGS} ${SRCS}
98
99tags: ${SRCS}
100 ctags ${SRCS}