`# $Id: Makefile.host,v 1.26 2012/03/26 18:34:24 ksb Exp $ # This platform recipe only knows how to make clean, source, and install. DESTDIR= LIBEXEC=${DESTDIR}/usr/local/libexec/jacket SBIN=${DESTDIR}/usr/local/sbin MAN7=${DESTDIR}/usr/local/man/man7 MAN8=${DESTDIR}/usr/local/man/man8 SBINLN= stampctl BINLIST= coat envauth manifest proxy-agent sheval signed \ stamp timebox ttyowner wrope xdisplay ${SBINLN} MAN= op-jacket.man coat.man manifest.man proxy-agent.man sheval.man \ signed.man stamp.man stampctl.man wrope.man SOURCE= Makefile ITO.spec INSTALL README Jacket.pl jacket.html ${MAN} \ coat.m sheval.pl signed.pl stamp.m stampctl.m stampproto.m \ xdisplay.pl envauth.pl manifest.pl proxy-agent.pl \ ttyowner.pl timebox.pl GEN= ext.m all: source ${BINLIST} ${LIBEXEC} ${MAN7} ${MAN8}: install -dr -m 0755 $@ clean: FRC rm -f stamp*.[ch] coat.[ch] ${BINLIST} rm -f Makefile.bak prog.[ch] a.out *.o *core ${GEN} coat: ext.m coat.m MK= mk -mCompile -d"-DHOSTTYPE='HOSTTYPE`'ifelse(HOSTTYPE,`SUN5',` -lsocket -lnsl')`" coat.m envauth: envauth.pl perl -T -w -c $@.pl cp $@.pl $@ # The C wire protocol jackets use for op external commands --ksb ext.m: stamp.m stampctl.m explode -o - -u ExtLine,ExtDecode stamp.m >$@ # explode -o - -u NVPReply stampctl.m >>$@ manifest: manifest.pl perl -T -w -c $@.pl cp $@.pl $@ proxy-agent: proxy-agent.pl perl -T -w -c $@.pl cp $@.pl $@ sheval: sheval.pl perl -T -w -c $@.pl cp $@.pl $@ signed: signed.pl perl -T -w -c $@.pl cp $@.pl $@ stamp: stamp.m stampproto.m MK= mk -mCompile -d"-DHOSTTYPE='HOSTTYPE`'ifelse(HOSTTYPE,`SUN5',` -lsocket -lnsl')`" stamp.m stampctl: stampctl.m stampproto.m MK= mk -mCompile -d"-DHOSTTYPE='HOSTTYPE`'ifelse(HOSTTYPE,`SUN5',` -lsocket -lnsl')`" stampctl.m timebox: timebox.pl perl -T -w -c $@.pl cp $@.pl $@ ttyowner: ttyowner.pl perl -T -w -c $@.pl cp $@.pl $@ wrope: wrope.pl perl -T -w -c $@.pl cp $@.pl $@ xdisplay: xdisplay.pl perl -T -w -c $@.pl cp $@.pl $@ # Never make a jacket or helmet setuid or setgid, they could be run # directly: rather they could call op recursively, if you like. install: all ${LIBEXEC} install -cm 0755 ${BINLIST} ${LIBEXEC}/ Rel=../libexec/jacket ;\ for Link in ${SBINLN} ; do\ [ -L ${SBIN}/$$Link ] && continue ;\ ln -s $$Rel/$$Link ${SBIN}/ ;\ done manual: ${MAN7} ${MAN8} MK= mk -DDESTDIR=${DESTDIR} -mInstall ${MAN} source: ${SOURCE} FRC: 'dnl