Adding a bit of documentation for MinGW that was left off the previous SVN commit
[freeglut] / README.mingw_cross
diff --git a/README.mingw_cross b/README.mingw_cross
new file mode 100644 (file)
index 0000000..63eb435
--- /dev/null
@@ -0,0 +1,24 @@
+Cross-compilation from GNU/Linux (static and shared DLL)\r
+========================================================\r
+\r
+Install MinGW32 and prepare FreeGLUT on Debian/Ubuntu:\r
+\r
+  apt-get install mingw32\r
+  ./configure --host=i586-mingw32msvc --prefix=/freeglut\r
+\r
+Install MinGW32 and prepare FreeGLUT on Fedora:\r
+\r
+  yum install mingw32-gcc\r
+  ./configure --host=i686-pc-mingw32 --prefix=/freeglut\r
+\r
+Cross-compile!\r
+\r
+  make\r
+  make install DESTDIR=$(pwd)\r
+\r
+Everything is in the new freeglut/ directory.\r
+The .dll is in the freeglut/bin/.\r
+\r
+\r
+Compilation of your own programs is done as usual.\r
+See README.cygwin_mingw for details.\r