4 # This file is under a "BSD" copyright (c) by David O'Brien 1998
11 .PATH: ${.CURDIR}/../../../contrib/amd/amd
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
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
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
29 CFLAGS+= -I${.CURDIR}/../../../contrib/amd/amd \
30 -I${SRCTOP}/contrib/amd/include \
31 -I${.OBJDIR}/../../../include/rpcsvc
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
41 conf_tok.c: conf_tok.l
42 ${LEX} ${LFLAGS} -Pconf_ -o${.TARGET} ${.ALLSRC}
44 .ORDER: conf_parse.c conf_parse.h
46 conf_parse.c conf_parse.h: conf_parse.y
47 ${YACC} ${YFLAGS} -pconf_ -oconf_parse.c ${.ALLSRC}
49 sun_map_tok.c: sun_map_tok.l
50 ${LEX} ${LFLAGS} -Psun_map_ -o${.TARGET} ${.ALLSRC}
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}
57 conf_tok.o: conf_parse.h
59 sun_map_tok.o: sun_map_parse.h
61 # These are generated at compile time
63 CLEANFILES+= mount_xdr.c
65 mount_xdr.c: ${MOUNT_X}
66 ${RPCCOM} -c -DWANT_NFS3 ${MOUNT_X} -o ${.TARGET}
68 .if ${MK_HESIOD} != "no"
70 CFLAGS+= -DHAVE_MAP_HESIOD
77 .if ${MK_TCP_WRAPPERS} != "no"
78 CFLAGS+= -DHAVE_LIBWRAP -DHAVE_TCPD_H
83 .include <bsd.prog.mk>