PDS_VERSION_ID                   = PDS3
RECORD_TYPE                      = STREAM
OBJECT                           = TEXT
  PUBLICATION_DATE               = 1999-05-14
  NOTE                           = "Description of the SRC
     directory contents for a MGS TES-TSDR archive volume."
END_OBJECT                       = TEXT
END

                        SRC Directory Contents

     The SRC directory contains source code for using the data on the
TES-TSDR archive volume.  The files listed below are found in this directory.

SRCINFO.TXT -   The file you are reading.

BUFFS.C -       Source code for the vanilla program.

CONVERT.C -     Source code for the vanilla program.

DATASET.C -     Source code for the vanilla program.

DIR.C -         Source code for the vanilla program.

DOS.C -         Source code for the vanilla program.

FIELDS.C -      Source code for the vanilla program.

GENDEF.H -      Source code for the vanilla program.

HEADER.C -      Source code for the vanilla program.

HEADER.H -      Source code for the vanilla program.

IO_LABLIB3.C -  Source code for the vanilla program.

IO_LABLIB3.H -  Source code for the vanilla program.

MAKEFILE -      Source code for the vanilla program.

OUTPUT.C -      Source code for the vanilla program.

PROTO.H -       Source code for the vanilla program.

SEARCH.C -      Source code for the vanilla program.

SELECT.C -      Source code for the vanilla program.

SYSTEM.C -      Source code for the vanilla program.

TOOLBOX.H -     Source code for the vanilla program.

TOOLS.C -       Source code for the vanilla program.

TOOLS.H -       Source code for the vanilla program.

VANILLA.C -     Source code for the vanilla program.

VERSION.H -     Source code for the vanilla program.




Compiling
---------
Vanilla requires an ANSI C compiler, and has been successfully compiled in
the following environments:

    * Sun Sparc, SunOS 4.1.2, gcc 2.7.2
    * Sun Sparc, Solaris 2.5, Sun WorkShop Compilers 4.2.
    * Red Hat v5.2, Linux 2.0.36, gcc 2.7.2.3
    * SGI Indigo2 (mips), IRIX V6.2
    * IBM RS/6000,  AIX Ver. 4.1.4
    * HP 9000/802, PA-RISC 2.0, HPUX 10.20
    * HP 9000/755, PA-RISC 1.1, HPUX 9.07
    * Windows 95, Borland C++

Binary executables are available for each of these in the SOFTWARE/BIN
directory.  See the bininfo.txt file in that directory for details.

If you are compiling on an HP, Intel or Windows platform, you will
need to modify the Makefile to select the CFLAGS line that matches your
environment.  There are 2 compile time defines that you may need to set:

    -D_LITTLE_ENDIAN    - for little endian platforms, ie: intel
    -D_WINDOWS          - For Borland C++/Windows 95.

Once you have modified the Makefile for your environment, just run make.
If you have problems with make, you can probably just compile the source
files directly with something like this:

    cc -O *.c -o vanilla -lm

If you find that your system is missing a system function, several that
commonly cause problems are included in the file system.c.  You will need
to edit the #define statements at the top of that file to include support
for the functions you are missing and recompile.  There are a couple of
functions included for dos/windows support in the file dos.c.  If the
function you need isn't in system.c, it might be in there.  The one known
case where this is necessary is for SunOS, which is missing strtoul().