1*2b15cb3dSCy Schubert# WATCH OUT! This makefile is a work in progress. -*- makefile -*- 2*2b15cb3dSCy Schubert 3*2b15cb3dSCy Schubert!IFDEF OPENSSL_DIR 4*2b15cb3dSCy SchubertSSL_CFLAGS=/I$(OPENSSL_DIR)\include /DEVENT__HAVE_OPENSSL 5*2b15cb3dSCy SchubertSSL_OBJS=regress_ssl.obj 6*2b15cb3dSCy SchubertSSL_LIBS=..\libevent_openssl.lib $(OPENSSL_DIR)\lib\libeay32.lib $(OPENSSL_DIR)\lib\ssleay32.lib gdi32.lib User32.lib 7*2b15cb3dSCy Schubert!ELSE 8*2b15cb3dSCy SchubertSSL_CFLAGS= 9*2b15cb3dSCy SchubertSSL_OBJS= 10*2b15cb3dSCy SchubertSSL_LIBS= 11*2b15cb3dSCy Schubert!ENDIF 12*2b15cb3dSCy Schubert 13*2b15cb3dSCy SchubertCFLAGS=/I.. /I../WIN32-Code /I../WIN32-Code/nmake /I../include /I../compat /DHAVE_CONFIG_H /DTINYTEST_LOCAL $(SSL_CFLAGS) 14*2b15cb3dSCy Schubert 15*2b15cb3dSCy SchubertCFLAGS=$(CFLAGS) /Ox /W3 /wd4996 /nologo 16*2b15cb3dSCy Schubert 17*2b15cb3dSCy SchubertREGRESS_OBJS=regress.obj regress_buffer.obj regress_http.obj regress_dns.obj \ 18*2b15cb3dSCy Schubert regress_testutils.obj \ 19*2b15cb3dSCy Schubert regress_rpc.obj regress.gen.obj \ 20*2b15cb3dSCy Schubert regress_et.obj regress_bufferevent.obj \ 21*2b15cb3dSCy Schubert regress_listener.obj regress_util.obj tinytest.obj \ 22*2b15cb3dSCy Schubert regress_main.obj regress_minheap.obj regress_iocp.obj \ 23*2b15cb3dSCy Schubert regress_thread.obj regress_finalize.obj $(SSL_OBJS) 24*2b15cb3dSCy Schubert 25*2b15cb3dSCy SchubertOTHER_OBJS=test-init.obj test-eof.obj test-closed.obj test-weof.obj test-time.obj \ 26*2b15cb3dSCy Schubert bench.obj bench_cascade.obj bench_http.obj bench_httpclient.obj \ 27*2b15cb3dSCy Schubert test-changelist.obj \ 28*2b15cb3dSCy Schubert print-winsock-errors.obj 29*2b15cb3dSCy Schubert 30*2b15cb3dSCy SchubertPROGRAMS=regress.exe \ 31*2b15cb3dSCy Schubert test-init.exe test-eof.exe test-closed.exe test-weof.exe test-time.exe \ 32*2b15cb3dSCy Schubert test-changelist.exe \ 33*2b15cb3dSCy Schubert print-winsock-errors.exe 34*2b15cb3dSCy Schubert 35*2b15cb3dSCy Schubert# Disabled for now: 36*2b15cb3dSCy Schubert# bench.exe bench_cascade.exe bench_http.exe bench_httpclient.exe 37*2b15cb3dSCy Schubert 38*2b15cb3dSCy Schubert 39*2b15cb3dSCy SchubertLIBS=..\libevent.lib ws2_32.lib shell32.lib advapi32.lib 40*2b15cb3dSCy Schubert 41*2b15cb3dSCy Schubertall: $(PROGRAMS) 42*2b15cb3dSCy Schubert 43*2b15cb3dSCy Schubertregress.exe: $(REGRESS_OBJS) 44*2b15cb3dSCy Schubert $(CC) $(CFLAGS) $(LIBS) $(SSL_LIBS) $(REGRESS_OBJS) 45*2b15cb3dSCy Schubert 46*2b15cb3dSCy Schuberttest-init.exe: test-init.obj 47*2b15cb3dSCy Schubert $(CC) $(CFLAGS) $(LIBS) test-init.obj 48*2b15cb3dSCy Schuberttest-eof.exe: test-eof.obj 49*2b15cb3dSCy Schubert $(CC) $(CFLAGS) $(LIBS) test-eof.obj 50*2b15cb3dSCy Schuberttest-closed.exe: test-closed.obj 51*2b15cb3dSCy Schubert $(CC) $(CFLAGS) $(LIBS) test-closed.obj 52*2b15cb3dSCy Schuberttest-changelist.exe: test-changelist.obj 53*2b15cb3dSCy Schubert $(CC) $(CFLAGS) $(LIBS) test-changelist.obj 54*2b15cb3dSCy Schuberttest-weof.exe: test-weof.obj 55*2b15cb3dSCy Schubert $(CC) $(CFLAGS) $(LIBS) test-weof.obj 56*2b15cb3dSCy Schuberttest-time.exe: test-time.obj 57*2b15cb3dSCy Schubert $(CC) $(CFLAGS) $(LIBS) test-time.obj 58*2b15cb3dSCy Schubert 59*2b15cb3dSCy Schubertprint-winsock-errors.exe: print-winsock-errors.obj 60*2b15cb3dSCy Schubert $(CC) $(CFLAGS) $(LIBS) print-winsock-errors.obj 61*2b15cb3dSCy Schubert 62*2b15cb3dSCy Schubertbench.exe: bench.obj 63*2b15cb3dSCy Schubert $(CC) $(CFLAGS) $(LIBS) bench.obj 64*2b15cb3dSCy Schubertbench_cascade.exe: bench_cascade.obj 65*2b15cb3dSCy Schubert $(CC) $(CFLAGS) $(LIBS) bench_cascade.obj 66*2b15cb3dSCy Schubertbench_http.exe: bench_http.obj 67*2b15cb3dSCy Schubert $(CC) $(CFLAGS) $(LIBS) bench_http.obj 68*2b15cb3dSCy Schubertbench_httpclient.exe: bench_httpclient.obj 69*2b15cb3dSCy Schubert $(CC) $(CFLAGS) $(LIBS) bench_httpclient.obj 70*2b15cb3dSCy Schubert 71*2b15cb3dSCy Schubertregress.gen.c regress.gen.h: regress.rpc ../event_rpcgen.py 72*2b15cb3dSCy Schubert echo // > regress.gen.c 73*2b15cb3dSCy Schubert echo #define NO_PYTHON_EXISTS > regress.gen.h 74*2b15cb3dSCy Schubert -python ..\event_rpcgen.py regress.rpc 75*2b15cb3dSCy Schubert 76*2b15cb3dSCy Schubertclean: 77*2b15cb3dSCy Schubert -del $(REGRESS_OBJS) 78*2b15cb3dSCy Schubert -del $(OTHER_OBJS) 79*2b15cb3dSCy Schubert -del $(PROGRAMS) 80