summaryrefslogtreecommitdiffstats
path: root/src/civetweb/resources/mingw.bat
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-07 18:45:59 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-07 18:45:59 +0000
commit19fcec84d8d7d21e796c7624e521b60d28ee21ed (patch)
tree42d26aa27d1e3f7c0b8bd3fd14e7d7082f5008dc /src/civetweb/resources/mingw.bat
parentInitial commit. (diff)
downloadceph-19fcec84d8d7d21e796c7624e521b60d28ee21ed.tar.xz
ceph-19fcec84d8d7d21e796c7624e521b60d28ee21ed.zip
Adding upstream version 16.2.11+ds.upstream/16.2.11+dsupstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-rw-r--r--src/civetweb/resources/mingw.bat15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/civetweb/resources/mingw.bat b/src/civetweb/resources/mingw.bat
new file mode 100644
index 000000000..87032662a
--- /dev/null
+++ b/src/civetweb/resources/mingw.bat
@@ -0,0 +1,15 @@
+@rem MinGW build test - used to test MinGW builds locally
+@rem Adapt path/versions before use
+
+@rem This batch file must be used from the repository root
+@if exist mingw.bat cd ..
+
+
+@set PATH=%ProgramFiles%\mingw-w64\i686-4.9.2-win32-dwarf-rt_v3-rev1\mingw32\bin;%PATH%
+@set PATH=%ProgramFiles%\GnuWin32\bin;%PATH%
+
+@rem Alternative ways to use mingw
+@rem make CC=gcc CFLAGS=-w CFLAGS+=-Iinclude/ CFLAGS+=-lws2_32 CFLAGS+=-liphlpapi
+@rem gcc src\civetweb.c src\main.c -Iinclude\ -lws2_32 -lpthread -lcomdlg32 -w
+
+make build CC=gcc WITH_LUA=1 WITH_WEBSOCKET=1