-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
47 lines (34 loc) · 948 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
45
46
47
FILE_NUM = $(i)
COMMIT_MSG = ${m}
FIGSIZE_H = ${h}
FIGSIZE_W = ${w}
CPP_FILES = ${wildcard *.cpp}
HDR_FILES = ${wildcard include/*.hpp}
LAB = Lab4
STUDENT_ID = 311581017
CXX_FLAGS = -O3
main: ${CPP_FILES} ${HDR_FILES} routing.o structure.o
@g++ ${CXX_FLAGS} main.cpp routing.o structure.o -o ${LAB}
routing.o: routing.cpp ${HDR_FILES}
@g++ ${CXX_FLAGS} -c routing.cpp
structure.o: structure.cpp ${HDR_FILES}
@g++ ${CXX_FLAGS} -c structure.cpp
clean:
@rm *.o ${LAB}
test:
@./${LAB} data/input${FILE_NUM}.in data/output${FILE_NUM}.out
check:
@./SolutionChecker data/input${FILE_NUM}.in data/output${FILE_NUM}.out
plot:
python3 routing.py data/input${FILE_NUM}.in data/output${FILE_NUM}.out ${FILE_NUM} ${FIGSIZE_H} ${FIGSIZE_W}
cm:
git add .
git commit -m "${COMMIT_MSG}"
push:
git push origin master
gen:
@python3 generator.py
run:
make test
make check
make plot