2009-06-25 02:04:04 +00:00
|
|
|
##===- unittests/ExecutionEngine/JIT/Makefile --------------*- Makefile -*-===##
|
|
|
|
#
|
|
|
|
# The LLVM Compiler Infrastructure
|
|
|
|
#
|
|
|
|
# This file is distributed under the University of Illinois Open Source
|
|
|
|
# License. See LICENSE.TXT for details.
|
|
|
|
#
|
|
|
|
##===----------------------------------------------------------------------===##
|
|
|
|
|
|
|
|
LEVEL = ../../..
|
|
|
|
TESTNAME = JIT
|
2012-06-21 22:17:51 +00:00
|
|
|
LINK_COMPONENTS := asmparser bitreader bitwriter jit native
|
2009-06-25 02:04:04 +00:00
|
|
|
|
|
|
|
include $(LEVEL)/Makefile.config
|
2012-03-15 06:49:31 +00:00
|
|
|
|
2012-03-29 18:53:15 +00:00
|
|
|
SOURCES := JITEventListenerTest.cpp JITMemoryManagerTest.cpp JITTest.cpp MultiJITTest.cpp
|
|
|
|
|
2012-03-15 06:49:31 +00:00
|
|
|
|
|
|
|
ifeq ($(USE_INTEL_JITEVENTS), 1)
|
|
|
|
# Build the Intel JIT Events interface tests
|
|
|
|
SOURCES += IntelJITEventListenerTest.cpp
|
|
|
|
|
|
|
|
# Add the Intel JIT Events include directory
|
|
|
|
CPPFLAGS += -I$(INTEL_JITEVENTS_INCDIR)
|
|
|
|
|
|
|
|
# Link against the LLVM Intel JIT Evens interface library
|
2013-01-28 19:52:37 +00:00
|
|
|
LINK_COMPONENTS += debuginfo inteljitevents object
|
2012-03-15 06:49:31 +00:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(USE_OPROFILE), 1)
|
|
|
|
# Build the OProfile JIT interface tests
|
|
|
|
SOURCES += OProfileJITEventListenerTest.cpp
|
|
|
|
|
|
|
|
# Link against the LLVM oprofile interface library
|
|
|
|
LINK_COMPONENTS += oprofilejit
|
|
|
|
endif
|
|
|
|
|
2012-10-18 20:25:36 +00:00
|
|
|
EXPORTED_SYMBOL_FILE = $(PROJ_OBJ_DIR)/JITTests.exports
|
2012-03-15 06:49:31 +00:00
|
|
|
|
2009-06-25 02:04:04 +00:00
|
|
|
include $(LLVM_SRC_ROOT)/unittests/Makefile.unittest
|
2009-12-13 20:30:32 +00:00
|
|
|
|
|
|
|
# Permit these tests to use the JIT's symbolic lookup.
|
|
|
|
LD.Flags += $(RDYNAMIC)
|
2012-10-18 20:25:36 +00:00
|
|
|
|
|
|
|
# Symbol exports are necessary (at least for now) when building with LTO.
|
|
|
|
$(LLVMUnitTestExe): $(NativeExportsFile)
|
|
|
|
$(PROJ_OBJ_DIR)/JITTests.exports: $(PROJ_SRC_DIR)/JITTests.def $(PROJ_OBJ_DIR)/.dir
|
|
|
|
tail -n +2 $< > $@
|
|
|
|
|