
			Imakefile support for WxWin150
			------------------------------

This kit is composed of two parts:

	1) All necessary stuff to deal with Imakefiles
		./config
		./utils
		./test
	2) All Imakefiles for wxwin150
		./libs/wx150

Please note that this kit is fine-tuned for MY site, so you will have to
edit some files to accomodate to yours...

Imakefiles are known to work on Unix platforms, Windows NT, Windows 3.1
(although there is a little restriction on 3.1, see below)

How to install it (Unix)
------------------------

cd to config/X, type make -f Makefile.ini , this will compile imake. Install
imake somewhere in your path, and other files in /usr/lib/X11/config
Please note that these files come from MIT X11/R4 distribution, but that I have
enhanced/modified some of them [particulary to allow imake to pass differents
flags to subdirectories, and a set of new rules in Als.rules]

cd to config/util, ans install/compile makedepend,mkdirhier,lndir.

How to install it (Windows NT/Windows 3.1)
------------------------------------------

copy all files from config/NT/*.* (or config/W31/*.*) in a directory belonging
to your path [I strongly recommend you c:\usr\local\bin]

Installing utilities
--------------------

compile all utilities, except cproto.als and bldhead, and install them
as before. There is no Makefile here, but they are simpler...

Go to cproto.als, type "xmkmf". This will create a Makefile. type nmake
to compile cproto. Install it.

Idem for bldhead.

Using Imakefiles
----------------

On Windows NT, you will have to rename all Imakefile as imakefil if you are
working on a NTFS filesystem -- sorry.

xmkmf:	Imakefile -> Makefile
then you have the following target:

	make Makefile
	make Makefiles (mmakefil on 3.1)
	make headers
	make depend
	make [all]
	make install
	make clean

	make World is defined as:
		  Makefile
		+ Makefiles (mmakefil on 3.1)
		+ clean
		+ headers
		+ depend
		+ [all]

On Unix, xmkmf generates a Makefile for "cc", and amkmf for "gcc"

Purpose of the utilities
------------------------

alsuniq: short version of the "unix" utility, used within "make depend" to
eliminate redundant dependancy lines

changecr: read its stdin, output to stdout, replacing @@ codes by a return

depfile: use to compute dependancies

mkdirh: build of directory hierarchy, like mkdirhier.sh

scripts: some useful scripts used by this port of imake.

Testing:
--------

Go to the test directory, type "xmkmf", then "make World". You can see that
depend are computed, and a full prototyped header "tfile.h" appears, as result
of cproto+bldhead.

Restriciton on Windows 3.1
--------------------------

There is only one macro that cannot full work under Windows 3.1, this is
Ressource(). In theory, it must do
	rc -r $(SPECIFIQUE) ....
but $(SPECIFIQUE) is too big [more than 128 char]. And rc cannot handles
response file, so I cannot do
	rc -r @<<
	$(SPECIFIQUE)
	...
	<<
To partialy solve the pb, I invoke rc with a special envir var, and it is
expected that all ressources files included are put here ;-)




I know that this doc is very very short, but I hope that this kit can help you.

					Patrick ALBERT
					als@barjov.frmug.fr.net
