Makefile.am revision 1.1.1.1
1## Process this file with automake to produce Makefile.in
2
3# Package: am-utils
4# Level: Makefile for fsinfo/ directory
5# Author: Erez Zadok
6
7sbin_PROGRAMS = fsinfo
8
9# man pages
10man_MANS = fsinfo.8
11
12# headers this depends on, not to be installed
13noinst_HEADERS = fsi_data.h fsinfo.h
14
15# sources needed: note .y and .l files have to be first
16fsinfo_SOURCES = 	\
17	fsi_gram.y	\
18	fsi_lex.l	\
19	null_lex.l	\
20	null_gram.y	\
21	\
22	fsi_analyze.c	\
23	fsi_dict.c	\
24	fsi_util.c	\
25	fsinfo.c	\
26	wr_atab.c	\
27	wr_bparam.c	\
28	wr_dumpset.c	\
29	wr_exportfs.c	\
30	wr_fstab.c
31
32# sources which get auto-built (from yacc/lex)
33BUILT_SOURCES = fsi_gram.c fsi_gram.h fsi_lex.c \
34	null_gram.c null_gram.h null_lex.c
35
36EXTRA_DIST = $(man_MANS)
37# do not distribute files that should be generated by lex/yacc locally
38dist-hook:
39	(cd $(distdir) && rm -f fsi_gram.c fsi_gram.h fsi_lex.c)
40
41# clean these files, which get automatically generated by yacc/lex
42CLEANFILES = $(BUILT_SOURCES)
43
44LDADD = $(EXTRA_fsinfo_OBJECTS) ../libamu/libamu.la
45# must manually add f/lex library to LIBS, and not to LDADD.
46LIBS = @LIBS@ @LEXLIB@
47
48INCLUDES = -I$(top_srcdir)/include
49
50# allow users to add their own flags via "configure --enable-am-flags=ARG"
51AMU_CFLAGS = @AMU_CFLAGS@
52AM_CFLAGS = @CFLAGS@ $(AMU_CFLAGS)
53AM_YFLAGS = -d
54
55# dependencies
56$(PROGRAMS): $(LDADD)
57$(fsinfo_OBJECTS):				\
58	../config.h				\
59	../aux_conf.h				\
60	$(top_srcdir)/include/am_compat.h	\
61	$(top_srcdir)/include/am_defs.h		\
62	$(top_srcdir)/include/am_utils.h	\
63	$(top_srcdir)/include/am_xdr_func.h	\
64	$(top_srcdir)/include/amq_defs.h	\
65	@AMU_NFS_PROT_HEADER@			\
66	$(noinst_HEADERS)
67