aboutsummaryrefslogtreecommitdiff
path: root/libevent-2.0.20-stable/Makefile.nmake
diff options
context:
space:
mode:
authorBjørn Mork <bjorn@mork.no>2015-05-15 10:22:43 +0200
committerBjørn Mork <bjorn@mork.no>2015-05-15 10:22:43 +0200
commit9b3dbb454e8f8a463d5fe4541ee2001585527bc6 (patch)
tree565eb0531cd8d3427f4e04445972ff340afb2a41 /libevent-2.0.20-stable/Makefile.nmake
parent73b16af8feec390afbabd9356d6e5e83c0390838 (diff)
libevent: imported from https://github.com/downloads/libevent/libevent/libevent-2.0.20-stable.tar.gzlibevent-2.0.20
Signed-off-by: Bjørn Mork <bjorn@mork.no>
Diffstat (limited to 'libevent-2.0.20-stable/Makefile.nmake')
-rw-r--r--libevent-2.0.20-stable/Makefile.nmake47
1 files changed, 47 insertions, 0 deletions
diff --git a/libevent-2.0.20-stable/Makefile.nmake b/libevent-2.0.20-stable/Makefile.nmake
new file mode 100644
index 0000000..4cd04c1
--- /dev/null
+++ b/libevent-2.0.20-stable/Makefile.nmake
@@ -0,0 +1,47 @@
+# 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
+CFLAGS=/IWIN32-Code /Iinclude /Icompat /DWIN32 /DHAVE_CONFIG_H /I.
+
+# 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 \
+ strlcpy.obj signal.obj bufferevent_filter.obj evthread.obj \
+ bufferevent_ratelim.obj evutil_rand.obj
+WIN_OBJS=win32select.obj evthread_win32.obj buffer_iocp.obj \
+ event_iocp.obj bufferevent_async.obj
+EXTRA_OBJS=event_tagging.obj http.obj evdns.obj evrpc.obj
+
+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