

Please read "readme" before reading this file!



How to install SDK for Borland/Watcom compilers
-----------------------------------------------

All source files are the same for all platforms and are compiled using the
same makefile. You need to specify target in the command line:

        make -D__WATCOMC__ -D__MSDOS__                  -- for 32 bit MSDOS
        make -D__WATCOMC__ -U__MSDOS__                  -- for 32 bit OS/2
        make -D__NT__      -U__MSDOS__                  -- for 32 bit WIN32

32 bit MSDOS or OS/2 version can be created only by Watcom running
under MSDOS or OS/2.
32 bit WIN32 version can be created only by Borland C++ CBuilder v4.0
Probably the old BCC v5.2 will work too, but I didn't check it.
I didn't test other Watcom versions, maybe you can use higher versions too.

It's good idea to create command files to invoke make, since the command
line gets long...
See examples in MODULE\*.bat

-----------------------------------------------

        Installation:

0. Unzip the archive with -d switch:

        pkunzip -d idasdk.zip

1. Edit file
        allmake.mak             modify pathes to your compilers and sdk

2. Add to your path:
        bin\w32
        you compiler directory

3. Compile and build utilities in ETC directory. See ETC\README file.

4. Run make in the SDK directory in order to create compiler
   configuration files (w32bor.cfg, d32wat.cfg,  os2wat.cfg)

        That's all. Please note that you don't need the IDA
        environment variable anymore.


-----------------------------------------------

        Directories in the SDK:


INCLUDE         - header file
MODULE/EXAMPLE          - a real example of a disassembler module (intel 8051)
MODULE/EXAMPLE/WAT.OS2  - output directory for OS/2 object files
MODULE/EXAMPLE/WAT.D32  - output directory for MSDOS 32bit object files
MODULE/EXAMPLE/BOR.W32  - output directory for WIN32 object files
LDR/SAMPLE              - a real example of a loader module (w32run)
LIBWAT.D32      - 32bit libraries for MSDOS
LIBWAT.OS2      - libraries for OS/2
LIBBOR.W32      - libraries for WIN32
BIN             - directory with SDK utilities
                  DOS32 result files will appear here
BIN/OS2         - ditto for OS/2
BIN/W32         - ditto for Win32
ALLMAKE.MAK    - 'make' configuration file. You should edit pathes to
                  compilers here.
README          - this file.

