1 2CFLAGS=/I.. /I../WIN32-Code /I../include /I../compat /DWIN32 /DHAVE_CONFIG_H /DTINYTEST_LOCAL 3 4CFLAGS=$(CFLAGS) /Ox /W3 /wd4996 /nologo 5 6REGRESS_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 \ 12 regress_thread.obj 13 14OTHER_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 \ 16 test-changelist.obj 17 18PROGRAMS=regress.exe \ 19 test-init.exe test-eof.exe test-weof.exe test-time.exe \ 20 test-changelist.exe 21 22# Disabled for now: 23# bench.exe bench_cascade.exe bench_http.exe bench_httpclient.exe 24 25 26LIBS=..\libevent.lib ws2_32.lib shell32.lib advapi32.lib 27 28all: $(PROGRAMS) 29 30regress.exe: $(REGRESS_OBJS) 31 $(CC) $(CFLAGS) $(LIBS) $(REGRESS_OBJS) 32 33test-init.exe: test-init.obj 34 $(CC) $(CFLAGS) $(LIBS) test-init.obj 35test-eof.exe: test-eof.obj 36 $(CC) $(CFLAGS) $(LIBS) test-eof.obj 37test-changelist.exe: test-changelist.obj 38 $(CC) $(CFLAGS) $(LIBS) test-changelist.obj 39test-weof.exe: test-weof.obj 40 $(CC) $(CFLAGS) $(LIBS) test-weof.obj 41test-time.exe: test-time.obj 42 $(CC) $(CFLAGS) $(LIBS) test-time.obj 43 44bench.exe: bench.obj 45 $(CC) $(CFLAGS) $(LIBS) bench.obj 46bench_cascade.exe: bench_cascade.obj 47 $(CC) $(CFLAGS) $(LIBS) bench_cascade.obj 48bench_http.exe: bench_http.obj 49 $(CC) $(CFLAGS) $(LIBS) bench_http.obj 50bench_httpclient.exe: bench_httpclient.obj 51 $(CC) $(CFLAGS) $(LIBS) bench_httpclient.obj 52 53regress.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 57 58clean: 59 -del $(REGRESS_OBJS) 60 -del $(OTHER_OBJS) 61 -del regress.exe 62