Preliminary, but functional, autotoolsification
[proto.git] / src / compiler / Makefile.am
blob52acfb4d602efdcd186f2dac20fe77eb9f3c8deb
1 noinst_LTLIBRARIES = libcompiler.la
3 INCLUDES = \
4         -I$(top_srcdir)/src \
5         -I$(top_srcdir)/src/shared
7 libcompiler_la_SOURCES = \
8         lisp.cpp \
9         reader.cpp \
10         compiler-utils.cpp \
11         lexer.cpp \
12         enumlexer.cpp \
13         compiler.cpp
15 noinst_HEADERS = \
16         sexpr.h \
17         compiler-utils.h \
18         lisp.h \
19         reader.h \
20         compiler.h
22 enumlexer.cpp: $(srcdir)/one_enum.flex
23         $(LEX) -Pzz -oenumlexer.cpp $(srcdir)/one_enum.flex
25 lexer.cpp: $(srcdir)/proto_syntax.flex sexpr.h compiler-utils.h
26         $(LEX) -olexer.cpp $(srcdir)/proto_syntax.flex
28 # distribute the flex-generated files, since recent-enough versions of flex++
29 # are few and far between.
30 EXTRA_DIST = enumlexer.cpp lexer.cpp one_enum.flex proto_syntax.flex
31 MAINTAINERCLEANFILES = enumlexer.cpp lexer.cpp