`# $Id: Makefile.host,v 3.14 2010/12/03 23:27:34 ksb Exp $ # kayessbee (Kevin S Braunsdorf, Purdue, ksb under npcguild.org) # $Compile: ${make:-make} calls graph SHELL=/bin/sh BIN= ${DESTDIR}/usr/local/bin DOC= ${DESTDIR}/usr/local/man/man1 I=/usr/include S=/usr/include/sys P= INCLUDE= DEBUG='ifelse(HOSTTYPE,`V386',`',`-O')` CDEFS= -D'HOSTTYPE` CFLAGS= ${DEBUG} ${CDEFS} ${INCLUDE} HDR= 'ifelse(MKCMD,`no',`main.h ')`calls.h scan.h machine.h SRC= 'ifelse(MKCMD,`no',`main.c ')`calls.c scan.c GENc= 'ifelse(MKCMD,`no',`',`main.c')` GENh= 'ifelse(MKCMD,`no',`',`main.h')` GEN= ${GENc} ${GENh} DEP= ${SRC} ${GENc} OBJ= main.o calls.o scan.o MAN= calls.man OTHER= README INSTALL TODO calls.m pblock.sh pfunc.sh SOURCE= Makefile ITO.spec ${OTHER} ${HDR} ${SRC} ${MAN} 'ifelse(HOSTTYPE,`NEXT2',`.SUFFIXES: .SUFFIXES: .c .h .o .s',`')` all: calls calls:$P ${OBJ} ${CC} -o $@ ${CFLAGS} ${OBJ} 'ifelse(MKCMD,`no',`', `main.h: main.c main.c: calls.m mkcmd std_help.m calls.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 -rf prog.[ch] ')` graph: calls ${GEN} ${SRC} ${HDR} ./calls -l4 -vx ${INCLUDE} ${CDEFS} ${DEP} clean: FRC rm -f Makefile.bak calls ${GEN} prog.[ch] *.o a.out core errs tags depend: ${GEN} ${SRC} ${HDR} FRC maketd ${CDEFS} ${INCLUDE} ${DEP} distrib: FRC distrib -c ${BIN}/calls HOST install: all dirs FRC install -cs calls ${BIN}/calls lint: ${GEN} ${SRC} ${HDR} FRC lint -ph ${CDEFS} ${INCLUDE} ${DEP} mkcat: ${MAN} mkcat ${MAN} print: source FRC lpr -J"calls source" ${SOURCE} dirs: ${BIN} ${DOC} ${BIN} ${DOC}: install -dr $@ source: ${SOURCE} spotless: clean rcsclean ${SOURCE} tags: ${SRC} ${HDR} ${GEN} ctags -t ${SRC} ${HDR} ${GEN} ${SOURCE}: co -q $@ FRC: # DO NOT DELETE THIS LINE - maketd DEPENDS ON IT main.o: calls.h main.c machine.h calls.o: calls.c calls.h main.h scan.h machine.h scan.o: calls.h scan.c scan.h machine.h # *** Do not add anything here - It will go away. *** 'dnl