2 CFLAGS=/I.. /I../WIN32-Code /I../include /I../compat /DWIN32 /DHAVE_CONFIG_H /DTINYTEST_LOCAL
4 CFLAGS=$(CFLAGS) /Ox /W3 /wd4996 /nologo
6 REGRESS_OBJS=regress.obj regress_buffer.obj regress_http.obj regress_dns.obj \
7 regress_testutils.obj \
8 regress_rpc.obj regress.gen.obj \
9 regress_et.obj regress_bufferevent.obj \
10 regress_listener.obj regress_util.obj tinytest.obj \
11 regress_main.obj regress_minheap.obj regress_iocp.obj \
14 OTHER_OBJS=test-init.obj test-eof.obj test-weof.obj test-time.obj \
15 bench.obj bench_cascade.obj bench_http.obj bench_httpclient.obj \
18 PROGRAMS=regress.exe \
19 test-init.exe test-eof.exe test-weof.exe test-time.exe \
23 # bench.exe bench_cascade.exe bench_http.exe bench_httpclient.exe
26 LIBS=..\libevent.lib ws2_32.lib shell32.lib advapi32.lib
30 regress.exe: $(REGRESS_OBJS)
31 $(CC) $(CFLAGS) $(LIBS) $(REGRESS_OBJS)
33 test-init.exe: test-init.obj
34 $(CC) $(CFLAGS) $(LIBS) test-init.obj
35 test-eof.exe: test-eof.obj
36 $(CC) $(CFLAGS) $(LIBS) test-eof.obj
37 test-changelist.exe: test-changelist.obj
38 $(CC) $(CFLAGS) $(LIBS) test-changelist.obj
39 test-weof.exe: test-weof.obj
40 $(CC) $(CFLAGS) $(LIBS) test-weof.obj
41 test-time.exe: test-time.obj
42 $(CC) $(CFLAGS) $(LIBS) test-time.obj
45 $(CC) $(CFLAGS) $(LIBS) bench.obj
46 bench_cascade.exe: bench_cascade.obj
47 $(CC) $(CFLAGS) $(LIBS) bench_cascade.obj
48 bench_http.exe: bench_http.obj
49 $(CC) $(CFLAGS) $(LIBS) bench_http.obj
50 bench_httpclient.exe: bench_httpclient.obj
51 $(CC) $(CFLAGS) $(LIBS) bench_httpclient.obj
53 regress.gen.c regress.gen.h: regress.rpc ../event_rpcgen.py
54 echo // > regress.gen.c
55 echo #define NO_PYTHON_EXISTS > regress.gen.h
56 -python ..\event_rpcgen.py regress.rpc