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