]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - usr.sbin/amd/amd/Makefile
Upgrade to OpenSSH 7.3p1.
[FreeBSD/FreeBSD.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 <src.opts.mk>
10
11 .PATH:  ${SRCTOP}/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${SRCTOP}/contrib/amd/amd \
30          -I${SRCTOP}/contrib/amd/include \
31          -I${.OBJDIR}/../../../include/rpcsvc
32
33 LIBADD= amu
34
35 SRCS+=          conf_parse.c conf_parse.h conf_tok.c
36 SRCS+=          sun_map_parse.c sun_map_parse.h sun_map_tok.c
37 CLEANFILES+=    conf_parse.c conf_parse.h conf_tok.c
38 CLEANFILES+=    sun_map_parse.c sun_map_parse.h sun_map_tok.c
39
40 conf_tok.c:     conf_tok.l
41         ${LEX} ${LFLAGS} -Pconf_ -o${.TARGET} ${.ALLSRC}
42
43 .ORDER: conf_parse.c conf_parse.h
44 conf_parse.h: .NOMETA
45 conf_parse.c conf_parse.h:      conf_parse.y
46         ${YACC} ${YFLAGS} -pconf_ -oconf_parse.c ${.ALLSRC}
47
48 sun_map_tok.c:  sun_map_tok.l
49         ${LEX} ${LFLAGS} -Psun_map_ -o${.TARGET} ${.ALLSRC}
50
51 .ORDER: sun_map_parse.c sun_map_parse.h
52 sun_map_parse.h: .NOMETA
53 sun_map_parse.c sun_map_parse.h:        sun_map_parse.y
54         ${YACC} ${YFLAGS} -psun_map_ -osun_map_parse.c ${.ALLSRC}
55
56 conf_tok.o:     conf_parse.h
57
58 sun_map_tok.o: sun_map_parse.h
59
60 #               These are generated at compile time
61 SRCS+=          mount_xdr.c
62 CLEANFILES+=    mount_xdr.c
63
64 mount_xdr.c: ${MOUNT_X}
65         ${RPCCOM} -c -DWANT_NFS3 ${MOUNT_X} -o ${.TARGET}
66
67 .if ${MK_HESIOD} != "no"
68 SRCS+=  info_hesiod.c
69 CFLAGS+= -DHAVE_MAP_HESIOD
70 .endif
71
72 .if ${MK_NIS} != "no"
73 SRCS+=  info_nis.c
74 .endif
75
76 .if ${MK_TCP_WRAPPERS} != "no"
77 CFLAGS+=        -DHAVE_LIBWRAP -DHAVE_TCPD_H
78 LIBADD+=        wrap
79 .endif
80
81 .include <bsd.prog.mk>