LEVEL = ../../..
TESTNAME = JIT
LINK_COMPONENTS := asmparser bitreader bitwriter jit native
include $(LEVEL)/Makefile.config
SOURCES := JITEventListenerTest.cpp JITMemoryManagerTest.cpp JITTest.cpp MultiJITTest.cpp
ifeq ($(USE_INTEL_JITEVENTS), 1)
SOURCES += IntelJITEventListenerTest.cpp
CPPFLAGS += -I$(INTEL_JITEVENTS_INCDIR)
LINK_COMPONENTS += debuginfo inteljitevents object
endif
ifeq ($(USE_OPROFILE), 1)
SOURCES += OProfileJITEventListenerTest.cpp
LINK_COMPONENTS += oprofilejit
endif
EXPORTED_SYMBOL_FILE = $(PROJ_OBJ_DIR)/JITTests.exports
include $(LLVM_SRC_ROOT)/unittests/Makefile.unittest
LD.Flags += $(RDYNAMIC)
$(LLVMUnitTestExe): $(NativeExportsFile)
$(PROJ_OBJ_DIR)/JITTests.exports: $(PROJ_SRC_DIR)/JITTests.def $(PROJ_OBJ_DIR)/.dir
tail -n +2 $< > $@