forked from NBnfork/Group21RPS
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
46 lines (28 loc) · 926 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
33
34
35
36
37
38
39
40
41
42
43
44
# Parts of this file were taken for the makefile lecture in Module 1.
# Parts were also used from the example written by TA Harlan James.
#target: dependencies
# rule to build
PROJ = game
ASSIGN = Group_Project_Group21
SRCS = main.cpp paper.cpp rock.cpp RPSGame.cpp scissors.cpp tool.cpp utilities.cpp validChar.cpp validInt.cpp
#HEADERS = inputValidation.hpp useMenu.hpp getMenuChoice.hpp
OBJS = ${SRCS:.cpp=.o}
CXX = g++
CXXFLAGS = -std=c++0x
CXXFLAGS += -Wall
CXXFLAGS += -pedantic-errors
CXXFLAGS += -g
VALGRINDOPT = --tool=memcheck --leak-check=full --show-leak-kinds=all --track-origins=yes
${PROJ}: ${OBJS}
${CXX} ${CXXFLAGS} ${OBJS} -o ${PROJ}
${OBJS}: ${SRCS}
${CXX} ${CXXFLAGS} -c ${SRCS}
.PHONY: clean zip debug
debug: ${PROJ}
valgrind ${VALGRINDOPT} ./${PROJ}
clean:
@echo "RM *o"
@echo "RM ${PROJ}"
@rm -f *.o ${PROJ}
zip:
zip ${ASSIGN} *.cpp *.hpp *.pdf makefile