summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Kconfig9
-rw-r--r--rules/cross-gcc-first.make5
-rw-r--r--rules/cross-gcc.in13
-rw-r--r--rules/glibc.in1
-rw-r--r--rules/libc.in8
-rw-r--r--rules/mingw-runtime-headers.in6
-rw-r--r--rules/mingw-runtime-headers.make92
-rw-r--r--rules/mingw-runtime.in26
-rw-r--r--rules/mingw-runtime.make121
-rw-r--r--rules/newlib.in1
-rw-r--r--rules/uclibc.in1
-rw-r--r--rules/w32api-headers.in7
-rw-r--r--rules/w32api-headers.make91
-rw-r--r--rules/w32api.in14
-rw-r--r--rules/w32api.make122
15 files changed, 508 insertions, 9 deletions
diff --git a/Kconfig b/Kconfig
index bae8ddd..a14ccaa 100644
--- a/Kconfig
+++ b/Kconfig
@@ -34,6 +34,13 @@ if LIBC_NEWLIB
source "workspace/rules/newlib.in"
endif
+if LIBC_MINGW
+source "workspace/rules/mingw-runtime.in"
+source "workspace/rules/mingw-runtime-headers.in"
+source "workspace/rules/w32api.in"
+source "workspace/rules/w32api-headers.in"
+endif
+
source "workspace/rules/cross-binutils.in"
source "workspace/rules/kernel-headers.in"
source "workspace/rules/cross-gcc.in"
@@ -123,11 +130,11 @@ config PREFIX_TCID
default "gcc-${PTXCONF_CROSS_GCC_VERSION}-glibc-${PTXCONF_GLIBC_VERSION}-kernel-${PTXCONF_KERNEL_HEADERS_VERSION}${PTXCONF_PREFIX_KERNEL}" if LIBC_GLIBC
default "gcc-${PTXCONF_CROSS_GCC_VERSION}-uclibc-${PTXCONF_UCLIBC_VERSION}-kernel-${PTXCONF_KERNEL_HEADERS_VERSION}${PTXCONF_PREFIX_KERNEL}" if LIBC_GLIBC
default "gcc-${PTXCONF_CROSS_GCC_VERSION}-newlib-${PTXCONF_NEWLIB_VERSION}" if LIBC_NEWLIB
+ default "gcc-${PTXCONF_CROSS_GCC_VERSION}-mingw-${PTXCONF_MINGW_RUNTIME_VERSION}-w32api-${PTXCONF_W32API_VERSION}" if LIBC_MINGW
config PREFIX_SECOND
string
-# prompt "second prefix"
default "${PTXCONF_GNU_TARGET}/${PTXCONF_PREFIX_TCID}"
help
Your toolchain will be installed under PREFIX_FIRST/PREFIX_SECOND
diff --git a/rules/cross-gcc-first.make b/rules/cross-gcc-first.make
index 16d3d24..5716046 100644
--- a/rules/cross-gcc-first.make
+++ b/rules/cross-gcc-first.make
@@ -71,6 +71,7 @@ CROSS_GCC_AUTOCONF_COMMON := \
--with-mpfr=$(PTX_PREFIX_HOST) \
$(PTXCONF_CROSS_GCC_EXTRA_CONFIG) \
$(PTXCONF_CROSS_GCC_EXTRA_CONFIG_LIBC) \
+ $(PTXCONF_CROSS_GCC_HEADERS) \
\
--disable-nls \
--disable-multilib \
@@ -83,10 +84,6 @@ CROSS_GCC_AUTOCONF_COMMON := \
#
# --host=$(GNU_HOST)
-ifndef CROSS_GCC_HEADERS
-CROSS_GCC_AUTOCONF_COMMON += --without-headers
-endif
-
CROSS_GCC_FIRST_AUTOCONF := \
$(CROSS_GCC_AUTOCONF_COMMON) \
--prefix=$(CROSS_GCC_FIRST_PREFIX) \
diff --git a/rules/cross-gcc.in b/rules/cross-gcc.in
index cc27abc..50b568d 100644
--- a/rules/cross-gcc.in
+++ b/rules/cross-gcc.in
@@ -19,7 +19,7 @@ config CROSS_GCC_VERSION
config CROSS_GCC_43
depends on CROSS_GCC_FIRST
bool
- prompt "additional packages for gcc-4.3"
+ prompt "additional deps for gcc-4.3"
help
Add new dependencies for gcc-4.3+: "GMP" and "MPFR"
@@ -58,9 +58,14 @@ config CROSS_GCC_SECOND
prompt "gcc (second)"
-config CROSS_GCC_HEADERS
+config CROSS_GCC_WITHOUT_HEADERS
bool
+config CROSS_GCC_HEADERS
+ string
+ default "--without-headers" if CROSS_GCC_WITHOUT_HEADERS
+
+
config CROSS_GCC_SHARED
bool
@@ -70,7 +75,11 @@ config CROSS_GCC_THREADS_SINGLE
config CROSS_GCC_THREADS_POSIX
bool
+config CROSS_GCC_THREADS_WIN32
+ bool
+
config CROSS_GCC_THREADS
string
default "posix" if CROSS_GCC_THREADS_POSIX
default "single" if CROSS_GCC_THREADS_SINGLE
+ default "win32" if CROSS_GCC_THREADS_WIN32
diff --git a/rules/glibc.in b/rules/glibc.in
index badd2c1..c729204 100644
--- a/rules/glibc.in
+++ b/rules/glibc.in
@@ -7,7 +7,6 @@ menuconfig GLIBC_FIRST
select GLIBC_PORTS if GLIBC_ADDON_NPTL && ( ARCH_ARM || ARCH_MIPS )
select GLIBC_LINUXTHREADS if GLIBC_ADDON_LINUXTHREADS
- select CROSS_GCC_HEADERS
select CROSS_GCC_SHARED
select CROSS_GCC_THREADS_POSIX
prompt "glibc "
diff --git a/rules/libc.in b/rules/libc.in
index 20ad387..3593bea 100644
--- a/rules/libc.in
+++ b/rules/libc.in
@@ -2,12 +2,16 @@ config LIBC_HEADERS
bool
select GLIBC_HEADERS if LIBC_GLIBC
select UCLIBC_HEADERS if LIBC_UCLIBC
+ select W32API_HEADERS if LIBC_MINGW
+ select MINGW_RUNTIME_HEADERS if LIBC_MINGW
config LIBC_FIRST
bool
select GLIBC_FIRST if LIBC_GLIBC
select UCLIBC if LIBC_UCLIBC
select NEWLIB if LIBC_NEWLIB
+ select W32API if LIBC_MINGW
+ select MINGW_RUNTIME if LIBC_MINGW
config LIBC_SECOND
bool
@@ -30,4 +34,8 @@ choice
bool
prompt "newlib"
+ config LIBC_MINGW
+ bool
+ prompt "mingw"
+
endchoice
diff --git a/rules/mingw-runtime-headers.in b/rules/mingw-runtime-headers.in
new file mode 100644
index 0000000..03d0507
--- /dev/null
+++ b/rules/mingw-runtime-headers.in
@@ -0,0 +1,6 @@
+# config for mingw-runtime-headers
+
+config MINGW_RUNTIME_HEADERS
+ bool
+ select W32API_HEADERS
+ # no prompt
diff --git a/rules/mingw-runtime-headers.make b/rules/mingw-runtime-headers.make
new file mode 100644
index 0000000..d60d1b5
--- /dev/null
+++ b/rules/mingw-runtime-headers.make
@@ -0,0 +1,92 @@
+# -*-makefile-*-
+# $Id$
+#
+# Copyright (C) 2006 by Robert Schwebel
+#
+# See CREDITS for details about who has contributed to this project.
+#
+# For further information about the PTXdist project and license conditions
+# see the README file.
+#
+
+#
+# We provide this package
+#
+PACKAGES-$(PTXCONF_MINGW_RUNTIME_HEADERS) += mingw-runtime-headers
+
+#
+# Paths and names
+#
+MINGW_RUNTIME_HEADERS_DIR = $(BUILDDIR)/$(MINGW_RUNTIME)-headers
+
+# ----------------------------------------------------------------------------
+# Get
+# ----------------------------------------------------------------------------
+
+mingw-runtime-headers_get: $(STATEDIR)/mingw-runtime-headers.get
+
+$(STATEDIR)/mingw-runtime-headers.get: $(STATEDIR)/mingw-runtime.get
+ @$(call targetinfo, $@)
+ @$(call touch, $@)
+
+# ----------------------------------------------------------------------------
+# Extract
+# ----------------------------------------------------------------------------
+
+mingw-runtime-headers_extract: $(STATEDIR)/mingw-runtime-headers.extract
+
+$(STATEDIR)/mingw-runtime-headers.extract: $(STATEDIR)/mingw-runtime.extract
+ @$(call targetinfo, $@)
+ @$(call touch, $@)
+
+# ----------------------------------------------------------------------------
+# Prepare
+# ----------------------------------------------------------------------------
+
+mingw-runtime-headers_prepare: $(STATEDIR)/mingw-runtime-headers.prepare
+
+$(STATEDIR)/mingw-runtime-headers.prepare:
+ @$(call targetinfo, $@)
+ @$(call touch, $@)
+
+# ----------------------------------------------------------------------------
+# Compile
+# ----------------------------------------------------------------------------
+
+mingw-runtime-headers_compile: $(STATEDIR)/mingw-runtime-headers.compile
+
+$(STATEDIR)/mingw-runtime-headers.compile:
+ @$(call targetinfo, $@)
+ @$(call touch, $@)
+
+# ----------------------------------------------------------------------------
+# Install
+# ----------------------------------------------------------------------------
+
+mingw-runtime-headers_install: $(STATEDIR)/mingw-runtime-headers.install
+
+$(STATEDIR)/mingw-runtime-headers.install:
+ @$(call targetinfo, $@)
+ mkdir -p $(SYSROOT)/mingw/include
+ cp -r $(MINGW_RUNTIME_BUILDDIR)/include/* $(SYSROOT)/mingw/include/
+ @$(call touch, $@)
+
+# ----------------------------------------------------------------------------
+# Target-Install
+# ----------------------------------------------------------------------------
+
+mingw-runtime-headers_targetinstall: $(STATEDIR)/mingw-runtime-headers.targetinstall
+
+$(STATEDIR)/mingw-runtime-headers.targetinstall:
+ @$(call targetinfo, $@)
+ @$(call touch, $@)
+
+# ----------------------------------------------------------------------------
+# Clean
+# ----------------------------------------------------------------------------
+
+mingw-runtime-headers_clean:
+ rm -rf $(STATEDIR)/mingw-runtime-headers.*
+ rm -rf $(MINGW_RUNTIME_HEADERS_DIR)
+
+# vim: syntax=make
diff --git a/rules/mingw-runtime.in b/rules/mingw-runtime.in
new file mode 100644
index 0000000..0f886b5
--- /dev/null
+++ b/rules/mingw-runtime.in
@@ -0,0 +1,26 @@
+# config for mingw-runtime
+
+menuconfig MINGW_RUNTIME
+ bool
+ select CROSS_GCC_FIRST
+ select W32API
+
+ select CROSS_GCC_SHARED
+ select CROSS_GCC_THREADS_WIN32
+ prompt "mingw-runtime "
+
+config MINGW_RUNTIME_VERSION
+ depends on MINGW_RUNTIME
+ string
+ prompt "mingw-runtime version"
+ default "3.11"
+ help
+ Specify the mingw-runtime version here.
+
+config MINGW_RUNTIME_RELEASE
+ depends on MINGW_RUNTIME
+ string
+ prompt "mingw-runtime release"
+ default "20061202-1"
+ help
+ Specify the mingw-runtime version here.
diff --git a/rules/mingw-runtime.make b/rules/mingw-runtime.make
new file mode 100644
index 0000000..439b1c5
--- /dev/null
+++ b/rules/mingw-runtime.make
@@ -0,0 +1,121 @@
+# -*-makefile-*-
+# $Id$
+#
+# Copyright (C) 2006 by Robert Schwebel
+#
+# See CREDITS for details about who has contributed to this project.
+#
+# For further information about the PTXdist project and license conditions
+# see the README file.
+#
+
+#
+# We provide this package
+#
+PACKAGES-$(PTXCONF_MINGW_RUNTIME) += mingw-runtime
+
+#
+# Paths and names
+#
+MINGW_RUNTIME_VERSION := $(call remove_quotes,$(PTXCONF_MINGW_RUNTIME_VERSION))
+MINGW_RUNTIME := $(call remove_quotes,mingw-runtime-$(MINGW_RUNTIME_VERSION)-$(PTXCONF_MINGW_RUNTIME_RELEASE)-src)
+MINGW_RUNTIME_SUFFIX := tar.gz
+MINGW_RUNTIME_URL := $(PTXCONF_SETUP_SFMIRROR)/mingw/$(MINGW_RUNTIME).$(MINGW_RUNTIME_SUFFIX)
+MINGW_RUNTIME_SOURCE := $(SRCDIR)/$(MINGW_RUNTIME).$(MINGW_RUNTIME_SUFFIX)
+MINGW_RUNTIME_DIR := $(BUILDDIR)/$(MINGW_RUNTIME)
+MINGW_RUNTIME_BUILDDIR := $(BUILDDIR)/mingw-runtime-$(MINGW_RUNTIME_VERSION)
+
+# ----------------------------------------------------------------------------
+# Get
+# ----------------------------------------------------------------------------
+
+mingw-runtime_get: $(STATEDIR)/mingw-runtime.get
+
+$(STATEDIR)/mingw-runtime.get: $(mingw-runtime_get_deps_default)
+ @$(call targetinfo, $@)
+ @$(call touch, $@)
+
+$(MINGW_RUNTIME_SOURCE):
+ @$(call targetinfo, $@)
+ @$(call get, MINGW_RUNTIME)
+
+# ----------------------------------------------------------------------------
+# Extract
+# ----------------------------------------------------------------------------
+
+mingw-runtime_extract: $(STATEDIR)/mingw-runtime.extract
+
+$(STATEDIR)/mingw-runtime.extract: $(mingw-runtime_extract_deps_default)
+ @$(call targetinfo, $@)
+ @$(call clean, $(MINGW_RUNTIME_DIR))
+ @$(call clean, $(MINGW_RUNTIME_BUILDDIR))
+ @$(call extract, MINGW_RUNTIME)
+ @$(call patchin, MINGW_RUNTIME, $(MINGW_RUNTIME_DIR))
+ @$(call touch, $@)
+
+# ----------------------------------------------------------------------------
+# Prepare
+# ----------------------------------------------------------------------------
+
+mingw-runtime_prepare: $(STATEDIR)/mingw-runtime.prepare
+
+MINGW_RUNTIME_PATH := PATH=$(CROSS_PATH)
+MINGW_RUNTIME_ENV := $(CROSS_ENV)
+
+MINGW_RUNTIME_AUTOCONF := \
+ --prefix=$(SYSROOT)/mingw \
+ --build=$(GNU_BUILD) \
+ --host=$(PTXCONF_GNU_TARGET) \
+ --target=$(PTXCONF_GNU_TARGET) \
+
+
+$(STATEDIR)/mingw-runtime.prepare: $(mingw-runtime_prepare_deps_default)
+ @$(call targetinfo, $@)
+ cd $(MINGW_RUNTIME_BUILDDIR) && $(MINGW_RUNTIME_ENV) $(MINGW_RUNTIME_PATH) \
+ ./configure $(MINGW_RUNTIME_AUTOCONF)
+ @$(call touch, $@)
+
+# ----------------------------------------------------------------------------
+# Compile
+# ----------------------------------------------------------------------------
+
+mingw-runtime_compile: $(STATEDIR)/mingw-runtime.compile
+
+$(STATEDIR)/mingw-runtime.compile: $(mingw-runtime_compile_deps_default)
+ @$(call targetinfo, $@)
+ cd $(MINGW_RUNTIME_BUILDDIR) && $(MINGW_RUNTIME_PATH) \
+ $(MAKE) W32API_INCLUDE=-I$(SYSROOT)/mingw/include/ $(PARALLELMFLAGS)
+ @$(call touch, $@)
+
+# ----------------------------------------------------------------------------
+# Install
+# ----------------------------------------------------------------------------
+
+mingw-runtime_install: $(STATEDIR)/mingw-runtime.install
+
+$(STATEDIR)/mingw-runtime.install: $(mingw-runtime_install_deps_default)
+ @$(call targetinfo, $@)
+ cd $(MINGW_RUNTIME_BUILDDIR) && \
+ $(MINGW_RUNTIME_PATH) $(MAKE) \
+ install_root=$(SYSROOT) install
+ @$(call touch, $@)
+
+# ----------------------------------------------------------------------------
+# Target-Install
+# ----------------------------------------------------------------------------
+
+mingw-runtime_targetinstall: $(STATEDIR)/mingw-runtime.targetinstall
+
+$(STATEDIR)/mingw-runtime.targetinstall: $(mingw-runtime_targetinstall_deps_default)
+ @$(call targetinfo, $@)
+ @$(call touch, $@)
+
+# ----------------------------------------------------------------------------
+# Clean
+# ----------------------------------------------------------------------------
+
+mingw-runtime_clean:
+ rm -rf $(STATEDIR)/mingw-runtime.*
+ rm -rf $(MINGW_RUNTIME_DIR)
+
+# vim: syntax=make
diff --git a/rules/newlib.in b/rules/newlib.in
index ad7fb5d..7e55683 100644
--- a/rules/newlib.in
+++ b/rules/newlib.in
@@ -1,6 +1,7 @@
menuconfig NEWLIB
bool
select CROSS_GCC_FIRST
+ select CROSS_GCC_WITHOUT_HEADERS
select CROSS_GCC_THREADS_SINGLE
prompt "newlib "
diff --git a/rules/uclibc.in b/rules/uclibc.in
index 1500cf6..a2a0723 100644
--- a/rules/uclibc.in
+++ b/rules/uclibc.in
@@ -2,7 +2,6 @@
menuconfig UCLIBC
bool
- select CROSS_GCC_HEADERS
select CROSS_GCC_SHARED
select CROSS_GCC_THREADS_POSIX
prompt "uclibc "
diff --git a/rules/w32api-headers.in b/rules/w32api-headers.in
new file mode 100644
index 0000000..d84c854
--- /dev/null
+++ b/rules/w32api-headers.in
@@ -0,0 +1,7 @@
+# config for w32api-headers
+
+config W32API_HEADERS
+ bool
+ # no prompt
+
+
diff --git a/rules/w32api-headers.make b/rules/w32api-headers.make
new file mode 100644
index 0000000..209fa65
--- /dev/null
+++ b/rules/w32api-headers.make
@@ -0,0 +1,91 @@
+# -*-makefile-*-
+# $Id$
+#
+# Copyright (C) 2006 by Robert Schwebel
+#
+# See CREDITS for details about who has contributed to this project.
+#
+# For further information about the PTXdist project and license conditions
+# see the README file.
+#
+
+#
+# We provide this package
+#
+PACKAGES-$(PTXCONF_W32API_HEADERS) += w32api-headers
+
+#
+# Paths and names
+#
+W32API_HEADERS_DIR = $(BUILDDIR)/$(W32API)-headers
+
+# ----------------------------------------------------------------------------
+# Get
+# ----------------------------------------------------------------------------
+
+w32api-headers_get: $(STATEDIR)/w32api-headers.get
+
+$(STATEDIR)/w32api-headers.get: $(STATEDIR)/w32api.get
+ @$(call targetinfo, $@)
+ @$(call touch, $@)
+
+# ----------------------------------------------------------------------------
+# Extract
+# ----------------------------------------------------------------------------
+
+w32api-headers_extract: $(STATEDIR)/w32api-headers.extract
+
+$(STATEDIR)/w32api-headers.extract: $(STATEDIR)/w32api.extract
+ @$(call targetinfo, $@)
+ @$(call touch, $@)
+
+# ----------------------------------------------------------------------------
+# Prepare
+# ----------------------------------------------------------------------------
+
+w32api-headers_prepare: $(STATEDIR)/w32api-headers.prepare
+
+$(STATEDIR)/w32api-headers.prepare:
+ @$(call targetinfo, $@)
+ @$(call touch, $@)
+
+# ----------------------------------------------------------------------------
+# Compile
+# ----------------------------------------------------------------------------
+
+w32api-headers_compile: $(STATEDIR)/w32api-headers.compile
+
+$(STATEDIR)/w32api-headers.compile:
+ @$(call targetinfo, $@)
+ @$(call touch, $@)
+
+# ----------------------------------------------------------------------------
+# Install
+# ----------------------------------------------------------------------------
+
+w32api-headers_install: $(STATEDIR)/w32api-headers.install
+
+$(STATEDIR)/w32api-headers.install:
+ @$(call targetinfo, $@)
+ mkdir -p $(SYSROOT)/mingw/include
+ cp -r $(W32API_BUILDDIR)/include/* $(SYSROOT)/mingw/include/
+ @$(call touch, $@)
+
+# ----------------------------------------------------------------------------
+# Target-Install
+# ----------------------------------------------------------------------------
+
+w32api-headers_targetinstall: $(STATEDIR)/w32api-headers.targetinstall
+
+$(STATEDIR)/w32api-headers.targetinstall:
+ @$(call targetinfo, $@)
+ @$(call touch, $@)
+
+# ----------------------------------------------------------------------------
+# Clean
+# ----------------------------------------------------------------------------
+
+w32api-headers_clean:
+ rm -rf $(STATEDIR)/w32api-headers.*
+
+# vim: syntax=make
diff --git a/rules/w32api.in b/rules/w32api.in
new file mode 100644
index 0000000..fd27aad
--- /dev/null
+++ b/rules/w32api.in
@@ -0,0 +1,14 @@
+# config for w32api-headers
+
+menuconfig W32API
+ bool
+ select CROSS_GCC_FIRST
+ prompt "w32api "
+
+config W32API_VERSION
+ depends on W32API
+ string
+ prompt "w32api version"
+ default "3.8"
+ help
+ Specify the w32api version here.
diff --git a/rules/w32api.make b/rules/w32api.make
new file mode 100644
index 0000000..d28ea1b
--- /dev/null
+++ b/rules/w32api.make
@@ -0,0 +1,122 @@
+# -*-makefile-*-
+# $Id$
+#
+# Copyright (C) 2006 by Robert Schwebel
+#
+# See CREDITS for details about who has contributed to this project.
+#
+# For further information about the PTXdist project and license conditions
+# see the README file.
+#
+
+#
+# We provide this package
+#
+PACKAGES-$(PTXCONF_W32API) += w32api
+
+#
+# Paths and names
+#
+W32API_VERSION := $(call remove_quotes,$(PTXCONF_W32API_VERSION))
+W32API := w32api-$(W32API_VERSION)-src
+W32API_SUFFIX := tar.gz
+W32API_URL := $(PTXCONF_SETUP_SFMIRROR)/mingw/$(W32API).$(W32API_SUFFIX)
+W32API_SOURCE := $(SRCDIR)/$(W32API).$(W32API_SUFFIX)
+W32API_DIR := $(BUILDDIR)/$(W32API)
+W32API_BUILDDIR := $(BUILDDIR)/w32api-$(W32API_VERSION)
+
+
+# ----------------------------------------------------------------------------
+# Get
+# ----------------------------------------------------------------------------
+
+w32api_get: $(STATEDIR)/w32api.get
+
+$(STATEDIR)/w32api.get: $(w32api_get_deps_default)
+ @$(call targetinfo, $@)
+ @$(call touch, $@)
+
+$(W32API_SOURCE):
+ @$(call targetinfo, $@)
+ @$(call get, W32API)
+
+# ----------------------------------------------------------------------------
+# Extract
+# ----------------------------------------------------------------------------
+
+w32api_extract: $(STATEDIR)/w32api.extract
+
+$(STATEDIR)/w32api.extract: $(w32api_extract_deps_default)
+ @$(call targetinfo, $@)
+ @$(call clean, $(W32API_DIR))
+ @$(call clean, $(W32API_BUILDDIR))
+ @$(call extract, W32API)
+ @$(call patchin, W32API, $(W32API_DIR))
+ @$(call touch, $@)
+
+# ----------------------------------------------------------------------------
+# Prepare
+# ----------------------------------------------------------------------------
+
+w32api_prepare: $(STATEDIR)/w32api.prepare
+
+W32API_PATH := PATH=$(CROSS_PATH)
+W32API_ENV := $(CROSS_ENV)
+
+W32API_AUTOCONF := \
+ --prefix=$(SYSROOT)/mingw \
+ --build=$(GNU_BUILD) \
+ --host=$(PTXCONF_GNU_TARGET) \
+ --target=$(PTXCONF_GNU_TARGET) \
+
+
+$(STATEDIR)/w32api.prepare: $(w32api_prepare_deps_default)
+ @$(call targetinfo, $@)
+ cd $(W32API_BUILDDIR) && $(W32API_ENV) $(W32API_PATH) \
+ ./configure $(W32API_AUTOCONF)
+ @$(call touch, $@)
+
+# ----------------------------------------------------------------------------
+# Compile
+# ----------------------------------------------------------------------------
+
+w32api_compile: $(STATEDIR)/w32api.compile
+
+$(STATEDIR)/w32api.compile: $(w32api_compile_deps_default)
+ @$(call targetinfo, $@)
+ cd $(W32API_BUILDDIR) && $(W32API_PATH) \
+ $(MAKE) $(PARALLELMFLAGS)
+ @$(call touch, $@)
+
+# ----------------------------------------------------------------------------
+# Install
+# ----------------------------------------------------------------------------
+
+w32api_install: $(STATEDIR)/w32api.install
+
+$(STATEDIR)/w32api.install: $(w32api_install_deps_default)
+ @$(call targetinfo, $@)
+ cd $(W32API_BUILDDIR) && \
+ $(W32API_PATH) $(MAKE) \
+ install_root=$(SYSROOT) install
+ @$(call touch, $@)
+
+# ----------------------------------------------------------------------------
+# Target-Install
+# ----------------------------------------------------------------------------
+
+w32api_targetinstall: $(STATEDIR)/w32api.targetinstall
+
+$(STATEDIR)/w32api.targetinstall: $(w32api_targetinstall_deps_default)
+ @$(call targetinfo, $@)
+ @$(call touch, $@)
+
+# ----------------------------------------------------------------------------
+# Clean
+# ----------------------------------------------------------------------------
+
+w32api_clean:
+ rm -rf $(STATEDIR)/w32api.*
+ rm -rf $(W32API_DIR)
+
+# vim: syntax=make