Makefile revision 319119
1# ex:ts=8 2# 3# Makefile for amd 4# This file is under a "BSD" copyright (c) by David O'Brien 1998 5# 6# $FreeBSD: stable/11/usr.sbin/amd/libamu/Makefile 319119 2017-05-29 10:15:41Z ngie $ 7 8.include <bsd.init.mk> 9 10.PATH: ${SRCTOP}/contrib/amd/libamu \ 11 ${SRCTOP}/contrib/amd/conf/transp \ 12 ${SRCTOP}/contrib/amd/conf/mtab \ 13 ${SRCTOP}/contrib/amd/conf/umount 14 15LIB= amu 16INTERNALLIB= 17SRCS= hasmntopt.c misc_rpc.c mount_fs.c mtab.c nfs_prot_xdr.c \ 18 strutil.c wire.c xutil.c 19 20# These would be links created by the GNU-style configure 21SRCS+= transp_sockets.c mtab_bsd.c umount_bsd44.c 22 23# Generated at compile time (replaces supplied xdr_func.c) 24SRCS+= nfs_prot_x.c xdr_func_%undef.c 25CLEANFILES+= nfs_prot_x.c xdr_func_%undef.c 26 27CFLAGS+= -I${.CURDIR}/../../../contrib/amd/libamu \ 28 -I${OBJTOP}/include/rpcsvc 29 30nfs_prot_x.c: ${NFS_PROT_X} 31 ${RPCCOM} -c -C -DWANT_NFS3 ${.ALLSRC} -o ${.TARGET} 32 33XDRDEFS!= grep 'ifndef.*HAVE_XDR' ${.CURDIR}/../../../contrib/amd/libamu/xdr_func.c | awk '{print "-D"$$2}' 34 35xdr_func_%undef.c: xdr_func.c 36 -unifdef ${XDRDEFS} < ${.ALLSRC} > ${.TARGET} 37 38.include <bsd.lib.mk> 39