-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
69 lines (52 loc) · 2.21 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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
CXX=g++
CXXFLAGS= -std=c++17 -Wall -pedantic -Wno-long-long -O2
EXECUTABLE=MatrixCalculator
.PHONY: all compile run clean doc
all: compile doc
compile: ${EXECUTABLE}
run: ${EXECUTABLE}
./${EXECUTABLE}
clean:
rm -f *.o
rm -f ${EXECUTABLE}
rm -rf doc/
doc: src/UI/CUIText.cpp src/UI/CUIText.h src/UI/CUserInterface.cpp src/UI/CUserInterface.h \
src/Calculator/CCalculator.cpp src/Calculator/CCalculator.h \
src/Matrix/CDenseMatrix.cpp src/Matrix/CDenseMatrix.h src/Matrix/CLinear.cpp src/Matrix/CLinear.h \
src/Matrix/CMatrix.cpp src/Matrix/CMatrix.h src/Matrix/CSparseMatrix.cpp src/Matrix/CSparseMatrix.h \
src/index.txt
doxygen >/dev/null
${EXECUTABLE}: main.o \
CUserInterface.o CUIText.o\
CCalculator.o\
CMatrix.o CDenseMatrix.o CSparseMatrix.o\
CLinear.o
${CXX} ${CXXFLAGS} $^ -o ${EXECUTABLE}
%.o:
${CXX} ${CXXFLAGS} -c $< -o $@
main.o: src/main.cpp src/UI/CUserInterface.h \
src/UI/../Calculator/CCalculator.h \
src/UI/../Calculator/../Matrix/CMatrix.h \
src/UI/../Calculator/../Matrix/CLinear.h \
src/UI/../Calculator/../Matrix/../Exception/CExceptions.h
CExceptions.o: src/Exception/CExceptions.h
CCalculator.o: src/Calculator/CCalculator.cpp \
src/Calculator/CCalculator.h src/Calculator/../Matrix/CMatrix.h \
src/Calculator/../Matrix/CLinear.h \
src/Calculator/../Matrix/../Exception/CExceptions.h
CDenseMatrix.o: src/Matrix/CDenseMatrix.cpp src/Matrix/CDenseMatrix.h \
src/Matrix/CMatrix.h src/Matrix/../Exception/CExceptions.h
CLinear.o: src/Matrix/CLinear.cpp src/Matrix/CLinear.h \
src/Matrix/../Exception/CExceptions.h src/Matrix/CMatrix.h
CMatrix.o: src/Matrix/CMatrix.cpp src/Matrix/CMatrix.h \
src/Matrix/../Exception/CExceptions.h src/Matrix/CSparseMatrix.h \
src/Matrix/CDenseMatrix.h
CSparseMatrix.o: src/Matrix/CSparseMatrix.cpp src/Matrix/CSparseMatrix.h \
src/Matrix/CMatrix.h src/Matrix/../Exception/CExceptions.h
CUIText.o: src/UI/CUIText.cpp src/UI/CUIText.h
CUserInterface.o: src/UI/CUserInterface.cpp src/UI/CUserInterface.h \
src/UI/../Calculator/CCalculator.h \
src/UI/../Calculator/../Matrix/CMatrix.h \
src/UI/../Calculator/../Matrix/CLinear.h \
src/UI/../Calculator/../Matrix/../Exception/CExceptions.h \
src/UI/CUIText.h