-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
46 lines (37 loc) · 1.31 KB
/
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
#
# Makefile for Six Degrees
#
# Project 2 (fall 2020)
#
# STUDENT TODO: Add any testing files before running the provide target
#
CXX = clang++
CXXFLAGS = -g3 -Wall -Wextra -std=c++11
INCLUDES = $(shell echo *.h)
SixDegrees: main.o SixDegrees.o CollabGraph.o Artist.o
${CXX} -o $@ $^
%.o: %.cpp ${INCLUDES}
${CXX} ${CXXFLAGS} -c $<
clean:
rm -rf SixDegrees *.o *.dSYM
unit_test: unit_test_driver.o SixDegrees.o unit_tests.o CollabGraph.o \
Artist.o
$(CXX) $(CXXFLAGS) unit_test_driver.o SixDegrees.o unit_tests.o \
CollabGraph.o Artist.o
unit_test_driver.o: unit_test_driver.cpp
$(CXX) $(CXXFLAGS) -c unit_test_driver.cpp
##############################################
# PLEASE DO NOT FORGET TO ADD ANY ADDITIONAL #
# FILES YOU MADE, SUCH AS TESTING FILES. #
##############################################
providephase1:
provide comp15 proj2phase1 SixDegrees.cpp SixDegrees.h \
main.cpp README Makefile # ADD TESTING FILES HERE
providephase2:
provide comp15 proj2phase2 SixDegrees.cpp SixDegrees.h \
main.cpp README Makefile CollabGraph.h CollabGraph.cpp \
artists.txt unit_tests.cpp unittestinput.txt empty.txt \
typicalinput.txt quitinmiddle.txt terminatewitheof.txt \
invalidartist.txt disconnectedartist.txt createbfstest.cpp \
bfstestinput.txt nottestinput.txt \
invalidcommand.txt