Skip to content

Adding a new MET tool to the autoconf build system

David Fillmore edited this page Aug 19, 2019 · 6 revisions

The source code for individual tools resides in met/src/tools/<category>/<tool name>. The subdir can be either core, other, or tc_utils (tropical cyclone utils).

To add a new tool to the autoconf build system:

  1. Create a new subdir <category>/new_tool

  2. In the new_tool subdir, five files should be created:

  • Makefile.am
  • new_tool.cc
  • new_tool.h
  • new_tool_conf_info.cc
  • new_tool_conf_info.h
  1. Edit <category>/Makefile.am and add a new_tool entry to the SUBDIRS list
SUBDIRS = <existing tool> \
    ...
    <existing_tool> \
    new_tool
  1. In met/data/config, one file should be created:
  • NewToolConfig_default
  1. Edit met/data/config/Makefile.am and add a NewToolConfig_default entry to the config_DATA list

  2. Edit met/configure.ac and add the entry src/tools/<category>/new_tool/Makefile to the AC_CONFIG_FILES() argument list

Clone this wiki locally