ACLOCAL_AMFLAGS = -I m4 MAINTAINERCLEANFILES = src/scan.c src/scan.h src/scan.stamp \ src/parse.c src/parse.h src/parse.stamp EXTRA_DIST = src/parse.stamp src/scan.stamp include_HEADERS = src/cdecl.h noinst_HEADERS = src/scan.h src/parse.h lib_LTLIBRARIES = libcdecl.la libcdecl_la_LDFLAGS = -export-symbols-regex '^cdecl_' libcdecl_la_SOURCES = src/scan.c src/parse.c src/libcdecl.c bin_PROGRAMS = cdecl99 cdecl99_SOURCES = src/cdecl99.c cdecl99_LDADD = libcdecl.la src/parse.lo: src/scan.h src/scan.lo: src/parse.h src/libcdecl.lo: src/scan.h src/parse.h # These are required to prevent the builtin lex/yacc rules from # superseding ours... src/scan.c src/scan.h: src/scan.stamp src/parse.c src/parse.h: src/parse.stamp # Supporting rules for bison/flex. BISON_V = $(BISON_V_$(V)) BISON_V_ = $(BISON_V_$(AM_DEFAULT_VERBOSITY)) BISON_V_0 = @echo " BISON " $<; FLEX_V = $(FLEX_V_$(V)) FLEX_V_ = $(FLEX_V_$(AM_DEFAULT_VERBOSITY)) FLEX_V_0 = @echo " FLEX " $<; .y.c: ; .l.c: ; .y.stamp: $(AM_V_at) touch $@.tmp $(BISON_V) $(BISON) -o $*.c --defines=$*.h.tmp $(BISONFLAGS) $< $(AM_V_at) if cmp $*.h.tmp $*.h >/dev/null 2>&1; then \ rm -f $*.h.tmp; \ else \ mv -f $*.h.tmp $*.h; \ fi $(AM_V_at) mv -f $@.tmp $@ .l.stamp: $(AM_V_at) touch $@.tmp $(FLEX_V) $(FLEX) -o $*.c --header-file=$*.h.tmp $(FLEXFLAGS) $< $(AM_V_at) if cmp $*.h.tmp $*.h >/dev/null 2>&1; then \ rm -f $*.h.tmp; \ else \ mv -f $*.h.tmp $*.h; \ fi $(AM_V_at) mv -f $@.tmp $@ .stamp.c: @if test -f $@; then :; else \ rm -f $<; \ $(MAKE) $(AM_MAKEFLAGS) $<; \ fi .stamp.h: @if test -f $@; then :; else \ rm -f $<; \ $(MAKE) $(AM_MAKEFLAGS) $<; \ fi