date and time created 90/05/11 12:34:52 by bostic
[unix-history] / usr / src / lib / libplot / Makefile
CommitLineData
738da2ff 1#
f3c2752f
KB
2# Copyright (c) 1989 The Regents of the University of California.
3# All rights reserved.
94f17316 4#
f3c2752f
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 MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
16#
7ea8e154 17# @(#)Makefile 4.14 (Berkeley) %G%
94f17316
KB
18#
19CFLAGS= -O
20LIBC= /lib/libc.a
5070d2b6 21ALL= libf77plot libplot lib300 lib300s lib4013 lib4014 lib450 libvt0 \
94f17316
KB
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
f3c2752f 26MAN= plot.0
7ea8e154 27MDIR= ${DESTDIR}/usr/man/cat3
08ae617f 28
94f17316 29all: ${ALL}
738da2ff 30
5070d2b6
SL
31libf77plot: FRC
32 cd tf77; make ${MFLAGS}
33
9b0b4566 34libplot: FRC
738da2ff
SL
35 cd plot; make ${MFLAGS}
36
5070d2b6
SL
37lib4013: FRC
38 cd t4013; make ${MFLAGS}
39
acb87785 40lib4014: FRC
738da2ff
SL
41 cd t4014; make ${MFLAGS}
42
acb87785 43lib300: FRC
738da2ff
SL
44 cd t300; make ${MFLAGS}
45
acb87785 46lib300s: FRC
738da2ff
SL
47 cd t300s; make ${MFLAGS}
48
acb87785 49lib450: FRC
738da2ff
SL
50 cd t450; make ${MFLAGS}
51
9b0b4566 52libvt0: FRC
738da2ff
SL
53 cd vt0; make ${MFLAGS}
54
50c5f98d
RC
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
9cc57cc6 73libplotimagen: FRC
5517f37a
SL
74 cd imagen; make ${MFLAGS}
75
887d93ef
KS
76libplotgrn: FRC
77 cd grn; make ${MFLAGS}
78
f3c2752f 79clean:
94f17316
KB
80 rm -f ${ALL} core
81 for i in ${SUBDIRS}; do \
82 (cd $$i; make ${MFLAGS} clean); \
83 done
738da2ff 84
f3c2752f
KB
85cleandir: clean
86 rm -f ${MAN} tags .depend
87
88depend lint tags: FRC
94f17316 89 for i in ${SUBDIRS}; do \
f3c2752f 90 (cd $$i; make ${MFLAGS} $@); done
94f17316 91
f3c2752f 92install: ${MAN}
738da2ff 93 for i in ${ALL}; do \
94f17316 94 install -o bin -g bin -m 644 $$i ${DESTDIR}/usr/lib/$$i.a; \
9b0b4566 95 ranlib ${DESTDIR}/usr/lib/$$i.a; \
738da2ff 96 done
f3c2752f 97 install -c -o bin -g bin -m 444 plot.0 ${DESTDIR}/usr/man/cat3
7ea8e154
KB
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
738da2ff 109
94f17316 110FRC: