NetBSD/dist/am-utils/amd/Makefile.am

142 lines
3.3 KiB
Makefile
Raw Normal View History

## Process this file with automake to produce Makefile.in
# Package: am-utils
# Level: Makefile for amd/ directory
# Author: Erez Zadok
sbin_PROGRAMS = amd
# man pages
man_MANS = amd.8
# headers this depends on, not to be installed
noinst_HEADERS = amd.h
# *.y must be listed before *.l, because of a bug in automake-1.2
# which will not generate the .h needs for the lex file from the yacc file.
# I took out the conf .y/.l files b/c of bad interaction between bsd44 make
# and automake-1.2 rules.
amd_SOURCES = \
am_ops.c \
amd.c \
amfs_auto.c \
amfs_direct.c \
amfs_error.c \
amfs_host.c \
amfs_inherit.c \
amfs_link.c \
amfs_linkx.c \
amfs_nfsl.c \
amfs_nfsx.c \
amfs_program.c \
amfs_root.c \
amfs_toplvl.c \
amfs_union.c \
amq_subr.c \
amq_svc.c \
autil.c \
clock.c \
conf.c \
get_args.c \
map.c \
mapc.c \
mntfs.c \
nfs_prot_svc.c \
nfs_start.c \
nfs_subr.c \
opts.c \
restart.c \
rpc_fwd.c \
sched.c \
srvr_amfs_auto.c \
srvr_nfs.c
# the complete list of all optional sources
EXTRA_amd_SOURCES = \
info_file.c \
info_hesiod.c \
info_ldap.c \
info_ndbm.c \
info_nis.c \
info_nisplus.c \
info_passwd.c \
info_union.c \
\
ops_autofs.c \
ops_cachefs.c \
ops_cdfs.c \
ops_efs.c \
ops_lofs.c \
ops_mfs.c \
ops_nfs.c \
ops_nfs3.c \
ops_nullfs.c \
ops_pcfs.c \
ops_tfs.c \
ops_tmpfs.c \
ops_ufs.c \
ops_umapfs.c \
ops_unionfs.c \
ops_xfs.c
# AMD_FS_OBJS: a list of ops_*.o objects added, depending on which
# filesystem types this system supports.
# AMD_INFO_OBJS: a list of info_*.o objects added, depending on which map
# types this system supports.
EXTRA_amd_OBJECTS = @AMD_FS_OBJS@ @AMD_INFO_OBJS@ conf_tok.o conf_parse.o
LDADD = $(EXTRA_amd_OBJECTS) ../libamu/libamu.la
# must manually add f/lex library to LIBS, and not to LDADD.
LIBS = @LIBS@ @LEXLIB@
# additional files to distribute and clean
EXTRA_DIST = conf_tok.l conf_parse.y ops_TEMPLATE.c $(man_MANS)
CLEANFILES = conf_tok.c conf_parse.c conf_parse.h
DISTCLEANFILES = build_version.h
INCLUDES = -I$(top_srcdir)/include
# allow users to add their own flags via "configure --enable-am-flags=ARG"
AMU_CFLAGS = @AMU_CFLAGS@
CFLAGS = @CFLAGS@ $(AMU_CFLAGS)
YACC = @YACC@
YFLAGS = -d
# dependencies
$(PROGRAMS): $(LDADD)
conf_tok.o: conf_parse.h
get_args.o: build_version.h
$(OBJECTS) $(EXTRA_amd_OBJECTS): \
../config.h \
../aux_conf.h \
$(top_srcdir)/include/am_compat.h \
$(top_srcdir)/include/am_defs.h \
$(top_srcdir)/include/am_utils.h \
$(top_srcdir)/include/am_xdr_func.h \
$(top_srcdir)/include/amq_defs.h \
@AMU_NFS_PROT_HEADER@ \
$(noinst_HEADERS)
# Must use my rules, b/c ones supplied by automake-1.2 don't work
# with bsd44 make (they have built-in rules to build yacc/lex files).
# Code generated by yacc/lex:
conf_tok.c: $(srcdir)/conf_tok.l
$(LEX) $?
mv lex.yy.c conf_tok.c
conf_parse.c conf_parse.h: $(srcdir)/conf_parse.y
$(YACC) -d $?
mv y.tab.c conf_parse.c
mv y.tab.h conf_parse.h
# auto-generate build number
build_version.h: $(amd_SOURCES) $(EXTRA_amd_SOURCES) \
../config.h \
../aux_conf.h \
$(top_srcdir)/include/am_compat.h \
$(top_srcdir)/include/am_defs.h \
$(top_srcdir)/include/am_utils.h \
$(top_srcdir)/include/amq_defs.h \
@AMU_NFS_PROT_HEADER@ \
$(noinst_HEADERS)
$(top_srcdir)/aux/update_build_version