2011-05-05 19:56:02 -05:00
|
|
|
FUZZER_CRATE := $(S)src/fuzzer/fuzzer.rc
|
|
|
|
FUZZER_INPUTS := $(wildcard $(addprefix $(S)src/fuzzer/, *.rs))
|
|
|
|
|
2011-09-29 23:34:46 -05:00
|
|
|
define FUZZ_STAGE_N
|
|
|
|
|
|
|
|
stage$(2)/bin/fuzzer$$(X): $$(FUZZER_CRATE) $$(FUZZER_INPUTS) \
|
2011-09-30 14:24:28 -05:00
|
|
|
$$(SREQ$(2)$$(CFG_HOST_TRIPLE)) \
|
|
|
|
$$(HOST_LIB$(2))/$$(CFG_RUNTIME) \
|
|
|
|
$$(HOST_LIB$(2))/$$(CFG_RUSTLLVM) \
|
|
|
|
$$(HOST_LIB$(2))/$$(CFG_STDLIB) \
|
|
|
|
$$(HOST_LIB$(2))/$$(CFG_LIBRUSTC)
|
2011-09-29 23:34:46 -05:00
|
|
|
@$$(call E, compile_and_link: $$@)
|
2011-09-30 14:24:28 -05:00
|
|
|
$$(STAGE$(1)) -L $$(HOST_LIB$(2)) -o $$@ $$<
|
2011-09-29 23:34:46 -05:00
|
|
|
|
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call FUZZ_STAGE_N,0,1))
|
|
|
|
$(eval $(call FUZZ_STAGE_N,1,2))
|
|
|
|
$(eval $(call FUZZ_STAGE_N,2,3))
|