Changes to update Tomato RAF.
[tomato.git] / release / src / router / dnscrypt / src / libevent / Makefile.nmake
blob4cd04c13c9cb97778d0fe2ef5c8384e8980c2969
1 # WATCH OUT!  This makefile is a work in progress.  It is probably missing
2 # tons of important things.  DO NOT RELY ON IT TO BUILD A GOOD LIBEVENT.
4 # Needed for correctness
5 CFLAGS=/IWIN32-Code /Iinclude /Icompat /DWIN32 /DHAVE_CONFIG_H /I.
7 # For optimization and warnings
8 CFLAGS=$(CFLAGS) /Ox /W3 /wd4996 /nologo
10 # XXXX have a debug mode
12 LIBFLAGS=/nologo
14 CORE_OBJS=event.obj buffer.obj bufferevent.obj bufferevent_sock.obj \
15         bufferevent_pair.obj listener.obj evmap.obj log.obj evutil.obj \
16         strlcpy.obj signal.obj bufferevent_filter.obj evthread.obj \
17         bufferevent_ratelim.obj evutil_rand.obj
18 WIN_OBJS=win32select.obj evthread_win32.obj buffer_iocp.obj \
19         event_iocp.obj bufferevent_async.obj
20 EXTRA_OBJS=event_tagging.obj http.obj evdns.obj evrpc.obj
22 ALL_OBJS=$(CORE_OBJS) $(WIN_OBJS) $(EXTRA_OBJS)
23 STATIC_LIBS=libevent_core.lib libevent_extras.lib libevent.lib
26 all: static_libs tests
28 static_libs: $(STATIC_LIBS)
30 libevent_core.lib: $(CORE_OBJS) $(WIN_OBJS)
31         lib $(LIBFLAGS) $(CORE_OBJS) $(WIN_OBJS) /out:libevent_core.lib 
33 libevent_extras.lib: $(EXTRA_OBJS)
34         lib $(LIBFLAGS) $(EXTRA_OBJS) /out:libevent_extras.lib
36 libevent.lib: $(CORE_OBJS) $(WIN_OBJS) $(EXTRA_OBJS)
37         lib $(LIBFLAGS) $(CORE_OBJS) $(EXTRA_OBJS) $(WIN_OBJS) /out:libevent.lib
39 clean:
40         del $(ALL_OBJS)
41         del $(STATIC_LIBS)
42         cd test
43         $(MAKE) /F Makefile.nmake clean
45 tests:
46         cd test
47         $(MAKE) /F Makefile.nmake