blob: 65f7b40cd8531ff965761357a86fed1f1845ed30 [file] [log] [blame]
Chris Lattner7af5c122004-01-05 05:27:31 +00001##===- tools/llvm-db/Makefile ------------------------------*- Makefile -*-===##
2#
3# The LLVM Compiler Infrastructure
4#
5# This file was developed by the LLVM research group and is distributed under
6# the University of Illinois Open Source License. See LICENSE.TXT for details.
7#
8##===----------------------------------------------------------------------===##
9
10LEVEL = ../..
11TOOLNAME = llvm-db
12
13# Get the $(ARCH) setting
14include $(LEVEL)/Makefile.config
15
16# Generic JIT libraries
17JITLIBS = lli-jit codegen executionengine
18ARCHLIBS =
19
20# You can enable the X86 JIT on a non-X86 host by setting the flag
21# ENABLE_X86_JIT on the make command line. If not, it will still be
22# enabled automagically on an X86 host.
23ifeq ($(ARCH), x86)
24 ENABLE_X86_JIT = 1
25endif
26
27# What the X86 JIT requires
28ifdef ENABLE_X86_JIT
29 CPPFLAGS += -DENABLE_X86_JIT
30 JITLIBS += x86 selectiondag
31 # X86 doesn't require any ARCHLIBS
32endif
33
34# You can enable the Sparc JIT on a non-Sparc host by setting the flag
35# ENABLE_SPARC_JIT on the make command line. If not, it will still be
36# enabled automagically on an Sparc host.
37ifeq ($(ARCH), Sparc)
38 ENABLE_SPARC_JIT = 1
39endif
40
41# What the Sparc JIT requires
42ifdef ENABLE_SPARC_JIT
43 CPPFLAGS += -DENABLE_SPARC_JIT
Brian Gaeke150666f2004-02-25 19:08:12 +000044 JITLIBS += sparcv9
45 ARCHLIBS += sched sparcv9livevar instrument.a profpaths \
46 bcwriter transforms.a ipo.a ipa.a datastructure.a \
Brian Gaekea2b5f452004-08-05 05:17:19 +000047 sparcv9regalloc
Chris Lattner7af5c122004-01-05 05:27:31 +000048endif
49
50USEDLIBS = lli-interpreter $(JITLIBS) $(ARCHLIBS) scalaropts analysis.a \
Reid Spencer7c4c98d2004-08-29 19:29:38 +000051 transformutils.a debugger bcreader vmcore support target.a LLVMsystem.a
Chris Lattner7af5c122004-01-05 05:27:31 +000052
53
54# Have gcc tell the linker to export symbols from the program so that
55# dynamically loaded modules can be linked against them.
56#
57TOOLLINKOPTS = $(PLATFORMLIBDL)
58
59include $(LEVEL)/Makefile.common
60