From 2f8d396b9302eddcd8d552648e101a46b7a80acd Mon Sep 17 00:00:00 2001 From: Peter Tyser Date: Fri, 13 Mar 2009 18:54:51 -0500 Subject: Add support for building native win32 tools Add support for compiling the host tools in the tools directory using the MinGW toolchain. This produces executables which can be used on standard Windows computers without requiring cygwin. One must specify the MinGW compiler and strip utilities as if they were the host toolchain in order to build win32 executables, eg: make HOSTCC=i586-mingw32msvc-gcc HOSTSTRIP=i586-mingw32msvc-strip tools Signed-off-by: Peter Tyser --- tools/mkimage.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'tools/mkimage.h') diff --git a/tools/mkimage.h b/tools/mkimage.h index a2d524894..c8df6e1f6 100644 --- a/tools/mkimage.h +++ b/tools/mkimage.h @@ -20,6 +20,7 @@ * MA 02111-1307 USA */ +#include "os_support.h" #include #include #include @@ -28,7 +29,11 @@ #ifndef __WIN32__ #include /* for host / network byte order conversions */ #endif +#ifdef __MINGW32__ +#include +#else #include +#endif #include #include #include -- cgit v1.2.3