diff src/build-msvctools.mk @ 3061:f8299bb6c872

Initial support for native MSVC compilation. * add MSVC support files: compiler wrappers and support libraries * adapt libiconv to work with MSVC * adapt gettext to work with MSVC
author Michael Goffioul <michael.goffioul@gmail.com>
date Mon, 17 Jun 2013 22:43:11 -0400
parents
children 4f573c0f5955
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/src/build-msvctools.mk	Mon Jun 17 22:43:11 2013 -0400
@@ -0,0 +1,27 @@
+# This file is part of MXE.
+# See index.html for further information.
+
+PKG             := build-msvctools
+$(PKG)_IGNORE   :=
+$(PKG)_CHECKSUM := a464ba0f26eef24c29bcd1e7489421117fb9ee35
+$(PKG)_FILE     := gcc-$(build-gcc_VERSION).tar.bz2
+$(PKG)_URL      := ftp://ftp.gnu.org/pub/gnu/gcc/gcc-$(build-gcc_VERSION)/$($(PKG)_FILE)
+$(PKG)_SUBDIR   := build-msvctools
+$(PKG)_DEPS     :=
+
+define $(PKG)_UPDATE
+    echo 1
+endef
+
+define $(PKG)_BUILD
+    make -C '$(1)' -j '$(JOBS)' \
+	DESTDIR='$(HOST_PREFIX)' \
+	GCCVERSION='$(build-gcc_VERSION)' \
+	INSTALL='$(INSTALL)' \
+	LIBRARY_PREFIX='$(LIBRARY_PREFIX)' \
+	LIBRARY_SUFFIX='$(LIBRARY_SUFFIX)' \
+	PATCH='$(PATCH)' \
+	SED='$(SED)' \
+	WGET='$(WGET)' \
+	install
+endef