panthema / 2007 / flex-bison-cpp-example / flex-bison-cpp-example-0.1 / src / Makefile.am (Download File)
# $Id: Makefile.am 30 2007-08-20 11:15:18Z tb $

AM_CFLAGS = -W -Wall -Wextra -ansi
AM_CXXFLAGS = -W -Wall -Wextra -ansi

noinst_LIBRARIES = libexampleparser.a

libexampleparser_a_SOURCES = \
	parser.yy scanner.ll parser.h scanner.h y.tab.h \
	location.hh position.hh stack.hh FlexLexer.h \
	driver.cc driver.h expression.h

bin_PROGRAMS = exprtest

exprtest_SOURCES = exprtest.cc
exprtest_DEPENDENCIES = libexampleparser.a

LIBS = libexampleparser.a

# this output override is needed because the c++ scanner is outputted into
# lex.yy.cc and the automake ylwrap script only checks for lex.yy.c
AM_LFLAGS = -olex.yy.c

EXTRA_DIST = readme.dox exprtest.txt \
	exprtest.vcproj libexampleparser.vcproj