2011-11-02 00:50:47 +01:00
|
|
|
# This is a procedure to define the targets for building
|
2013-05-04 01:25:04 +02:00
|
|
|
# the runtime.
|
2011-11-02 00:50:47 +01:00
|
|
|
#
|
|
|
|
# Argument 1 is the target triple.
|
|
|
|
#
|
|
|
|
# This is not really the right place to explain this, but
|
|
|
|
# for those of you who are not Makefile gurus, let me briefly
|
2013-05-04 01:25:04 +02:00
|
|
|
# cover the $ expansion system in use here, because it
|
2011-11-02 00:50:47 +01:00
|
|
|
# confused me for a while! The variable DEF_RUNTIME_TARGETS
|
|
|
|
# will be defined once and then expanded with different
|
|
|
|
# values substituted for $(1) each time it is called.
|
2013-05-04 01:25:04 +02:00
|
|
|
# That resulting text is then eval'd.
|
2011-11-02 00:50:47 +01:00
|
|
|
#
|
|
|
|
# For most variables, you could use a single $ sign. The result
|
|
|
|
# is that the substitution would occur when the CALL occurs,
|
|
|
|
# I believe. The problem is that the automatic variables $< and $@
|
|
|
|
# need to be expanded-per-rule. Therefore, for those variables at
|
2013-05-04 01:25:04 +02:00
|
|
|
# least, you need $$< and $$@ in the variable text. This way, after
|
2011-11-02 00:50:47 +01:00
|
|
|
# the CALL substitution occurs, you will have $< and $@. This text
|
|
|
|
# will then be evaluated, and all will work as you like.
|
|
|
|
#
|
|
|
|
# Reader beware, this explanantion could be wrong, but it seems to
|
2013-05-04 01:25:04 +02:00
|
|
|
# fit the experimental data (i.e., I was able to get the system
|
|
|
|
# working under these assumptions).
|
2011-11-02 00:50:47 +01:00
|
|
|
|
2012-03-27 00:54:22 +02:00
|
|
|
# when we're doing a snapshot build, we intentionally degrade as many
|
|
|
|
# features in libuv and the runtime as possible, to ease portability.
|
|
|
|
|
|
|
|
SNAP_DEFINES:=
|
|
|
|
ifneq ($(strip $(findstring snap,$(MAKECMDGOALS))),)
|
|
|
|
SNAP_DEFINES=-DRUST_SNAPSHOT
|
|
|
|
endif
|
|
|
|
|
2013-08-29 02:01:44 +02:00
|
|
|
define DEF_LIBUV_ARCH_VAR
|
|
|
|
LIBUV_ARCH_$(1) = $$(subst i386,ia32,$$(subst x86_64,x64,$$(HOST_$(1))))
|
|
|
|
endef
|
2013-10-21 11:18:21 +02:00
|
|
|
$(foreach t,$(CFG_TARGET),$(eval $(call DEF_LIBUV_ARCH_VAR,$(t))))
|
2013-08-29 02:01:44 +02:00
|
|
|
|
2013-10-08 18:20:17 +02:00
|
|
|
ifdef CFG_ENABLE_FAST_MAKE
|
|
|
|
LIBUV_DEPS := $(S)/.gitmodules
|
|
|
|
else
|
|
|
|
LIBUV_DEPS := $(wildcard \
|
|
|
|
$(S)src/libuv/* \
|
|
|
|
$(S)src/libuv/*/* \
|
|
|
|
$(S)src/libuv/*/*/* \
|
|
|
|
$(S)src/libuv/*/*/*/*)
|
|
|
|
endif
|
|
|
|
|
|
|
|
LIBUV_NO_LOAD = run-benchmarks.target.mk run-tests.target.mk \
|
|
|
|
uv_dtrace_header.target.mk uv_dtrace_provider.target.mk
|
|
|
|
|
|
|
|
export PYTHONPATH := $(PYTHONPATH):$(S)src/gyp/pylib
|
|
|
|
|
2011-11-02 00:50:47 +01:00
|
|
|
define DEF_RUNTIME_TARGETS
|
|
|
|
|
2011-05-01 22:18:52 +02:00
|
|
|
######################################################################
|
|
|
|
# Runtime (C++) library variables
|
|
|
|
######################################################################
|
|
|
|
|
2013-05-24 08:49:20 +02:00
|
|
|
# $(1) is the target triple
|
|
|
|
# $(2) is the stage number
|
|
|
|
|
|
|
|
RUNTIME_CFLAGS_$(1)_$(2) = -D_RUST_STAGE$(2)
|
|
|
|
RUNTIME_CXXFLAGS_$(1)_$(2) = -D_RUST_STAGE$(2)
|
|
|
|
|
2013-06-07 02:27:22 +02:00
|
|
|
# XXX: Like with --cfg stage0, pass the defines for stage1 to the stage0
|
|
|
|
# build of non-build-triple host compilers
|
|
|
|
ifeq ($(2),0)
|
2013-10-21 11:18:21 +02:00
|
|
|
ifneq ($(strip $(CFG_BUILD)),$(strip $(1)))
|
2013-06-07 02:27:22 +02:00
|
|
|
RUNTIME_CFLAGS_$(1)_$(2) = -D_RUST_STAGE1
|
|
|
|
RUNTIME_CXXFLAGS_$(1)_$(2) = -D_RUST_STAGE1
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
2013-11-14 19:04:55 +01:00
|
|
|
RUNTIME_CS_$(1)_$(2) := \
|
|
|
|
rt/rust_builtin.c \
|
|
|
|
rt/miniz.c \
|
|
|
|
rt/rust_android_dummy.c \
|
|
|
|
rt/rust_test_helpers.c
|
|
|
|
|
2013-12-16 02:17:07 +01:00
|
|
|
RUNTIME_LL_$(1)_$(2) := \
|
|
|
|
rt/rust_try.ll
|
|
|
|
|
2013-11-14 19:04:55 +01:00
|
|
|
# stage0 remove this after the next snapshot
|
|
|
|
%.cpp:
|
|
|
|
@touch tmp/foo.o
|
2012-10-30 02:08:36 +01:00
|
|
|
|
2013-05-24 08:49:20 +02:00
|
|
|
RUNTIME_S_$(1)_$(2) := rt/arch/$$(HOST_$(1))/_context.S \
|
|
|
|
rt/arch/$$(HOST_$(1))/record_sp.S
|
2011-05-24 23:00:45 +02:00
|
|
|
|
2013-09-04 09:45:01 +02:00
|
|
|
RT_BUILD_DIR_$(1)_$(2) := $$(RT_OUTPUT_DIR_$(1))/stage$(2)
|
|
|
|
|
|
|
|
RUNTIME_DEF_$(1)_$(2) := $$(RT_OUTPUT_DIR_$(1))/rustrt$$(CFG_DEF_SUFFIX_$(1))
|
2013-05-24 08:49:20 +02:00
|
|
|
RUNTIME_INCS_$(1)_$(2) := -I $$(S)src/rt -I $$(S)src/rt/isaac -I $$(S)src/rt/uthash \
|
2013-10-31 07:57:27 +01:00
|
|
|
-I $$(S)src/rt/arch/$$(HOST_$(1))
|
2013-12-16 02:17:07 +01:00
|
|
|
RUNTIME_OBJS_$(1)_$(2) := \
|
2013-09-04 09:45:01 +02:00
|
|
|
$$(RUNTIME_CS_$(1)_$(2):rt/%.c=$$(RT_BUILD_DIR_$(1)_$(2))/%.o) \
|
2013-12-16 02:17:07 +01:00
|
|
|
$$(RUNTIME_S_$(1)_$(2):rt/%.S=$$(RT_BUILD_DIR_$(1)_$(2))/%.o) \
|
|
|
|
$$(RUNTIME_LL_$(1)_$(2):rt/%.ll=$$(RT_BUILD_DIR_$(1)_$(2))/%.o)
|
|
|
|
|
2013-05-24 08:49:20 +02:00
|
|
|
ALL_OBJ_FILES += $$(RUNTIME_OBJS_$(1)_$(2))
|
2012-06-14 20:07:19 +02:00
|
|
|
|
2013-10-17 10:40:33 +02:00
|
|
|
MORESTACK_OBJS_$(1)_$(2) := $$(RT_BUILD_DIR_$(1)_$(2))/arch/$$(HOST_$(1))/morestack.o
|
2013-05-24 08:49:20 +02:00
|
|
|
ALL_OBJ_FILES += $$(MORESTACK_OBJS_$(1)_$(2))
|
2012-06-14 20:07:19 +02:00
|
|
|
|
2013-09-04 09:45:01 +02:00
|
|
|
$$(RT_BUILD_DIR_$(1)_$(2))/%.o: rt/%.c $$(MKFILE_DEPS)
|
2011-11-02 00:50:47 +01:00
|
|
|
@$$(call E, compile: $$@)
|
2013-05-24 08:49:20 +02:00
|
|
|
$$(Q)$$(call CFG_COMPILE_C_$(1), $$@, $$(RUNTIME_INCS_$(1)_$(2)) \
|
|
|
|
$$(SNAP_DEFINES) $$(RUNTIME_CFLAGS_$(1)_$(2))) $$<
|
2011-11-02 00:50:47 +01:00
|
|
|
|
2013-09-04 09:45:01 +02:00
|
|
|
$$(RT_BUILD_DIR_$(1)_$(2))/%.o: rt/%.S $$(MKFILE_DEPS) \
|
2013-10-21 11:18:21 +02:00
|
|
|
$$(LLVM_CONFIG_$$(CFG_BUILD))
|
2011-11-02 00:50:47 +01:00
|
|
|
@$$(call E, compile: $$@)
|
2011-12-10 01:02:50 +01:00
|
|
|
$$(Q)$$(call CFG_ASSEMBLE_$(1),$$@,$$<)
|
2011-11-02 00:50:47 +01:00
|
|
|
|
2013-12-16 02:17:07 +01:00
|
|
|
$$(RT_BUILD_DIR_$(1)_$(2))/%.o: rt/%.ll $$(MKFILE_DEPS) \
|
|
|
|
$$(LLVM_CONFIG_$$(CFG_BUILD))
|
|
|
|
@$$(call E, compile: $$@)
|
|
|
|
$$(Q)$(LLC_$(CFG_BUILD)) -filetype=obj -mtriple=$(1) -relocation-model=pic -o $$@ $$<
|
|
|
|
|
2013-10-17 10:40:33 +02:00
|
|
|
$$(RT_BUILD_DIR_$(1)_$(2))/arch/$$(HOST_$(1))/libmorestack.a: $$(MORESTACK_OBJS_$(1)_$(2))
|
2011-11-29 02:23:13 +01:00
|
|
|
@$$(call E, link: $$@)
|
2013-10-17 10:40:33 +02:00
|
|
|
$$(Q)$(AR_$(1)) rcs $$@ $$^
|
2011-11-29 02:23:13 +01:00
|
|
|
|
2013-11-16 11:02:07 +01:00
|
|
|
$$(RT_BUILD_DIR_$(1)_$(2))/$(CFG_RUNTIME_$(1)): $$(RUNTIME_OBJS_$(1)_$(2)) $$(MKFILE_DEPS)
|
2011-11-02 00:50:47 +01:00
|
|
|
@$$(call E, link: $$@)
|
2013-11-16 11:02:07 +01:00
|
|
|
$$(Q)$(AR_$(1)) rcs $$@ $$(RUNTIME_OBJS_$(1)_$(2))
|
2011-06-14 17:28:10 +02:00
|
|
|
|
2013-10-08 18:20:17 +02:00
|
|
|
# These could go in rt.mk or rustllvm.mk, they're needed for both.
|
2012-02-10 21:07:01 +01:00
|
|
|
|
2013-10-23 00:13:18 +02:00
|
|
|
# This regexp has a single $$ escaped twice
|
2013-10-08 18:20:17 +02:00
|
|
|
$(1)/%.bsd.def: %.def.in $$(MKFILE_DEPS)
|
|
|
|
@$$(call E, def: $$@)
|
|
|
|
$$(Q)echo "{" > $$@
|
|
|
|
$$(Q)sed 's/.$$$$/&;/' $$< >> $$@
|
|
|
|
$$(Q)echo "};" >> $$@
|
|
|
|
|
|
|
|
$(1)/%.linux.def: %.def.in $$(MKFILE_DEPS)
|
|
|
|
@$$(call E, def: $$@)
|
|
|
|
$$(Q)echo "{" > $$@
|
|
|
|
$$(Q)sed 's/.$$$$/&;/' $$< >> $$@
|
|
|
|
$$(Q)echo "};" >> $$@
|
|
|
|
|
|
|
|
$(1)/%.darwin.def: %.def.in $$(MKFILE_DEPS)
|
|
|
|
@$$(call E, def: $$@)
|
|
|
|
$$(Q)sed 's/^./_&/' $$< > $$@
|
|
|
|
|
|
|
|
$(1)/%.android.def: %.def.in $$(MKFILE_DEPS)
|
|
|
|
@$$(call E, def: $$@)
|
|
|
|
$$(Q)echo "{" > $$@
|
|
|
|
$$(Q)sed 's/.$$$$/&;/' $$< >> $$@
|
|
|
|
$$(Q)echo "};" >> $$@
|
|
|
|
|
|
|
|
$(1)/%.mingw32.def: %.def.in $$(MKFILE_DEPS)
|
|
|
|
@$$(call E, def: $$@)
|
|
|
|
$$(Q)echo LIBRARY $$* > $$@
|
|
|
|
$$(Q)echo EXPORTS >> $$@
|
|
|
|
$$(Q)sed 's/^./ &/' $$< >> $$@
|
|
|
|
|
|
|
|
endef
|
|
|
|
|
|
|
|
|
|
|
|
######################################################################
|
|
|
|
# Runtime third party targets (libuv, jemalloc, etc.)
|
|
|
|
#
|
|
|
|
# These targets do not need to be built once per stage, so these
|
|
|
|
# rules just build them once and then we're done with them.
|
|
|
|
######################################################################
|
|
|
|
|
|
|
|
define DEF_THIRD_PARTY_TARGETS
|
|
|
|
|
|
|
|
# $(1) is the target triple
|
|
|
|
|
|
|
|
RT_OUTPUT_DIR_$(1) := $(1)/rt
|
|
|
|
|
|
|
|
ifeq ($$(CFG_WINDOWSY_$(1)), 1)
|
|
|
|
LIBUV_OSTYPE_$(1) := win
|
|
|
|
else ifeq ($(OSTYPE_$(1)), apple-darwin)
|
|
|
|
LIBUV_OSTYPE_$(1) := mac
|
|
|
|
else ifeq ($(OSTYPE_$(1)), unknown-freebsd)
|
|
|
|
LIBUV_OSTYPE_$(1) := freebsd
|
|
|
|
else ifeq ($(OSTYPE_$(1)), linux-androideabi)
|
|
|
|
LIBUV_OSTYPE_$(1) := android
|
|
|
|
LIBUV_ARGS_$(1) := PLATFORM=android host=android OS=linux
|
2012-02-10 21:07:01 +01:00
|
|
|
else
|
2013-10-08 18:20:17 +02:00
|
|
|
LIBUV_OSTYPE_$(1) := linux
|
2012-02-10 21:07:01 +01:00
|
|
|
endif
|
|
|
|
|
2013-10-08 18:20:17 +02:00
|
|
|
LIBUV_NAME_$(1) := $$(call CFG_STATIC_LIB_NAME_$(1),uv)
|
2013-12-19 08:44:10 +01:00
|
|
|
LIBUV_DIR_$(1) := $$(RT_OUTPUT_DIR_$(1))/libuv
|
|
|
|
LIBUV_LIB_$(1) := $$(LIBUV_DIR_$(1))/$$(LIBUV_NAME_$(1))
|
2013-08-19 02:11:45 +02:00
|
|
|
|
2013-10-08 18:20:17 +02:00
|
|
|
LIBUV_MAKEFILE_$(1) := $$(CFG_BUILD_DIR)$$(RT_OUTPUT_DIR_$(1))/libuv/Makefile
|
2013-08-19 02:11:45 +02:00
|
|
|
|
2013-12-19 08:44:10 +01:00
|
|
|
LIBUV_STAMP_$(1) = $$(LIBUV_DIR_$(1))/libuv-auto-clean-stamp
|
|
|
|
|
|
|
|
$$(LIBUV_STAMP_$(1)): $(S)src/rt/libuv-auto-clean-trigger
|
|
|
|
$$(Q)rm -rf $$(LIBUV_DIR_$(1))
|
|
|
|
$$(Q)mkdir -p $$(@D)
|
|
|
|
touch $$@
|
|
|
|
|
2013-11-23 03:21:37 +01:00
|
|
|
# libuv triggers a few warnings on some platforms
|
|
|
|
LIBUV_CFLAGS_$(1) := $(subst -Werror,,$(CFG_GCCISH_CFLAGS_$(1)))
|
|
|
|
|
2013-12-19 08:44:10 +01:00
|
|
|
$$(LIBUV_MAKEFILE_$(1)): $$(LIBUV_DEPS) $$(MKFILE_DEPS) $$(LIBUV_STAMP_$(1))
|
2013-08-19 02:11:45 +02:00
|
|
|
(cd $(S)src/libuv/ && \
|
2013-11-08 00:26:47 +01:00
|
|
|
$$(CFG_PYTHON) ./gyp_uv.py -f make -Dtarget_arch=$$(LIBUV_ARCH_$(1)) \
|
2013-10-08 18:20:17 +02:00
|
|
|
-D ninja \
|
|
|
|
-DOS=$$(LIBUV_OSTYPE_$(1)) \
|
2013-08-19 02:11:45 +02:00
|
|
|
-Goutput_dir=$$(@D) --generator-output $$(@D))
|
2013-12-19 08:44:10 +01:00
|
|
|
touch $$@
|
2013-08-19 02:11:45 +02:00
|
|
|
|
2013-10-08 18:20:17 +02:00
|
|
|
# Windows has a completely different build system for libuv because of mingw. In
|
|
|
|
# theory when we support msvc then we should be using gyp's msvc output instead
|
|
|
|
# of mingw's makefile for windows
|
2013-03-02 13:25:12 +01:00
|
|
|
ifdef CFG_WINDOWSY_$(1)
|
2013-12-19 08:44:10 +01:00
|
|
|
$$(LIBUV_LIB_$(1)): $$(LIBUV_DEPS) $$(MKFILE_DEPS)
|
2013-08-19 02:11:45 +02:00
|
|
|
$$(Q)$$(MAKE) -C $$(S)src/libuv -f Makefile.mingw \
|
2013-11-23 03:21:37 +01:00
|
|
|
LDFLAGS="$$(CFG_GCCISH_LINK_FLAGS_$(1))" \
|
|
|
|
CC="$$(CC_$(1)) $$(LIBUV_CFLAGS_$(1)) $$(SNAP_DEFINES)" \
|
|
|
|
CXX="$$(CXX_$(1))" \
|
2013-08-19 02:11:45 +02:00
|
|
|
AR="$$(AR_$(1))" \
|
2013-02-02 21:14:04 +01:00
|
|
|
V=$$(VERBOSE)
|
2013-08-19 02:11:45 +02:00
|
|
|
$$(Q)cp $$(S)src/libuv/libuv.a $$@
|
2013-02-27 06:53:35 +01:00
|
|
|
else
|
2013-12-19 08:44:10 +01:00
|
|
|
$$(LIBUV_LIB_$(1)): $$(LIBUV_DIR_$(1))/Release/libuv.a $$(MKFILE_DEPS)
|
|
|
|
$$(Q)ln -f $$< $$@
|
|
|
|
$$(LIBUV_DIR_$(1))/Release/libuv.a: $$(LIBUV_DEPS) $$(LIBUV_MAKEFILE_$(1)) \
|
|
|
|
$$(MKFILE_DEPS)
|
|
|
|
$$(Q)$$(MAKE) -C $$(LIBUV_DIR_$(1)) \
|
2013-11-23 03:21:37 +01:00
|
|
|
CFLAGS="$$(LIBUV_CFLAGS_$(1)) $$(SNAP_DEFINES)" \
|
2013-11-20 12:00:49 +01:00
|
|
|
LDFLAGS="$$(CFG_GCCISH_LINK_FLAGS_$(1))" \
|
2013-03-19 06:32:03 +01:00
|
|
|
CC="$$(CC_$(1))" \
|
|
|
|
CXX="$$(CXX_$(1))" \
|
|
|
|
AR="$$(AR_$(1))" \
|
2013-10-08 18:20:17 +02:00
|
|
|
$$(LIBUV_ARGS_$(1)) \
|
2013-08-19 02:11:45 +02:00
|
|
|
BUILDTYPE=Release \
|
|
|
|
NO_LOAD="$$(LIBUV_NO_LOAD)" \
|
2013-02-02 16:40:40 +01:00
|
|
|
V=$$(VERBOSE)
|
2013-02-02 21:14:04 +01:00
|
|
|
endif
|
2013-10-31 07:22:04 +01:00
|
|
|
|
2013-10-31 07:57:27 +01:00
|
|
|
# libuv support functionality (extra C/C++ that we need to use libuv)
|
|
|
|
|
|
|
|
UV_SUPPORT_NAME_$(1) := $$(call CFG_STATIC_LIB_NAME_$(1),uv_support)
|
|
|
|
UV_SUPPORT_DIR_$(1) := $$(RT_OUTPUT_DIR_$(1))/uv_support
|
|
|
|
UV_SUPPORT_LIB_$(1) := $$(UV_SUPPORT_DIR_$(1))/$$(UV_SUPPORT_NAME_$(1))
|
2013-11-14 19:04:55 +01:00
|
|
|
UV_SUPPORT_CS_$(1) := rt/rust_uv.c
|
|
|
|
UV_SUPPORT_OBJS_$(1) := $$(UV_SUPPORT_CS_$(1):rt/%.c=$$(UV_SUPPORT_DIR_$(1))/%.o)
|
2013-10-31 07:57:27 +01:00
|
|
|
|
2013-11-14 19:04:55 +01:00
|
|
|
$$(UV_SUPPORT_DIR_$(1))/%.o: rt/%.c
|
2013-10-31 07:57:27 +01:00
|
|
|
@$$(call E, compile: $$@)
|
|
|
|
@mkdir -p $$(@D)
|
2013-11-14 19:04:55 +01:00
|
|
|
$$(Q)$$(call CFG_COMPILE_C_$(1), $$@, \
|
2013-10-31 07:57:27 +01:00
|
|
|
-I $$(S)src/libuv/include \
|
|
|
|
$$(RUNTIME_CFLAGS_$(1))) $$<
|
|
|
|
|
|
|
|
$$(UV_SUPPORT_LIB_$(1)): $$(UV_SUPPORT_OBJS_$(1))
|
|
|
|
@$$(call E, link: $$@)
|
|
|
|
$$(Q)$$(AR_$(1)) rcs $$@ $$^
|
|
|
|
|
|
|
|
# sundown markdown library (used by librustdoc)
|
|
|
|
|
2013-10-31 07:22:04 +01:00
|
|
|
SUNDOWN_NAME_$(1) := $$(call CFG_STATIC_LIB_NAME_$(1),sundown)
|
|
|
|
SUNDOWN_DIR_$(1) := $$(RT_OUTPUT_DIR_$(1))/sundown
|
|
|
|
SUNDOWN_LIB_$(1) := $$(SUNDOWN_DIR_$(1))/$$(SUNDOWN_NAME_$(1))
|
|
|
|
|
|
|
|
SUNDOWN_CS_$(1) := rt/sundown/src/autolink.c \
|
|
|
|
rt/sundown/src/buffer.c \
|
|
|
|
rt/sundown/src/stack.c \
|
|
|
|
rt/sundown/src/markdown.c \
|
|
|
|
rt/sundown/html/houdini_href_e.c \
|
|
|
|
rt/sundown/html/houdini_html_e.c \
|
|
|
|
rt/sundown/html/html_smartypants.c \
|
|
|
|
rt/sundown/html/html.c
|
|
|
|
|
|
|
|
SUNDOWN_OBJS_$(1) := $$(SUNDOWN_CS_$(1):rt/%.c=$$(SUNDOWN_DIR_$(1))/%.o)
|
|
|
|
|
|
|
|
$$(SUNDOWN_DIR_$(1))/%.o: rt/%.c
|
|
|
|
@$$(call E, compile: $$@)
|
|
|
|
@mkdir -p $$(@D)
|
|
|
|
$$(Q)$$(call CFG_COMPILE_C_$(1), $$@, \
|
|
|
|
-I $$(S)src/rt/sundown/src -I $$(S)src/rt/sundown/html \
|
|
|
|
$$(RUNTIME_CFLAGS_$(1))) $$<
|
|
|
|
|
|
|
|
$$(SUNDOWN_LIB_$(1)): $$(SUNDOWN_OBJS_$(1))
|
|
|
|
@$$(call E, link: $$@)
|
|
|
|
$$(Q)$$(AR_$(1)) rcs $$@ $$^
|
|
|
|
|
2011-11-02 00:50:47 +01:00
|
|
|
endef
|
|
|
|
|
2013-10-08 18:20:17 +02:00
|
|
|
# Instantiate template for all stages/targets
|
2013-10-21 11:18:21 +02:00
|
|
|
$(foreach target,$(CFG_TARGET), \
|
2013-10-08 18:20:17 +02:00
|
|
|
$(eval $(call DEF_THIRD_PARTY_TARGETS,$(target))))
|
2013-05-24 08:49:20 +02:00
|
|
|
$(foreach stage,$(STAGES), \
|
2013-10-21 11:18:21 +02:00
|
|
|
$(foreach target,$(CFG_TARGET), \
|
2013-05-24 08:49:20 +02:00
|
|
|
$(eval $(call DEF_RUNTIME_TARGETS,$(target),$(stage)))))
|