2012-12-18 19:38:01 +01:00
|
|
|
all: test.exe test-child.exe bench.exe
|
2012-05-16 16:08:24 +02:00
|
|
|
|
2012-12-18 19:16:48 +01:00
|
|
|
CFLAGS = /I ..\win32 /I ..\..\..\build-alpha\include /I ..\common /I ..\or \
|
|
|
|
/I ..\ext
|
2012-05-16 16:08:24 +02:00
|
|
|
|
|
|
|
LIBS = ..\..\..\build-alpha\lib\libevent.lib \
|
|
|
|
..\..\..\build-alpha\lib\libcrypto.lib \
|
|
|
|
..\..\..\build-alpha\lib\libssl.lib \
|
|
|
|
..\..\..\build-alpha\lib\libz.lib \
|
|
|
|
..\or\libtor.lib \
|
2013-01-17 16:01:22 +01:00
|
|
|
ws2_32.lib advapi32.lib shell32.lib \
|
|
|
|
crypt32.lib gdi32.lib user32.lib
|
2012-05-16 16:08:24 +02:00
|
|
|
|
2014-01-23 01:51:44 +01:00
|
|
|
TEST_OBJECTS = test.obj test_addr.obj test_channel.obj test_channeltls.obj \
|
2017-03-07 15:58:30 +01:00
|
|
|
test_consdiff.obj test_containers.obj \
|
2014-08-28 20:10:21 +02:00
|
|
|
test_controller_events.obj test_crypto.obj test_data.obj test_dir.obj \
|
2015-12-07 07:40:56 +01:00
|
|
|
test_checkdir.obj test_microdesc.obj test_pt.obj test_util.obj \
|
|
|
|
test_config.obj test_connection.obj \
|
2014-11-28 04:39:46 +01:00
|
|
|
test_cell_formats.obj test_relay.obj test_replay.obj \
|
2016-09-06 20:35:53 +02:00
|
|
|
test_channelpadding.obj \
|
2017-09-20 22:24:59 +02:00
|
|
|
test_circuitstats.obj \
|
2014-01-24 05:55:34 +01:00
|
|
|
test_scheduler.obj test_introduce.obj test_hs.obj tinytest.obj
|
2012-12-18 19:41:11 +01:00
|
|
|
|
|
|
|
tinytest.obj: ..\ext\tinytest.c
|
|
|
|
$(CC) $(CFLAGS) /D snprintf=_snprintf /c ..\ext\tinytest.c
|
2012-05-16 16:08:24 +02:00
|
|
|
|
|
|
|
test.exe: $(TEST_OBJECTS)
|
2012-12-18 19:41:11 +01:00
|
|
|
$(CC) $(CFLAGS) $(LIBS) ..\common\*.lib $(TEST_OBJECTS) /Fe$@
|
2012-05-16 16:08:24 +02:00
|
|
|
|
2012-12-18 19:38:01 +01:00
|
|
|
bench.exe: bench.obj
|
2012-12-18 19:41:11 +01:00
|
|
|
$(CC) $(CFLAGS) bench.obj $(LIBS) ..\common\*.lib /Fe$@
|
2012-12-18 19:38:01 +01:00
|
|
|
|
|
|
|
test-child.exe: test-child.obj
|
2012-12-18 19:41:11 +01:00
|
|
|
$(CC) $(CFLAGS) test-child.obj /Fe$@
|
2012-12-18 19:38:01 +01:00
|
|
|
|
2012-05-16 16:08:24 +02:00
|
|
|
clean:
|
2012-12-18 19:38:01 +01:00
|
|
|
del *.obj *.lib test.exe bench.exe test-child.exe
|