-
Notifications
You must be signed in to change notification settings - Fork 0
/
makefile
44 lines (35 loc) · 983 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
CC := $(CXX)
CXXFLAGS += -MMD -MP
CXXFLAGS += -std=c++11
CXXFLAGS += -fdiagnostics-show-option -fmessage-length=0 -W -Wall -Werror -Weffc++
CXXFLAGS += -Wextra
CXXFLAGS += -pedantic
CXXFLAGS += -Wformat=2 -Wformat-y2k
CXXFLAGS += -Wignored-qualifiers
CXXFLAGS += -Wmissing-include-dirs
CXXFLAGS += -Wunused-parameter
CXXFLAGS += -Wfloat-equal
CXXFLAGS += -Wundef
CXXFLAGS += -Wshadow
CXXFLAGS += -Wnon-virtual-dtor
CXXFLAGS += -Wpointer-arith
CXXFLAGS += -Wcast-qual
CXXFLAGS += -Wcast-align
CXXFLAGS += -Wconversion
CXXFLAGS += -Wsign-conversion
CXXFLAGS += -Wlogical-op
CXXFLAGS += -Wmissing-declarations
CXXFLAGS += -Wmissing-field-initializers
CXXFLAGS += -Wmissing-format-attribute
CXXFLAGS += -Wredundant-decls
application: application.o solution.o
application.o: | run_test
test: test.o solution.o
test: LDLIBS += -lgtest -lpthread
test: LDFLAGS += -L/usr/lib64/gtest
run_test: test
./test
clean:
$(RM) application test *.[do]
-include *.d
.PHONY: clean run_test