INSTALLATION

1) If your Win32 c/c++ cross-compiler is not /usr/local/cross/bin/mingw32-g++
define where is your cross-compiler on your system:
defaults write com.apple.Xcode win32gxxpath  /full/path/to/mingw32-g++
defaults write com.apple.Xcode win32gccpath  /full/path/to/mingw32-gcc
defaults write com.apple.Xcode win32arpath  /full/path/to/mingw32-ar


2) Open the Win32Plugin XCode project and build the setfileicon and then the Win32Plugin targets.
You may have to replace the DevToolsCore and DevToolsSupport frameworks of this project by
their homologs on your system, because their location in your file system may differ from
what they are here.
In the info window of the Win32Plugin target, the rather obscure other linker flags
(-dylib_file @loaderpath...) that proved necessary to build this target with XCode 2.5, may require 
adaptation to the corresponding locations in your file system. 
These flags are not necessary with XCode 3.0.

3) Close the project and quit XCode itself.


4) Copy files/folders
(relatively to Win32Plugin folder)       	(relatively to $HOME/Library/Application Support/Developer/2.5/XCode)
		to be copied							to folder
build/Release/Win32Plugin.pbplugin			Plug-ins/
Project Templates/Win32 cross-compiler		Project Templates/
Target Templates/Win32						Target Templates/

[Replace 2.5 by 3.0 above if using XCode 3.0]


5) Run XCode again and open a new "Win32 program" project (very bottom of projects list), or add
a Win32 program or library target to any existing project of yours (very bottom of targets list).
To have your new Win32 target function properly, do as follows:
	- select the Rules panel of the target's info window
	- modify the "using:" line of the "System C rule" entry selecting Win32 C/C++ instead of GCC (this
	requires to accept first to "Make a copy")
	- select the win32 target as active target
	- add some c/c++ source files to this target
	- go back to the target's info window and its Build panel; a new Collection 
	"Win32 c/c++ compiler & linker" has appeared where you can set header and library search paths,
	debug, warning, and optimization options.


