Home | History | Annotate | Line # | Download | only in librpcsvc
Makefile revision 1.6
      1 #	from: @(#)Makefile    5.10 (Berkeley) 6/24/90
      2 #	$Id: Makefile,v 1.6 1993/08/01 05:40:01 mycroft Exp $
      3 
      4 .PATH: ${.CURDIR}/../../include/rpcsvc /usr/src/include/rpcsvc
      5 
      6 LIB=    rpcsvc
      7 
      8 RPCSRCS= klm_prot.x mount.x nfs_prot.x nlm_prot.x rex.x rnusers.x \
      9 	rquota.x rstat.x rwall.x sm_inter.x spray.x yppasswd.x
     10 
     11 RPCCOM = rpcgen
     12 
     13 INCDIRS= -I/usr/include/rpcsvc
     14 CFLAGS+= ${INCDIRS}
     15 
     16 SRCS= ${RPCSRCS:R:S/$/_xdr.c/g}
     17 
     18 CLEANFILES+= ${SRCS} ${RPCSRCS}
     19 
     20 NOMAN= noman
     21 
     22 .include <bsd.lib.mk>
     23 
     24 .SUFFIXES: .x _xdr.c
     25 
     26 .x_xdr.c:
     27 	@echo generating $@...
     28 	@PWD=`pwd` ; cd ${.CURDIR} ; if cmp -s ${.IMPSRC} ${*F}.x > /dev/null; then :; else cp -f ${.IMPSRC} $$PWD/${*F}.x ; fi
     29 	@${RPCCOM} -c ${*F}.x -o ${.TARGET}
     30 
     31 OBJS+= ${RPCSRCS:R:S/$/_xdr.o/g}
     32