From a3cb4c5d02f0ee75094fc27814c71f8a025d034b Mon Sep 17 00:00:00 2001 From: sbrandt Date: Wed, 3 Apr 2013 19:12:46 +0000 Subject: Add the basic grammar files, and the changes to the piraha code necessary to parse all of Cactus. git-svn-id: http://svn.cactuscode.org/flesh/trunk@4990 17b73243-c579-4c4c-a9d2-2d5706c11dac --- src/piraha/Makefile | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) (limited to 'src/piraha/Makefile') diff --git a/src/piraha/Makefile b/src/piraha/Makefile index 45e4f4dc..4657948e 100644 --- a/src/piraha/Makefile +++ b/src/piraha/Makefile @@ -1,14 +1,17 @@ # Build the standalone tool # -CXX = g++ -CXXFLAGS = -Wall -Wreturn-type +BIN ?= . +CXX ?= c++ +CXXFLAGS ?= -g -O2 SRCS = AutoGrammar.cc Bracket.cc Dot.cc End.cc \ Generic.cc Grammar.cc Group.cc ILiteral.cc \ Literal.cc Lookup.cc Matcher.cc Multi.cc \ - Or.cc ReParse.cc Seq.cc smart_ptr.cc Start.cc + Or.cc ReParse.cc Seq.cc smart_ptr.cc Start.cc \ + Boundary.cc NegLookAhead.cc -generic : $(SRCS) Piraha.hpp smart_ptr.hpp - $(CXX) -I . -g -o generic $(SRCS) +$(BIN)/generic : $(SRCS) Piraha.hpp smart_ptr.hpp + mkdir -p $(BIN) + $(CXX) $(CXXFLAGS) -I . -o $(BIN)/generic $(SRCS) clean : - rm -f generic + rm -f $(BIN)/generic -- cgit v1.2.3