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