diff options
| -rw-r--r-- | GNUmakefile | 16 | ||||
| -rw-r--r-- | README | 14 | 
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 @@ -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  ----------------------------------------------------- | 
