`# $Id: Makefile.host,v 2.3 2010/12/06 15:49:09 ksb Exp $ # platform recipe for nushar, msrc 2008 SHELL=/bin/sh PROG= nushar BIN= ${DESTDIR}/usr/local/bin DOC= ${DESTDIR}/usr/man I=/usr/include S=/usr/include/sys L=/usr/include/local P= INCLUDE= DEBUG= -O CDEFS= -D'HOSTTYPE` CFLAGS= ${DEBUG} ${CDEFS} ${INCLUDE} CC=gcc GENC= main.c binpack.c GENH= main.h binpack.h GEN= ${GENC} ${GENH} HDR= config.h machine.h nushar.h shar.h tree.h SRC= nushar.c shar.c tree.c util.c DEP= ${GENC} ${SRC} OBJ= main.o binpack.o nushar.o shar.o tree.o util.o MAN= nushar.man OTHER= README TODO nushar.m SOURCE= Makefile ITO.spec ${OTHER} ${MAN} ${HDR} ${SRC} all: ${PROG} ${PROG}:$P ${OBJ} ${CC} -o $@ ${CFLAGS} ${OBJ}'ifelse( HOSTTYPE,`SUN5',` -lnsl')` 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] binpack.c: MACHINE_H="#include \"config.h\"" explode -o - -u pack binpack.c >temp.c mv temp.c binpack.c binpack.h: explode -s binpack.h clean: FRC rm -f Makefile.bak temp.c ${PROG} ${GEN} *.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} 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: config.h main.c nushar.h shar.h binpack.o: binpack.c binpack.h config.h nushar.o: binpack.h config.h machine.h main.h nushar.c nushar.h shar.h tree.h shar.o: machine.h main.h shar.c shar.h tree.h tree.o: machine.h tree.c tree.h util.o: machine.h util.c # *** Do not add anything here - It will go away. *** 'dnl