2014-02-07 03:08:44 +01:00
|
|
|
|
|
|
|
include $(BUILD_SYSTEM)/clang/x86.mk
|
2014-04-17 19:03:35 +02:00
|
|
|
include $(BUILD_SYSTEM)/clang/HOST_x86_common.mk
|
2014-02-07 03:08:44 +01:00
|
|
|
|
|
|
|
ifeq ($(HOST_OS),linux)
|
|
|
|
CLANG_CONFIG_x86_HOST_TRIPLE := i686-linux-gnu
|
2014-03-20 21:48:35 +01:00
|
|
|
CLANG_CONFIG_x86_HOST_COMBO_EXTRA_ASFLAGS := $(CLANG_CONFIG_x86_LINUX_HOST_EXTRA_ASFLAGS)
|
|
|
|
CLANG_CONFIG_x86_HOST_COMBO_EXTRA_CFLAGS := $(CLANG_CONFIG_x86_LINUX_HOST_EXTRA_CFLAGS)
|
|
|
|
CLANG_CONFIG_x86_HOST_COMBO_EXTRA_CPPFLAGS := $(CLANG_CONFIG_x86_LINUX_HOST_EXTRA_CPPFLAGS)
|
|
|
|
CLANG_CONFIG_x86_HOST_COMBO_EXTRA_LDFLAGS := $(CLANG_CONFIG_x86_LINUX_HOST_EXTRA_LDFLAGS)
|
2014-02-07 03:08:44 +01:00
|
|
|
endif
|
|
|
|
ifeq ($(HOST_OS),darwin)
|
|
|
|
CLANG_CONFIG_x86_HOST_TRIPLE := i686-apple-darwin
|
2014-04-04 23:38:29 +02:00
|
|
|
CLANG_CONFIG_x86_HOST_COMBO_EXTRA_ASFLAGS := $(CLANG_CONFIG_x86_DARWIN_HOST_EXTRA_ASFLAGS)
|
|
|
|
CLANG_CONFIG_x86_HOST_COMBO_EXTRA_CFLAGS := $(CLANG_CONFIG_x86_DARWIN_HOST_EXTRA_CFLAGS)
|
|
|
|
CLANG_CONFIG_x86_HOST_COMBO_EXTRA_CPPFLAGS := $(CLANG_CONFIG_x86_DARWIN_HOST_EXTRA_CPPFLAGS)
|
|
|
|
CLANG_CONFIG_x86_HOST_COMBO_EXTRA_LDFLAGS := $(CLANG_CONFIG_x86_DARWIN_HOST_EXTRA_LDFLAGS)
|
2014-02-07 03:08:44 +01:00
|
|
|
endif
|
|
|
|
ifeq ($(HOST_OS),windows)
|
|
|
|
CLANG_CONFIG_x86_HOST_TRIPLE := i686-pc-mingw32
|
|
|
|
endif
|
|
|
|
|
|
|
|
CLANG_CONFIG_x86_HOST_EXTRA_ASFLAGS := \
|
|
|
|
$(CLANG_CONFIG_EXTRA_ASFLAGS) \
|
|
|
|
$(CLANG_CONFIG_HOST_EXTRA_ASFLAGS) \
|
|
|
|
$(CLANG_CONFIG_x86_EXTRA_ASFLAGS) \
|
2014-03-20 21:48:35 +01:00
|
|
|
$(CLANG_CONFIG_x86_HOST_COMBO_EXTRA_ASFLAGS) \
|
|
|
|
-target $(CLANG_CONFIG_x86_HOST_TRIPLE)
|
2014-02-07 03:08:44 +01:00
|
|
|
|
|
|
|
CLANG_CONFIG_x86_HOST_EXTRA_CFLAGS := \
|
|
|
|
$(CLANG_CONFIG_EXTRA_CFLAGS) \
|
|
|
|
$(CLANG_CONFIG_HOST_EXTRA_CFLAGS) \
|
|
|
|
$(CLANG_CONFIG_x86_EXTRA_CFLAGS) \
|
2014-03-20 21:48:35 +01:00
|
|
|
$(CLANG_CONFIG_x86_HOST_COMBO_EXTRA_CFLAGS) \
|
2014-02-07 03:08:44 +01:00
|
|
|
$(CLANG_CONFIG_x86_HOST_EXTRA_ASFLAGS)
|
|
|
|
|
|
|
|
CLANG_CONFIG_x86_HOST_EXTRA_CPPFLAGS := \
|
|
|
|
$(CLANG_CONFIG_EXTRA_CPPFLAGS) \
|
|
|
|
$(CLANG_CONFIG_HOST_EXTRA_CPPFLAGS) \
|
|
|
|
$(CLANG_CONFIG_x86_EXTRA_CPPFLAGS) \
|
2014-03-20 21:48:35 +01:00
|
|
|
$(CLANG_CONFIG_x86_HOST_COMBO_EXTRA_CPPFLAGS) \
|
|
|
|
-target $(CLANG_CONFIG_x86_HOST_TRIPLE)
|
2014-02-07 03:08:44 +01:00
|
|
|
|
|
|
|
CLANG_CONFIG_x86_HOST_EXTRA_LDFLAGS := \
|
|
|
|
$(CLANG_CONFIG_EXTRA_LDFLAGS) \
|
|
|
|
$(CLANG_CONFIG_HOST_EXTRA_LDFLAGS) \
|
|
|
|
$(CLANG_CONFIG_x86_EXTRA_LDFLAGS) \
|
2014-03-20 21:48:35 +01:00
|
|
|
$(CLANG_CONFIG_x86_HOST_COMBO_EXTRA_LDFLAGS) \
|
|
|
|
-target $(CLANG_CONFIG_x86_HOST_TRIPLE)
|
2014-02-07 03:08:44 +01:00
|
|
|
|
2014-04-17 19:03:35 +02:00
|
|
|
define $(clang_2nd_arch_prefix)convert-to-host-clang-flags
|
2014-02-07 03:08:44 +01:00
|
|
|
$(strip \
|
|
|
|
$(call subst-clang-incompatible-x86-flags,\
|
|
|
|
$(filter-out $(CLANG_CONFIG_x86_UNKNOWN_CFLAGS),\
|
|
|
|
$(1))))
|
|
|
|
endef
|
|
|
|
|
2014-04-17 19:03:35 +02:00
|
|
|
$(clang_2nd_arch_prefix)CLANG_HOST_GLOBAL_CFLAGS := \
|
|
|
|
$(call $(clang_2nd_arch_prefix)convert-to-host-clang-flags,$($(clang_2nd_arch_prefix)HOST_GLOBAL_CFLAGS)) \
|
2014-02-07 03:08:44 +01:00
|
|
|
$(CLANG_CONFIG_x86_HOST_EXTRA_CFLAGS)
|
|
|
|
|
2014-04-17 19:03:35 +02:00
|
|
|
$(clang_2nd_arch_prefix)CLANG_HOST_GLOBAL_CPPFLAGS := \
|
|
|
|
$(call $(clang_2nd_arch_prefix)convert-to-host-clang-flags,$($(clang_2nd_arch_prefix)HOST_GLOBAL_CPPFLAGS)) \
|
2014-02-07 03:08:44 +01:00
|
|
|
$(CLANG_CONFIG_x86_HOST_EXTRA_CPPFLAGS)
|
|
|
|
|
2014-04-17 19:03:35 +02:00
|
|
|
$(clang_2nd_arch_prefix)CLANG_HOST_GLOBAL_LDFLAGS := \
|
|
|
|
$(call $(clang_2nd_arch_prefix)convert-to-host-clang-flags,$($(clang_2nd_arch_prefix)HOST_GLOBAL_LDFLAGS)) \
|
2014-02-07 03:08:44 +01:00
|
|
|
$(CLANG_CONFIG_x86_HOST_EXTRA_LDFLAGS)
|