intf_libs = # Interface dependencies.
impl_libs = # Implementation dependencies.
#import xxxx_libs += libhello%lib{hello}

lib{getopt_port}: {h c}{**} $impl_libs $intf_libs

# Build options.
#
cc.poptions =+ "-I$src_root"

#obja{*}: cc.poptions += -DGETOPT_PORT_STATIC_BUILD
#objs{*}: cc.poptions += -DGETOPT_PORT_SHARED_BUILD

# Export options.
#
lib{getopt_port}:
{
  cc.export.poptions = "-I$src_root"
  cc.export.libs = $intf_libs
}

#liba{getopt_port}: cc.export.poptions += -DGETOPT_PORT_STATIC
#libs{getopt_port}: cc.export.poptions += -DGETOPT_PORT_SHARED

# For pre-releases use the complete version to make sure they cannot
# be used in place of another pre-release or the final version. See
# the version module for details on the version.* variable values.
#
if $version.pre_release
  lib{getopt_port}: bin.lib.version = "-$version.project_id"
else
  lib{getopt_port}: bin.lib.version = "-$version.major.$version.minor"

# Install into the getopt_port/ subdirectory of, say, /usr/include/
# recreating subdirectories.
#
h{*}:
{
  install         = include/getopt_port/
  install.subdirs = true
}
