Move code to redefine INT64_{MIN,MAX} on AIX/PowerPC to a separate header,
[oota-llvm.git] / tools / llvm-db / Makefile.am
1 #===-- tools/llvm-db/Makefile.am ---------------------------*- Makefile -*--===#
2 #
3 #                     The LLVM Compiler Infrastructure
4 #
5 # This file was developed by Reid Spencer and is distributed under the 
6 # University of Illinois Open Source License. See LICENSE.TXT for details.
7
8 #===------------------------------------------------------------------------===#
9
10 include $(top_srcdir)/Makefile_config
11
12 bin_PROGRAMS = llvm-db
13
14 llvm_db_SOURCES = CLIDebugger.cpp Commands.cpp llvm-db.cpp
15
16 THEOBJS   = JIT CodeGen ExecutionEngine
17 THELIBS   =
18
19 # You can enable the X86 JIT on a non-X86 host by setting the flag
20 # ENABLE_X86_JIT on the make command line. If not, it will still be
21 # enabled automagically on an X86 host.
22 if ARCH_X86
23   ENABLE_X86_JIT = 1
24 endif
25
26 # You can enable the Sparc JIT on a non-Sparc host by setting the flag
27 # ENABLE_SPARC_JIT on the make command line. If not, it will still be
28 # enabled automagically on an Sparc host.
29 if ARCH_SPARC
30   ENABLE_SPARC_JIT = 1
31 endif
32
33 # What the X86 JIT requires
34  ifdef ENABLE_X86_JIT
35   CPPFLAGS += -DENABLE_X86_JIT
36   THEOBJS  += X86 SelectionDAG
37  endif
38
39 # What the Sparc JIT requires
40  ifdef ENABLE_SPARC_JIT
41 #  CPPFLAGS += -DENABLE_SPARC_JIT
42 #  THEOBJS  += SparcV9 SparcV9InstrSched SparcV9LiveVar SparcV9RegAlloc
43 #  THEOBJS  += ProfilePaths BCWriter
44 #  THELIBS  += Instrument Transforms IPO IPA DataStructure
45  endif
46
47 llvm_db_LDADD = \
48   $(call GETOBJS,Interpreter,$(THEOBJS)) \
49   $(call GETLIBS,$(THELIBS)) \
50   $(call GETOBJS,ScalarOpts) \
51   $(call GETLIBS,Analysis,TransformUtils,Target) \
52   $(call GETOBJS,Debugger,BCReader,Core) \
53   $(call GETLIBS,Support,Target,System)