]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/blob - usr.sbin/amd/amd/Makefile
MFC r308493, r308619: Update amd from am-utils 6.1.5 to 6.2.
[FreeBSD/stable/10.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=   am_ops.c amd.c amfs_auto.c amfs_direct.c amfs_error.c amfs_generic.c
16 SRCS+=  amfs_host.c amfs_link.c amfs_linkx.c amfs_nfsl.c
17 SRCS+=  amfs_nfsx.c amfs_program.c amfs_root.c amfs_toplvl.c
18 SRCS+=  amfs_union.c amq_subr.c amq_svc.c autil.c clock.c conf.c
19 SRCS+=  get_args.c info_exec.c info_file.c info_ndbm.c info_passwd.c
20 SRCS+=  info_sun.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_lustre.c ops_mfs.c ops_nfs.c
23 SRCS+=  ops_nfs3.c ops_nfs4.c
24 SRCS+=  ops_nullfs.c ops_pcfs.c ops_tfs.c ops_tmpfs.c ops_udf.c ops_ufs.c
25 SRCS+=  ops_umapfs.c
26 SRCS+=  ops_unionfs.c opts.c readdir.c restart.c rpc_fwd.c sched.c
27 SRCS+=  srvr_amfs_auto.c srvr_nfs.c sun_map.c
28
29 CFLAGS+= -I${.CURDIR}/../../../contrib/amd/amd \
30          -I${SRCTOP}/contrib/amd/include \
31          -I${.OBJDIR}/../../../include/rpcsvc
32
33 DPADD=  ${LIBAMU} ${LIBWRAP}
34 LDADD=  ${LIBAMU} -lwrap
35
36 SRCS+=          conf_parse.c conf_parse.h conf_tok.c
37 SRCS+=          sun_map_parse.c sun_map_parse.h sun_map_tok.c
38 CLEANFILES+=    conf_parse.c conf_parse.h conf_tok.c
39 CLEANFILES+=    sun_map_parse.c sun_map_parse.h sun_map_tok.c
40
41 conf_tok.c:     conf_tok.l
42         ${LEX} ${LFLAGS} -Pconf_ -o${.TARGET} ${.ALLSRC}
43
44 .ORDER: conf_parse.c conf_parse.h
45 conf_parse.h: .NOMETA
46 conf_parse.c conf_parse.h:      conf_parse.y
47         ${YACC} ${YFLAGS} -pconf_ -oconf_parse.c ${.ALLSRC}
48
49 sun_map_tok.c:  sun_map_tok.l
50         ${LEX} ${LFLAGS} -Psun_map_ -o${.TARGET} ${.ALLSRC}
51
52 .ORDER: sun_map_parse.c sun_map_parse.h
53 sun_map_parse.h: .NOMETA
54 sun_map_parse.c sun_map_parse.h:        sun_map_parse.y
55         ${YACC} ${YFLAGS} -psun_map_ -osun_map_parse.c ${.ALLSRC}
56
57 conf_tok.o:     conf_parse.h
58
59 sun_map_tok.o: sun_map_parse.h
60
61 #               These are generated at compile time
62 SRCS+=          mount_xdr.c
63 CLEANFILES+=    mount_xdr.c
64
65 mount_xdr.c: ${MOUNT_X}
66         ${RPCCOM} -c -DWANT_NFS3 ${MOUNT_X} -o ${.TARGET}
67
68 .if ${MK_HESIOD} != "no"
69 SRCS+=  info_hesiod.c
70 CFLAGS+= -DHAVE_MAP_HESIOD
71 .endif
72
73 .if ${MK_NIS} != "no"
74 SRCS+=  info_nis.c
75 .endif
76
77 .include <bsd.prog.mk>