Link Here
|
13 |
|
13 |
|
14 |
ifneq (,$($(lib)-static-only-routines)) |
14 |
ifneq (,$($(lib)-static-only-routines)) |
15 |
ifneq (,$(filter yes%,$(build-shared)$($(lib).so-version))) |
15 |
ifneq (,$(filter yes%,$(build-shared)$($(lib).so-version))) |
16 |
object-suffixes-$(lib) += $(filter-out $($(lib)-inhibit-o),.oS) |
16 |
object-suffixes-$(lib) += $(filter-out $($(lib)-inhibit-o),.ons) |
17 |
endif |
17 |
endif |
18 |
endif |
18 |
endif |
19 |
|
19 |
|
Link Here
|
29 |
|
29 |
|
30 |
# Add each flavor of library to the lists of things to build and install. |
30 |
# Add each flavor of library to the lists of things to build and install. |
31 |
install-lib += $(foreach o,$(object-suffixes-$(lib)),$(lib:lib%=$(libtype$o))) |
31 |
install-lib += $(foreach o,$(object-suffixes-$(lib)),$(lib:lib%=$(libtype$o))) |
32 |
extra-objs += $(foreach o,$(filter-out .os .oS,$(object-suffixes-$(lib))),\ |
32 |
extra-objs += $(foreach o,$(filter-out .os .ons,$(object-suffixes-$(lib))),\ |
33 |
$(patsubst %,%$o,$(filter-out \ |
33 |
$(patsubst %,%$o,$(filter-out \ |
34 |
$($(lib)-shared-only-routines),\ |
34 |
$($(lib)-shared-only-routines),\ |
35 |
$(all-$(lib)-routines)))) |
35 |
$(all-$(lib)-routines)))) |
Link Here
|
37 |
extra-objs += $(patsubst %,%.os,$(filter-out $($(lib)-static-only-routines),\ |
37 |
extra-objs += $(patsubst %,%.os,$(filter-out $($(lib)-static-only-routines),\ |
38 |
$(all-$(lib)-routines))) |
38 |
$(all-$(lib)-routines))) |
39 |
endif |
39 |
endif |
40 |
ifneq (,$(filter .oS,$(object-suffixes-$(lib)))) |
40 |
ifneq (,$(filter .ons,$(object-suffixes-$(lib)))) |
41 |
extra-objs += $(patsubst %,%.oS,$(filter $($(lib)-static-only-routines),\ |
41 |
extra-objs += $(patsubst %,%.ons,$(filter $($(lib)-static-only-routines),\ |
42 |
$(all-$(lib)-routines))) |
42 |
$(all-$(lib)-routines))) |
43 |
endif |
43 |
endif |
44 |
alltypes-$(lib) := $(foreach o,$(object-suffixes-$(lib)),\ |
44 |
alltypes-$(lib) := $(foreach o,$(object-suffixes-$(lib)),\ |
Link Here
|
62 |
|
62 |
|
63 |
|
63 |
|
64 |
# Use o-iterator.mk to generate a rule for each flavor of library. |
64 |
# Use o-iterator.mk to generate a rule for each flavor of library. |
65 |
ifneq (,$(filter-out .os .oS,$(object-suffixes-$(lib)))) |
65 |
ifneq (,$(filter-out .os .ons,$(object-suffixes-$(lib)))) |
66 |
define o-iterator-doit |
66 |
define o-iterator-doit |
67 |
$(objpfx)$(patsubst %,$(libtype$o),$(lib:lib%=%)): \ |
67 |
$(objpfx)$(patsubst %,$(libtype$o),$(lib:lib%=%)): \ |
68 |
$(patsubst %,$(objpfx)%$o,\ |
68 |
$(patsubst %,$(objpfx)%$o,\ |
Link Here
|
70 |
$(all-$(lib)-routines))); \ |
70 |
$(all-$(lib)-routines))); \ |
71 |
$$(build-extra-lib) |
71 |
$$(build-extra-lib) |
72 |
endef |
72 |
endef |
73 |
object-suffixes-left = $(filter-out .os .oS,$(object-suffixes-$(lib))) |
73 |
object-suffixes-left = $(filter-out .os .ons,$(object-suffixes-$(lib))) |
74 |
include $(patsubst %,$(..)o-iterator.mk,$(object-suffixes-left)) |
74 |
include $(patsubst %,$(..)o-iterator.mk,$(object-suffixes-left)) |
75 |
endif |
75 |
endif |
76 |
|
76 |
|
Link Here
|
82 |
$(build-extra-lib) |
82 |
$(build-extra-lib) |
83 |
endif |
83 |
endif |
84 |
|
84 |
|
85 |
ifneq (,$(filter .oS,$(object-suffixes-$(lib)))) |
85 |
ifneq (,$(filter .ons,$(object-suffixes-$(lib)))) |
86 |
$(objpfx)$(patsubst %,$(libtype.oS),$(lib:lib%=%)): \ |
86 |
$(objpfx)$(patsubst %,$(libtype.ons),$(lib:lib%=%)): \ |
87 |
$(patsubst %,$(objpfx)%.oS,\ |
87 |
$(patsubst %,$(objpfx)%.ons,\ |
88 |
$(filter $($(lib)-static-only-routines),\ |
88 |
$(filter $($(lib)-static-only-routines),\ |
89 |
$(all-$(lib)-routines))) |
89 |
$(all-$(lib)-routines))) |
90 |
$(build-extra-lib) |
90 |
$(build-extra-lib) |