`# $Id: Makefile.host,v 1.11 2010/12/02 23:14:47 ksb Exp $ # the makefile that makes mmsrc.c into mmsrc, but not # mmsrc.m into mmsrc.c, which would never let us boot-strap (ksb) # Built for 'HOST`, note that msync on the platform warns that # config.h is not in the source list, but that is OK. PROG= mmsrc BIN= ${DESTDIR}/usr/local/sbin DOC= ${DESTDIR}/usr/local/man I=/usr/include S=/usr/include/sys L=/usr/include/local P= INCLUDE= DEBUG= CDEFS= -D'HOSTTYPE` CFLAGS= ${DEBUG} ${CDEFS} ${INCLUDE} 'ifelse(substr(HOSTTYPE,0,4),`HPUX',`CC=gcc', `')` LIBS='ifelse( HOSTTYPE,SUN5,` -lsocket -lnsl')` HDR= mmsrc.h machine.h setenv.h SRC= mmsrc.c machine.c mkdtemp.c setenv.c DEP= ${SRC} OBJ= mmsrc.o machine.o MAN= mmsrc.man makeme.man OTHER= README TODO mmsrc.m makeme mbuild mmreg.ksh mmsrc.html boot.html \ configure configure.ac config.h.in config.plain SOURCE= Makefile ${OTHER} ${MAN} ${HDR} ${SRC} all: mmsrc mmsrc: ${OBJ} ${CC} -o $@ ${CFLAGS} ${OBJ} ${LIBS} Makefile.in: Makefile sed -e "s/^\(LI[B]S\)=.*/\1=@\1@/" Makefile.in boot: all FRC mkdir -p ${BIN} install -c ${PROG} ${BIN}/${PROG} config.h: config.plain cp config.plain config.h clean: FRC rm -f mmsrc mmsrc.o machine.o *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} 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 txt2ps -m 0.65 -n -PHxmd -l68 -w88 hxmd.m | lpr 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 mmsrc.o: mmsrc.c machine.h config.h setenv.h machine.o: machine.c mkdtemp.c machine.h config.h setenv.c \ setenv.h mkdtemp.o: mkdtemp.c # *** Do not add anything here - It will go away. *** 'dnl