-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
27 lines (19 loc) · 737 Bytes
/
Makefile
File metadata and controls
27 lines (19 loc) · 737 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
CXX=g++
CXXFLAGS=-g -Wall -std=c++11
GTESTINCL := -I /usr/include/gtest/
GTESTLIBS := -lgtest -lgtest_main -lpthread
# Uncomment for parser DEBUG
#DEFS=-DDEBUG
all: ht-test str-hash-test hash-check boggle-driver
boggle-driver: boggle.cpp boggle.h boggle-driver.cpp
$(CXX) $(CXXFLAGS) $(DEFS) boggle.cpp boggle-driver.cpp -o $@
ht-test: ht-test.cpp ht.h
$(CXX) $(CXXFLAGS) $(DEFS) $< -o $@
str-hash-test: str-hash-test.cpp hash.h
$(CXX) $(CXXFLAGS) $(DEFS) $< -o $@
hash-check: hash-check.cpp hash.h
$(CXX) $(CXXFLAGS) $(DEFS) $(GTESTINCL) $< -o $@ $(GTESTLIBS)
run-hash-check: hash-check
valgrind --tool=memcheck --leak-check=yes ./hash-check
clean:
rm -f *~ *.o ht-test ht-perf str-hash-test hash-check boggle-driver