Makefile revision 308346
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/10/usr.sbin/amd/libamu/Makefile 308346 2016-11-05 17:02:38Z cy $
7
8.PATH: ${.CURDIR}/../../../contrib/amd/libamu \
9       ${.CURDIR}/../../../contrib/amd/conf/transp \
10       ${.CURDIR}/../../../contrib/amd/conf/mtab \
11       ${.CURDIR}/../../../contrib/amd/conf/umount
12
13LIB=	amu
14INTERNALLIB=
15SRCS=	hasmntopt.c misc_rpc.c mount_fs.c mtab.c nfs_prot_xdr.c \
16	strutil.c wire.c xutil.c
17
18#	These would be links created by the GNU-style configure
19SRCS+=	transp_sockets.c mtab_bsd.c umount_bsd44.c
20
21#		Generated at compile time (replaces supplied xdr_func.c)
22SRCS+=		nfs_prot_x.c xdr_func_%undef.c
23CLEANFILES+=	nfs_prot_x.c xdr_func_%undef.c
24
25CFLAGS+= -I${.CURDIR}/../../../contrib/amd/libamu \
26	 -I${.OBJDIR}/../../../include/rpcsvc
27
28nfs_prot_x.c: ${NFS_PROT_X}
29	${RPCCOM} -c -C -DWANT_NFS3 ${NFS_PROT_X} -o ${.TARGET}
30
31XDRDEFS!= grep 'ifndef.*HAVE_XDR' ${.CURDIR}/../../../contrib/amd/libamu/xdr_func.c | awk '{print "-D"$$2}'
32
33xdr_func_%undef.c: xdr_func.c
34	-unifdef ${XDRDEFS} < ${.ALLSRC} > ${.TARGET}
35
36.include <bsd.lib.mk>
37