add man page
[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#
17# @(#)Makefile 4.13 (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
08ae617f 27
94f17316 28all: ${ALL}
738da2ff 29
5070d2b6
SL
30libf77plot: FRC
31 cd tf77; make ${MFLAGS}
32
9b0b4566 33libplot: FRC
738da2ff
SL
34 cd plot; make ${MFLAGS}
35
5070d2b6
SL
36lib4013: FRC
37 cd t4013; make ${MFLAGS}
38
acb87785 39lib4014: FRC
738da2ff
SL
40 cd t4014; make ${MFLAGS}
41
acb87785 42lib300: FRC
738da2ff
SL
43 cd t300; make ${MFLAGS}
44
acb87785 45lib300s: FRC
738da2ff
SL
46 cd t300s; make ${MFLAGS}
47
acb87785 48lib450: FRC
738da2ff
SL
49 cd t450; make ${MFLAGS}
50
9b0b4566 51libvt0: FRC
738da2ff
SL
52 cd vt0; make ${MFLAGS}
53
50c5f98d
RC
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
9cc57cc6 72libplotimagen: FRC
5517f37a
SL
73 cd imagen; make ${MFLAGS}
74
887d93ef
KS
75libplotgrn: FRC
76 cd grn; make ${MFLAGS}
77
f3c2752f 78clean:
94f17316
KB
79 rm -f ${ALL} core
80 for i in ${SUBDIRS}; do \
81 (cd $$i; make ${MFLAGS} clean); \
82 done
738da2ff 83
f3c2752f
KB
84cleandir: clean
85 rm -f ${MAN} tags .depend
86
87depend lint tags: FRC
94f17316 88 for i in ${SUBDIRS}; do \
f3c2752f 89 (cd $$i; make ${MFLAGS} $@); done
94f17316 90
f3c2752f 91install: ${MAN}
738da2ff 92 for i in ${ALL}; do \
94f17316 93 install -o bin -g bin -m 644 $$i ${DESTDIR}/usr/lib/$$i.a; \
9b0b4566 94 ranlib ${DESTDIR}/usr/lib/$$i.a; \
738da2ff 95 done
f3c2752f 96 install -c -o bin -g bin -m 444 plot.0 ${DESTDIR}/usr/man/cat3
738da2ff 97
94f17316 98FRC: