1993-06-02 23:51:29 +04:00
|
|
|
# @(#)Makefile 5.10 (Berkeley) 6/24/90
|
|
|
|
|
|
|
|
.PATH: ${.CURDIR}/../../include/rpcsvc /usr/src/include/rpcsvc
|
|
|
|
LIB= rpcsvc
|
|
|
|
RPCSRCS= rstat.x rnusers.x rwall.x
|
1993-06-03 20:49:21 +04:00
|
|
|
CFLAGS+= -I/usr/include/rpcsvc
|
1993-06-02 23:51:29 +04:00
|
|
|
|
|
|
|
RPCCOM = rpcgen
|
|
|
|
|
|
|
|
SRCS= ${RPCSRCS:R:S/$/_xdr.c/g}
|
|
|
|
|
|
|
|
NOMAN= noman
|
|
|
|
|
1993-06-03 20:49:21 +04:00
|
|
|
CLEANFILES+= ${RPCSRCS:R:S/$/_xdr.c/g}
|
1993-06-02 23:51:29 +04:00
|
|
|
|
|
|
|
.include <bsd.lib.mk>
|
|
|
|
|
1993-06-03 20:49:21 +04:00
|
|
|
.SUFFIXES: .x _xdr.c
|
1993-06-02 23:51:29 +04:00
|
|
|
|
|
|
|
.x_xdr.c:
|
1993-06-03 18:45:37 +04:00
|
|
|
@echo generating $@...
|
1993-06-03 20:49:21 +04:00
|
|
|
@PWD=`pwd` ; cd ${.CURDIR} ; if cmp -s ${.IMPSRC} ${*F}.x > /dev/null; then :; else cp -f ${.IMPSRC} .; fi
|
|
|
|
@PWD=`pwd` ; cd ${.CURDIR} ; ${RPCCOM} -c ${*F}.x -o $$PWD/${.TARGET}
|
1993-06-02 23:51:29 +04:00
|
|
|
|
|
|
|
OBJS+= ${RPCSRCS:R:S/$/_xdr.o/g}
|