Commit 9e73eec3 authored by sebastien's avatar sebastien

Build system: fix for FlexLexer.h

git-svn-id: https://www.dynare.org/svn/dynare/trunk@2954 ac1d8469-bf42-47a9-8791-bf33cf982152
parent 0c7fea9e
......@@ -52,7 +52,8 @@ dynare_m_SOURCES = \
CodeInterpreter.hh \
FlexLexer.h
dynare_m_CPPFLAGS = $(BOOST_CPPFLAGS)
# The -I. is for <FlexLexer.h>
dynare_m_CPPFLAGS = $(BOOST_CPPFLAGS) -I.
dynare_m_LDFLAGS = $(BOOST_LDFLAGS)
dynare_m_LDADD = macro/libmacro.a
......
......@@ -46,7 +46,7 @@ using namespace std;
// Declare DynareFlexLexer class
#ifndef __FLEX_LEXER_H
# define yyFlexLexer DynareFlexLexer
# include "FlexLexer.h"
# include <FlexLexer.h>
# undef yyFlexLexer
#endif
......
......@@ -38,7 +38,7 @@ using namespace std;
// Declare MacroFlexLexer class
#ifndef __FLEX_LEXER_H
# define yyFlexLexer MacroFlexLexer
# include "../FlexLexer.h"
# include <FlexLexer.h>
# undef yyFlexLexer
#endif
......
......@@ -10,6 +10,9 @@ libmacro_a_SOURCES = \
MacroValue.cc \
MacroValue.hh
# The -I.. is for <FlexLexer.h>
libmacro_a_CPPFLAGS = -I..
MacroFlex.cc: MacroFlex.ll
$(LEX) -oMacroFlex.cc MacroFlex.ll
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment