Fixed the usual missing dependencies on headers generated by rpcgen.
Use rpcgen's -C option, although using it for non-headers breaks K&R support. A local copy of yp.h is built to avoid adding -I/usr/include/rpcsvc to CFLAGS. This version of yp.h differed from <rpcsvc/yp.h> only in not declaring prototypes. Fixed style bugs.
This commit is contained in:
parent
ec791cadb1
commit
ee4b699da3
@ -1,16 +1,16 @@
|
||||
# from: @(#)Makefile.inc 5.3 (Berkeley) 2/20/91
|
||||
# $Id: Makefile.inc,v 1.5 1997/05/03 03:50:06 jb Exp $
|
||||
# $Id: Makefile.inc,v 1.6 1997/05/23 08:23:59 asami Exp $
|
||||
|
||||
# yp sources
|
||||
.PATH: ${.CURDIR}/../libc/yp
|
||||
|
||||
SRCS+= xdryp.c yp_xdr.c yplib.c
|
||||
CLEANFILES+= yp_xdr.c yp.h
|
||||
SRCS+= xdryp.c yp.h yp_xdr.c yplib.c
|
||||
CLEANFILES+= yp.h yp_xdr.c
|
||||
|
||||
RPCSRC= ${DESTDIR}/usr/include/rpcsvc/yp.x
|
||||
RPCGEN= rpcgen
|
||||
RPCSRC= ${DESTDIR}/usr/include/rpcsvc/yp.x
|
||||
RPCGEN= rpcgen -C
|
||||
|
||||
yp_xdr.c: ${RPCSRC} yp.h
|
||||
yp_xdr.c: ${RPCSRC}
|
||||
${RPCGEN} -c -o ${.TARGET} ${RPCSRC}
|
||||
|
||||
yp.h: ${RPCSRC}
|
||||
|
Loading…
Reference in New Issue
Block a user