Next: Macros Pertaining To Tasks
Up: Standard Macros
Previous: Standard Macros
Contents
- HD_CFLAGS: Compiler flags used in every C compilation,
regardless of whether the object file is included in a library or
a task. Usually this should be defined to be equal to
${HD_STD_CFLAGS}, which is set by hmake to be the correct
flags for the current component, architecture and compiler.
- HD_CLIBS: Flags specifying the libraries in the link
line for tasks linked with C. This includes path information
(-L flags) to find the
libraries as well as the library names themselves (-l flags).
Usually this should be defined to be equal to ${HD_STD_CLIBS},
which is set by hmake to be the standard C link information for
the given software component.
- HD_CXXFLAGS: Compiler flags used in every C++ compilation,
regardless of whether the object file is included in a library or
a task. Usually this should be defined to be equal to
${HD_STD_CFLAGS}, which is set by hmake to be the correct
flags for the current component, architecture and compiler.
- HD_CXXLIBS: Flags specifying the libraries in the link
line for tasks linked with C++. This includes path information
(-L flags) to find the
libraries as well as the library names themselves (-l flags).
Usually this should be defined to be equal to ${HD_STD_CXXLIBS},
which is set by hmake to be the standard C++ link information for
the given software component.
Linking Fortran code with C or C++ usually requires some
additional libraries to be included at link time. The macro
${F77LIBS4C} is defined by hmake to hold this information
for the current architecture and compiler. If Fortran code
is involved in a task, it may be necessary to add this macro
to the definition of HD_CLIBS and/or HD_CXXLIBS. Of course,
if this ends up being a component-wide requirement, it is also
possible for hmake to include the contents of the F77LIBS4C
macro directly in HD_STD_CLIBS and/or HD_STD_CXXLIBS.
Next: Macros Pertaining To Tasks
Up: Standard Macros
Previous: Standard Macros
Contents
Bryan Irby
2018-06-27