summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrpj <rpj>2005-05-26 08:20:44 +0000
committerrpj <rpj>2005-05-26 08:20:44 +0000
commit616f4af390a6872fe49c1a7b4bdf72d51ea9ede3 (patch)
treee477e76149a0e08d5b28d5f535fafdbc8ebf6e3f
parent1626f6a4e33be4214afe114a97e0d11d07158260 (diff)
''
-rw-r--r--GNUmakefile16
-rw-r--r--README14
2 files changed, 24 insertions, 6 deletions
diff --git a/GNUmakefile b/GNUmakefile
index daf7e00..a8d3639 100644
--- a/GNUmakefile
+++ b/GNUmakefile
@@ -41,18 +41,22 @@ LIBDEST = $(DEVROOT)\DLL
RM = rm -f
MV = mv -f
CP = cp -f
-RC = windres
# If not.
#RM = erase
#MV = rename
#CP = copy
-AR = ar
-DLLTOOL = dlltool
-CC = gcc
-CXX = g++
-RANLIB = ranlib
+# For cross compiling use e.g.
+# make CROSS=i386-mingw32msvc- clean GC-inlined
+CROSS =
+
+AR = $(CROSS)ar
+DLLTOOL = $(CROSS)dlltool
+CC = $(CROSS)gcc
+CXX = $(CROSS)g++
+RANLIB = $(CROSS)ranlib
+RC = $(CROSS)windres
OPT = $(CLEANUP) -O3 -finline-functions
DOPT = $(CLEANUP) -g -O0
diff --git a/README b/README
index 091fa89..5649333 100644
--- a/README
+++ b/README
@@ -411,6 +411,20 @@ make clean GCE-bench (to benchtest using GNU C dll with C++ exception handling
make clean GC-static (to test using GC static lib with C (no EH) applications)
+Building under Linux using the Mingw32 cross development tools
+--------------------------------------------------------------
+
+You can build the library without leaving Linux by using the Mingw32 cross
+development toolchain. See http://www.libsdl.org/extras/win32/cross/ for
+tools and info. The GNUmakefile contains some support for this, for example:
+
+make CROSS=i386-mingw32msvc- clean GC-inlined
+
+will build pthreadGCn.dll and libpthreadGCn.a (n=version#), provided your
+cross-tools/bin directory is in your PATH (or use the cross-make.sh script
+at the URL above).
+
+
Building the library as a statically linkable library
-----------------------------------------------------