Commit | Line | Data |
---|---|---|
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 | # |
19 | CFLAGS= -O | |
20 | LIBC= /lib/libc.a | |
5070d2b6 | 21 | ALL= libf77plot libplot lib300 lib300s lib4013 lib4014 lib450 libvt0 \ |
94f17316 KB |
22 | libplotaed libplotbg libplotdumb libplotgigi libplot2648 libplot7221 \ |
23 | libplotimagen libplotgrn | |
24 | SUBDIRS=tf77 plot t4013 t4014 t300 t300s t450 vt0 aed bitgraph dumb gigi \ | |
25 | hp2648 hp7221 imagen grn | |
f3c2752f | 26 | MAN= plot.0 |
08ae617f | 27 | |
94f17316 | 28 | all: ${ALL} |
738da2ff | 29 | |
5070d2b6 SL |
30 | libf77plot: FRC |
31 | cd tf77; make ${MFLAGS} | |
32 | ||
9b0b4566 | 33 | libplot: FRC |
738da2ff SL |
34 | cd plot; make ${MFLAGS} |
35 | ||
5070d2b6 SL |
36 | lib4013: FRC |
37 | cd t4013; make ${MFLAGS} | |
38 | ||
acb87785 | 39 | lib4014: FRC |
738da2ff SL |
40 | cd t4014; make ${MFLAGS} |
41 | ||
acb87785 | 42 | lib300: FRC |
738da2ff SL |
43 | cd t300; make ${MFLAGS} |
44 | ||
acb87785 | 45 | lib300s: FRC |
738da2ff SL |
46 | cd t300s; make ${MFLAGS} |
47 | ||
acb87785 | 48 | lib450: FRC |
738da2ff SL |
49 | cd t450; make ${MFLAGS} |
50 | ||
9b0b4566 | 51 | libvt0: FRC |
738da2ff SL |
52 | cd vt0; make ${MFLAGS} |
53 | ||
50c5f98d RC |
54 | libplotaed: FRC |
55 | cd aed; make ${MFLAGS} | |
56 | ||
57 | libplotbg: FRC | |
58 | cd bitgraph; make ${MFLAGS} | |
59 | ||
60 | libplotdumb: FRC | |
61 | cd dumb; make ${MFLAGS} | |
62 | ||
63 | libplotgigi: FRC | |
64 | cd gigi; make ${MFLAGS} | |
65 | ||
66 | libplot2648: FRC | |
67 | cd hp2648; make ${MFLAGS} | |
68 | ||
69 | libplot7221: FRC | |
70 | cd hp7221; make ${MFLAGS} | |
71 | ||
9cc57cc6 | 72 | libplotimagen: FRC |
5517f37a SL |
73 | cd imagen; make ${MFLAGS} |
74 | ||
887d93ef KS |
75 | libplotgrn: FRC |
76 | cd grn; make ${MFLAGS} | |
77 | ||
f3c2752f | 78 | clean: |
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 |
84 | cleandir: clean |
85 | rm -f ${MAN} tags .depend | |
86 | ||
87 | depend lint tags: FRC | |
94f17316 | 88 | for i in ${SUBDIRS}; do \ |
f3c2752f | 89 | (cd $$i; make ${MFLAGS} $@); done |
94f17316 | 90 | |
f3c2752f | 91 | install: ${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 | 98 | FRC: |