NetBSD/lib/librpcsvc/Makefile

26 lines
590 B
Makefile
Raw Normal View History

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
CFLAGS+= -I/usr/include/rpcsvc
1993-06-02 23:51:29 +04:00
RPCCOM = rpcgen
SRCS= ${RPCSRCS:R:S/$/_xdr.c/g}
NOMAN= noman
CLEANFILES+= ${RPCSRCS:R:S/$/_xdr.c/g}
1993-06-02 23:51:29 +04:00
.include <bsd.lib.mk>
.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 $@...
@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}