summaryrefslogtreecommitdiff
path: root/sysinfo/os/mingw.mk
diff options
context:
space:
mode:
Diffstat (limited to 'sysinfo/os/mingw.mk')
-rw-r--r--sysinfo/os/mingw.mk14
1 files changed, 14 insertions, 0 deletions
diff --git a/sysinfo/os/mingw.mk b/sysinfo/os/mingw.mk
new file mode 100644
index 0000000..9350254
--- /dev/null
+++ b/sysinfo/os/mingw.mk
@@ -0,0 +1,14 @@
+OS_APP_PREFIX ?=
+OS_APP_SUFFIX ?= .exe
+OS_LIB_PREFIX ?= lib
+OS_LIB_SUFFIX ?= .dll
+OS_IMPLIB_EXT ?= .dll.a
+OS_LIBDEF_EXT ?= .def
+OS_ARCHIVE_EXT ?= .a
+
+CFLAGS_PIC =
+LDFLAGS_CONFIG += -Wl,--mout-implib,$(SHARED_IMPLIB)
+
+install-implib: shared-implib
+ mkdir -p $(DESTDIR)/./$(PREFIX)/./$(LIB_DIR)
+ cp $(SHARED_IMPLIB) $(DESTDIR)/./$(PREFIX)/./$(LIB_DIR)