-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmakefile
72 lines (57 loc) · 1.5 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
70
71
72
# *****************************************************
# Variables to control Makefile operation
CC=g++
CFLAGS=-Wall -g -std=c++11
SNDFILE=$$(pkg-config --libs sndfile)
OPENCV4=$$(pkg-config --libs --cflags opencv4)
MATPLOTLIB=-I/usr/include/python3.8 -lpython3.8
# ****************************************************
# Targets needed to bring the executable up to date
all:
@ make --no-print-directory ex2 ex3 ex4 ex4video ex5 ex6 ex7 ex8 ex10
ex2:
@ mkdir -p bin
@ $(CC) $(CFLAGS) ParteB/ex2.cpp -o bin/ex2
ex3:
@ mkdir -p bin
@ $(CC) $(CFLAGS) ParteB/ex3.cpp -o bin/ex3
ex4:
@ mkdir -p bin
@ $(CC) $(CFLAGS) ParteB/ex4.cpp -o bin/ex4 $(OPENCV4)
ex4video:
@ mkdir -p bin
@ $(CC) $(CFLAGS) ParteB/ex4video.cpp -o bin/ex4video $(OPENCV4)
ex5:
@ mkdir -p bin
@ $(CC) $(CFLAGS) ParteC/ex5.cpp -o bin/ex5 $(MATPLOTLIB)
ex6:
@ mkdir -p bin
@ $(CC) $(CFLAGS) ParteC/ex6.cpp -o bin/ex6 $(SNDFILE) $(MATPLOTLIB)
ex7:
@ mkdir -p bin
@ $(CC) $(CFLAGS) ParteC/ex7.cpp -o bin/ex7 $(OPENCV4)
ex8:
@ mkdir -p bin
@ $(CC) $(CFLAGS) ParteD/ex8.cpp -o bin/ex8 $(MATPLOTLIB)
ex9:
@ mkdir -p bin
@ $(CC) $(CFLAGS) ParteD/ex9.cpp -o bin/ex9 $(OPENCV4)
ex10:
@ mkdir -p bin
@ $(CC) $(CFLAGS) ParteD/ex10.cpp -o bin/ex10
ex11:
@ mkdir -p bin
@ $(CC) $(CFLAGS) ParteD/ex11.cpp -o bin/ex11 $(OPENCV4)
clean:
rm -rf bin/ex2
rm -rf bin/ex3
rm -rf bin/ex3sndfile
rm -rf bin/ex4
rm -rf bin/ex4video
rm -rf bin/ex5
rm -rf bin/ex6
rm -rf bin/ex7
rm -rf bin/ex8
rm -rf bin/ex9
rm -rf bin/ex10
rm -rf bin/ex11