xref: /csrg-svn/lib/libplot/Makefile (revision 37378)
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.13 (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
27
28all: ${ALL}
29
30libf77plot: FRC
31	cd tf77; make ${MFLAGS}
32
33libplot: FRC
34	cd plot; make ${MFLAGS}
35
36lib4013: FRC
37	cd t4013; make ${MFLAGS}
38
39lib4014: FRC
40	cd t4014; make ${MFLAGS}
41
42lib300: FRC
43	cd t300; make ${MFLAGS}
44
45lib300s: FRC
46	cd t300s; make ${MFLAGS}
47
48lib450: FRC
49	cd t450; make ${MFLAGS}
50
51libvt0: FRC
52	cd vt0; make ${MFLAGS}
53
54libplotaed: FRC
55	cd aed; make ${MFLAGS}
56
57libplotbg: FRC
58	cd bitgraph; make ${MFLAGS}
59
60libplotdumb: FRC
61	cd dumb; make ${MFLAGS}
62
63libplotgigi: FRC
64	cd gigi; make ${MFLAGS}
65
66libplot2648: FRC
67	cd hp2648; make ${MFLAGS}
68
69libplot7221: FRC
70	cd hp7221; make ${MFLAGS}
71
72libplotimagen: FRC
73	cd imagen; make ${MFLAGS}
74
75libplotgrn: FRC
76	cd grn; make ${MFLAGS}
77
78clean:
79	rm -f ${ALL} core
80	for i in ${SUBDIRS}; do \
81		(cd $$i; make ${MFLAGS} clean); \
82	done
83
84cleandir: clean
85	rm -f ${MAN} tags .depend
86
87depend lint tags: FRC
88	for i in ${SUBDIRS}; do \
89		(cd $$i; make ${MFLAGS} $@); done
90
91install: ${MAN}
92	for i in ${ALL}; do \
93		install -o bin -g bin -m 644 $$i ${DESTDIR}/usr/lib/$$i.a; \
94		ranlib ${DESTDIR}/usr/lib/$$i.a; \
95	done
96	install -c -o bin -g bin -m 444 plot.0 ${DESTDIR}/usr/man/cat3
97
98FRC:
99