-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
361 lines (285 loc) · 14.6 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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
# Copyright (c) 2014-2016 Western Digital Corporation or its affiliates <[email protected]>
BASE_DIR := $(shell pwd)
TIMESTAMP := $(shell date)
SOURCE_HASH := $(shell ./tools/create-source-hash.sh)
PACKAGE_NAME = wdc-kinetic
# Currently only supports native builds
COMPILER_PREFIX =
TOOLCHAIN_BIN_DIR = /usr/bin
# Build Input Directories
APP_SRC_DIR = $(BASE_DIR)/src
INCLUDE_DIR = $(BASE_DIR)/include
PROTO_DIR = $(BASE_DIR)/proto
TEST_SRC_DIR = $(BASE_DIR)/test
PACKAGE_DIR = $(BASE_DIR)/package
CONF_DIR = $(BASE_DIR)/conf
# Build Output Directories
BUILD_DIR = $(BASE_DIR)/build
BUILD_APP_BIN_DIR = $(BUILD_DIR)/bin/app
BUILD_APP_OBJ_DIR = $(BUILD_DIR)/obj/app
BUILD_PROTO_DIR = $(BUILD_DIR)/proto
BUILD_TEST_BIN_DIR = $(BUILD_DIR)/bin/test
BUILD_TEST_OBJ_DIR = $(BUILD_DIR)/obj/test
BUILD_PACKAGE_DIR = $(BUILD_DIR)/package
BUILD_DOXYGEN_DIR = $(BUILD_DIR)/doxygen
# Dependencies Library Directories
DEPENDENCIES_DIR = $(BASE_DIR)/dependencies
ASTYLE_DIR = $(DEPENDENCIES_DIR)/astyle/build/gcc/bin
BOOST_DIR = $(DEPENDENCIES_DIR)/boost
GOOGLE_TEST_DIR = $(DEPENDENCIES_DIR)/googletest
ROCKSDB_DIR = $(DEPENDENCIES_DIR)/rocksdb
LEVELDB_DIR = $(DEPENDENCIES_DIR)/leveldb
SNAPPY_DIR = $(DEPENDENCIES_DIR)/snappy
ZLIB_DIR = $(DEPENDENCIES_DIR)/zlib
BZIP2_DIR = $(DEPENDENCIES_DIR)/bzip2
LINT_DIR = $(DEPENDENCIES_DIR)/styleguide/cpplint
PROTOBUF_DIR = $(DEPENDENCIES_DIR)/protobuf
OPENSSL_DIR = $(DEPENDENCIES_DIR)/openssl
CONFIG_DIR = /etc/kaos
# Dependencies Libraries
GTEST_LIBRARY = $(GOOGLE_TEST_DIR)/make/gtest_main.a
ROCKSDB_LIBRARY = $(ROCKSDB_DIR)/librocksdb.a
LEVELDB_LIBRARY = $(LEVELDB_DIR)/libleveldb.a
PROTOBUF_LIBRARY = $(PROTOBUF_DIR)/src/.libs/libprotobuf.a
OPENSSL_LIBRARIES = $(OPENSSL_DIR)/libssl.a $(OPENSSL_DIR)/libcrypto.a
ZIP_LIBRARY = $(ZLIB_DIR)/libz.a
BZIP_LIBRARY = $(BZIP2_DIR)/libbz2.a
SNAPPY_LIBRARY = $(SNAPPY_DIR)/.libs/libsnappy.a
# Compiler/Linker Parameters
CC = $(COMPILER_PREFIX)gcc
CXX = $(COMPILER_PREFIX)g++
CXX_APP_FLAGS = -std=c++0x -g -Wall -Wextra -DTIMESTAMP="\"$(TIMESTAMP)\"" -DSOURCE_HASH="\"$(SOURCE_HASH)\""
CXX_TEST_FLAGS = $(CXX_APP_FLAGS) -DUNIT_TEST -DTIMESTAMP="\"$(TIMESTAMP)\""
APP_INCLUDES = -I$(BASE_DIR)/include -I$(BOOST_DIR) -I$(LEVELDB_DIR)/include -I$(ROCKSDB_DIR)/include -I$(PROTOBUF_DIR)/src -I$(OPENSSL_DIR)/include
APP_LIBRARIES = $(LEVELDB_LIBRARY) $(ROCKSDB_LIBRARY) $(PROTOBUF_LIBRARY) $(OPENSSL_LIBRARIES) $(ZIP_LIBRARY) $(BZIP_LIBRARY) $(SNAPPY_LIBRARY) -lrt -lpthread
TEST_INCLUDES = $(APP_INCLUDES) -I$(GOOGLE_TEST_DIR)/include
TEST_LIBRARIES = $(GTEST_LIBRARY) $(APP_LIBRARIES)
# Build the Kinetic Advanced Object Storage
kaos: $(BUILD_APP_BIN_DIR)/kaos
# Build the unit tests
test: \
$(BUILD_TEST_BIN_DIR)/accessControlUnitTest \
$(BUILD_TEST_BIN_DIR)/accessScopeUnitTest \
$(BUILD_TEST_BIN_DIR)/heartbeatProviderUnitTest \
$(BUILD_TEST_BIN_DIR)/hmacUnitTest \
$(BUILD_TEST_BIN_DIR)/kineticMessageFramingUnitTest \
$(BUILD_TEST_BIN_DIR)/serverSettingsUnitTest
# Run the unit tests
run-tests:
$(BUILD_TEST_BIN_DIR)/accessControlUnitTest
$(BUILD_TEST_BIN_DIR)/accessScopeUnitTest
$(BUILD_TEST_BIN_DIR)/heartbeatProviderUnitTest
$(BUILD_TEST_BIN_DIR)/hmacUnitTest
$(BUILD_TEST_BIN_DIR)/kineticMessageFramingUnitTest
$(BUILD_TEST_BIN_DIR)/serverSettingsUnitTest
# Build source from the protocol buffer files (rename the .cc files to .cpp)
proto:
cd $(PROTOBUF_DIR) && export CC=gcc && ./configure && sudo make install
[ -d $(BUILD_PROTO_DIR) ] || mkdir -p $(BUILD_PROTO_DIR)
$(PROTOBUF_DIR)/src/protoc -I=$(PROTO_DIR) --cpp_out=$(BUILD_PROTO_DIR) $(PROTO_DIR)/Kinetic.proto
$(PROTOBUF_DIR)/src/protoc -I=$(PROTO_DIR) --cpp_out=$(BUILD_PROTO_DIR) $(PROTO_DIR)/Entry.proto
$(PROTOBUF_DIR)/src/protoc -I=$(PROTO_DIR) --cpp_out=$(BUILD_PROTO_DIR) $(PROTO_DIR)/Settings.proto
$(BASE_DIR)/tools/clean-proto-file.sh $(BUILD_PROTO_DIR) Entry
$(BASE_DIR)/tools/clean-proto-file.sh $(BUILD_PROTO_DIR) Kinetic
$(BASE_DIR)/tools/clean-proto-file.sh $(BUILD_PROTO_DIR) Settings
mv $(BUILD_PROTO_DIR)/*.cpp $(APP_SRC_DIR)/
mv $(BUILD_PROTO_DIR)/*.hpp $(INCLUDE_DIR)/
# Check for suspicious coding
check:
- $(BASE_DIR)/tools/filtered-lint.sh $(BASE_DIR)
cpp-check:
- cppcheck $(APP_SRC_DIR) --enable=all --force --includes-file=$(APP_INCLUDES)
- cppcheck $(TEST_SRC_DIR) --enable=all --force --includes-file=$(APP_INCLUDES)
# Made the code follow a consistent coding style
conform:
- $(ASTYLE_DIR)/astyle --suffix=none --lineend=linux --convert-tabs --indent=spaces=4 --style=java --break-closing-brackets --pad-oper --pad-header --unpad-paren --attach-classes --attach-namespaces --align-pointer=type --close-templates --indent-switches --keep-one-line-blocks --recursive "$(INCLUDE_DIR)/*.hpp"
- $(ASTYLE_DIR)/astyle --suffix=none --lineend=linux --convert-tabs --indent=spaces=4 --style=java --break-closing-brackets --pad-oper --pad-header --unpad-paren --attach-classes --attach-namespaces --align-pointer=type --close-templates --indent-switches --keep-one-line-blocks --recursive "$(TEST_SRC_DIR)/*.cpp"
- $(ASTYLE_DIR)/astyle --suffix=none --lineend=linux --convert-tabs --indent=spaces=4 --style=java --break-closing-brackets --pad-oper --pad-header --unpad-paren --attach-classes --attach-namespaces --align-pointer=type --close-templates --indent-switches --keep-one-line-blocks --recursive "$(APP_SRC_DIR)/*.cpp"
# Build the required dependencies
dependencies: dependencies-dir boost leveldb rocksdb snappy bzip2 zlib openssl protobuf googletest lint astyle
dependencies-dir:
mkdir -p $(DEPENDENCIES_DIR)
chmod 777 $(DEPENDENCIES_DIR)
# Install the Boost C++ headers
boost:
wget -P $(DEPENDENCIES_DIR) http://sourceforge.net/projects/boost/files/boost/1.59.0/boost_1_59_0.tar.gz
tar -zxf $(DEPENDENCIES_DIR)/boost_1_59_0.tar.gz -C $(DEPENDENCIES_DIR)
rm $(DEPENDENCIES_DIR)/boost_1_59_0.tar.gz
mv $(DEPENDENCIES_DIR)/boost_1_59_0 $(DEPENDENCIES_DIR)/boost
sed -i '71d' $(BOOST_DIR)/boost/property_tree/detail/json_parser/narrow_encoding.hpp
# Build the levelDB library
leveldb:
wget -P $(DEPENDENCIES_DIR) https://github.com/google/leveldb/archive/v1.18.tar.gz
tar -zxf $(DEPENDENCIES_DIR)/v1.18.tar.gz -C $(DEPENDENCIES_DIR)
rm $(DEPENDENCIES_DIR)/v1.18.tar.gz
mv $(DEPENDENCIES_DIR)/leveldb-1.18 $(DEPENDENCIES_DIR)/leveldb
export CC=$(CC) && export CXX=$(CXX) && cd $(LEVELDB_DIR) && \
./build_detect_platform config $(LEVELDB_DIR) && make
# Build the rocksDB library
rocksdb:
wget -P $(DEPENDENCIES_DIR) https://github.com/facebook/rocksdb/archive/4.8.fb.tar.gz
tar -zxf $(DEPENDENCIES_DIR)/4.8.fb.tar.gz -C $(DEPENDENCIES_DIR)
rm $(DEPENDENCIES_DIR)/4.8.fb.tar.gz
mv $(DEPENDENCIES_DIR)/rocksdb-4.8.fb $(DEPENDENCIES_DIR)/rocksdb
sed -i "s/CFLAGS += /CFLAGS += -DNDEBUG /g" $(ROCKSDB_DIR)/Makefile
sed -i "s/CXXFLAGS += /CXXFLAGS += -DNDEBUG /g" $(ROCKSDB_DIR)/Makefile
export CC=$(CC) && export CXX=$(CXX) && cd $(ROCKSDB_DIR) && \
make static_lib
# Build the Snappy compression library
snappy:
wget -P $(DEPENDENCIES_DIR) https://github.com/google/snappy/releases/download/1.1.3/snappy-1.1.3.tar.gz
tar -zxf $(DEPENDENCIES_DIR)/snappy-1.1.3.tar.gz -C $(DEPENDENCIES_DIR)
rm $(DEPENDENCIES_DIR)/snappy-1.1.3.tar.gz
mv $(DEPENDENCIES_DIR)/snappy-1.1.3 $(SNAPPY_DIR)
cd $(SNAPPY_DIR) && $(SNAPPY_DIR)/configure && make
zlib:
wget -P $(DEPENDENCIES_DIR) http://zlib.net/zlib-1.2.8.tar.gz
tar -zxf $(DEPENDENCIES_DIR)/zlib-1.2.8.tar.gz -C $(DEPENDENCIES_DIR)
rm $(DEPENDENCIES_DIR)/zlib-1.2.8.tar.gz
mv $(DEPENDENCIES_DIR)/zlib-1.2.8 $(ZLIB_DIR)
cd $(ZLIB_DIR) && $(ZLIB_DIR)/configure && make
bzip2:
wget -P $(DEPENDENCIES_DIR) http://www.bzip.org/1.0.6/bzip2-1.0.6.tar.gz
tar -zxf $(DEPENDENCIES_DIR)/bzip2-1.0.6.tar.gz -C $(DEPENDENCIES_DIR)
rm $(DEPENDENCIES_DIR)/bzip2-1.0.6.tar.gz
mv $(DEPENDENCIES_DIR)/bzip2-1.0.6 $(BZIP2_DIR)
cd $(BZIP2_DIR) && make
# Build the Open SSL libraries
openssl:
wget -P $(DEPENDENCIES_DIR) https://www.openssl.org/source/openssl-1.0.0s.tar.gz
tar -zxf $(DEPENDENCIES_DIR)/openssl-1.0.0s.tar.gz -C $(DEPENDENCIES_DIR)
rm $(DEPENDENCIES_DIR)/openssl-1.0.0s.tar.gz
mv $(DEPENDENCIES_DIR)/openssl-1.0.0s $(DEPENDENCIES_DIR)/openssl
export CC=$(CC) && export CXX=$(CXX) && cd $(OPENSSL_DIR) && \
./Configure --openssldir=$(OPENSSL_DIR) no-shared os/compiler:gcc && make
# Build the protocol buffer library
protobuf:
wget -P $(DEPENDENCIES_DIR) https://github.com/google/protobuf/releases/download/v2.6.1/protobuf-2.6.1.tar.gz
tar -zxf $(DEPENDENCIES_DIR)/protobuf-2.6.1.tar.gz -C $(DEPENDENCIES_DIR)
mv $(DEPENDENCIES_DIR)/protobuf-2.6.1 $(DEPENDENCIES_DIR)/protobuf
rm $(DEPENDENCIES_DIR)/protobuf-2.6.1.tar.gz
sed -i '1288s/.*/\ \ \ \ \ \ ) {/' $(PROTOBUF_DIR)/src/google/protobuf/descriptor.h
sed -i "1289i\ \ \ \ \ \ \ \ \ \ static_cast<void>(filename);" $(PROTOBUF_DIR)/src/google/protobuf/descriptor.h
sed -i "1290i\ \ \ \ \ \ \ \ \ \ static_cast<void>(element_name);" $(PROTOBUF_DIR)/src/google/protobuf/descriptor.h
sed -i "1291i\ \ \ \ \ \ \ \ \ \ static_cast<void>(descriptor);" $(PROTOBUF_DIR)/src/google/protobuf/descriptor.h
sed -i "1292i\ \ \ \ \ \ \ \ \ \ static_cast<void>(location);" $(PROTOBUF_DIR)/src/google/protobuf/descriptor.h
sed -i "1293i\ \ \ \ \ \ \ \ \ \ static_cast<void>(message);" $(PROTOBUF_DIR)/src/google/protobuf/descriptor.h
sed -i "1294i\ \ \ \ \ \ }" $(PROTOBUF_DIR)/src/google/protobuf/descriptor.h
sed -i "405i\ \ \ \ static_cast<void>(message);" $(PROTOBUF_DIR)/src/google/protobuf/message.h
sed -i "406i\ \ \ \ static_cast<void>(oneof_descriptor);" $(PROTOBUF_DIR)/src/google/protobuf/message.h
sed -i '398s/}//' $(PROTOBUF_DIR)/src/google/protobuf/message.h
sed -i "399i\ \ \ \ static_cast<void>(message);" $(PROTOBUF_DIR)/src/google/protobuf/message.h
sed -i "400i\ \ \ \ static_cast<void>(oneof_descriptor);" $(PROTOBUF_DIR)/src/google/protobuf/message.h
sed -i "401i\ \ }" $(PROTOBUF_DIR)/src/google/protobuf/message.h
sed -i "394i\ \ \ \ static_cast<void>(message);" $(PROTOBUF_DIR)/src/google/protobuf/message.h
sed -i "395i\ \ \ \ static_cast<void>(oneof_descriptor);" $(PROTOBUF_DIR)/src/google/protobuf/message.h
cd $(PROTOBUF_DIR) && export CC=gcc && ./configure && make
# Build the Google Test library
googletest:
wget -P $(DEPENDENCIES_DIR) https://github.com/google/googletest/archive/release-1.7.0.tar.gz
tar -zxf $(DEPENDENCIES_DIR)/release-1.7.0.tar.gz -C $(DEPENDENCIES_DIR)
rm $(DEPENDENCIES_DIR)/release-1.7.0.tar.gz
mv $(DEPENDENCIES_DIR)/googletest-release-1.7.0 $(DEPENDENCIES_DIR)/googletest
cd $(GOOGLE_TEST_DIR)/make && export CC=$(CC) && export CXX=$(CXX) && make
# Install (and customize) the C++ lint script
lint:
cd $(DEPENDENCIES_DIR) && git clone https://github.com/google/styleguide.git
sed -i 's|filename.rfind|filename.find|g' $(LINT_DIR)/cpplint.py
# Install the coding style app
astyle:
wget -P $(DEPENDENCIES_DIR) http://sourceforge.net/projects/astyle/files/astyle/astyle%202.04/astyle_2.04_linux.tar.gz
tar -zxf $(DEPENDENCIES_DIR)/astyle_2.04_linux.tar.gz -C $(DEPENDENCIES_DIR)
rm $(DEPENDENCIES_DIR)/astyle_2.04_linux.tar.gz
cd $(DEPENDENCIES_DIR)/astyle/build/gcc && make
# Build doxygen documentation
doxygen:
rm -rf $(BUILD_DOXYGEN_DIR)
doxygen $(CONF_DIR)/Doxyfile
# Build a Debian package for Kaos
package:
rm -rf $(BUILD_PACKAGE_DIR)
mkdir -p $(BUILD_PACKAGE_DIR)
cp -r $(PACKAGE_DIR) $(BUILD_PACKAGE_DIR)/$(PACKAGE_NAME)
cp $(BUILD_APP_BIN_DIR)/kaos $(BUILD_PACKAGE_DIR)/$(PACKAGE_NAME)/usr/sbin
cd $(BUILD_PACKAGE_DIR) && dpkg-deb --build $(PACKAGE_NAME)
rm -rf $(BUILD_PACKAGE_DIR)/$(PACKAGE_NAME)
# Remove any build artifacts
clean:
rm -rf $(BUILD_DIR)
# Build the main application, its associated tests, and its package
all: clean kaos test package doxygen
# Identify the targets that are not files
.PHONY: all clean package doxygen astyle lint googletest protobuf openssl leveldb rocksdb snappy boost dependencies-dir dependencies conform check cpp-check proto run-tests
# Build kaos application
$(BUILD_APP_BIN_DIR)/kaos: \
$(BUILD_APP_OBJ_DIR)/AccessControl.o \
$(BUILD_APP_OBJ_DIR)/ClearTextStream.o \
$(BUILD_APP_OBJ_DIR)/Connection.o \
$(BUILD_APP_OBJ_DIR)/Entry.pb.o \
$(BUILD_APP_OBJ_DIR)/GlobalConfig.o \
$(BUILD_APP_OBJ_DIR)/HeartbeatProvider.o \
$(BUILD_APP_OBJ_DIR)/Hmac.o \
$(BUILD_APP_OBJ_DIR)/KineticLog.o \
$(BUILD_APP_OBJ_DIR)/Kinetic.pb.o \
$(BUILD_APP_OBJ_DIR)/LevelDbObjectStore.o \
$(BUILD_APP_OBJ_DIR)/MessageHandler.o \
$(BUILD_APP_OBJ_DIR)/MessageTrace.o \
$(BUILD_APP_OBJ_DIR)/RocksDbObjectStore.o \
$(BUILD_APP_OBJ_DIR)/Server.o \
$(BUILD_APP_OBJ_DIR)/ServerSettings.o \
$(BUILD_APP_OBJ_DIR)/Settings.pb.o \
$(BUILD_APP_OBJ_DIR)/SslControl.o \
$(BUILD_APP_OBJ_DIR)/SslStream.o \
$(BUILD_APP_OBJ_DIR)/TcpTransport.o
@mkdir -p $(@D)
$(CXX) $^ $(APP_LIBRARIES) -o $@
# Rule to build application source
$(BUILD_APP_OBJ_DIR)/%.o: $(APP_SRC_DIR)/%.cpp
@mkdir -p $(@D)
$(CXX) $(CXX_APP_FLAGS) $(APP_INCLUDES) -c $^ -o $@
# Rule to build test source
$(BUILD_TEST_OBJ_DIR)/%.o: $(TEST_SRC_DIR)/%.cpp
@mkdir -p $(@D)
$(CXX) $(CXX_TEST_FLAGS) $(TEST_INCLUDES) -c $^ -o $@
$(BUILD_TEST_OBJ_DIR)/%.o: $(APP_SRC_DIR)/%.cpp
@mkdir -p $(@D)
$(CXX) $(CXX_TEST_FLAGS) $(APP_INCLUDES) -c $^ -o $@
# Build the test code
$(BUILD_TEST_BIN_DIR)/kineticMessageFramingUnitTest: \
$(BUILD_TEST_OBJ_DIR)/KineticMessageFramingUnitTest.o
@mkdir -p $(@D)
$(CXX) $^ $(TEST_LIBRARIES) -o $@
$(BUILD_TEST_BIN_DIR)/serverSettingsUnitTest: \
$(BUILD_TEST_OBJ_DIR)/AccessControl.o \
$(BUILD_TEST_OBJ_DIR)/Kinetic.pb.o \
$(BUILD_TEST_OBJ_DIR)/GlobalConfig.o \
$(BUILD_TEST_OBJ_DIR)/ServerSettingsUnitTest.o \
$(BUILD_TEST_OBJ_DIR)/ServerSettings.o \
$(BUILD_TEST_OBJ_DIR)/Settings.pb.o
@mkdir -p $(@D)
$(CXX) $^ $(TEST_LIBRARIES) -o $@
$(BUILD_TEST_BIN_DIR)/accessScopeUnitTest: \
$(BUILD_TEST_OBJ_DIR)/AccessControl.o \
$(BUILD_TEST_OBJ_DIR)/AccessScopeUnitTest.o \
$(BUILD_TEST_OBJ_DIR)/GlobalConfig.o \
$(BUILD_TEST_OBJ_DIR)/Kinetic.pb.o
@mkdir -p $(@D)
$(CXX) $^ $(TEST_LIBRARIES) -o $@
$(BUILD_TEST_BIN_DIR)/accessControlUnitTest: \
$(BUILD_TEST_OBJ_DIR)/AccessControl.o \
$(BUILD_TEST_OBJ_DIR)/AccessControlUnitTest.o \
$(BUILD_TEST_OBJ_DIR)/GlobalConfig.o \
$(BUILD_TEST_OBJ_DIR)/Kinetic.pb.o
@mkdir -p $(@D)
$(CXX) $^ $(TEST_LIBRARIES) -o $@
$(BUILD_TEST_BIN_DIR)/hmacUnitTest: \
$(BUILD_TEST_OBJ_DIR)/HmacUnitTest.o \
$(BUILD_TEST_OBJ_DIR)/Hmac.o
@mkdir -p $(@D)
$(CXX) $^ $(TEST_LIBRARIES) -o $@
$(BUILD_TEST_BIN_DIR)/heartbeatProviderUnitTest: \
$(BUILD_TEST_OBJ_DIR)/GlobalConfig.o \
$(BUILD_TEST_OBJ_DIR)/HeartbeatProvider.o \
$(BUILD_TEST_OBJ_DIR)/HeartbeatProviderUnitTest.o
@mkdir -p $(@D)
$(CXX) $^ $(TEST_LIBRARIES) -o $@