aboutsummaryrefslogtreecommitdiff
path: root/tools/llvm-db/Makefile.am
blob: 42d7d418de78299c4be40a673ac290051f0cc57e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
#===-- tools/llvm-db/Makefile.am ---------------------------*- Makefile -*--===#
#
#                     The LLVM Compiler Infrastructure
#
# This file was developed by Reid Spencer and is distributed under the 
# University of Illinois Open Source License. See LICENSE.TXT for details.
# 
#===------------------------------------------------------------------------===#

include $(top_srcdir)/Makefile_config

bin_PROGRAMS = llvm-db

llvm_db_SOURCES = CLIDebugger.cpp Commands.cpp llvm-db.cpp

THEOBJS   = JIT CodeGen ExecutionEngine
THELIBS   =

# You can enable the X86 JIT on a non-X86 host by setting the flag
# ENABLE_X86_JIT on the make command line. If not, it will still be
# enabled automagically on an X86 host.
if ARCH_X86
  ENABLE_X86_JIT = 1
endif

# You can enable the Sparc JIT on a non-Sparc host by setting the flag
# ENABLE_SPARC_JIT on the make command line. If not, it will still be
# enabled automagically on an Sparc host.
if ARCH_SPARC
  ENABLE_SPARC_JIT = 1
endif

# What the X86 JIT requires
 ifdef ENABLE_X86_JIT
  CPPFLAGS += -DENABLE_X86_JIT
  THEOBJS  += X86 SelectionDAG
 endif

# What the Sparc JIT requires
 ifdef ENABLE_SPARC_JIT
  CPPFLAGS += -DENABLE_SPARC_JIT
  THEOBJS  += SparcV9 SparcV9InstrSched SparcV9LiveVar SparcV9RegAlloc
  THEOBJS  += ProfilePaths BCWriter
  THELIBS  += Instrument Transforms IPO IPA DataStructure
 endif

llvm_db_LDADD = \
  $(call GETOBJS,Interpreter,$(THEOBJS)) \
  $(call GETLIBS,$(THELIBS)) \
  $(call GETOBJS,ScalarOpts) \
  $(call GETLIBS,Analysis,TransformUtils,Target) \
  $(call GETOBJS,Debugger,BCReader,Core) \
  $(call GETLIBS,Support,Target,System)