1# Makefile 4.7 83/11/11 2# 3ALL= libplot lib300 lib300s lib4014 lib450 libvt0 \ 4 libplotaed libplotbg libplotdumb libplotgigi libplot2648 libplot7221 5SUBDIRS=plot t4014 t300 t300s t450 vt0 \ 6 aed bitgraph dumb gigi hp2648 hp7221 7 8all: ${ALL} 9 10libplot: FRC 11 cd plot; make ${MFLAGS} 12 13lib4014: FRC 14 cd t4014; make ${MFLAGS} 15 16lib300: FRC 17 cd t300; make ${MFLAGS} 18 19lib300s: FRC 20 cd t300s; make ${MFLAGS} 21 22lib450: FRC 23 cd t450; make ${MFLAGS} 24 25libvt0: FRC 26 cd vt0; make ${MFLAGS} 27 28libplotaed: FRC 29 cd aed; make ${MFLAGS} 30 31libplotbg: FRC 32 cd bitgraph; make ${MFLAGS} 33 34libplotdumb: FRC 35 cd dumb; make ${MFLAGS} 36 37libplotgigi: FRC 38 cd gigi; make ${MFLAGS} 39 40libplot2648: FRC 41 cd hp2648; make ${MFLAGS} 42 43libplot7221: FRC 44 cd hp7221; make ${MFLAGS} 45 46FRC: 47 48install: all 49 for i in ${ALL}; do \ 50 install -m 644 $$i ${DESTDIR}/usr/lib/$$i.a; \ 51 ranlib ${DESTDIR}/usr/lib/$$i.a; \ 52 done 53 54clean: 55 rm -f ${ALL} errs a.out core 56 for i in ${SUBDIRS}; do \ 57 (cd $$i; make ${MFLAGS} clean); \ 58 done 59