Subversion Repositories SvarDOS

Rev

Rev 2019 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
2019 mateusz.vi 1
pdTree v1.03
2
It is released US public domain.  [note: may use LGPL Cats]
3
 
4
Required Files:
5
  Win32:
6
    Tree without cats message support:
7
      tree.cpp, stack.c, stack.h
8
    Tree with *cats message support (LGPL):
9
      tree.cpp, stack.c, stack.h, catgets.c, catgets.h, db.c, db.h, get_line.c
10
  DOS:
11
    Tree without cats message support:
12
      tree.cpp, stack.c, stack.h, w32fDOS.cpp, w32api.cpp, w32fDOS.h, wincon.h
13
    Tree with *cats message support (LGPL):
14
      tree.cpp, stack.c, stack.h, w32fDOS.cpp, w32api.cpp, w32fDOS.h, wincon.h, catgets.c, catgets.h, db.c, db.h, get_line.c
15
 
16
 * Cats support included uses Jim Hall's Cats v3.8, an LGPL
17
   implementation of catgets for DOS/Win32.  The additional cats files
18
   (catgets.c, catgets.h, db.c, db.h, get_line.c) are LGPLed and thus
19
   NOT public domain!  When pdTree is compiled with Cats support, the
20
   resulting executable (not source) falls under the LGPL.
21
 
22
The batch files included can compile with or without cats, they have
23
only been tested under NT and thus may not work without modification under DOS.
24
 
25
If you are using Borland TC v3.0 or BC v3.1 for the DOS version
26
and/or Microsoft Visual C v5 for the Win32 version or Borland BCC5.5 for
27
the Win32 version then the supplied batch files can be used.  Otherwise refer 
28
to the batch files.
29
For DOS essentially you just need to copy w32fDOS.cpp from w32fDOS\MM\
30
where MM is the appropriate DOS memory model (large|small|other)
31
and then specify all the files and any extra arguments to the compiler.
32
For Windows simply specify all the files except w32fDOS.cpp and any extra
33
arguments to the compiler.
34
If you want a dual exe, you will probably need to fix the DOS executable
35
so its relocation table is not overwritten by the PE pointer at 0x3C-0x3F;
36
extra\fixstub can be used to automatically do this (on many DOS exes).
37
 
38
If you are using Borland C (bcc) instead of Turbo C (tcc) then you
39
should either set CC=bcc before any of the following steps refering
40
to the DOS version of tree or edit makedos.bat and change the line
41
set CC=tcc to set CC=bcc
42
 
43
Step 1:
44
  Ensure your compilers are in your PATH.
45
  E.g. set PATH=c:\tc\bin;%path%
46
       \progra~1\devstudio\vc\bin\vcvars32.bat
47
  If you are using BCC55 then you should add it to your path and
48
  set the INCLUDE and LIB enviroment variables.
49
  E.g. set PATH=C:\Borland\BCC55\bin;%path%
50
       set INCLUDE=C:\Borland\BCC55\Include
51
       set LIB=C:\Borland\BCC55\Lib;C:\Borland\BCC55\Lib\PSDK
52
 
53
Step 2:
54
  Be sure you are in the tree directory.
55
  E.g. cd \somepath\...\tree
56
 
57
Step 3:
58
  Edit the batch files if neccessary to refer to your compiler.
59
  So if you are using Borland C/C++ 3.1 then change tcc to bcc or set CC,
60
  and/or if your win32 compiler is not VC5 or BCC55, make the needed changes.
61
 
62
Step 4:
63
  Execute the appropriate batch file.
64
  [ The batch files create a tmp directory named BIN,
65
    compile and link the files, copying tree.exe back
66
    to the current directory, and then removes BIN. ]
67
  makedos.bat will only compile the DOS executable.
68
  makwinvc.bat will only compile the Win32 executable using MS VC5.
69
  makwinbc.bat will only compile the Win32 executable using Borland BCC55.
70
 
71
  make.bat will compile tree.exe, the Win32 Console with DOS stub version,
72
  using makedos.bat to compile the DOS stub and makwinvc.bat for Win32 version.
73
  This will run the Win32 version under Windows NT/9x and DOS version under
74
  FreeDOS/PCDOS/MSDOS/DRDOS/RxDOS.
75
 
76
  All three require the 1st argument to be CATS or NOCATS depending on
77
  whether you want cats support or not.  Both make.bat and makedos.bat require 
78
  the 2nd argument to be the memory model (-ml or -ms) with the 3rd argument
79
  the directory in w32fDOS containing w32fDOS.cpp (large or small).
80
  Makewinvc.bat and Makewinbc.bat both takes an optional 2nd argument specifing 
81
  the DOS stub program to use.  For VC it is passed to the compiler, and for
82
  BCC55 a tree.def file is created specifying the STUB, which is later deleted.
83
 
84
Step 5:
85
  Copy the executable (tree.exe) to a directory in your
86
  path (or where ever you wish to run it from).
87
 
88
pdTree v1.03
89
Written by Kenneth J. Davis
90
Contact jeremyd@computer.org
91
Original location: http://www.darklogic.org/fdos/tree/
92
Released public domain (using United States definition of public domain).
93
No warranty, etc. given or implied.
94
Use at your own RISK.
95
August, 2000; updated September 2000, October 2000, Novemeber 2000, January 2001, May 2004.