1 # $NetBSD: Makefile,v 1.3 2009/04/20 16:05:29 drochner Exp $
3 .
include "${.CURDIR}/../Makefile.inc"
10 SRCS
= am_ops.c amd.c amfs_auto.c amfs_generic.c amfs_direct.c \
11 amfs_error.c amfs_host.c \
12 amfs_link.c amfs_linkx.c amfs_nfsl.c amfs_nfsx.c \
13 amfs_program.c amfs_root.c amfs_toplvl.c amfs_union.c amq_subr.c \
14 amq_svc.c autil.c clock.c conf.c get_args.c info_exec.c info_file.c \
15 info_ndbm.c info_passwd.c info_sun.c \
16 info_union.c map.c mapc.c mntfs.c nfs_prot_svc.c nfs_start.c \
17 nfs_subr.c ops_cdfs.c ops_efs.c \
18 ops_mfs.c ops_nfs.c ops_nfs3.c ops_nullfs.c ops_pcfs.c \
19 ops_tfs.c ops_tmpfs.c ops_udf.c ops_ufs.c ops_umapfs.c ops_unionfs.c \
20 opts.c readdir.c restart.c rpc_fwd.c sched.c srvr_amfs_auto.c \
21 srvr_nfs.c sun_map.c sun_map_parse.y sun_map_tok.l \
22 conf_parse.y conf_tok.l
24 .if
(${USE_HESIOD} != "no")
28 .if
(${USE_LDAP} != "no")
33 .if
(${MKPIC} == "no" ||
(defined
(LDSTATIC
) && ${LDSTATIC} != ""))
36 .if
${MKCRYPTO} != "no"
37 DPADD
+= ${LIBSSL} ${LIBCRYPTO}
38 LDADD
+= -lssl
-lcrypto
43 .if
(${USE_YP} != "no")
48 COPTS.amq_subr.c
+= -fno-strict-aliasing
51 # the following are not supported on NetBSD
52 # info_ldap.c info_nisplus.c ops_cachefs.c ops_efs.c ops_lofs.c ops_xfs.c
55 AMDOBJDIR
!=cd
${.CURDIR
} && ${PRINTOBJDIR}
57 CPPFLAGS
+= -I
${DIST} -I
${AMDOBJDIR}
58 LDADD
+= ${LIBAMU} -lrpcsvc
62 YPREFIX.sun_map_parse.y
= sun_map_
63 LPREFIX.sun_map_tok.l
= sun_map_
64 CPPFLAGS.sun_map_tok.c
+= -Dyylval
=sun_map_lval
-Dyyerror
=sun_map_error
66 YPREFIX.conf_parse.y
= conf_
67 LPREFIX.conf_tok.l
= conf_
68 CPPFLAGS.conf_tok.c
+= -Dyylval
=conf_lval
-Dyyerror
=conf_error
70 CLEANFILES
+= build_version.h
71 DPSRCS
+= build_version.h
73 get_args.o get_args.d
: build_version.h
75 build_version.h
: get_args.c
77 echo
'#define AMU_BUILD_VERSION 1' > ${.TARGET
}
78 echo
'#define BUILD_USER "'unknown
'"' >> ${.TARGET
}
79 echo
'#define BUILD_HOST "'unknown
'"' >> ${.TARGET
}
80 echo
'#define BUILD_DATE "'unknown
'"' >> ${.TARGET
}
83 .
include <bsd.prog.mk
>