summaryrefslogtreecommitdiffhomepage
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile13
1 files changed, 7 insertions, 6 deletions
diff --git a/Makefile b/Makefile
index b18defe..1c2db6c 100644
--- a/Makefile
+++ b/Makefile
@@ -1,16 +1,16 @@
PROJECTNAME=minicc
-CXX=clang++-8
+CXX=clang++-9
#CXX=g++-8
-#CXXFLAGS=-O0 -D_DEBUG
+CXXFLAGS=-O0 -D_DEBUG
# -fprofile-instr-generate -fcoverage-mapping
# gcc:--coverage
-CXXFLAGS=-O2 -DNDEBUG
+#CXXFLAGS=-O2 -DNDEBUG
-CXXFLAGS+= -Wall -std=c++17 -I. -Ilib
+CXXFLAGS+= -Wall -std=c++17 -I.
-ifeq ($(CXX),clang++-8)
+ifeq ($(CXX),clang++-9)
# currently broken:
# ld.lld-8: error: undefined symbol: boost::re_detail_106700::cpp_regex_traits_implementation<char>::transform(char const*, char const*) const
#CXXFLAGS+= -stdlib=libc++
@@ -28,7 +28,7 @@ LIBS=\
-lboost_regex \
-lpthread
-ifeq ($(CXX),clang++-8)
+ifeq ($(CXX),clang++-9)
LIBS+= \
-fuse-ld=lld-8 \
-lstdc++ \
@@ -48,6 +48,7 @@ SRC=\
grammer.cpp \
lexer.cpp \
minicc.cpp \
+ cppbnf.cpp \
test-lexer.cpp \
googletest/src/gtest-all.cpp \
googlemock/src/gmock-all.cpp