freebsd-dev/usr.sbin/amd/libamu/Makefile

37 lines
1.0 KiB
Makefile
Raw Normal View History

1998-08-27 08:09:42 +00:00
# ex:ts=8
#
# Makefile for amd
# This file is under a "BSD" copyright (c) by David O'Brien 1998
#
1999-08-28 01:35:59 +00:00
# $FreeBSD$
1998-08-27 08:09:42 +00:00
.PATH: ${.CURDIR}/../../../contrib/amd/libamu \
${.CURDIR}/../../../contrib/amd/conf/transp \
${.CURDIR}/../../../contrib/amd/conf/mtab \
${.CURDIR}/../../../contrib/amd/conf/umount
1998-08-27 08:09:42 +00:00
LIB= amu
INTERNALLIB=
SRCS= hasmntopt.c misc_rpc.c mount_fs.c mtab.c nfs_prot_xdr.c \
strutil.c wire.c xutil.c
1998-08-27 08:09:42 +00:00
# These would be links created by the GNU-style configure
SRCS+= transp_sockets.c mtab_bsd.c umount_bsd44.c
1998-08-27 08:09:42 +00:00
# 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
1998-08-27 08:09:42 +00:00
CFLAGS+= -I${.CURDIR}/../../../contrib/amd/libamu \
-I${DESTDIR}/usr/include/rpcsvc
1998-08-27 08:09:42 +00:00
nfs_prot_x.c: ${NFS_PROT_X}
${RPCCOM} -c -C -DWANT_NFS3 ${NFS_PROT_X} -o ${.TARGET}
1998-08-27 08:09:42 +00:00
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}
1998-08-27 08:09:42 +00:00
.include <bsd.lib.mk>