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
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
43 $(MAKE) /F Makefile.nmake clean
47 $(MAKE) /F Makefile.nmake