`# $Id: Makefile.host,v 1.4 2010/12/03 15:05:49 ksb Exp $ # platform recipe for quot, the lesser ksb implementation PROG= quot BIN= ${DESTDIR}/usr/local/sbin/ DOC= ${DESTDIR}/usr/local/man I=/usr/include S=/usr/include/sys L=/usr/include/local P= INCLUDE= DEBUG= -O CDEFS= -D'HOSTTYPE` -DSP_RECURSE=1 CFLAGS= ${DEBUG} ${CDEFS} ${INCLUDE} GENC= main.c sparse.c GENH= main.h sparse.h GEN= ${GENC} ${GENH} HDR= machine.h SRC= DEP= ${GENC} ${LINKC} ${SRC} OBJ= main.o sparse.o MAN= quot.man OTHER= README TODO quot.m SOURCE= Makefile ITO.spec ${OTHER} ${MAN} ${HDR} ${SRC} all: ${PROG} ${PROG}:$P ${OBJ} ${CC} -o $@ ${CFLAGS} ${OBJ} main.h: main.c main.c: ${PROG}.m mkcmd ${PROG}.m -(cmp -s prog.c main.c || (cp prog.c main.c && echo main.c updated)) -(cmp -s prog.h main.h || (cp prog.h main.h && echo main.h updated)) rm -f prog.[ch] # sparse is so small we will just take the whole thing (ksb) sparse.h: explode -s sparse.h sparse.c: explode -s sparse.c clean: FRC rm -f Makefile.bak ${PROG} ${GEN} ${LINK} *.o a.out core errs lint.out tags calls: ${SRC} ${HDR} ${GEN} FRC calls ${CDEFS} ${INCLUDE} ${DEP} deinstall: ${MAN} ${DOC} FRC install -R ${BIN}/${PROG} mkcat -r${DOC} -D ${MAN} depend: ${SRC} ${HDR} ${GEN} ${LINK} FRC maketd ${CDEFS} ${INCLUDE} ${DEP} dirs: ${BIN} distrib: FRC distrib -c ${BIN}/${PROG} HOST install: all dirs FRC install -cs ${PROG} ${BIN}/${PROG} lint: ${SRC} ${HDR} ${GEN} FRC lint -h ${CDEFS} ${INCLUDE} ${DEP} mkcat: ${MAN} ${DOC} FRC mkcat -r${DOC} ${MAN} print: source FRC lpr -J"${PROG} source" ${SOURCE} source: ${SOURCE} spotless: clean rcsclean ${SOURCE} tags: ${HDR} ${SRC} ${GEN} ctags -t ${HDR} ${SRC} ${GEN} ${BIN}: install -dr $@ ${SOURCE}: co -q $@ FRC: # DO NOT DELETE THIS LINE - make depend DEPENDS ON IT main.o: main.c main.h machine.h sparse.h sparse.o: sparse.c sparse.h # *** Do not add anything here - It will go away. *** 'dnl