aboutsummaryrefslogtreecommitdiff
path: root/src/test/Makefile.nmake
blob: 1b0660cb3b9497a85940c9e4ada775d85ad8d57d (plain)
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
all: test.exe test-child.exe bench.exe

CFLAGS = /I ..\win32 /I ..\..\..\build-alpha\include /I ..\common /I ..\or \
    /I ..\ext

LIBS = ..\..\..\build-alpha\lib\libevent.lib \
 ..\..\..\build-alpha\lib\libcrypto.lib \
 ..\..\..\build-alpha\lib\libssl.lib \
 ..\..\..\build-alpha\lib\libz.lib \
 ..\or\libtor.lib \
 ws2_32.lib advapi32.lib shell32.lib

TEST_OBJECTS = test.obj test_addr.obj test_containers.obj \
	test_crypto.obj test_data.obj test_dir.obj test_microdesc.obj \
	test_pt.obj test_util.obj test_config.obj tinytest.obj

test.exe: $(TEST_OBJECTS)
	$(CC) $(CFLAGS) $(LIBS) ..\common\*.lib $(TEST_OBJECTS)

bench.exe: bench.obj
	$(CC) $(CFLAGS) bench.obj $(LIBS) ..\common\*.lib

test-child.exe: test-child.obj
	$(CC) $(CFLAGS) test-child.obj

clean:
	del *.obj *.lib test.exe bench.exe test-child.exe