`# $Id: Makefile.host,v 2.9 2011/05/18 19:53:53 ksb Exp $ # platform recipe for Tee (aka. big tee) SHELL=/bin/sh PROG= Tee BIN= ${DESTDIR}/usr/local/bin DOC= ${DESTDIR}/usr/local/man/man1 I=/usr/include S=/usr/include/sys P= INCLUDE= DEBUG= -O CDEFS= -D'HOSTTYPE` -DPIPERING_STALL=15 CFLAGS= ${DEBUG} ${CDEFS} ${INCLUDE} CC= cc HDR= machine.h SRC= GENC= main.c piperingring.c GENH= main.h pipering.h GEN= ${GENC} ${GENH} DEP= ${SRC} ${GENC} OBJ= main.o piperingring.o MAN= Tee.man OTHER= Tee.m TODO SOURCE= Makefile ITO.spec ${MAN} ${HDR} ${SRC} ${OTHER} all: ${PROG} ${PROG}:$P ${OBJ} ${CC} ${DEBUG} -o $@ ${OBJ} main.h: main.c main.c: Tee.m mkcmd Tee.m -(cmp -s prog.c main.c || (mv prog.c main.c && echo main.c updated)) -(cmp -s prog.h main.h || (mv prog.h main.h && echo main.h updated)) rm -f prog.[ch] pipering.h: explode -s pipering.h piperingring.c: explode -u ring pipering.c clean: FRC rm -f Makefile.bak ${PROG} ${GEN} *.o a.out core errs tags depend: ${HDR} ${SRC} ${GEN} FRC maketd ${CDEFS} ${INCLUDE} ${DEP} distrib: FRC distrib -c ${BIN}/${PROG} HOST install: all dirs FRC install -c -s ${PROG} ${BIN}/${PROG} lint: ${HDR} ${SRC} ${GEN} FRC lint -h ${CDEFS} ${INCLUDE} ${DEP} mkcat: ${MAN} mkcat ${MAN} print: source FRC lpr -J"${PROG} source" ${SOURCE} dirs: ${BIN} ${DOC} ${BIN} ${DOC}: install -dr $@ source: ${SOURCE} spotless: clean rcsclean ${SOURCE} tags: ${HDR} ${SRC} ${GEN} ctags -t ${HDR} ${SRC} ${GEN} ${SOURCE}: co -q $@ FRC: # DO NOT DELETE THIS LINE - maketd DEPENDS ON IT piperingring.o: piperingring.c main.o: main.c machine.h pipering.h main.c: Tee.m # *** Do not add anything here - It will go away. *** 'dnl