-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
32 lines (22 loc) · 929 Bytes
/
Makefile
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
28
29
30
31
32
CXX = clang++
CXXFLAGS = -std=c++0x -g -O0 -Wall -Wextra
all : main
test: tests/test.cpp AdjList.o Algorithms.o catchmain.o
$(CXX) $(CXXFLAGS) tests/test.cpp tests/test_alg.cpp AdjList.o Algorithms.o catchmain.o -o test
test_alg: tests/test_alg.cpp AdjList.o Algorithms.o catchmain.o
$(CXX) $(CXXFLAGS) tests/test_alg.cpp AdjList.o Algorithms.o catchmain.o -o test_alg
testBFS: tests/testBFS.cpp AdjList.o Algorithms.o catchmain.o
$(CXX) $(CXXFLAGS) tests/testBFS.cpp AdjList.o Algorithms.o catchmain.o -o testBFS
main: main.o AdjList.o Algorithms.o
$(CXX) $(CXXFLAGS) main.o AdjList.o Algorithms.o -o main
main.o: main.cpp
$(CXX) $(CXXFLAGS) -c main.cpp
AdjList.o: AdjList.h AdjList.cpp
$(CXX) $(CXXFLAGS) -c AdjList.cpp
Algorithms.o: Algorithms.cpp
$(CXX) $(CXXFLAGS) -c Algorithms.cpp
catchmain.o: catch/catchmain.cpp
$(CXX) $(CXXFLAGS) -c catch/catchmain.cpp
.PHONY: clean
clean:
rm -f *.o $(EXENAME) main