BUILT_SOURCES = $(ANTLR_STUFF)
CLEAN_FILES = $(ANTLR_STUFF)
-Antlr%.cpp Antlr%.hpp: %.g
- $(ANTLR) -o "@builddir@" "@srcdir@/$<"
-
+AntlrCvcLexer.cpp AntlrCvcLexer.hpp: CvcLexer.g
+ $(ANTLR) -o "@builddir@" "$<"
+AntlrCvcParser.cpp AntlrCvcParser.hpp: CvcParser.g
+ $(ANTLR) -o "@builddir@" "$<"
noinst_LTLIBRARIES = libparsersmt.la
-libparsersmt_la_SOURCES = \
- SmtLexer.g \
- SmtParser.g \
+ANTLR_STUFF = \
AntlrSmtLexer.hpp \
AntlrSmtLexer.cpp \
AntlrSmtParser.hpp \
AntlrSmtParser.cpp
-BUILT_SOURCES = \
- AntlrSmtLexer.hpp \
- AntlrSmtLexer.cpp \
- AntlrSmtParser.hpp \
- AntlrSmtParser.cpp
-CLEAN_FILES = $(BUILT_SOURCES)
+libparsersmt_la_SOURCES = \
+ SmtLexer.g \
+ SmtParser.g \
+ $(ANTLR_STUFF)
-AntlrSmtLexer.cpp AntlrSmtLexer.hpp: SmtLexer.g
- $(ANTLR) -o "@builddir@" "@srcdir@/SmtLexer.g"
+BUILT_SOURCES = $(ANTLR_STUFF)
+CLEAN_FILES = $(ANTLR_STUFF)
+AntlrSmtLexer.cpp AntlrSmtLexer.hpp: SmtLexer.g
+ $(ANTLR) -o "@builddir@" "$<"
AntlrSmtParser.cpp AntlrSmtParser.hpp: SmtParser.g
- $(ANTLR) -o "@builddir@" "@srcdir@/SmtParser.g"
+ $(ANTLR) -o "@builddir@" "$<"