]> CyberLeo.Net >> Repos - FreeBSD/releng/10.0.git/blob - usr.sbin/amd/amd/Makefile
- Copy stable/10 (r259064) to releng/10.0 as part of the
[FreeBSD/releng/10.0.git] / usr.sbin / amd / amd / 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
9 .include <bsd.own.mk>
10
11 .PATH: ${.CURDIR}/../../../contrib/amd/amd
12
13 PROG=   amd
14 MAN=    amd.8
15 SRCS=   conf_parse.y conf_tok.l
16 SRCS+=  am_ops.c amd.c amfs_auto.c amfs_direct.c amfs_error.c amfs_generic.c
17 SRCS+=  amfs_host.c amfs_link.c amfs_linkx.c amfs_nfsl.c
18 SRCS+=  amfs_nfsx.c amfs_program.c amfs_root.c amfs_toplvl.c
19 SRCS+=  amfs_union.c amq_subr.c amq_svc.c autil.c clock.c conf.c
20 SRCS+=  get_args.c info_exec.c info_file.c info_ndbm.c info_passwd.c
21 SRCS+=  info_union.c map.c mapc.c mntfs.c nfs_prot_svc.c nfs_start.c
22 SRCS+=  nfs_subr.c ops_cdfs.c ops_mfs.c ops_nfs.c ops_nfs3.c
23 SRCS+=  ops_nullfs.c ops_pcfs.c ops_tfs.c ops_ufs.c ops_umapfs.c
24 SRCS+=  ops_unionfs.c opts.c readdir.c restart.c rpc_fwd.c sched.c
25 SRCS+=  srvr_amfs_auto.c srvr_nfs.c
26
27 CFLAGS+= -I${.CURDIR}/../../../contrib/amd/amd \
28          -I${DESTDIR}/usr/include/rpcsvc
29
30 DPADD=  ${LIBAMU} ${LIBWRAP}
31 LDADD=  ${LIBAMU} -lwrap
32
33 CLEANFILES+=    conf_parse.c conf_parse.h conf_tok.c
34
35 conf_tok.o: conf_parse.h
36
37 #               These are generated at compile time
38 SRCS+=          mount_xdr.c
39 CLEANFILES+=    mount_xdr.c
40
41 mount_xdr.c: ${MOUNT_X}
42         ${RPCCOM} -c -DWANT_NFS3 ${MOUNT_X} -o ${.TARGET}
43
44 .if ${MK_HESIOD} != "no"
45 SRCS+=  info_hesiod.c
46 CFLAGS+= -DHAVE_MAP_HESIOD
47 .endif
48
49 .if ${MK_NIS} != "no"
50 SRCS+=  info_nis.c
51 .endif
52
53 .include <bsd.prog.mk>