build: ifdef for mingw/non-mingw builds

This commit is contained in:
Jeff Olson 2013-02-02 12:14:04 -08:00 committed by Kerra Olson
parent 4942fe9c1e
commit a74296a39f

View File

@ -158,16 +158,19 @@ LIBUV_DEPS := $$(wildcard \
endif endif
ifdef CFG_WINDOWSY ifdef CFG_WINDOWSY
LIBUV_OS := 'OS=mingw' $$(LIBUV_LIB_$(1)): $$(LIBUV_DEPS)
$$(Q)$$(MAKE) -C $$(S)src/libuv/ \
builddir_name="$$(CFG_BUILD_DIR)/rt/$(1)/libuv" \
OS=mingw \
V=$$(VERBOSE)
else else
LIBUV_OS :=
endif
$$(LIBUV_LIB_$(1)): $$(LIBUV_DEPS) $$(LIBUV_LIB_$(1)): $$(LIBUV_DEPS)
$$(Q)$$(MAKE) -C $$(S)src/libuv/ \ $$(Q)$$(MAKE) -C $$(S)src/libuv/ \
CFLAGS="$$(LIBUV_FLAGS_$$(HOST_$(1))) $$(SNAP_DEFINES)" \ CFLAGS="$$(LIBUV_FLAGS_$$(HOST_$(1))) $$(SNAP_DEFINES)" \
builddir_name="$$(CFG_BUILD_DIR)/rt/$(1)/libuv" $$(LIBUV_OS) \ builddir_name="$$(CFG_BUILD_DIR)/rt/$(1)/libuv" \
V=$$(VERBOSE) V=$$(VERBOSE)
endif
# These could go in rt.mk or rustllvm.mk, they're needed for both. # These could go in rt.mk or rustllvm.mk, they're needed for both.