-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
25 lines (19 loc) · 796 Bytes
/
Copy pathMakefile
File metadata and controls
25 lines (19 loc) · 796 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
# The client is one header; this builds and runs its tests.
# make test system curl transport (the default)
# make test-libcurl the opt-in TRACE_CLIENT_USE_LIBCURL transport
CXX ?= g++
STD ?= c++11
CXXFLAGS ?= -std=$(STD) -Wall -Wextra -pedantic -Werror -pthread
.PHONY: test test-libcurl clean
build/test_trace_client: test/test_trace_client.cpp trace_client.hpp
mkdir -p build
$(CXX) $(CXXFLAGS) test/test_trace_client.cpp -o $@
build/test_trace_client_libcurl: test/test_trace_client.cpp trace_client.hpp
mkdir -p build
$(CXX) $(CXXFLAGS) -DTRACE_CLIENT_USE_LIBCURL test/test_trace_client.cpp -o $@ -lcurl
test: build/test_trace_client
./build/test_trace_client
test-libcurl: build/test_trace_client_libcurl
./build/test_trace_client_libcurl
clean:
rm -rf build