
It's too hard write it, so READ THE DOCUMENTATION !!! :-).

Well, but if you are impatience ... 

You'll need edit two files, the 'root' Makefile and the 
include/lugconf.h header. There are a lot of explanations 
inside these files, so ... read them, again :-).

About, the other libraries. Well, you can get it from the
same site of LUG (ftp.uniovi.es), but, you know, try 'archie' 
before.                |
                       |
                       |--> /pub/graphics/Image/jpeg/jpegsrc*
                       |--> /pub/graphics/Image/urt/urt*
                       |--> /pub/graphics/Image/tiff/libtiff*

If you can understand nothing ( or insufficient ) then JUMP TO 
FIRST LINE!.

--
