Follow-up to r152620: restore JIT event listener tests to unittest/ExecutionEngine/JIT
[oota-llvm.git] / unittests / ExecutionEngine / JIT / Makefile
1 ##===- unittests/ExecutionEngine/JIT/Makefile --------------*- Makefile -*-===##
2 #
3 #                     The LLVM Compiler Infrastructure
4 #
5 # This file is distributed under the University of Illinois Open Source
6 # License. See LICENSE.TXT for details.
7 #
8 ##===----------------------------------------------------------------------===##
9
10 LEVEL = ../../..
11 TESTNAME = JIT
12 LINK_COMPONENTS := asmparser bitreader bitwriter core jit native support
13
14 include $(LEVEL)/Makefile.config
15
16 SOURCES := JITEventListenerTest.cpp
17
18 ifeq ($(USE_INTEL_JITEVENTS), 1)
19   # Build the Intel JIT Events interface tests
20   SOURCES += IntelJITEventListenerTest.cpp
21
22   # Add the Intel JIT Events include directory
23   CPPFLAGS += -I$(INTEL_JITEVENTS_INCDIR)
24
25   # Link against the LLVM Intel JIT Evens interface library
26   LINK_COMPONENTS += inteljitevents
27 endif
28
29 ifeq ($(USE_OPROFILE), 1)
30   # Build the OProfile JIT interface tests
31   SOURCES += OProfileJITEventListenerTest.cpp
32
33   # Link against the LLVM oprofile interface library
34   LINK_COMPONENTS += oprofilejit
35 endif
36
37
38 include $(LLVM_SRC_ROOT)/unittests/Makefile.unittest
39
40 # Permit these tests to use the JIT's symbolic lookup.
41 LD.Flags += $(RDYNAMIC)