Introduction
============

The directory contains the files needed to build the GNADE
distribution on a Windows 9X/NT System with the gnat-3.13p Ada compiler.

To build the library in directory ../adaodbc and also build the 
preprocessor for embedded SQL gesql and a test program just do a make 
in the win32 directory.

How does it work
================

The ./win32 directory contains the following files:

all_modules.adb
GNUmakefile
README
README.unix

all_modules.adb is a helper file to compile all other library files.
GNUmakefile is a makefile for GNU Make.

The GNUmakefile does the following:

Copies all library source to ../adaodbc
Preprocesses some files to ../adaodbc
Compiles the sources in ../adaodbc by doing a gnatmake on the dummy main
all_modules.adb
Builds gesql.exe in the current directory ./win32
Builds test.exe and odbctest.exe in the current directory

If it does not work
===================

If the build process stops with the following error or something similar

D:\dev\ada\gnade-src-linux-gnu-0.9h\win32>gmake
process_begin: CreateProcess((null), mkdir ..\adaodbc, ...) failed.
make (e=2): The system cannot find the file specified.
gmake: *** [../adaodbc] Error 2

The probable cause is that you have a unix shell "sh.exe" somewhere in
your search path which GNU make tries to use instead of the native command
processor cmd.exe.

Please rename sh.exe to something else during the build or remove it
temporarily from the search path.

Note regarding all_modules.adb
==============================

When building libraries I always use a master file "all_modules.adb"
which does a "with" of all specifications in the library. The library can
then be built simply by gnatmake -c all_modules.

The file all_modules.adb is produced by a command_file "make_all.cmd" and
an awk script "all_modules.awk". To use the command file you will need
win32 versions of gawk.exe and grep.exe.

make_all.cmd and all_modules.awk are distributed in directory ./win32/support
but not needed to build gnade.

2001-05-25 Sune Falck
