diff options
author | Reid Spencer <rspencer@reidspencer.com> | 2004-10-10 22:36:40 +0000 |
---|---|---|
committer | Reid Spencer <rspencer@reidspencer.com> | 2004-10-10 22:36:40 +0000 |
commit | 90a2adc8669e6a8529a09353bfcee116c998e4f1 (patch) | |
tree | 926f07ec2b098c036432dadbd2f931a319888165 /tools/llvm-db | |
parent | 81f76b324e0b22731d06ed34641032de983428b1 (diff) |
Initial version of automake Makefile.am file.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@16894 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/llvm-db')
-rw-r--r-- | tools/llvm-db/Makefile.am | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/tools/llvm-db/Makefile.am b/tools/llvm-db/Makefile.am new file mode 100644 index 0000000000..a7a5ed8162 --- /dev/null +++ b/tools/llvm-db/Makefile.am @@ -0,0 +1,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.rules.am + +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) |