xref: /original-bsd/lib/libplot/Makefile (revision 4aa23bb2)
1#
2# Copyright (c) 1989 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 MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
16#
17#	@(#)Makefile	4.14 (Berkeley) 04/10/89
18#
19CFLAGS=	-O
20LIBC=	/lib/libc.a
21ALL=	libf77plot libplot lib300 lib300s lib4013 lib4014 lib450 libvt0 \
22	libplotaed libplotbg libplotdumb libplotgigi libplot2648 libplot7221 \
23	libplotimagen libplotgrn
24SUBDIRS=tf77 plot t4013 t4014 t300 t300s t450 vt0 aed bitgraph dumb gigi \
25	hp2648 hp7221 imagen grn
26MAN=	plot.0
27MDIR=	${DESTDIR}/usr/man/cat3
28
29all: ${ALL}
30
31libf77plot: FRC
32	cd tf77; make ${MFLAGS}
33
34libplot: FRC
35	cd plot; make ${MFLAGS}
36
37lib4013: FRC
38	cd t4013; make ${MFLAGS}
39
40lib4014: FRC
41	cd t4014; make ${MFLAGS}
42
43lib300: FRC
44	cd t300; make ${MFLAGS}
45
46lib300s: FRC
47	cd t300s; make ${MFLAGS}
48
49lib450: FRC
50	cd t450; make ${MFLAGS}
51
52libvt0: FRC
53	cd vt0; make ${MFLAGS}
54
55libplotaed: FRC
56	cd aed; make ${MFLAGS}
57
58libplotbg: FRC
59	cd bitgraph; make ${MFLAGS}
60
61libplotdumb: FRC
62	cd dumb; make ${MFLAGS}
63
64libplotgigi: FRC
65	cd gigi; make ${MFLAGS}
66
67libplot2648: FRC
68	cd hp2648; make ${MFLAGS}
69
70libplot7221: FRC
71	cd hp7221; make ${MFLAGS}
72
73libplotimagen: FRC
74	cd imagen; make ${MFLAGS}
75
76libplotgrn: FRC
77	cd grn; make ${MFLAGS}
78
79clean:
80	rm -f ${ALL} core
81	for i in ${SUBDIRS}; do \
82		(cd $$i; make ${MFLAGS} clean); \
83	done
84
85cleandir: clean
86	rm -f ${MAN} tags .depend
87
88depend lint tags: FRC
89	for i in ${SUBDIRS}; do \
90		(cd $$i; make ${MFLAGS} $@); done
91
92install: ${MAN}
93	for i in ${ALL}; do \
94		install -o bin -g bin -m 644 $$i ${DESTDIR}/usr/lib/$$i.a; \
95		ranlib ${DESTDIR}/usr/lib/$$i.a; \
96	done
97	install -c -o bin -g bin -m 444 plot.0 ${DESTDIR}/usr/man/cat3
98	rm -f ${MDIR}/arc.0; ln ${MDIR}/plot.0 ${MDIR}/arc.0
99	rm -f ${MDIR}/circle.0; ln ${MDIR}/plot.0 ${MDIR}/circle.0
100	rm -f ${MDIR}/cont.0; ln ${MDIR}/plot.0 ${MDIR}/cont.0
101	rm -f ${MDIR}/erase.0; ln ${MDIR}/plot.0 ${MDIR}/erase.0
102	rm -f ${MDIR}/label.0; ln ${MDIR}/plot.0 ${MDIR}/label.0
103	rm -f ${MDIR}/line.0; ln ${MDIR}/plot.0 ${MDIR}/line.0
104	rm -f ${MDIR}/linemod.0; ln ${MDIR}/plot.0 ${MDIR}/linemod.0
105	rm -f ${MDIR}/move.0; ln ${MDIR}/plot.0 ${MDIR}/move.0
106	rm -f ${MDIR}/openpl.0; ln ${MDIR}/plot.0 ${MDIR}/openpl.0
107	rm -f ${MDIR}/point.0; ln ${MDIR}/plot.0 ${MDIR}/point.0
108	rm -f ${MDIR}/space.0; ln ${MDIR}/plot.0 ${MDIR}/space.0
109
110FRC:
111