summaryrefslogtreecommitdiff
path: root/src/piraha/Makefile
diff options
context:
space:
mode:
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