No empty .Rs/.Re
[netbsd-mini2440.git] / external / bsd / am-utils / dist / fsinfo / Makefile.am
blobd0b3fec7f73b551ff01c7d4fb0c10a54987fa12d
1 ## Process this file with automake to produce Makefile.in
3 # Package: am-utils
4 # Level: Makefile for fsinfo/ directory
5 # Author: Erez Zadok
7 sbin_PROGRAMS = fsinfo
9 # man pages
10 man_MANS = fsinfo.8
12 # headers this depends on, not to be installed
13 noinst_HEADERS = fsi_data.h fsinfo.h
15 # sources needed: note .y and .l files have to be first
16 fsinfo_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
32 # sources which get auto-built (from yacc/lex)
33 BUILT_SOURCES = fsi_gram.c fsi_gram.h fsi_lex.c \
34         null_gram.c null_gram.h null_lex.c
36 EXTRA_DIST = $(man_MANS)
37 # do not distribute files that should be generated by lex/yacc locally
38 dist-hook:
39         (cd $(distdir) && rm -f fsi_gram.c fsi_gram.h fsi_lex.c)
41 # clean these files, which get automatically generated by yacc/lex
42 CLEANFILES = $(BUILT_SOURCES)
44 LDADD = $(EXTRA_fsinfo_OBJECTS) ../libamu/libamu.la
45 # must manually add f/lex library to LIBS, and not to LDADD.
46 LIBS = @LIBS@ @LEXLIB@
48 INCLUDES = -I$(top_srcdir)/include
50 # allow users to add their own flags via "configure --enable-am-flags=ARG"
51 AMU_CFLAGS = @AMU_CFLAGS@
52 AM_CFLAGS = @CFLAGS@ $(AMU_CFLAGS)
53 AM_YFLAGS = -d
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)