# Set up lib inclusions, and scan for built libs
c_FLAGS += -I$(LIBINC_DIR)
c_OBJ := $($(c_C)_OBJ)
# Set up lib inclusions, and scan for built libs
c_FLAGS += -I$(LIBINC_DIR)
c_OBJ := $($(c_C)_OBJ)
-# If we have a linker, include 'LIB_DIR' in the paths it looks in
-$(foreach lang,$(LANGS),$(if $($($(lang)_C)_LD),$(eval\
-$(lang)_FLAGS += -L$(LIB_DIR)\
-)))
# Modules are any directories other than 'DRIVER_MODULE' in './' and produce a
# single object file in './' containing all of the module's symbols and
# binaries.
# Modules are any directories other than 'DRIVER_MODULE' in './' and produce a
# single object file in './' containing all of the module's symbols and
# binaries.
# adding '-lLIBNAME' options to the language flags if the linker has them, or to
# the list of missing libraries for this language if the linker cannot find them.
# If this compiler has no linker, mark all libs as missing
# adding '-lLIBNAME' options to the language flags if the linker has them, or to
# the list of missing libraries for this language if the linker cannot find them.
# If this compiler has no linker, mark all libs as missing
$(foreach lib,$($1_LIBS),\
$(if $(findstring $(lib),$($1_LD_LIBS)),\
$(eval $1_FLAGS += -l$(lib)),\
$(eval $1_MISSING_LIBS += $(lib))\
$(foreach lib,$($1_LIBS),\
$(if $(findstring $(lib),$($1_LD_LIBS)),\
$(eval $1_FLAGS += -l$(lib)),\
$(eval $1_MISSING_LIBS += $(lib))\