summaryrefslogtreecommitdiff
path: root/src/piraha/Makefile
diff options
context:
space:
mode:
authorsbrandt <sbrandt@17b73243-c579-4c4c-a9d2-2d5706c11dac>2013-04-03 19:12:46 +0000
committersbrandt <sbrandt@17b73243-c579-4c4c-a9d2-2d5706c11dac>2013-04-03 19:12:46 +0000
commita3cb4c5d02f0ee75094fc27814c71f8a025d034b (patch)
tree1dd1af38bf8ad0318f07dd2c8ae00216e942efb0 /src/piraha/Makefile
parent069e8f1d570cc373c843673be0acf7bc4dd10b6e (diff)
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
Diffstat (limited to 'src/piraha/Makefile')
-rw-r--r--src/piraha/Makefile15
1 files changed, 9 insertions, 6 deletions
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