2009-06-25 04:04:04 +02: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-22 00:17:51 +02:00
|
|
|
LINK_COMPONENTS := asmparser bitreader bitwriter jit native
|
2009-06-25 04:04:04 +02:00
|
|
|
|
|
|
|
include $(LEVEL)/Makefile.config
|
2012-03-15 07:49:31 +01:00
|
|
|
|
2012-03-29 20:53:15 +02:00
|
|
|
SOURCES := JITEventListenerTest.cpp JITMemoryManagerTest.cpp JITTest.cpp MultiJITTest.cpp
|
|
|
|
|
2012-03-15 07:49:31 +01: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 20:52:37 +01:00
|
|
|
LINK_COMPONENTS += debuginfo inteljitevents object
|
2012-03-15 07:49:31 +01: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 22:25:36 +02:00
|
|
|
EXPORTED_SYMBOL_FILE = $(PROJ_OBJ_DIR)/JITTests.exports
|
2012-03-15 07:49:31 +01:00
|
|
|
|
2009-06-25 04:04:04 +02:00
|
|
|
include $(LLVM_SRC_ROOT)/unittests/Makefile.unittest
|
2009-12-13 21:30:32 +01:00
|
|
|
|
|
|
|
# Permit these tests to use the JIT's symbolic lookup.
|
|
|
|
LD.Flags += $(RDYNAMIC)
|
2012-10-18 22:25:36 +02: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 $< > $@
|
|
|
|
|