next up previous contents
Next: Getting Started Up: Writing a C Module Previous: Overview of This Tutorial   Contents

The Files of a Module

A C/CMOD module normally consists of the following files
  1. The C/CMOD code files
  2. A configure.in file
  3. A Makefile.in file
  4. A testsuite.in file
This is the minimum set of files needed in the source of a module. The C/CMOD code files can be one or more files. They contain the whole C/CMOD implementation of the module. The configure.in file is a file for the configure script. The configure script is responsible for generating the global Makefile. In configure.in conditions and tests are written for when and if the module is to be build.

The Makefile.in is a file needed to make additions to the global Makefile so that the module is built when the Pike is built. Each Makefile.in contains a list of the targets needed in order to make that specific module.



2003-03-04