| 1 |
!ifndef BOOSTDIR |
| 2 |
BOOSTDIR = ../../boost_1_34_1 |
| 3 |
!endif |
| 4 |
|
| 5 |
COMMON_CXXFLAGS = -nologo -EHac -GR -I. -I../include |
| 6 |
|
| 7 |
!ifdef CXXLATEST |
| 8 |
STD_CXXFLAGS = -std:c++latest -permissive- |
| 9 |
!endif |
| 10 |
|
| 11 |
!ifdef WARNINGS |
| 12 |
WARNINGS_CXXFLAGS = -W4 -wd4512 -wd4447 |
| 13 |
!endif |
| 14 |
|
| 15 |
!ifdef STATICRTL |
| 16 |
! ifdef DEBUG |
| 17 |
DEBUG_CXXFLAGS = -Zi -MTd |
| 18 |
! else |
| 19 |
DEBUG_CXXFLAGS = -O2 -MT |
| 20 |
! endif |
| 21 |
!else |
| 22 |
! ifdef DEBUG |
| 23 |
DEBUG_CXXFLAGS = -Zi -MDd |
| 24 |
! else |
| 25 |
DEBUG_CXXFLAGS = -O2 -MD |
| 26 |
! endif |
| 27 |
!endif |
| 28 |
|
| 29 |
!ifdef UNICODE |
| 30 |
UNICODE_CXXFLAGS = -DUNICODE -D_UNICODE |
| 31 |
!endif |
| 32 |
|
| 33 |
!ifdef TRACKING |
| 34 |
TRACKING_CXXFLAGS = -DASIO_ENABLE_HANDLER_TRACKING |
| 35 |
!endif |
| 36 |
|
| 37 |
!ifndef _WIN32_WINNT |
| 38 |
! ifdef STORE |
| 39 |
_WIN32_WINNT=0x0603 |
| 40 |
! else |
| 41 |
_WIN32_WINNT=0x0601 |
| 42 |
! endif |
| 43 |
!endif |
| 44 |
|
| 45 |
!ifdef WIN9X |
| 46 |
DEFINES = \ |
| 47 |
-DASIO_DISABLE_IOCP \ |
| 48 |
-D_WIN32_WINNT=$(_WIN32_WINNT) \ |
| 49 |
-DBOOST_ALL_NO_LIB \ |
| 50 |
-DBOOST_CHRONO_DONT_PROVIDE_HYBRID_ERROR_HANDLING |
| 51 |
!else |
| 52 |
! ifdef STORE |
| 53 |
DEFINES = \ |
| 54 |
-DWINAPI_FAMILY=WINAPI_FAMILY_PC_APP \ |
| 55 |
-DBOOST_ALL_NO_LIB -D_WIN32_WINNT=$(_WIN32_WINNT) \ |
| 56 |
-DUNICODE -D_UNICODE \ |
| 57 |
-DBOOST_CHRONO_DONT_PROVIDE_HYBRID_ERROR_HANDLING |
| 58 |
! else |
| 59 |
! ifdef WINRT |
| 60 |
DEFINES = \ |
| 61 |
-ZW -FI SDKDDKVer.h -FI winapifamily.h -DWINAPI_FAMILY=WINAPI_PARTITION_APP \ |
| 62 |
-DBOOST_ALL_NO_LIB \ |
| 63 |
-DBOOST_CHRONO_DONT_PROVIDE_HYBRID_ERROR_HANDLING |
| 64 |
! else |
| 65 |
DEFINES = \ |
| 66 |
-D_WIN32_WINNT=$(_WIN32_WINNT) \ |
| 67 |
-DBOOST_ALL_NO_LIB \ |
| 68 |
-DBOOST_CHRONO_DONT_PROVIDE_HYBRID_ERROR_HANDLING |
| 69 |
! endif |
| 70 |
! endif |
| 71 |
!endif |
| 72 |
|
| 73 |
!ifdef SEPARATE_COMPILATION |
| 74 |
LIBS = asio.lib |
| 75 |
SEPARATE_COMPILATION_CXXFLAGS = \ |
| 76 |
-DASIO_SEPARATE_COMPILATION \ |
| 77 |
-DASIO_ENABLE_CANCELIO |
| 78 |
!endif |
| 79 |
|
| 80 |
!ifdef STANDALONE |
| 81 |
STANDALONE_CXXFLAGS = -DASIO_STANDALONE |
| 82 |
!else |
| 83 |
STANDALONE_CXXFLAGS = -I$(BOOSTDIR) -DASIO_ENABLE_BOOST |
| 84 |
!endif |
| 85 |
|
| 86 |
CXXFLAGS = \ |
| 87 |
$(COMMON_CXXFLAGS) \ |
| 88 |
$(STD_CXXFLAGS) \ |
| 89 |
$(WARNINGS_CXXFLAGS) \ |
| 90 |
$(DEBUG_CXXFLAGS) \ |
| 91 |
$(UNICODE_CXXFLAGS) \ |
| 92 |
$(TRACKING_CXXFLAGS) \ |
| 93 |
$(SEPARATE_COMPILATION_CXXFLAGS) \ |
| 94 |
$(STANDALONE_CXXFLAGS) |
| 95 |
|
| 96 |
!ifndef SSLDIR |
| 97 |
SSLDIR = ../../openssl-0.9.8g |
| 98 |
!endif |
| 99 |
|
| 100 |
SSL_CXXFLAGS = -I$(SSLDIR)/inc32 |
| 101 |
|
| 102 |
SSL_LIBS = \ |
| 103 |
$(SSLDIR)/out32/libeay32.lib \ |
| 104 |
$(SSLDIR)/out32/ssleay32.lib \ |
| 105 |
user32.lib advapi32.lib gdi32.lib |
| 106 |
|
| 107 |
LATENCY_TEST_EXES = \ |
| 108 |
tests\latency\tcp_client.exe \ |
| 109 |
tests\latency\tcp_server.exe \ |
| 110 |
tests\latency\udp_client.exe \ |
| 111 |
tests\latency\udp_server.exe |
| 112 |
|
| 113 |
PERFORMANCE_TEST_EXES = \ |
| 114 |
tests\performance\client.exe \ |
| 115 |
tests\performance\server.exe |
| 116 |
|
| 117 |
UNIT_TEST_EXES = \ |
| 118 |
tests\unit\any_completion_executor.exe \ |
| 119 |
tests\unit\any_completion_handler.exe \ |
| 120 |
tests\unit\any_io_executor.exe \ |
| 121 |
tests\unit\append.exe \ |
| 122 |
tests\unit\as_tuple.exe \ |
| 123 |
tests\unit\associated_allocator.exe \ |
| 124 |
tests\unit\associated_cancellation_slot.exe \ |
| 125 |
tests\unit\associated_executor.exe \ |
| 126 |
tests\unit\associator.exe \ |
| 127 |
tests\unit\async_result.exe \ |
| 128 |
tests\unit\awaitable.exe \ |
| 129 |
tests\unit\basic_datagram_socket.exe \ |
| 130 |
tests\unit\basic_deadline_timer.exe \ |
| 131 |
tests\unit\basic_file.exe \ |
| 132 |
tests\unit\basic_random_access_file.exe \ |
| 133 |
tests\unit\basic_raw_socket.exe \ |
| 134 |
tests\unit\basic_readable_pipe.exe \ |
| 135 |
tests\unit\basic_seq_packet_socket.exe \ |
| 136 |
tests\unit\basic_serial_port.exe \ |
| 137 |
tests\unit\basic_signal_set.exe \ |
| 138 |
tests\unit\basic_socket.exe \ |
| 139 |
tests\unit\basic_socket_acceptor.exe \ |
| 140 |
tests\unit\basic_stream_file.exe \ |
| 141 |
tests\unit\basic_stream_socket.exe \ |
| 142 |
tests\unit\basic_streambuf.exe \ |
| 143 |
tests\unit\basic_waitable_timer.exe \ |
| 144 |
tests\unit\basic_writable_pipe.exe \ |
| 145 |
tests\unit\bind_allocator.exe \ |
| 146 |
tests\unit\bind_cancellation_slot.exe \ |
| 147 |
tests\unit\bind_executor.exe \ |
| 148 |
tests\unit\bind_immediate_executor.exe \ |
| 149 |
tests\unit\buffered_read_stream.exe \ |
| 150 |
tests\unit\buffered_stream.exe \ |
| 151 |
tests\unit\buffered_write_stream.exe \ |
| 152 |
tests\unit\buffer.exe \ |
| 153 |
tests\unit\buffer_registration.exe \ |
| 154 |
tests\unit\buffers_iterator.exe \ |
| 155 |
tests\unit\cancel_after.exe \ |
| 156 |
tests\unit\cancel_at.exe \ |
| 157 |
tests\unit\cancellation_signal.exe \ |
| 158 |
tests\unit\cancellation_state.exe \ |
| 159 |
tests\unit\cancellation_type.exe \ |
| 160 |
tests\unit\co_spawn.exe \ |
| 161 |
tests\unit\completion_condition.exe \ |
| 162 |
tests\unit\compose.exe \ |
| 163 |
tests\unit\composed.exe \ |
| 164 |
tests\unit\config.exe \ |
| 165 |
tests\unit\connect.exe \ |
| 166 |
tests\unit\connect_pipe.exe \ |
| 167 |
tests\unit\coroutine.exe \ |
| 168 |
tests\unit\deadline_timer.exe \ |
| 169 |
tests\unit\defer.exe \ |
| 170 |
tests\unit\deferred.exe \ |
| 171 |
tests\unit\detached.exe \ |
| 172 |
tests\unit\dispatch.exe \ |
| 173 |
tests\unit\disposition.exe \ |
| 174 |
tests\unit\error.exe \ |
| 175 |
tests\unit\execution_context.exe \ |
| 176 |
tests\unit\execution\any_executor.exe \ |
| 177 |
tests\unit\execution\blocking.exe \ |
| 178 |
tests\unit\execution\blocking_adaptation.exe \ |
| 179 |
tests\unit\execution\context_as.exe \ |
| 180 |
tests\unit\execution\executor.exe \ |
| 181 |
tests\unit\execution\inline_exception_handling.exe \ |
| 182 |
tests\unit\execution\invocable_archetype.exe \ |
| 183 |
tests\unit\execution\mapping.exe \ |
| 184 |
tests\unit\execution\outstanding_work.exe \ |
| 185 |
tests\unit\execution\prefer_only.exe \ |
| 186 |
tests\unit\execution\relationship.exe \ |
| 187 |
tests\unit\executor.exe \ |
| 188 |
tests\unit\executor_work_guard.exe \ |
| 189 |
tests\unit\file_base.exe \ |
| 190 |
tests\unit\generic\basic_endpoint.exe \ |
| 191 |
tests\unit\generic\datagram_protocol.exe \ |
| 192 |
tests\unit\generic\raw_protocol.exe \ |
| 193 |
tests\unit\generic\seq_packet_protocol.exe \ |
| 194 |
tests\unit\generic\stream_protocol.exe \ |
| 195 |
tests\unit\high_resolution_timer.exe \ |
| 196 |
tests\unit\immediate.exe \ |
| 197 |
tests\unit\inline_executor.exe \ |
| 198 |
tests\unit\inline_or_executor.exe \ |
| 199 |
tests\unit\io_context.exe \ |
| 200 |
tests\unit\io_context_strand.exe \ |
| 201 |
tests\unit\ip\address.exe \ |
| 202 |
tests\unit\ip\address_v4.exe \ |
| 203 |
tests\unit\ip\address_v4_iterator.exe \ |
| 204 |
tests\unit\ip\address_v4_range.exe \ |
| 205 |
tests\unit\ip\address_v6.exe \ |
| 206 |
tests\unit\ip\address_v6_iterator.exe \ |
| 207 |
tests\unit\ip\address_v6_range.exe \ |
| 208 |
tests\unit\ip\basic_endpoint.exe \ |
| 209 |
tests\unit\ip\basic_resolver.exe \ |
| 210 |
tests\unit\ip\basic_resolver_entry.exe \ |
| 211 |
tests\unit\ip\basic_resolver_iterator.exe \ |
| 212 |
tests\unit\ip\basic_resolver_query.exe \ |
| 213 |
tests\unit\ip\host_name.exe \ |
| 214 |
tests\unit\ip\icmp.exe \ |
| 215 |
tests\unit\ip\multicast.exe \ |
| 216 |
tests\unit\ip\network_v4.exe \ |
| 217 |
tests\unit\ip\network_v6.exe \ |
| 218 |
tests\unit\ip\resolver_query_base.exe \ |
| 219 |
tests\unit\ip\tcp.exe \ |
| 220 |
tests\unit\ip\udp.exe \ |
| 221 |
tests\unit\ip\unicast.exe \ |
| 222 |
tests\unit\ip\v6_only.exe \ |
| 223 |
tests\unit\local\basic_endpoint.exe \ |
| 224 |
tests\unit\local\connect_pair.exe \ |
| 225 |
tests\unit\local\datagram_protocol.exe \ |
| 226 |
tests\unit\local\stream_protocol.exe \ |
| 227 |
tests\unit\is_read_buffered.exe \ |
| 228 |
tests\unit\is_write_buffered.exe \ |
| 229 |
tests\unit\packaged_task.exe \ |
| 230 |
tests\unit\placeholders.exe \ |
| 231 |
tests\unit\post.exe \ |
| 232 |
tests\unit\prepend.exe \ |
| 233 |
tests\unit\random_access_file.exe \ |
| 234 |
tests\unit\read.exe \ |
| 235 |
tests\unit\read_at.exe \ |
| 236 |
tests\unit\read_until.exe \ |
| 237 |
tests\unit\readable_pipe.exe \ |
| 238 |
tests\unit\recycling_allocator.exe \ |
| 239 |
tests\unit\redirect_error.exe \ |
| 240 |
tests\unit\registered_buffer.exe \ |
| 241 |
tests\unit\serial_port.exe \ |
| 242 |
tests\unit\serial_port_base.exe \ |
| 243 |
tests\unit\signal_set.exe \ |
| 244 |
tests\unit\signal_set_base.exe \ |
| 245 |
tests\unit\socket_base.exe \ |
| 246 |
tests\unit\static_thread_pool.exe \ |
| 247 |
tests\unit\steady_timer.exe \ |
| 248 |
tests\unit\strand.exe \ |
| 249 |
tests\unit\stream_file.exe \ |
| 250 |
tests\unit\streambuf.exe \ |
| 251 |
tests\unit\system_context.exe \ |
| 252 |
tests\unit\system_executor.exe \ |
| 253 |
tests\unit\system_timer.exe \ |
| 254 |
tests\unit\this_coro.exe \ |
| 255 |
tests\unit\thread.exe \ |
| 256 |
tests\unit\thread_pool.exe \ |
| 257 |
tests\unit\time_traits.exe \ |
| 258 |
tests\unit\ts\buffer.exe \ |
| 259 |
tests\unit\ts\executor.exe \ |
| 260 |
tests\unit\ts\internet.exe \ |
| 261 |
tests\unit\ts\io_context.exe \ |
| 262 |
tests\unit\ts\net.exe \ |
| 263 |
tests\unit\ts\netfwd.exe \ |
| 264 |
tests\unit\ts\socket.exe \ |
| 265 |
tests\unit\ts\timer.exe \ |
| 266 |
tests\unit\use_awaitable.exe \ |
| 267 |
tests\unit\use_future.exe \ |
| 268 |
tests\unit\uses_executor.exe \ |
| 269 |
tests\unit\wait_traits.exe \ |
| 270 |
tests\unit\windows\basic_object_handle.exe \ |
| 271 |
tests\unit\windows\basic_overlapped_handle.exe \ |
| 272 |
tests\unit\windows\basic_random_access_handle.exe \ |
| 273 |
tests\unit\windows\basic_stream_handle.exe \ |
| 274 |
tests\unit\windows\object_handle.exe \ |
| 275 |
tests\unit\windows\overlapped_handle.exe \ |
| 276 |
tests\unit\windows\overlapped_ptr.exe \ |
| 277 |
tests\unit\windows\random_access_handle.exe \ |
| 278 |
tests\unit\windows\stream_handle.exe \ |
| 279 |
tests\unit\writable_pipe.exe \ |
| 280 |
tests\unit\write.exe \ |
| 281 |
tests\unit\write_at.exe |
| 282 |
|
| 283 |
CPP11_EXAMPLE_EXES = \ |
| 284 |
examples\cpp11\allocation\server.exe \ |
| 285 |
examples\cpp11\buffers\reference_counted.exe \ |
| 286 |
examples\cpp11\chat\chat_client.exe \ |
| 287 |
examples\cpp11\chat\chat_server.exe \ |
| 288 |
examples\cpp11\echo\async_tcp_echo_server.exe \ |
| 289 |
examples\cpp11\echo\async_udp_echo_server.exe \ |
| 290 |
examples\cpp11\echo\blocking_tcp_echo_client.exe \ |
| 291 |
examples\cpp11\echo\blocking_tcp_echo_server.exe \ |
| 292 |
examples\cpp11\echo\blocking_udp_echo_client.exe \ |
| 293 |
examples\cpp11\echo\blocking_udp_echo_server.exe \ |
| 294 |
examples\cpp11\http\client\async_client.exe \ |
| 295 |
examples\cpp11\http\client\sync_client.exe \ |
| 296 |
examples\cpp11\http\server\http_server.exe \ |
| 297 |
examples\cpp11\http\server2\http_server.exe \ |
| 298 |
examples\cpp11\http\server3\http_server.exe \ |
| 299 |
examples\cpp11\http\server4\http_server.exe \ |
| 300 |
examples\cpp11\icmp\ping.exe \ |
| 301 |
examples\cpp11\invocation\prioritised_handlers.exe \ |
| 302 |
examples\cpp11\iostreams\daytime_client.exe \ |
| 303 |
examples\cpp11\iostreams\daytime_server.exe \ |
| 304 |
examples\cpp11\iostreams\http_client.exe \ |
| 305 |
examples\cpp11\multicast\receiver.exe \ |
| 306 |
examples\cpp11\multicast\sender.exe \ |
| 307 |
examples\cpp11\nonblocking\third_party_lib.exe \ |
| 308 |
examples\cpp11\porthopper\client.exe \ |
| 309 |
examples\cpp11\porthopper\server.exe \ |
| 310 |
examples\cpp11\services\daytime_client.exe \ |
| 311 |
examples\cpp11\socks4\sync_client.exe \ |
| 312 |
examples\cpp11\timeouts\async_tcp_client.exe \ |
| 313 |
examples\cpp11\timeouts\blocking_tcp_client.exe \ |
| 314 |
examples\cpp11\timeouts\blocking_token_tcp_client.exe \ |
| 315 |
examples\cpp11\timeouts\blocking_udp_client.exe \ |
| 316 |
examples\cpp11\timeouts\server.exe \ |
| 317 |
examples\cpp11\timers\time_t_timer.exe \ |
| 318 |
examples\cpp11\tutorial\timer1\timer.exe \ |
| 319 |
examples\cpp11\tutorial\timer2\timer.exe \ |
| 320 |
examples\cpp11\tutorial\timer3\timer.exe \ |
| 321 |
examples\cpp11\tutorial\timer4\timer.exe \ |
| 322 |
examples\cpp11\tutorial\timer5\timer.exe \ |
| 323 |
examples\cpp11\tutorial\daytime1\client.exe \ |
| 324 |
examples\cpp11\tutorial\daytime2\server.exe \ |
| 325 |
examples\cpp11\tutorial\daytime3\server.exe \ |
| 326 |
examples\cpp11\tutorial\daytime4\client.exe \ |
| 327 |
examples\cpp11\tutorial\daytime5\server.exe \ |
| 328 |
examples\cpp11\tutorial\daytime6\server.exe \ |
| 329 |
examples\cpp11\tutorial\daytime7\server.exe \ |
| 330 |
examples\cpp11\windows\transmit_file.exe |
| 331 |
|
| 332 |
SSL_UNIT_TEST_EXES = \ |
| 333 |
tests\unit\ssl\basic_context.exe \ |
| 334 |
tests\unit\ssl\context.exe \ |
| 335 |
tests\unit\ssl\context_base.exe \ |
| 336 |
tests\unit\ssl\context_service.exe \ |
| 337 |
tests\unit\ssl\stream.exe \ |
| 338 |
tests\unit\ssl\stream_base.exe \ |
| 339 |
tests\unit\ssl\stream_service.exe |
| 340 |
|
| 341 |
SSL_EXAMPLE_EXES = \ |
| 342 |
examples\cpp11\ssl\client.exe \ |
| 343 |
examples\cpp11\ssl\server.exe |
| 344 |
|
| 345 |
!ifdef SEPARATE_COMPILATION |
| 346 |
all: asio.lib |
| 347 |
asio.lib: asio.cpp |
| 348 |
cl -Fe$@ -Foasio.obj $(CXXFLAGS) $(DEFINES) -c asio.cpp |
| 349 |
lib -name:asio.lib asio.obj |
| 350 |
!endif |
| 351 |
|
| 352 |
!ifdef STANDALONE |
| 353 |
all: \ |
| 354 |
$(CPP11_EXAMPLE_EXES) \ |
| 355 |
$(UNIT_TEST_EXES) |
| 356 |
!else |
| 357 |
all: \ |
| 358 |
$(LATENCY_TEST_EXES) \ |
| 359 |
$(PERFORMANCE_TEST_EXES) \ |
| 360 |
$(CPP11_EXAMPLE_EXES) \ |
| 361 |
$(UNIT_TEST_EXES) |
| 362 |
!endif |
| 363 |
|
| 364 |
ssl: \ |
| 365 |
$(SSL_UNIT_TEST_EXES) \ |
| 366 |
$(SSL_EXAMPLE_EXES) |
| 367 |
|
| 368 |
check: $(UNIT_TEST_EXES) |
| 369 |
!@echo === Running $** === && $** && echo. |
| 370 |
|
| 371 |
{tests\latency}.cpp{tests\latency}.exe: |
| 372 |
cl -Fe$@ -Fo$(<:.cpp=.obj) $(CXXFLAGS) $(DEFINES) $< $(LIBS) -link -opt:ref |
| 373 |
|
| 374 |
{tests\performance}.cpp{tests\performance}.exe: |
| 375 |
cl -Fe$@ -Fo$(<:.cpp=.obj) $(CXXFLAGS) $(DEFINES) $< $(LIBS) -link -opt:ref |
| 376 |
|
| 377 |
tests\unit\unit_test.obj: tests\unit\unit_test.cpp |
| 378 |
cl -Fe$@ -Fotests\unit\unit_test.obj $(CXXFLAGS) $(DEFINES) -c tests\unit\unit_test.cpp |
| 379 |
|
| 380 |
{tests\unit}.cpp{tests\unit}.exe: |
| 381 |
cl -Fe$@ -Fo$(<:.cpp=.obj) $(CXXFLAGS) $(DEFINES) $< $(LIBS) -link -opt:ref |
| 382 |
|
| 383 |
{tests\unit\execution}.cpp{tests\unit\execution}.exe: |
| 384 |
cl -Fe$@ -Fo$(<:.cpp=.obj) $(CXXFLAGS) $(DEFINES) $< $(LIBS) -link -opt:ref |
| 385 |
|
| 386 |
{tests\unit\generic}.cpp{tests\unit\generic}.exe: |
| 387 |
cl -Fe$@ -Fo$(<:.cpp=.obj) $(CXXFLAGS) $(DEFINES) $< $(LIBS) -link -opt:ref |
| 388 |
|
| 389 |
{tests\unit\ip}.cpp{tests\unit\ip}.exe: |
| 390 |
cl -Fe$@ -Fo$(<:.cpp=.obj) $(CXXFLAGS) $(DEFINES) $< $(LIBS) -link -opt:ref |
| 391 |
|
| 392 |
{tests\unit\local}.cpp{tests\unit\local}.exe: |
| 393 |
cl -Fe$@ -Fo$(<:.cpp=.obj) $(CXXFLAGS) $(DEFINES) $< $(LIBS) -link -opt:ref |
| 394 |
|
| 395 |
{tests\unit\ssl}.cpp{tests\unit\ssl}.exe: |
| 396 |
cl -Fe$@ -Fo$(<:.cpp=.obj) $(CXXFLAGS) $(SSL_CXXFLAGS) $(DEFINES) $< $(SSL_LIBS) $(LIBS) -link -opt:ref |
| 397 |
|
| 398 |
{tests\unit\ts}.cpp{tests\unit\ts}.exe: |
| 399 |
cl -Fe$@ -Fo$(<:.cpp=.obj) $(CXXFLAGS) $(DEFINES) $< $(LIBS) -link -opt:ref |
| 400 |
|
| 401 |
{tests\unit\windows}.cpp{tests\unit\windows}.exe: |
| 402 |
cl -Fe$@ -Fo$(<:.cpp=.obj) $(CXXFLAGS) $(DEFINES) $< $(LIBS) -link -opt:ref |
| 403 |
|
| 404 |
{examples\cpp11\allocation}.cpp{examples\cpp11\allocation}.exe: |
| 405 |
cl -Fe$@ -Fo$(<:.cpp=.obj) $(CXXFLAGS) $(DEFINES) $< $(LIBS) -link -opt:ref |
| 406 |
|
| 407 |
{examples\cpp11\buffers}.cpp{examples\cpp11\buffers}.exe: |
| 408 |
cl -Fe$@ -Fo$(<:.cpp=.obj) $(CXXFLAGS) $(DEFINES) $< $(LIBS) -link -opt:ref |
| 409 |
|
| 410 |
{examples\cpp11\chat}.cpp{examples\cpp11\chat}.exe: |
| 411 |
cl -Fe$@ -Fo$(<:.cpp=.obj) $(CXXFLAGS) $(DEFINES) $< $(LIBS) -link -opt:ref |
| 412 |
|
| 413 |
{examples\cpp11\echo}.cpp{examples\cpp11\echo}.exe: |
| 414 |
cl -Fe$@ -Fo$(<:.cpp=.obj) $(CXXFLAGS) $(DEFINES) $< $(LIBS) -link -opt:ref |
| 415 |
|
| 416 |
{examples\cpp11\http\client}.cpp{examples\cpp11\http\client}.exe: |
| 417 |
cl -Fe$@ -Fo$(<:.cpp=.obj) $(CXXFLAGS) $(DEFINES) $< $(LIBS) -link -opt:ref |
| 418 |
|
| 419 |
{examples\cpp11\icmp}.cpp{examples\cpp11\icmp}.exe: |
| 420 |
cl -Fe$@ -Fo$(<:.cpp=.obj) $(CXXFLAGS) $(DEFINES) $< $(LIBS) -link -opt:ref |
| 421 |
|
| 422 |
{examples\cpp11\invocation}.cpp{examples\cpp11\invocation}.exe: |
| 423 |
cl -Fe$@ -Fo$(<:.cpp=.obj) $(CXXFLAGS) $(DEFINES) $< $(LIBS) -link -opt:ref |
| 424 |
|
| 425 |
{examples\cpp11\iostreams}.cpp{examples\cpp11\iostreams}.exe: |
| 426 |
cl -Fe$@ -Fo$(<:.cpp=.obj) $(CXXFLAGS) $(DEFINES) $< $(LIBS) -link -opt:ref |
| 427 |
|
| 428 |
{examples\cpp11\multicast}.cpp{examples\cpp11\multicast}.exe: |
| 429 |
cl -Fe$@ -Fo$(<:.cpp=.obj) $(CXXFLAGS) $(DEFINES) $< $(LIBS) -link -opt:ref |
| 430 |
|
| 431 |
{examples\cpp11\nonblocking}.cpp{examples\cpp11\nonblocking}.exe: |
| 432 |
cl -Fe$@ -Fo$(<:.cpp=.obj) $(CXXFLAGS) $(DEFINES) $< $(LIBS) -link -opt:ref |
| 433 |
|
| 434 |
{examples\cpp11\porthopper}.cpp{examples\cpp11\porthopper}.exe: |
| 435 |
cl -Fe$@ -Fo$(<:.cpp=.obj) $(CXXFLAGS) $(DEFINES) $< $(LIBS) -link -opt:ref |
| 436 |
|
| 437 |
{examples\cpp11\socks4}.cpp{examples\cpp11\socks4}.exe: |
| 438 |
cl -Fe$@ -Fo$(<:.cpp=.obj) $(CXXFLAGS) $(DEFINES) $< $(LIBS) -link -opt:ref |
| 439 |
|
| 440 |
{examples\cpp11\ssl}.cpp{examples\cpp11\ssl}.exe: |
| 441 |
cl -Fe$@ -Fo$(<:.cpp=.obj) $(CXXFLAGS) $(SSL_CXXFLAGS) $(DEFINES) $< $(SSL_LIBS) $(LIBS) -link -opt:ref |
| 442 |
|
| 443 |
{examples\cpp11\timeouts}.cpp{examples\cpp11\timeouts}.exe: |
| 444 |
cl -Fe$@ -Fo$(<:.cpp=.obj) $(CXXFLAGS) $(DEFINES) $< $(LIBS) -link -opt:ref |
| 445 |
|
| 446 |
{examples\cpp11\timers}.cpp{examples\cpp11\timers}.exe: |
| 447 |
cl -Fe$@ -Fo$(<:.cpp=.obj) $(CXXFLAGS) $(DEFINES) $< $(LIBS) -link -opt:ref |
| 448 |
|
| 449 |
{examples\cpp11\tutorial\timer1}.cpp{examples\cpp11\tutorial\timer1}.exe: |
| 450 |
cl -Fe$@ -Fo$(<:.cpp=.obj) $(CXXFLAGS) $(DEFINES) $< $(LIBS) -link -opt:ref |
| 451 |
|
| 452 |
{examples\cpp11\tutorial\timer2}.cpp{examples\cpp11\tutorial\timer2}.exe: |
| 453 |
cl -Fe$@ -Fo$(<:.cpp=.obj) $(CXXFLAGS) $(DEFINES) $< $(LIBS) -link -opt:ref |
| 454 |
|
| 455 |
{examples\cpp11\tutorial\timer3}.cpp{examples\cpp11\tutorial\timer3}.exe: |
| 456 |
cl -Fe$@ -Fo$(<:.cpp=.obj) $(CXXFLAGS) $(DEFINES) $< $(LIBS) -link -opt:ref |
| 457 |
|
| 458 |
{examples\cpp11\tutorial\timer4}.cpp{examples\cpp11\tutorial\timer4}.exe: |
| 459 |
cl -Fe$@ -Fo$(<:.cpp=.obj) $(CXXFLAGS) $(DEFINES) $< $(LIBS) -link -opt:ref |
| 460 |
|
| 461 |
{examples\cpp11\tutorial\timer5}.cpp{examples\cpp11\tutorial\timer5}.exe: |
| 462 |
cl -Fe$@ -Fo$(<:.cpp=.obj) $(CXXFLAGS) $(DEFINES) $< $(LIBS) -link -opt:ref |
| 463 |
|
| 464 |
{examples\cpp11\tutorial\daytime1}.cpp{examples\cpp11\tutorial\daytime1}.exe: |
| 465 |
cl -Fe$@ -Fo$(<:.cpp=.obj) $(CXXFLAGS) $(DEFINES) $< $(LIBS) -link -opt:ref |
| 466 |
|
| 467 |
{examples\cpp11\tutorial\daytime2}.cpp{examples\cpp11\tutorial\daytime2}.exe: |
| 468 |
cl -Fe$@ -Fo$(<:.cpp=.obj) $(CXXFLAGS) $(DEFINES) $< $(LIBS) -link -opt:ref |
| 469 |
|
| 470 |
{examples\cpp11\tutorial\daytime3}.cpp{examples\cpp11\tutorial\daytime3}.exe: |
| 471 |
cl -Fe$@ -Fo$(<:.cpp=.obj) $(CXXFLAGS) $(DEFINES) $< $(LIBS) -link -opt:ref |
| 472 |
|
| 473 |
{examples\cpp11\tutorial\daytime4}.cpp{examples\cpp11\tutorial\daytime4}.exe: |
| 474 |
cl -Fe$@ -Fo$(<:.cpp=.obj) $(CXXFLAGS) $(DEFINES) $< $(LIBS) -link -opt:ref |
| 475 |
|
| 476 |
{examples\cpp11\tutorial\daytime5}.cpp{examples\cpp11\tutorial\daytime5}.exe: |
| 477 |
cl -Fe$@ -Fo$(<:.cpp=.obj) $(CXXFLAGS) $(DEFINES) $< $(LIBS) -link -opt:ref |
| 478 |
|
| 479 |
{examples\cpp11\tutorial\daytime6}.cpp{examples\cpp11\tutorial\daytime6}.exe: |
| 480 |
cl -Fe$@ -Fo$(<:.cpp=.obj) $(CXXFLAGS) $(DEFINES) $< $(LIBS) -link -opt:ref |
| 481 |
|
| 482 |
{examples\cpp11\tutorial\daytime7}.cpp{examples\cpp11\tutorial\daytime7}.exe: |
| 483 |
cl -Fe$@ -Fo$(<:.cpp=.obj) $(CXXFLAGS) $(DEFINES) $< $(LIBS) -link -opt:ref |
| 484 |
|
| 485 |
{examples\cpp11\windows}.cpp{examples\cpp11\windows}.exe: |
| 486 |
cl -Fe$@ -Fo$(<:.cpp=.obj) $(CXXFLAGS) $(DEFINES) $< $(LIBS) -link -opt:ref |
| 487 |
|
| 488 |
{examples\cpp11\executors}.cpp{examples\cpp11\executors}.exe: |
| 489 |
cl -Fe$@ -Fo$(<:.cpp=.obj) $(CXXFLAGS) $(DEFINES) $< $(LIBS) -link -opt:ref |
| 490 |
|
| 491 |
{examples\cpp11\operations}.cpp{examples\cpp11\operations}.exe: |
| 492 |
cl -Fe$@ -Fo$(<:.cpp=.obj) $(CXXFLAGS) $(DEFINES) $< $(LIBS) -link -opt:ref |
| 493 |
|
| 494 |
{examples\cpp14\operations}.cpp{examples\cpp14\operations}.exe: |
| 495 |
cl -Fe$@ -Fo$(<:.cpp=.obj) $(CXXFLAGS) $(DEFINES) $< $(LIBS) -link -opt:ref |
| 496 |
|
| 497 |
examples\cpp11\http\server\http_server.exe: \ |
| 498 |
examples\cpp11\http\server\connection.cpp \ |
| 499 |
examples\cpp11\http\server\connection_manager.cpp \ |
| 500 |
examples\cpp11\http\server\main.cpp \ |
| 501 |
examples\cpp11\http\server\mime_types.cpp \ |
| 502 |
examples\cpp11\http\server\reply.cpp \ |
| 503 |
examples\cpp11\http\server\request_handler.cpp \ |
| 504 |
examples\cpp11\http\server\request_parser.cpp \ |
| 505 |
examples\cpp11\http\server\server.cpp |
| 506 |
cl -Fe$@ -Foexamples\cpp11\http\server\ $(CXXFLAGS) $(DEFINES) $** $(LIBS) -link -opt:ref |
| 507 |
|
| 508 |
examples\cpp11\http\server2\http_server.exe: \ |
| 509 |
examples\cpp11\http\server2\connection.cpp \ |
| 510 |
examples\cpp11\http\server2\io_context_pool.cpp \ |
| 511 |
examples\cpp11\http\server2\main.cpp \ |
| 512 |
examples\cpp11\http\server2\mime_types.cpp \ |
| 513 |
examples\cpp11\http\server2\reply.cpp \ |
| 514 |
examples\cpp11\http\server2\request_handler.cpp \ |
| 515 |
examples\cpp11\http\server2\request_parser.cpp \ |
| 516 |
examples\cpp11\http\server2\server.cpp |
| 517 |
cl -Fe$@ -Foexamples\cpp11\http\server2\ $(CXXFLAGS) $(DEFINES) $** $(LIBS) -link -opt:ref |
| 518 |
|
| 519 |
examples\cpp11\http\server3\http_server.exe: \ |
| 520 |
examples\cpp11\http\server3\connection.cpp \ |
| 521 |
examples\cpp11\http\server3\main.cpp \ |
| 522 |
examples\cpp11\http\server3\mime_types.cpp \ |
| 523 |
examples\cpp11\http\server3\reply.cpp \ |
| 524 |
examples\cpp11\http\server3\request_handler.cpp \ |
| 525 |
examples\cpp11\http\server3\request_parser.cpp \ |
| 526 |
examples\cpp11\http\server3\server.cpp |
| 527 |
cl -Fe$@ -Foexamples\cpp11\http\server3\ $(CXXFLAGS) $(DEFINES) $** $(LIBS) -link -opt:ref |
| 528 |
|
| 529 |
examples\cpp11\http\server4\http_server.exe: \ |
| 530 |
examples\cpp11\http\server4\file_handler.cpp \ |
| 531 |
examples\cpp11\http\server4\main.cpp \ |
| 532 |
examples\cpp11\http\server4\mime_types.cpp \ |
| 533 |
examples\cpp11\http\server4\reply.cpp \ |
| 534 |
examples\cpp11\http\server4\request_parser.cpp \ |
| 535 |
examples\cpp11\http\server4\server.cpp |
| 536 |
cl -Fe$@ -Foexamples\cpp11\http\server4\ $(CXXFLAGS) $(DEFINES) $** $(LIBS) -link -opt:ref |
| 537 |
|
| 538 |
examples\cpp11\services\daytime_client.exe: \ |
| 539 |
examples\cpp11\services\daytime_client.cpp \ |
| 540 |
examples\cpp11\services\logger_service.cpp |
| 541 |
cl -Fe$@ -Foexamples\cpp11\services\ $(CXXFLAGS) $(DEFINES) $** $(LIBS) -link -opt:ref |
| 542 |
|
| 543 |
clean: |
| 544 |
-del /q /s asio.lib |
| 545 |
-del /q /s asio.obj |
| 546 |
-del /q /s tests\*.exe |
| 547 |
-del /q /s tests\*.exe.manifest |
| 548 |
-del /q /s tests\*.exp |
| 549 |
-del /q /s tests\*.ilk |
| 550 |
-del /q /s tests\*.pdb |
| 551 |
-del /q /s tests\*.obj |
| 552 |
-del /q /s examples\*.exe |
| 553 |
-del /q /s examples\*.exe.manifest |
| 554 |
-del /q /s examples\*.exp |
| 555 |
-del /q /s examples\*.ilk |
| 556 |
-del /q /s examples\*.pdb |
| 557 |
-del /q /s examples\*.obj |
| 558 |
-del /q /s *.pdb |