2009-11-05 20:40:11 +00:00
|
|
|
# WATCH OUT! This makefile is a work in progress. It is probably missing
|
|
|
|
# tons of important things. DO NOT RELY ON IT TO BUILD A GOOD LIBEVENT.
|
|
|
|
|
|
|
|
# Needed for correctness
|
2011-05-25 19:54:44 -04:00
|
|
|
CFLAGS=/IWIN32-Code /Iinclude /Icompat /DHAVE_CONFIG_H /I.
|
2009-11-05 20:40:11 +00:00
|
|
|
|
|
|
|
# For optimization and warnings
|
|
|
|
CFLAGS=$(CFLAGS) /Ox /W3 /wd4996 /nologo
|
|
|
|
|
|
|
|
# XXXX have a debug mode
|
|
|
|
|
|
|
|
LIBFLAGS=/nologo
|
|
|
|
|
|
|
|
CORE_OBJS=event.obj buffer.obj bufferevent.obj bufferevent_sock.obj \
|
|
|
|
bufferevent_pair.obj listener.obj evmap.obj log.obj evutil.obj \
|
2010-01-23 20:07:05 -05:00
|
|
|
strlcpy.obj signal.obj bufferevent_filter.obj evthread.obj \
|
2010-02-25 17:14:41 -05:00
|
|
|
bufferevent_ratelim.obj evutil_rand.obj
|
2009-11-05 20:40:11 +00:00
|
|
|
WIN_OBJS=win32select.obj evthread_win32.obj buffer_iocp.obj \
|
|
|
|
event_iocp.obj bufferevent_async.obj
|
2009-11-16 22:25:46 +00:00
|
|
|
EXTRA_OBJS=event_tagging.obj http.obj evdns.obj evrpc.obj
|
2009-11-05 20:40:11 +00:00
|
|
|
|
|
|
|
ALL_OBJS=$(CORE_OBJS) $(WIN_OBJS) $(EXTRA_OBJS)
|
|
|
|
STATIC_LIBS=libevent_core.lib libevent_extras.lib libevent.lib
|
|
|
|
|
|
|
|
|
|
|
|
all: static_libs tests
|
|
|
|
|
|
|
|
static_libs: $(STATIC_LIBS)
|
|
|
|
|
|
|
|
libevent_core.lib: $(CORE_OBJS) $(WIN_OBJS)
|
|
|
|
lib $(LIBFLAGS) $(CORE_OBJS) $(WIN_OBJS) /out:libevent_core.lib
|
|
|
|
|
|
|
|
libevent_extras.lib: $(EXTRA_OBJS)
|
|
|
|
lib $(LIBFLAGS) $(EXTRA_OBJS) /out:libevent_extras.lib
|
|
|
|
|
|
|
|
libevent.lib: $(CORE_OBJS) $(WIN_OBJS) $(EXTRA_OBJS)
|
|
|
|
lib $(LIBFLAGS) $(CORE_OBJS) $(EXTRA_OBJS) $(WIN_OBJS) /out:libevent.lib
|
|
|
|
|
|
|
|
clean:
|
|
|
|
del $(ALL_OBJS)
|
|
|
|
del $(STATIC_LIBS)
|
|
|
|
cd test
|
|
|
|
$(MAKE) /F Makefile.nmake clean
|
|
|
|
|
|
|
|
tests:
|
|
|
|
cd test
|
|
|
|
$(MAKE) /F Makefile.nmake
|