Adapt to recent changes in polly.
[llvm-testsuite/polly-testsuite.git] / Makefile.dummylib
blob8d909034079c687aedd45c4d18d6fedd1986070b
1 ##===- Makefile.dummylib -----------------------------------*- Makefile -*-===##
3 # This makefile fragment is to be used by program tests which require the
4 # program to be linked with libdummy.  The output program is named:
5 #   Output/$(PROG).lib.bc
7 ##===----------------------------------------------------------------------===##
9 # DUMMYLIB - The path to the library of stub functions which is used to resolve
10 # external functions for dsanalysis.
12 DUMMYLIB := $(LLVMLIBDEBUGSOURCE)/libdummy.bca
13 DUMMYSRC := $(LLVM_SRC_ROOT)/runtime/libdummy
15 # Rebuild dummylib if necessary...
16 $(DUMMYLIB) : $(wildcard $(DUMMYSRC)/*.c)
17         cd $(DUMMYSRC); $(MAKE)
19 # LINKED_PROGS - All of the programs linked to libdummy
20 LINKED_PROGS := $(PROGRAMS_TO_TEST:%=Output/%.lib.bc)
22 $(LINKED_PROGS): Output/%.lib.bc: Output/%.llvm.bc $(DUMMYLIB)
23         $(LLVMLD) --link-as-library $< $(DUMMYLIB) -o $@