`# $Id: Makefile.host,v 1.10 2012/07/16 18:51:58 ksb Exp $ # platform recipe for tcpmux 'changequote([,])dnl [Q=' ]changequote(`,') `PROG= tcpmux BIN= ${DESTDIR}/usr/local/libexec LIB= ${DESTDIR}/etc DOC= ${DESTDIR}/usr/local/man I=/usr/include S=/usr/include/sys L=/usr/include/local P= INCLUDE= DEBUG= CDEFS= -D'HOSTTYPE`'ifelse( HOSTTYPE,`FREEBSD',`', HOSTTYPE,`OPENBSD',`', ` -DNEED_FGETLN')` CFLAGS= ${DEBUG} ${CDEFS} ${INCLUDE} GENC= GENH= GEN= ${GENC} ${GENH} HDR= machine.h SRC= rfc1078.c DEP= ${GENC} ${LINKC} ${SRC} OBJ= rfc1078.o MAN= tcpmux.man OTHER= README INSTALL TODO tcpmux.spec tcpmux.html tcpmux-tcp.xml \ tcpmux.xinetd fetcher.pl publish.pl tcpmux.conf SOURCE= Makefile ITO.spec ${OTHER} ${MAN} ${HDR} ${SRC} all: ${PROG} ${PROG}:$P ${OBJ} ${CC} -o $@ ${CFLAGS} ${OBJ} fetcher: fetcher.pl perl -p -e ${Q}if (! $$^V) { s#^(use\slib)(\s.*\$$\^V.*?\,)(\n)#$$1$$3#; }${Q} <$@.pl >$@ perl -w -c $@ && chmod +x $@ clean: FRC rm -f Makefile.bak ${PROG} ${GEN} fetcher ${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} ${LIB} 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}: install -dr $@ ${SOURCE}: co -q $@ FRC: # DO NOT DELETE THIS LINE - make depend DEPENDS ON IT rfc1078.o: machine.h rfc1078.c # *** Do not add anything here - It will go away. *** 'dnl