This example shows how to write a makefile for a simple project built
with Gambit-C which combines Scheme and C code.

The C "main" function starts the execution of the Scheme code and it
also contains a call to a Scheme procedure.  There are also calls to C
functions within the Scheme code.  The project is composed of the
following source files:

  main.c              : program's "main" function which calls Scheme
  mod1.h and mod1.c   : defines the mod1 C function
  mod2.h and mod2.c   : defines the mod2 C function
  mod3.h and mod3.scm : defines the interface between Scheme and C
  mod4.scm            : Scheme code which calls C

The makefile is designed to depend only on the gsc compiler.  The gsc
compiler will invoke the appropriate C compiler and linker, even for
compiling the C source files of the project.  This makes this makefile
very portable as many system dependencies have been taken care of when
Gambit was installed.

To try it out, make sure you have Gambit-C v4.6.0 with
commit 02c1427d40eb080a4ada916d55ecbb14cc191772.

To build the project enter:

  make

To build and run the project enter:

  make run

To cleanup enter:

  make clean
