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 12YLWRAP = $(top_srcdir)/ylwrap.amd 13 14# headers this depends on, not to be installed 15noinst_HEADERS = fsi_data.h fsinfo.h 16 17# sources needed: note .y and .l files have to be first 18fsinfo_SOURCES = \ 19 fsi_gram.y \ 20 fsi_lex.l \ 21 null_lex.l \ 22 null_gram.y \ 23 \ 24 fsi_analyze.c \ 25 fsi_dict.c \ 26 fsi_util.c \ 27 fsinfo.c \ 28 wr_atab.c \ 29 wr_bparam.c \ 30 wr_dumpset.c \ 31 wr_exportfs.c \ 32 wr_fstab.c 33 34# sources which get auto-built (from yacc/lex) 35BUILT_SOURCES = fsi_gram.c fsi_gram.h fsi_lex.c \ 36 null_gram.c null_gram.h null_lex.c 37 38EXTRA_DIST = $(man_MANS) 39# do not distribute files that should be generated by lex/yacc locally 40dist-hook: 41 (cd $(distdir) && rm -f fsi_gram.c fsi_gram.h fsi_lex.c) 42 43# clean these files, which get automatically generated by yacc/lex 44CLEANFILES = $(BUILT_SOURCES) 45 46LDADD = $(EXTRA_fsinfo_OBJECTS) ../libamu/libamu.la 47# must manually add f/lex library to LIBS, and not to LDADD. 48LIBS = @LIBS@ @LEXLIB@ 49 50AM_CPPFLAGS = -I$(top_srcdir)/include 51 52# allow users to add their own flags via "configure --enable-am-flags=ARG" 53AMU_CFLAGS = @AMU_CFLAGS@ 54AM_CFLAGS = $(AMU_CFLAGS) 55AM_YFLAGS = -d 56 57# dependencies 58$(PROGRAMS): $(LDADD) 59$(fsinfo_OBJECTS): \ 60 ../config.h \ 61 ../aux_conf.h \ 62 $(top_srcdir)/include/am_compat.h \ 63 $(top_srcdir)/include/am_defs.h \ 64 $(top_srcdir)/include/am_utils.h \ 65 $(top_srcdir)/include/am_xdr_func.h \ 66 $(top_srcdir)/include/amq_defs.h \ 67 @AMU_NFS_PROT_HEADER@ \ 68 $(noinst_HEADERS) 69