summaryrefslogtreecommitdiffstats
path: root/src/gendef.mk
diff options
context:
space:
mode:
authorMark Brand <mabrand@mabrand.nl>2014-11-22 18:39:00 (GMT)
committerMark Brand <mabrand@mabrand.nl>2014-11-22 18:42:39 (GMT)
commitcac8ed106f33ea99417803a42366e4d46c37b580 (patch)
treedf1a9a9b34c0b175f2333e2a732bf5bf4423f47c /src/gendef.mk
parent579bddf71354f027f1d4a6fe6b3fd72945390718 (diff)
downloadmxe-cac8ed106f33ea99417803a42366e4d46c37b580.zip
mxe-cac8ed106f33ea99417803a42366e4d46c37b580.tar.gz
mxe-cac8ed106f33ea99417803a42366e4d46c37b580.tar.bz2
new package: gendef
Like widl, the code ships with mingw-w64. This tool is useful for generating .def files from dlls, especially x86_64 dlls.
Diffstat (limited to 'src/gendef.mk')
-rw-r--r--src/gendef.mk24
1 files changed, 24 insertions, 0 deletions
diff --git a/src/gendef.mk b/src/gendef.mk
new file mode 100644
index 0000000..de6f90e
--- /dev/null
+++ b/src/gendef.mk
@@ -0,0 +1,24 @@
+# This file is part of MXE.
+# See index.html for further information.
+
+PKG := gendef
+$(PKG)_IGNORE = $(mingw-w64_IGNORE)
+$(PKG)_VERSION = $(mingw-w64_VERSION)
+$(PKG)_CHECKSUM = $(mingw-w64_CHECKSUM)
+$(PKG)_SUBDIR = $(mingw-w64_SUBDIR)
+$(PKG)_FILE = $(mingw-w64_FILE)
+$(PKG)_URL = $(mingw-w64_URL)
+$(PKG)_DEPS :=
+
+define $(PKG)_UPDATE
+ echo $(mingw-w64_VERSION)
+endef
+
+define $(PKG)_BUILD
+ cd '$(1)/mingw-w64-tools/gendef' && ./configure \
+ --host='$(BUILD)' \
+ --build='$(BUILD)' \
+ --prefix='$(PREFIX)' \
+ --target='$(TARGET)'
+ $(MAKE) -C '$(1)/mingw-w64-tools/gendef' -j '$(JOBS)' install
+endef