]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - usr.sbin/amd/libamu/Makefile
libfdt: Update to 1.4.6, switch to using libfdt for overlay support
[FreeBSD/FreeBSD.git] / usr.sbin / amd / libamu / Makefile
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$
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
15 LIB=    amu
16 INTERNALLIB=
17 SRCS=   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
21 SRCS+=  transp_sockets.c mtab_bsd.c umount_bsd44.c
22
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
26
27 CFLAGS+= -I${SRCTOP}/contrib/amd/libamu \
28          -I${OBJTOP}/include/rpcsvc
29
30 nfs_prot_x.c: ${NFS_PROT_X}
31         ${RPCCOM} -c -C -DWANT_NFS3 ${.ALLSRC} -o ${.TARGET}
32
33 XDRDEFS!= grep 'ifndef.*HAVE_XDR' ${SRCTOP}/contrib/amd/libamu/xdr_func.c | awk '{print "-D"$$2}'
34
35 xdr_func_%undef.c: xdr_func.c
36         -unifdef ${XDRDEFS} < ${.ALLSRC} > ${.TARGET}
37
38 .include <bsd.lib.mk>