fold in another changes item
[tor.git] / src / test / Makefile.nmake
blob562c8df8b5c753b5ebb0d145017fd664e5a97916
1 all: test.exe test-child.exe bench.exe
3 CFLAGS = /I ..\win32 /I ..\..\..\build-alpha\include /I ..\common /I ..\or \
4     /I ..\ext
6 LIBS = ..\..\..\build-alpha\lib\libevent.lib \
7  ..\..\..\build-alpha\lib\libcrypto.lib \
8  ..\..\..\build-alpha\lib\libssl.lib \
9  ..\..\..\build-alpha\lib\libz.lib \
10  ..\or\libtor.lib \
11  ws2_32.lib advapi32.lib shell32.lib \
12  crypt32.lib gdi32.lib user32.lib
14 TEST_OBJECTS = test.obj test_addr.obj test_containers.obj \
15         test_crypto.obj test_data.obj test_dir.obj test_microdesc.obj \
16         test_pt.obj test_util.obj test_config.obj test_cell_formats.obj \
17         test_replay.obj test_introduce.obj tinytest.obj
19 tinytest.obj: ..\ext\tinytest.c
20         $(CC) $(CFLAGS) /D snprintf=_snprintf /c ..\ext\tinytest.c
22 test.exe: $(TEST_OBJECTS)
23         $(CC) $(CFLAGS) $(LIBS) ..\common\*.lib $(TEST_OBJECTS) /Fe$@
25 bench.exe: bench.obj
26         $(CC) $(CFLAGS) bench.obj $(LIBS) ..\common\*.lib /Fe$@
28 test-child.exe: test-child.obj
29         $(CC) $(CFLAGS) test-child.obj /Fe$@
31 clean:
32         del *.obj *.lib test.exe bench.exe test-child.exe