`# $Id: Makefile.host,v 2.5 2010/12/06 17:55:07 ksb Exp $ # platform recipe for sync-backup-partitions, msrc 2008 PROG= sbp BIN= ${DESTDIR}/usr/local/sbin DOC= ${DESTDIR}/usr/local/man SHELL=/bin/sh I=/usr/include S=/usr/include/sys L=/usr/include/local P= INCLUDE= DEBUG= -O CDEFS= -D'HOSTTYPE` -DHOSTOS='HOSTOS` CFLAGS= ${DEBUG} ${CDEFS} ${INCLUDE} CC=gcc GENC= main.c dicer.c GENH= main.h dicer.h GEN= ${GENC} ${GENH} HDR= read.h sbp.h strdiff.h machine.h SRC= read.c sbp.c strdiff.c machine.c DEP= ${GENC} ${LINKC} ${SRC} OBJ= main.o read.o sbp.o strdiff.o dicer.c MAN= sbp.man OTHER= README INSTALL TODO lastsbp.ksh sbp.ksh \ sbp.m sbp-platform.m sbp.mh sbp.mi SOURCE= Makefile ITO.spec ${OTHER} ${MAN} ${HDR} ${SRC} all: ${PROG} ${PROG}:$P ${OBJ} ${CC} -o $@ ${CFLAGS} ${OBJ}'ifelse( HOSTTYPE,`IBMR2',`',` -lm')` dicer.h: rm -f $@ explode -s $@ dicer.c: rm -f $@ MACHINE_H="#include \"machine.h\"" explode -u dicer,mixer -o - $@ >_$$$$ && mv _$$$$ $@ 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] 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 dicer.o: dicer.c dicer.h machine.h main.o: main.c sbp.m read.h sbp.h dicer.h machine.h sbp.o: sbp.c main.h sbp.h strdiff.h read.h machine.h dicer.h read.o: read.c main.h sbp.h read.h strdiff.o: strdiff.c strdiff.h # *** Do not add anything here - It will go away. *** 'dnl