*********************************************************************
*                                                                   *
*                              LEDA 7                               *
*                                                                   *
*                      SOURCE CODE INSTALLATION                     *
*                                                                   *
*********************************************************************


0. Contents of File
-------------------

I.   Directory Overview
II.  Configuration on Unix
III. LEDA Compilation on Unix
IV.  Configuration for MS Visual C++ 
V.   LEDA Compilation with MS Visual C++


I. DIRECTORY OVERVIEW:
----------------------

   The LEDA main directory should contain the following files and 
   subdirectories: 

   LICENSE.pdf               license notice

   docs/README.txt           overview of LEDA documentation
   docs/CHANGES.txt          most recent changes
   docs/FIXES.txt            fixes since last release

   lconfig                   configuration command for unix
   lconfig.bat               configuration command for MS Windows
   Makefile                  main make script
   config/                   configuration directory
   incl/                     include directory
   src/                      source code files 
   demo/                     demo programs
   test/                     test programs
   app/                      apps



II. CONFIGURATION FOR UNIX 
--------------------------

1. Dependencies
   The following packages must be installed:
   libx11-dev
   libxft-dev
   yasm

2. Go to the LEDA main directory

3. Type: lconfig <cc>  [static | shared]

    where <cc> is the name (or command) of your C++ compiler
    and the optional second parameter defines the kind of 
    libraries to be generated (static or shared). 

    Examples: lconfig g++, lconfig g++ shared
     
    lconfig without arguments prints a list of known compilers.
    If your compiler is not in the list you might have to
    edit the <LEDA/sys/unix.h> header file.
    


III. Compilation on UNIX 
-----------------------------

Type make for building the object code library
libleda.a and libleda.so (if the shared library is used) 




If you're installing on a windows machine, please read the 
following sections.


IV. Configuration for MS Visual C++ under Windows
-------------------------------------------------

1. Dependencies
   The yasm-assembler (yasm.exe) must be installed
   (see http://sourceforge.net/projects/yasm)

2. Setting the Environment Variables for Visual C++: 
   The compiler CL.EXE and the linker LINK.EXE require that the 
   environment variables PATH, INCLUDE, and LIB have been set properly. 
   When Visual C++ was installed, setup created a batch file, 
   VCVARS32.BAT containing the commands to modify the PATH, LIB, and INCLUDE
   environment variables. Run VCVARS32.BAT before you compile LEDA as follows. 

   (a) At the command prompt, change to the Auxiliary Build subdirectory of 
       your Visual C++ installation e.g.
    C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Auxiliary\Build 

   (b) Type vcvars32 


   Alternativeley (and probably better) you can open the 
   "Developer Command Prompt for VS" from the Windows Start Menu
   (in the Visual Studio Folder). This opens a command line window
   that alreaday has defined all required enviroment settings.


   
3. Add the location of the yasm assembler to your PATH variable

4. Go to the LEDA main directory (at the command prompt used above). 

5. Type: lconfig msc [dll] [mt] 

   dll: to build the dll version (dynamic libary)
   mt:  to build a multi-thread version

   




V. Compilation with MS Visual C++ 
---------------------------------------

Type "build lib" for building the object code libraries 

static:  leda.lib
dynamic: leda.lib and leda.dll



