# file      : build/c/configuration-lib.make
# author    : Boris Kolpackov <boris@kolpackov.net>
# copyright : Copyright (c) 2004-2009 Boris Kolpackov
# license   : GNU GPL v2; see accompanying LICENSE file

$(call include-once,$(bld_root)/c/configuration-lib-rules.make,$(dcf_root))

# Static configuration.
#
$(call  include,$(bld_root)/c/configuration-lib-static.make)

ifneq ($(bld_root),$(scf_root))
$(call -include,$(scf_root)/c/configuration-lib-static.make)
endif

# Dynamic configuration.
#
c_lib_type :=

$(call -include,$(dcf_root)/c/configuration-lib-dynamic.make)

ifdef c_lib_type

ifeq ($(c_lib_type),archive)

c_lib_suffix := $(c_lib_archive_suffix)

else

c_lib_suffix := $(c_lib_shared_suffix)

endif

$(out_root)/%: c_lib_type := $(c_lib_type)
$(out_root)/%: c_lib_prefix := $(c_lib_prefix)
$(out_root)/%: c_lib_suffix := $(c_lib_suffix)

else

.NOTPARALLEL:

endif
