Examples

This section describes three ways to use Ounce/Make.

Example 1: Ounce/Make without options illustrates Ounce/Make without options, creating one AppScan® Source project file based only on the makefile in the directory in which you invoke Ounce/Make.

Example 2: Ounce/Make with recursive option uses Ounce/Make with the -r (recursive) option, telling Ounce/Make to operate recursively and follow all calls to other makefiles.

In Example 3: Ounce/Make with single-project and recursive option, Ounce/Make uses both the -r (recursive) and -s (single-project) options, to create a single AppScan® Source project file based on recursive processing of all makefiles that Ounce/Make encounters.

Directory structure and files

All three examples use the same directory structure and files:


Before running ouncemake

This diagram shows a root directory (/usr/source) that contains a makefile and source files. The /usr/source directory contains two subdirectories, /usr/source/database and /usr/source/server. The /usr/source/database directory contains a makefile and SQL files. The /usr/source/server directory contains a makefile and source files.

This example makes the following assumptions about the three makefiles:

  • The makefile in /usr/source builds the source files in /usr/source and calls the makefiles in /usr/source/database and /usr/source/server.
  • The makefile in /usr/source/database imports the SQL files into a database.
  • The makefile in /usr/source/server builds the source files in /usr/source/server.