Home | History | Annotate | Line # | Download | only in test
Makefile.nmake revision 1.1
      1 
      2 CFLAGS=/I.. /I../WIN32-Code /I../include /I../compat /DWIN32 /DHAVE_CONFIG_H /DTINYTEST_LOCAL
      3 
      4 CFLAGS=$(CFLAGS) /Ox /W3 /wd4996 /nologo
      5 
      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 \
     12 	regress_thread.obj
     13 
     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 \
     16 	test-changelist.obj
     17 
     18 PROGRAMS=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 
     26 LIBS=..\libevent.lib ws2_32.lib shell32.lib advapi32.lib
     27 
     28 all: $(PROGRAMS)
     29 
     30 regress.exe: $(REGRESS_OBJS)
     31 	$(CC) $(CFLAGS) $(LIBS) $(REGRESS_OBJS)
     32 
     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
     43 
     44 bench.exe: bench.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
     52 
     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
     57 
     58 clean:
     59 	-del $(REGRESS_OBJS)
     60 	-del $(OTHER_OBJS)
     61 	-del regress.exe
     62