summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Burnicki <martin.burnicki@meinberg.de>2024-01-03 11:37:06 +0100
committerMartin Burnicki <martin.burnicki@meinberg.de>2024-01-03 11:37:06 +0100
commitcd23e08526a240e81b8091c9faa69907b1ac45cd (patch)
tree72c6d8a7cfe6924abd1624edc48da1646730d32d
parent38cb02567e44cccdd0074bf17b9c07ece3ac8af5 (diff)
downloadmbgreadtimestring-cd23e08526a240e81b8091c9faa69907b1ac45cd.tar.gz
mbgreadtimestring-cd23e08526a240e81b8091c9faa69907b1ac45cd.zip
Add support for MinGW / Windows
-rw-r--r--mingw/Makefile17
1 files changed, 17 insertions, 0 deletions
diff --git a/mingw/Makefile b/mingw/Makefile
new file mode 100644
index 0000000..8398ddc
--- /dev/null
+++ b/mingw/Makefile
@@ -0,0 +1,17 @@
+
+#########################################################################
+#
+# Makefile for mbgreadtimestring for MinGW/Windows.
+#
+#########################################################################
+
+# Link MinGW statically so that MinGW does not need
+# to be installed on the target system.
+LDFLAGS += -static
+
+# Some mbglib functions require functions from ws2_32.dll,
+# so generally to link to this DLL, too.
+LDLIBS += -lws2_32
+
+# The remaining stuff is the same as for Unix/Linux.
+include ../unix/Makefile