More MSVC makefile fixes.
This commit is contained in:
parent
6e800f2c82
commit
8e5eca93cf
@ -1,8 +1,11 @@
|
||||
!include Makefile.am
|
||||
|
||||
!ifndef BOOSTDIR
|
||||
BOOSTDIR = ../../boost_1_30_0
|
||||
!endif
|
||||
|
||||
CXXFLAGS = -nologo -O2 -GX -GR -Zi -w -MD -I. -I$(BOOSTDIR)
|
||||
LDFLAGS = -nologo -O2 -GX -GR -Zi -MD
|
||||
LIBS = $(BOOSTDIR)/libs/thread/build/bin-stage/boost_thread.lib ws2_32.lib
|
||||
|
||||
all: \
|
||||
@ -24,6 +27,49 @@ clean:
|
||||
-del /q /s ..\bin\*.exp
|
||||
-del /q /s tests\*.obj
|
||||
|
||||
{tests}.cpp.exe:
|
||||
..\bin\dispatcher_test.exe: tests\dispatcher_test.obj $(nobase_include_HEADERS)
|
||||
-md ..\bin
|
||||
cl -Fe$@ $(CXXFLAGS) $< $(LIBS)
|
||||
cl -Fe$@ $(LDFLAGS) tests\dispatcher_test.obj $(LIBS)
|
||||
|
||||
..\bin\dgram_echo_client_test.exe: tests\dgram_echo_client_test.obj $(nobase_include_HEADERS)
|
||||
-md ..\bin
|
||||
cl -Fe$@ $(LDFLAGS) tests\dgram_echo_client_test.obj $(LIBS)
|
||||
|
||||
..\bin\dgram_echo_server_test.exe: tests\dgram_echo_server_test.obj $(nobase_include_HEADERS)
|
||||
-md ..\bin
|
||||
cl -Fe$@ $(LDFLAGS) tests\dgram_echo_server_test.obj $(LIBS)
|
||||
|
||||
..\bin\echo_client_test.exe: tests\echo_client_test.obj $(nobase_include_HEADERS)
|
||||
-md ..\bin
|
||||
cl -Fe$@ $(LDFLAGS) tests\echo_client_test.obj $(LIBS)
|
||||
|
||||
..\bin\echo_server_test.exe: tests\echo_server_test.obj $(nobase_include_HEADERS)
|
||||
-md ..\bin
|
||||
cl -Fe$@ $(LDFLAGS) tests\echo_server_test.obj $(LIBS)
|
||||
|
||||
..\bin\socket_accept_test.exe: tests\socket_accept_test.obj $(nobase_include_HEADERS)
|
||||
-md ..\bin
|
||||
cl -Fe$@ $(LDFLAGS) tests\socket_accept_test.obj $(LIBS)
|
||||
|
||||
..\bin\timed_accept_test.exe: tests\timed_accept_test.obj $(nobase_include_HEADERS)
|
||||
-md ..\bin
|
||||
cl -Fe$@ $(LDFLAGS) tests\timed_accept_test.obj $(LIBS)
|
||||
|
||||
..\bin\timed_connect_test.exe: tests\timed_connect_test.obj $(nobase_include_HEADERS)
|
||||
-md ..\bin
|
||||
cl -Fe$@ $(LDFLAGS) tests\timed_connect_test.obj $(LIBS)
|
||||
|
||||
..\bin\timed_dgram_recv_test.exe: tests\timed_dgram_recv_test.obj $(nobase_include_HEADERS)
|
||||
-md ..\bin
|
||||
cl -Fe$@ $(LDFLAGS) tests\timed_dgram_recv_test.obj $(LIBS)
|
||||
|
||||
..\bin\timer_queue_test.exe: tests\timer_queue_test.obj $(nobase_include_HEADERS)
|
||||
-md ..\bin
|
||||
cl -Fe$@ $(LDFLAGS) tests\timer_queue_test.obj $(LIBS)
|
||||
|
||||
..\bin\tpc_echo_server_test.exe: tests\tpc_echo_server_test.obj $(nobase_include_HEADERS)
|
||||
-md ..\bin
|
||||
cl -Fe$@ $(LDFLAGS) tests\tpc_echo_server_test.obj $(LIBS)
|
||||
|
||||
.cpp.obj:
|
||||
cl -Fo$@ -c $(CXXFLAGS) $<
|
||||
|
Loading…
Reference in New Issue
Block a user