-
Notifications
You must be signed in to change notification settings - Fork 310
/
Makefile
53 lines (45 loc) · 1.39 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
WARNINGS= \
-Werror \
-Wall \
-Wextra \
-pedantic \
-Wcast-align \
-Wcast-qual \
-Wctor-dtor-privacy \
-Wdisabled-optimization \
-Wformat=2 \
-Winit-self \
-Wlogical-op \
-Wmissing-include-dirs \
-Wmissing-declarations \
-Wnoexcept \
-Wold-style-cast \
-Woverloaded-virtual \
-Wredundant-decls \
-Wshadow \
-Wsign-promo \
-Wstrict-null-sentinel \
-Wstrict-overflow=5 \
-Wundef \
-Wno-unused \
-Wno-variadic-macros \
-Wno-parentheses \
-fdiagnostics-show-option
test: base64-test-11 base64-test-17
./base64-test-11
./base64-test-17
base64-test-11: base64-11.o test-11.o
g++ base64-11.o test-11.o -o $@
base64-test-17: base64-17.o test-17.o
g++ base64-17.o test-17.o -o $@
base64-11.o: base64.cpp base64.h
g++ -std=c++11 $(WARNINGS) -c base64.cpp -o base64-11.o
base64-17.o: base64.cpp base64.h
g++ -std=c++17 $(WARNINGS) -c base64.cpp -o base64-17.o
test-11.o: test.cpp
g++ -std=c++11 $(WARNINGS) -c test.cpp -o test-11.o
test-17.o: test.cpp
g++ -std=c++17 $(WARNINGS) -c test.cpp -o test-17.o
clean:
rm -f *.o
rm -f base64-test-*