xref: /original-bsd/usr.bin/plot/Makefile (revision 1a56dd2c)
1#
2# Copyright (c) 1987 Regents of the University of California.
3# All rights reserved.  The Berkeley software License Agreement
4# specifies the terms and conditions for redistribution.
5#
6#	@(#)Makefile	4.10	(Berkeley)	12/01/87
7#
8CFLAGS=	-O
9LIBC=	/lib/libc.a
10SRCS=	atoplot.c chrtab.c crtdriver.c crtplot.c debug.c driver.c plottoa.c
11OBJS=	atoplot.o chrtab.o crtdriver.o crtplot.o debug.o driver.o plottoa.o
12ALL=	tek t4013 t300 t300s t450 aedplot bgplot crtplot dumbplot gigiplot \
13	hpplot hp7221plot implot atoplot plottoa grnplot
14
15all: ${ALL} debug
16
17tek: driver.o
18	${CC} ${CFLAGS} -o $@ driver.o -l4014 -lm
19
20t4013: driver.o
21	${CC} ${CFLAGS} -o $@ driver.o -l4013 -lm
22
23t300: driver.o
24	${CC} ${CFLAGS} -o $@ driver.o -l300 -lm
25
26t300s: driver.o
27	${CC} ${CFLAGS} -o $@ driver.o -l300s -lm
28
29t450: driver.o
30	${CC} ${CFLAGS} -o $@ driver.o -l450 -lm
31
32aedplot: driver.o
33	${CC} ${CFLAGS} -o $@ driver.o -lplotaed
34
35bgplot: driver.o
36	${CC} ${CFLAGS} -o $@ driver.o -lplotbg -lm
37
38crtplot: crtdriver.o crtplot.o
39	${CC} ${CFLAGS} -o $@ crtdriver.o crtplot.o -lcurses -ltermcap -lm
40
41dumbplot: driver.o
42	${CC} ${CFLAGS} -o $@ driver.o -lplotdumb -ltermcap -lm
43
44gigiplot: driver.o
45	${CC} ${CFLAGS} -o $@ driver.o -lplotgigi -lm
46
47hpplot: driver.o
48	${CC} ${CFLAGS} -o $@ driver.o -lplot2648 -lm
49
50hp7221plot: driver.o
51	${CC} ${CFLAGS} -o $@ driver.o -lplot7221 -lm
52
53implot: driver.o
54	${CC} ${CFLAGS} -o $@ driver.o -lplotimagen -lm
55
56atoplot: atoplot.o
57	${CC} ${CFLAGS} -o $@ atoplot.o -lplot -lm
58
59plottoa: plottoa.o
60	${CC} ${CFLAGS} -o $@ plottoa.o
61
62grnplot: driver.o
63	${CC} ${CFLAGS} -o $@ driver.o -lplotgrn -lm
64
65debug: debug.o
66	${CC} ${CFLAGS} -o $@ debug.o
67
68clean: FRC
69	rm -f ${OBJS} ${ALL} debug core
70
71depend: FRC
72	mkdep ${CFLAGS} ${SRCS}
73
74install: FRC
75	for i in ${ALL}; do \
76		(install -s -o bin -g bin -m 755 $$i ${DESTDIR}/usr/bin/$$i); \
77	done
78	install -c -o bin -g bin -m 755 plot.sh ${DESTDIR}/usr/bin/plot
79
80lint: FRC
81	lint ${CFLAGS} ${SRCS}
82
83tags: FRC
84	ctags ${SRCS}
85
86FRC:
87
88# DO NOT DELETE THIS LINE -- mkdep uses it.
89# DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY.
90
91atoplot.o: atoplot.c /usr/include/stdio.h
92chrtab.o: chrtab.c
93crtdriver.o: crtdriver.c /usr/include/stdio.h
94crtplot.o: crtplot.c /usr/include/curses.h /usr/include/stdio.h
95crtplot.o: /usr/include/sgtty.h /usr/include/sys/ioctl.h
96crtplot.o: /usr/include/sys/ttychars.h /usr/include/sys/ttydev.h
97crtplot.o: /usr/include/math.h /usr/include/signal.h
98debug.o: debug.c /usr/include/stdio.h
99driver.o: driver.c /usr/include/stdio.h
100plottoa.o: plottoa.c /usr/include/stdio.h
101
102# IF YOU PUT ANYTHING HERE IT WILL GO AWAY
103