Next: , Previous: , Up: Programming language support   [Contents][Index]

10.6 Objective C++

Automake includes some support for Objective C++.

Any package including Objective C++ code must define the output variable OBJCXX in configure.ac; the simplest way to do this is to use the AC_PROG_OBJCXX macro (see Particular Programs).

A few additional variables are defined when an Objective C++ source file is seen:

OBJCXX

The name of the Objective C++ compiler.

OBJCXXFLAGS

Any flags to pass to the Objective C++ compiler.

AM_OBJCXXFLAGS

The maintainer’s variant of OBJCXXFLAGS.

OBJCXXCOMPILE

The command used to actually compile an Objective C++ source file. The file name is appended to form the complete command line.

OBJCXXLINK

The command used to actually link an Objective C++ program.