summaryrefslogtreecommitdiffstats
path: root/usr.sbin/amd/libamu/Makefile
blob: 73b5c534eba57087cb1262faa4d13043464e61ce (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# ex:ts=8
#
# Makefile for amd
# 	This file is under a "BSD" copyright (c) by David O'Brien 1998
#
# $FreeBSD$

.include <bsd.init.mk>

.PATH:	${SRCTOP}/contrib/amd/libamu \
	${SRCTOP}/contrib/amd/conf/transp \
	${SRCTOP}/contrib/amd/conf/mtab \
	${SRCTOP}/contrib/amd/conf/umount

LIB=	amu
INTERNALLIB=
SRCS=	hasmntopt.c misc_rpc.c mount_fs.c mtab.c nfs_prot_xdr.c \
	strutil.c wire.c xutil.c

#	These would be links created by the GNU-style configure
SRCS+=	transp_sockets.c mtab_bsd.c umount_bsd44.c

#		Generated at compile time (replaces supplied xdr_func.c)
SRCS+=		nfs_prot_x.c xdr_func_%undef.c
CLEANFILES+=	nfs_prot_x.c xdr_func_%undef.c

CFLAGS+= -I${.CURDIR}/../../../contrib/amd/libamu \
	 -I${OBJTOP}/include/rpcsvc

nfs_prot_x.c: ${NFS_PROT_X}
	${RPCCOM} -c -C -DWANT_NFS3 ${.ALLSRC} -o ${.TARGET}

XDRDEFS!= grep 'ifndef.*HAVE_XDR' ${.CURDIR}/../../../contrib/amd/libamu/xdr_func.c | awk '{print "-D"$$2}'

xdr_func_%undef.c: xdr_func.c
	-unifdef ${XDRDEFS} < ${.ALLSRC} > ${.TARGET}

.include <bsd.lib.mk>
OpenPOWER on IntegriCloud