4 # This file is under a "BSD" copyright (c) by David O'Brien 1998
10 .PATH: ${SRCTOP}/contrib/amd/libamu \
11 ${SRCTOP}/contrib/amd/conf/transp \
12 ${SRCTOP}/contrib/amd/conf/mtab \
13 ${SRCTOP}/contrib/amd/conf/umount
17 SRCS= hasmntopt.c misc_rpc.c mount_fs.c mtab.c nfs_prot_xdr.c \
18 strutil.c wire.c xutil.c
20 # These would be links created by the GNU-style configure
21 SRCS+= transp_sockets.c mtab_bsd.c umount_bsd44.c
23 # Generated at compile time (replaces supplied xdr_func.c)
24 SRCS+= nfs_prot_x.c xdr_func_%undef.c
25 CLEANFILES+= nfs_prot_x.c xdr_func_%undef.c
27 CFLAGS+= -I${SRCTOP}/contrib/amd/libamu \
28 -I${OBJTOP}/include/rpcsvc
30 nfs_prot_x.c: ${NFS_PROT_X}
31 ${RPCCOM} -c -C -DWANT_NFS3 ${.ALLSRC} -o ${.TARGET}
33 XDRDEFS!= grep 'ifndef.*HAVE_XDR' ${SRCTOP}/contrib/amd/libamu/xdr_func.c | awk '{print "-D"$$2}'
35 xdr_func_%undef.c: xdr_func.c
36 unifdef -x1 ${XDRDEFS} -o ${.TARGET} ${.ALLSRC}