Tree v3.6 for FreeDOS compile instructions.

Tree uses the findfile.h header file to provide a consistant interface
to the necessary compiler dependant functions.  findfile.h is Public
Domain, and currently supports compiler independent methods for
find first file, find next file, find close (needed for some but not 
all compilers), get volume label, get current drive, get current working 
directory, and the necessary defines for file attributes and path 
component sizes.  Presently it has support for (and has been tested 
with) Borland's Turbo C 2.01 (DOS), Turbo C/C++ 1.01 (DOS), Turbo 
C/C++ 3.0 (and should work with Borland C/C++ 3.1 (DOS)), Borland 
C/C++ 5.5.1 (Win32), Dave Dunfield's Micro-C/PC 3.14 (DOS), Micro-C/PC 
3.15 (DOS), Micro-C/PC 3.21 (DOS), and Microsoft's Visual C/C++ 5 (Win32).
Support is planned for DJGPP/POSIX compilers, generic Win32 (C api),
Microsoft C v6 (DOS), and OpenWatcom (when released).

To compile tree, setup your compiler environment properly, then
compile specifying tree.c as the source file.

Cats message support (Jim Hall's cats 3.8) will not compile with Micro-C/PC.
If you are compiling with cats support:
You must define USE_CATGETS (either on command line or in the source),
and add the files catgets.c db.c get_line.c
(Note: for TC2 and TC++1 you should use cats 3.8modified or later version).

CMPLALL.BAT can be used to compile tree with all tested compilers.
You MUST edit it and correct the paths to match where the compilers
are actually installed before running!

Borland:
Turbo C 2.01 through Turbo C/C++ 3.0 (BCC 3.1), and BCC 5.5
  Ensure the compiler is in your path environment variable
    set PATH=C:\TC\BIN;%PATH%
  Within the directory where tree.c and findfile.h reside
    cd \sompath\...\tree
  Invoke the compiler
  For DOS compilers TC2 through TCC30 (BCC31 change tcc to bcc)
    tcc tree.c
  For Win32 compiler BCC55 (if necessary include path to Include & Lib directory)
    bcc32 -Ic:\Borland\bcc55\Include -Lc:\Borland\bcc55\Lib -tWC -etree.exe tree.c user32.lib

Microsoft:
Visual C/C++ 5.0
  Ensure VCVARS32.BAT has been ran to setup paths and environment
    c:\Program Files\Devstudio\vc\VCVARS32.BAT
  Within the directory where tree.c and findfile.h reside
    cd \sompath\...\tree
  Invoke the compiler with necessary arguments for Win32 console app
  cl /Fe"tree.exe" /nologo /ML /GX /O2 /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /D "_MBCS" tree.c /link user32.lib

Dave Dunfield:
(Micro-C/PC used with Borland's TASMv5 (using TASM 4 for DOS), and
 Borland's TLINK v5, selecting TASM 1,2,3 and TLINK from MCSETUP)
Micro-C/PC 3.14, 3.15, and 3.21
  Ensure compiler has been setup
    set MCDIR=C:\MICROC
    set TEMP=C:\TEMP
    cd MICROC
    MCSETUP 
    specify proper assembler and linker (tested with TASM and TLINK)
  Within the directory where tree.c and findfile.h reside
    cd \sompath\...\tree
  Invoke the compiler defining MICROC on command line (use version #)
    cc tree.c -P MICROC=321

OpenWatcom:
TODO (will not be tested until openWatcom is publically released)

DJGPP:
TODO

Compilers with POSIX support:
TODO

Compilers with generic Win32 (C api) support:
TODO

Other compilers:
  If the compiler is similar to one of the above, try compiling with
  similar arguments (eg Borland C/C++ 4.x and 5 may work by simply
  compiling with the same arguments as BCC 3.1 or 5.5).  If your
  compiler is compatible but doesn't provide necessary defines you
  may need to define __TURBOC__, MICROC, _MSC_VER, etc when you compile.
  If your compiler is signicately different, then edit findfile.h
  and add in a section for your compiler refering to the other
  compilers for examples.  If you have a compiler not listed and it
  works or you added the necessary logic to make it work, please
  consider sending them to jeremyd@computer.org and specifying that
  they are public domain so I can add them to my public domain
  findfile.h for all to use.

Feb 7, 2001
Jeremy Davis <jeremyd@computer.org> http://www.darklogic.org/
