forked from slam-code/cpp
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
executable file
·28 lines (20 loc) · 729 Bytes
/
Makefile
File metadata and controls
executable file
·28 lines (20 loc) · 729 Bytes
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
CPPFLAGS+=-std=c++14 -Wall -Werror -Wextra -pedantic -Weffc++ -I. -Wundef -Wold-style-cast
all: main
main: main.o basic_server.o service.o
${CXX} $^ -o $@ -pthread
%.o: %.cpp
${CXX} -c ${CPPFLAGS} $< -o $@
tests: url_scanner_test.cpp url_scanner.hpp
${CXX} ${CPPFLAGS} -o $@ url_scanner_test.cpp -pthread -lgtest -lgtest_main
./tests
clean:
rm -f main tests main.o
deps:
makedepend -Y. *.cpp
# DO NOT DELETE
basic_server.o: ./basic_server.hpp ./service.hpp ./url_scanner.hpp
basic_server.o: ./response.hpp ./request.hpp
main.o: ./service.hpp ./url_scanner.hpp ./response.hpp ./request.hpp
main.o: ./basic_server.hpp
service.o: ./url_scanner.hpp ./response.hpp ./request.hpp
url_scanner_test.o: ./url_scanner.hpp