mirror of https://github.com/deadw00d/AROS.git
Add usesdks support to build_module_simple
This commit is contained in:
parent
8314cc8395
commit
597b72b0f5
|
@ -1928,7 +1928,7 @@ endif
|
|||
cflags="$(CFLAGS)" dflags= \
|
||||
cxxflags="$(CXXFLAGS)" dxxflags= \
|
||||
objdir="$(OBJDIR)" moduledir= stripdebug="$(DEBUG)" \
|
||||
uselibs= usehostlibs= compiler=target funcinstr="$(TARGET_FUNCINSTR)" lto="$(TARGET_LTO)"
|
||||
uselibs= usehostlibs= compiler=target funcinstr="$(TARGET_FUNCINSTR)" lto="$(TARGET_LTO)" usesdks=
|
||||
|
||||
# Define metamake targets and their dependencies
|
||||
#MM %(mmake) : core-linklibs includes-generate-deps
|
||||
|
@ -1983,6 +1983,9 @@ ifeq (%(funcinstr),yes)
|
|||
%(mmake)_FUNCINSTR := yes
|
||||
%(mmake)_CFLAGS := $(strip $(FUNCINSTR_FLAGS) $(%(mmake)_CFLAGS))
|
||||
endif
|
||||
ifneq (%(usesdks),)
|
||||
%(mmake)_CPPFLAGS += $(addprefix -I$(AROS_BUILD_SDKS)/,$(addsuffix /$(AROS_DIR_INCLUDE),%(usesdks)))
|
||||
endif
|
||||
endif
|
||||
ifneq (%(dflags),)
|
||||
%(mmake)_DFLAGS := %(dflags)
|
||||
|
@ -2084,6 +2087,10 @@ else
|
|||
%(mmake)_ERR := %(modname).err
|
||||
endif
|
||||
|
||||
ifneq (%(usesdks),)
|
||||
%(mmake)_LDFLAGS += $(addprefix -L$(AROS_BUILD_SDKS)/,$(addsuffix /$(AROS_DIR_LIB),%(usesdks)))
|
||||
endif
|
||||
|
||||
%rule_linkmodule module="$(%(mmake)_MODULE)" objs="$(%(mmake)_OBJS)" \
|
||||
endobj= err="$(%(mmake)_ERR)" objdir="%(objdir)" \
|
||||
cmd="$(%(mmake)_LINK)" ldopts="$(%(mmake)_LD_OPTS)" ldflags="$(strip $(LDFLAGS) $(%(mmake)_LDFLAGS) $(%(modname)_LDFLAGS))" \
|
||||
|
|
Loading…
Reference in New Issue