1 ## Process this file with automake to produce Makefile.in
4 # Level: Makefile for amd/ directory
7 # no need for libaminfo to be yet another dynamic library
8 noinst_LIBRARIES = libaminfo.a
9 sbin_PROGRAMS = amd sun2amd
12 man_MANS = amd.8 sun2amd.8
17 # headers this depends on, not to be installed
18 noinst_HEADERS = amd.h sun_map.h
20 # sources which get auto-built (from yacc/lex)
22 conf_parse.c conf_parse.h conf_tok.c \
23 sun_map_parse.c sun_map_parse.h sun_map_tok.c
26 ##############################################################################
27 # *.y must be listed before *.l, because of a bug in automake-1.2
28 # which will not generate the .h needs for the lex file from the yacc file.
29 # I took out the conf .y/.l files b/c of bad interaction between bsd44 make
30 # and automake-1.2 rules.
31 libaminfo_a_SOURCES = \
36 # the complete list of all optional sources for libaminfo
37 EXTRA_libaminfo_a_SOURCES = \
49 # AMD_INFO_OBJS: a list of info_*.o objects added, depending on which map
50 # types this system supports.
51 EXTRA_libaminfo_a_OBJECTS = @AMD_INFO_OBJS@
52 libaminfo_a_LIBADD = @AMD_INFO_OBJS@
53 libaminfo_a_DEPENDENCIES = @AMD_INFO_OBJS@
55 ##############################################################################
56 # sources needed: note .y and .l files have to be first
57 # get_args.c is handled separately
96 # the complete list of all optional sources for amd
116 # AMD_FS_OBJS: a list of ops_*.o objects added, depending on which
117 # filesystem types this system supports.
118 EXTRA_amd_OBJECTS = @AMD_FS_OBJS@
119 amd_LDADD = $(EXTRA_amd_OBJECTS) get_args.o libaminfo.a ../libamu/libamu.la
121 ##############################################################################
125 sun2amd_LDADD = libaminfo.a ../libamu/libamu.la
127 ##############################################################################
128 # must manually add f/lex library to LIBS, and not to LDADD.
129 ##LIBS = @LIBS@ @LEXLIB@ @WRAPLIB@
130 # f/lex libraries are incomatible with multiple scanners: don't include
131 LIBS = @LIBS@ @WRAPLIB@
133 # additional files to distribute and clean
134 EXTRA_DIST = ops_TEMPLATE.c $(man_MANS) $(TESTS)
135 CLEANFILES = $(BUILT_SOURCES)
136 DISTCLEANFILES = build_version.h ops_autofs.c
138 # do not distribute files that should be generated by lex/yacc locally
140 (cd $(distdir) && rm -f $(BUILT_SOURCES))
142 INCLUDES = -I$(top_srcdir)/include
144 # allow users to add their own flags via "configure --enable-am-flags=ARG"
145 AMU_CFLAGS = @AMU_CFLAGS@
146 AM_CFLAGS = @CFLAGS@ $(AMU_CFLAGS)
149 $(PROGRAMS): $(LDADD)
150 get_args.o: build_version.h
151 $(amd_OBJECTS) $(EXTRA_amd_OBJECTS) $(sun2amd_OBJECTS) $(libaminfo_a_OBJECTS) $(EXTRA_libaminfo_a_OBJECTS): \
154 $(top_srcdir)/include/am_compat.h \
155 $(top_srcdir)/include/am_defs.h \
156 $(top_srcdir)/include/am_utils.h \
157 $(top_srcdir)/include/am_xdr_func.h \
158 $(top_srcdir)/include/amq_defs.h \
159 @AMU_NFS_PROT_HEADER@ \
160 @AMU_AUTOFS_PROT_HEADER@ \
163 # auto-generate build number
164 build_version.h: $(amd_OBJECTS) $(EXTRA_amd_OBJECTS) $(libaminfo_a_OBJECTS) $(EXTRA_libaminfo_a_OBJECTS) get_args.c
165 $(top_srcdir)/m4/update_build_version