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