home *** CD-ROM | disk | FTP | other *** search
- Setting up the CBTREE compilation environment
-
- After reading this, read README.230 for updates to the manual.
-
- CBTREE comes in two parts: the CBTREE Library modules and the modules for the
- support programs. These come on two separate disks or in two directories
- on the same disk. The directories/volumes will be named 'Library' and
- 'Programs' respectively.
-
- In each case there will be subdirectories attached to each of the main
- directories representing the compilers which are directly supported. For
- example, you will see subdirectories named:
-
- AZTEC - for Manx Aztec compiler
- COMPINNO - for Computer Innovation's C86 compiler
- DESMET - for DeSmet compiler
- LATTICE - for Lattice C
- MARKWILL - for Mark Williams compiler
- MICROSOFT - for Microsoft
- TURBOC - for Borland's Turbo C
- XENIX - for Xenix and Unix environments.
-
- Separate versions of these subdirectories will be found in both the 'Library'
- and the 'Programs' directories.
-
- In the 'Library' subdirectories, there will generally be found four files:
-
- CBTRDEF.H - the CBTREE definition header file.
- This file specifies which compiler is in use
- along with other environment-specific
- definitions.
- SETUPxx.BAT - this batch file sets up the compilation
- environment for the compiler specified by
- the code 'xx'. THIS FILE SHOULD BE MODIFIED
- to suit your particular development
- environment.
- CCLIBxx.BAT - this batch file compiles the CBTREE Library
- modules into object form. YOU MAY NEED TO
- MODIFY THIS BATCH FILE so that it will
- correctly find the local "cbtree.h" and
- standard <stdio.h> header files.
- MKLIBxx.BAT - this batch file will regenerate the library
- from the object modules. The order in which
- the modules are combined may be significant
- in certain environments. The library is
- then copied into the standard directory for
- compiler libraries. The library has the
- name:
- LIBCBxxm.LIB
- where xx is the compiler code and m is the
- model. The name may vary in different
- environments.
-
- In the 'Program' subdirectories, there will generally be found two files:
-
- CCALLxx.BAT - this batch file compiles all the CBTREE
- support programs and functions modules into
- object form. YOU MAY NEED TO MODIFY THIS
- BATCH FILE so that it will correctly find
- the local "cbtree.h" and standard <stdio.h>
- header files. The local headers will be in
- the 'Library' directory.
- LNALLxx.BAT - this batch file will link all the CBTREE
- programs to the CBTREE Library and the
- compiler's standard library. YOU MAY NEED
- TO MODIFY THIS BATCH FILE so that it will
- correctly locate the CBTREE Library.
-
- To prepare for compilation, create two working directories: 'Library' and
- 'Programs'. For ease of use of the existing batch files, these should be
- sibling directories, i.e. they should have the same parent. This parent
- can be a special CBTREE directory. For example, for version 2.20 you
- might set your directories up as follows:
-
- \CB220
- \CB220\Library
- \CB220\Programs
-
- The working 'Library' directory should have all the files from the main
- 'Library' distribution directory, PLUS all the files from the subdirectory
- for YOUR compiler. After modifying the batch files to make sure they conform
- to your development environment, you are ready to type:
-
- SETUPxx
- CCLIBxx
- MKLIBxx
-
- This will create the library and place it in the standard compiler directory
- with other libraries.
-
- Likewise, the working 'Programs' directory should have all the files from the
- main 'Programs' distribution directory, PLUS all the files from the
- subdirectory for YOUR compiler. After modifying the batch files to make sure
- they conform to your development environment, you are ready to type:
-
- CCALLxx
- LNALLxx
-
- This will create all the CBTREE support programs.
-
-
-
- Environments with MAKE Utilities:
- ---------------------------------
-
- In the 'Library' subdirectories, these files (amoung others) will be found:
-
- CBTRDEF.H - the CBTREE definition header file.
- This file specifies which compiler is in use
- along with other environment-specific
- definitions.
- SETUPxx.BAT - this batch file sets up the compilation
- environment for the compiler specified by
- the code 'xx'. THIS FILE SHOULD BE MODIFIED
- to suit your particular development
- environment.
- MKLIBxx.BAT - this batch file invokes the MAKE file which
- regenerates the object modules. YOU MAY NEED
- TO MODIFY THE MAKE FILE so that it will
- correctly locate the standard header files.
- The newly created CBTREE library is then
- copied into the standard directory
- for your compiler's libraries.
-
- In the 'Program' subdirectories, there will generally be found many make
- files but only a single batch file:
-
- MKPGMxx.BAT - this batch file invokes a series of MAKE
- files which compile and link the CBTREE
- support programs. YOU MAY NEED TO MODIFY
- THE MAKE FILES so that they will correctly
- find the CBTREE and standard header files.
- They must also find the CBTREE Library.
-