1 HOST_EXEEXT
= $(findstring .exe
,$(MAKE
))
2 HOSTCC
= $(LOCAL_TCPREFIX
)gcc
$(LOCAL_TCSUFFIX
)$(HOST_EXEEXT
)
3 HOSTCXX
= $(LOCAL_TCPREFIX
)g
++$(LOCAL_TCSUFFIX
)$(HOST_EXEEXT
)
4 HOSTCPP
= $(LOCAL_TCPREFIX
)cpp$(LOCAL_TCSUFFIX
)$(HOST_EXEEXT
)
7 HOST_CPPFLAGS
= $(INCLUDES
) $(CPPFLAGS
) -DHAVE_MSVCRT
8 HOST_CXXFLAGS
= $(OPTIMIZE
) $(CXX_FEATURES
) $(CXXFLAGS
) -DHAVE_MSVCRT
10 HOST_CPPFLAGS
= $(INCLUDES
) $(CPPFLAGS
)
11 HOST_CXXFLAGS
= $(OPTIMIZE
) $(CXX_FEATURES
) $(CXXFLAGS
)
13 HOST_CFLAGS
= $(OPTIMIZE
) $(C_FEATURES
) $(CFLAGS
)
15 host-cc-flags
= $(DEPFLAGS
) $(HOST_CFLAGS
) $(HOST_CPPFLAGS
)
16 host-cxx-flags
= $(DEPFLAGS
) $(HOST_CXXFLAGS
) $(HOST_CPPFLAGS
)
17 host-ld-libs
= -lm
-lstdc
++
19 $(HOST_OUTPUT_DIR
)/%.o
: %.c |
$(HOST_OUTPUT_DIR
)/%/..
/dirstamp
20 @
$(NQ
)echo
" HOSTCC $@"
21 $(Q
)$(HOSTCC
) -c
$(host-cc-flags
) -o
$@
$^
23 $(HOST_OUTPUT_DIR
)/%.o
: %.
cpp |
$(HOST_OUTPUT_DIR
)/%/..
/dirstamp
24 @
$(NQ
)echo
" HOSTCXX $@"
25 $(Q
)$(HOSTCXX
) -c
$(host-cxx-flags
) -o
$@
$^
27 $(HOST_OUTPUT_DIR
)/%$(HOST_EXEEXT
): $(HOST_OUTPUT_DIR
)/%.o
28 @
$(NQ
)echo
" HOSTLD $@"
29 $(Q
)$(HOSTCC
) $^
$(host-ld-libs
) -o
$@