# no need for libaminfo to be yet another dynamic library
noinst_LIBRARIES = libaminfo.a
sbin_PROGRAMS = amd sun2amd
# man pages
man_MANS = amd.8 sun2amd.8
YLWRAP= $(top_srcdir)/ylwrap.amd
# test scripts
TESTS = test1.sh
# headers this depends on, not to be installed
noinst_HEADERS = amd.h sun_map.h
# sources which get auto-built (from yacc/lex)
BUILT_SOURCES = \
conf_parse.c conf_parse.h conf_tok.c \
sun_map_parse.c sun_map_parse.h sun_map_tok.c
AM_YFLAGS = -d
##############################################################################
# *.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.
libaminfo_a_SOURCES = \
sun_map_parse.y \
sun_map_tok.l \
sun_map.c
# the complete list of all optional sources for libaminfo
EXTRA_libaminfo_a_SOURCES = \
info_file.c \
info_exec.c \
info_hesiod.c \
info_ldap.c \
info_ndbm.c \
info_nis.c \
info_nisplus.c \
info_passwd.c \
info_sun.c \
info_union.c
# AMD_INFO_OBJS: a list of info_*.o objects added, depending on which map
# types this system supports.
EXTRA_libaminfo_a_OBJECTS = @AMD_INFO_OBJS@
libaminfo_a_LIBADD = @AMD_INFO_OBJS@
libaminfo_a_DEPENDENCIES = @AMD_INFO_OBJS@
# AMD_FS_OBJS: a list of ops_*.o objects added, depending on which
# filesystem types this system supports.
EXTRA_amd_OBJECTS = @AMD_FS_OBJS@
amd_LDADD = $(EXTRA_amd_OBJECTS) get_args.o libaminfo.a ../libamu/libamu.la
##############################################################################
# must manually add f/lex library to LIBS, and not to LDADD.
##LIBS = @LIBS@ @LEXLIB@ @WRAPLIB@
# f/lex libraries are incomatible with multiple scanners: don't include
LIBS = @LIBS@ @WRAPLIB@
# additional files to distribute and clean
EXTRA_DIST = ops_TEMPLATE.c $(man_MANS) $(TESTS)
CLEANFILES = $(BUILT_SOURCES)
DISTCLEANFILES = build_version.h ops_autofs.c
# do not distribute files that should be generated by lex/yacc locally
dist-hook:
(cd $(distdir) && rm -f $(BUILT_SOURCES))
AM_CPPFLAGS = -I$(top_srcdir)/include
# allow users to add their own flags via "configure --enable-am-flags=ARG"
AMU_CFLAGS = @AMU_CFLAGS@
AM_CFLAGS = $(AMU_CFLAGS)