2000-06-07 04:52:18 +04:00
|
|
|
## Process this file with automake to produce Makefile.in
|
|
|
|
|
|
|
|
# Package: am-utils
|
|
|
|
# Level: Makefile for fsinfo/ directory
|
|
|
|
# Author: Erez Zadok
|
|
|
|
|
|
|
|
sbin_PROGRAMS = fsinfo
|
|
|
|
|
|
|
|
# man pages
|
|
|
|
man_MANS = fsinfo.8
|
|
|
|
|
|
|
|
# headers this depends on, not to be installed
|
|
|
|
noinst_HEADERS = fsi_data.h fsinfo.h
|
|
|
|
|
2003-03-09 04:12:05 +03:00
|
|
|
# sources needed: note .y and .l files have to be first
|
2000-06-07 04:52:18 +04:00
|
|
|
fsinfo_SOURCES = \
|
2003-03-09 04:12:05 +03:00
|
|
|
fsi_gram.y \
|
|
|
|
fsi_lex.l \
|
|
|
|
\
|
2000-06-07 04:52:18 +04:00
|
|
|
fsi_analyze.c \
|
|
|
|
fsi_dict.c \
|
|
|
|
fsi_util.c \
|
|
|
|
fsinfo.c \
|
|
|
|
wr_atab.c \
|
|
|
|
wr_bparam.c \
|
|
|
|
wr_dumpset.c \
|
|
|
|
wr_exportfs.c \
|
|
|
|
wr_fstab.c
|
|
|
|
|
2003-03-09 04:12:05 +03:00
|
|
|
EXTRA_DIST = $(man_MANS)
|
|
|
|
# do not distribute files that should be generated by lex/yacc locally
|
|
|
|
dist-hook:
|
|
|
|
(cd $(distdir) && rm -f fsi_gram.c fsi_gram.h fsi_lex.c)
|
2000-06-07 04:52:18 +04:00
|
|
|
|
2003-03-09 04:12:05 +03:00
|
|
|
# clean these files, which get automatically generated by yacc/lex
|
2000-06-07 04:52:18 +04:00
|
|
|
CLEANFILES = fsi_gram.c fsi_gram.h fsi_lex.c
|
|
|
|
|
|
|
|
LDADD = $(EXTRA_fsinfo_OBJECTS) ../libamu/libamu.la
|
|
|
|
# must manually add f/lex library to LIBS, and not to LDADD.
|
|
|
|
LIBS = @LIBS@ @LEXLIB@
|
|
|
|
|
|
|
|
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)
|
2003-03-09 04:12:05 +03:00
|
|
|
AM_YFLAGS = -d
|
2000-06-07 04:52:18 +04:00
|
|
|
|
|
|
|
# dependencies
|
|
|
|
$(PROGRAMS): $(LDADD)
|
2002-11-30 01:57:11 +03:00
|
|
|
$(fsinfo_OBJECTS): \
|
2000-06-07 04:52:18 +04:00
|
|
|
../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)
|