`# $Id: Makefile.host,v 1.11 2010/12/06 18:26:15 ksb Exp $ # platform recipe for untmp, msrc 2008 SHELL=/bin/sh PROG= untmp BIN= ${DESTDIR}/usr/local/bin DOC= ${DESTDIR}/usr/local/man/man1 I=/usr/include S=/usr/include/sys L=/usr/'ifelse(HOSTTYPE,`SUN5',`local/`include'',``include'/local')` P= INCLUDE= DEBUG= -O CDEFS= -D'HOSTTYPE` CFLAGS= ${DEBUG} ${CDEFS} ${INCLUDE} GENC= main.c GENH= main.h GEN= ${GENC} ${GENH} HDR= machine.h SRC= DEP= ${GENC} ${SRC} OBJ= main.o MAN= untmp.man OTHER= README untmp.m SOURCE= Makefile ITO.spec ${OTHER} ${MAN} ${HDR} ${SRC} all: ${PROG} ${PROG}:$P ${OBJ} ${CC} -o $@ ${CFLAGS} ${OBJ} # mkcmd code main.h: main.c main.c: ${PROG}.m mkcmd std_control.m std_version.m std_help.m ${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] clean: FRC rm -f Makefile.bak ${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} ${LIB} ${DOC} 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} ${LIB} ${DOC}: install -dr $@ ${SOURCE}: co -q $@ FRC: # DO NOT DELETE THIS LINE - make depend DEPENDS ON IT main.o: machine.h main.c # *** Do not add anything here - It will go away. *** 'dnl