# For optimization and warnings
CFLAGS=$(CFLAGS) /Ox /W3 /wd4996 /nologo
+# Add BUILD_CFLAGS from the environment
+CFLAGS=$(CFLAGS) $(BUILD_CFLAGS)
+
# XXXX have a debug mode
LIBFLAGS=/nologo
ALL_OBJS=$(CORE_OBJS) $(WIN_OBJS) $(EXTRA_OBJS) $(SSL_OBJS)
STATIC_LIBS=libevent_core.lib libevent_extras.lib libevent.lib $(SSL_LIBS)
-
all: static_libs tests
static_libs: $(STATIC_LIBS)
--- /dev/null
+nmake -f Makefile.nmake clean
+
+set BUILD_CFLAGS=/MT
+nmake -f Makefile.nmake
+mkdir lib\MT\Release
+move libev*.lib lib\MT\Release
+nmake -f Makefile.nmake clean
+
+set BUILD_CFLAGS=/MTd
+nmake -f Makefile.nmake
+mkdir lib\MT\Debug
+move libev*.lib lib\MT\Debug
+nmake -f Makefile.nmake clean
+
+set BUILD_CFLAGS=/MD
+nmake -f Makefile.nmake
+mkdir lib\MD\Release
+move libev*.lib lib\MD\Release
+nmake -f Makefile.nmake clean
+
+set BUILD_CFLAGS=/MDd
+nmake -f Makefile.nmake
+mkdir lib\MD\Debug
+move libev*.lib lib\MD\Debug
+nmake -f Makefile.nmake clean
+
CFLAGS=$(CFLAGS) /Ox /W3 /wd4996 /nologo
+# Add BUILD_CFLAGS from the environment
+CFLAGS=$(CFLAGS) $(BUILD_CFLAGS)
+
REGRESS_OBJS=regress.obj regress_buffer.obj regress_http.obj regress_dns.obj \
regress_testutils.obj \
regress_rpc.obj regress.gen.obj \