
Lexmark 3200 ghostscript driver for Linux
=========================================

by Daniel Gordini (dgordin@tin.it)

http://www.geocities.com/dgordini



 Version 0.4.1 - Dec 19, 2000


These are the quick instructions needed to recompile a version
of Ghostscript 5.50 for Linux that supports this driver.
The instruction assume you will use the "unix-gcc.mak" makefile,
i.e. you are using gcc on a Unix system to compile Ghostscript.
This is of course true for Linux.

Instructions:

1) Obtain and unpack the Ghostscript 5.50 source distribution.
   This driver should work with later releases of Ghostscript, but
   it has been tested with release 5.50 only.

2) Copy the driver source (gdevlx32.c) into the main ghostscript
   source tree. In the 5.50 release this means the main directory, 
   in later releases this could mean the "src" directory.

3) Modify the "contrib.mak" file as stated in the "Drivers.htm" 
	 documentation file, adding the following lines at the end:


## --- Add everything down from here, this line excluded --- ## 


### ---------------- Lexmark 3200 device ----------------- ###

lxm3200_=$(GLOBJ)gdevlx32.$(OBJ)

$(GLOBJ)gdevlx32.$(OBJ): gdevlx32.c $(PDEVH) $(gsparam_h)
        $(GLCC) $(GLO_)gdevlx32.$(OBJ) $(C_) $(GLSRC)gdevlx32.c

lxm3200.dev: $(lxm3200_) page.dev
        $(SETPDEV) lxm3200 $(lxm3200_)

## --- Add everything up to here, this line excluded --- ##


   Just append the lines at the end of the "contrib.mak" file, exactly as they 
   are shown here. 

4) Modify the "unix-gcc.mak" file including the driver name shown above in
   the list of the drivers to compile. To do it, first look for the line 
   which starts "DEVICE_DEVS6=". It should contain a list of driver names, 
   such as "bj10e.dev", "epsonc.dev" and so on. It is very likely that the
   list is broken in more than one line. Please note that each line, except
   the last, ends with a "\" (backslash) character. This is the continuation
   character, and it means that the list does not end with the "newline" 
   character but continues on the next line. If the backslash is there, it
   MUST ALWAYS be the last character of the line: there must be no spaces,
   tabs or any other character between the backslash and the newline.
   Add the device name "lxm3200.dev" at the end of the last line.
 
   Let's make an example. If the line looks like:

	DEVICE_DEVS6=md2k.dev md5k.dev bj10e.dev bj200.dev bjc600.dev \
		bjc800.dev epson.dev eps9mid.dev eps9high.dev epsonc.dev \
		ibmpro.dev jetp3852.dev lxm5700m.dev \
		oki182.dev okiibm.dev

   Turn it into something like:

	DEVICE_DEVS6=md2k.dev md5k.dev bj10e.dev bj200.dev bjc600.dev \
		bjc800.dev epson.dev eps9mid.dev eps9high.dev epsonc.dev \
		ibmpro.dev jetp3852.dev lxm5700m.dev \
		oki182.dev okiibm.dev lxm3200.dev

   Be careful not to put them after a backslash. You can add a new line
   after the last one, if you wish, obtaining something like:

	DEVICE_DEVS6=md2k.dev md5k.dev bj10e.dev bj200.dev bjc600.dev \
		bjc800.dev epson.dev eps9mid.dev eps9high.dev epsonc.dev \
		ibmpro.dev jetp3852.dev lxm5700m.dev \
		oki182.dev okiibm.dev \ 
		lxm3200.dev

   But please note two things: first, the line reading "oki182.dev okiibm.dev" 
   is no more the last one, so a backslash has been added at its end.
   Second, the blanks before the start of each line, including the one you
   add, must be made by one or more TABs, and not by spaces. This is important:
   if you put spaces there, the compilation will stop with a "missing separator"
   error.

5) Recompile ghostscript with the command "make -f unix-gcc.mak"

6) Install the freshly compiled version of ghostscript, using the command 
   "make -f unix-gcc.mak install"

7) Enjoy your Lexmark 3200!

If you have problems compiling Ghostscript, you should be able to solve them 
by reading carefully the documentation, expecially the section "Adding a 
driver" in the "Drivers.htm" file. DO NOT ASK ME FOR HELP IN COMPILING 
GHOSTSCRIPT, unless the compilation error is generated in the driver's file 
itself (that is gdevlx32.c)


