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