-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
26 lines (20 loc) · 738 Bytes
/
Makefile
File metadata and controls
26 lines (20 loc) · 738 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
CXX := g++
CXXFLAGS := -g -Wall --std=c++11 -DDEBUG
GTESTINCL := -I /usr/include/gtest/
GTESTLIBS := -lgtest -lgtest_main -lpthread
VALGRIND := valgrind --tool=memcheck --leak-check=yes
all: wordle-driver schedwork-driver
# generic rule for .cpp files
dict-eng.o : dict-eng.cpp dict-eng.h
$(CXX) $(CXXFLAGS) -c $< -o $@
wordle.o : wordle.cpp wordle.h dict-eng.h
$(CXX) $(CXXFLAGS) -c $< -o $@
wordle-driver : wordle-driver.cpp wordle.o dict-eng.o
$(CXX) $(CXXFLAGS) $(DEFS) $^ -o $@
schedwork.o : schedwork.cpp schedwork.h
$(CXX) $(CXXFLAGS) $(DEFS) -c $< -o $@
schedwork-driver : schedwork-driver.cpp schedwork.o
$(CXX) $(CXXFLAGS) $(DEFS) $^ -o $@
clean:
rm -f *.o wordle-driver schedwork-driver *~
.PHONY: clean