blob: 66e06a9fd2865c9e6a08e0aa1bcdc29904694c0e [file] [log] [blame]
John Criswell4436c492003-10-20 22:26:57 +00001##===- lib/ExecutionEngine/JIT/Makefile --------------------*- Makefile -*-===##
2#
3# The LLVM Compiler Infrastructure
4#
Chris Lattnera087a8d2007-12-29 20:09:26 +00005# This file is distributed under the University of Illinois Open Source
6# License. See LICENSE.TXT for details.
John Criswell4436c492003-10-20 22:26:57 +00007#
8##===----------------------------------------------------------------------===##
Chris Lattner996fe012002-12-24 00:01:05 +00009LEVEL = ../../..
Reid Spencerc833edd2004-10-28 05:37:24 +000010LIBRARYNAME = LLVMJIT
Chris Lattner996fe012002-12-24 00:01:05 +000011
Misha Brukman7dee4432003-07-02 17:53:19 +000012# Get the $(ARCH) setting
13include $(LEVEL)/Makefile.config
14
15# Enable the X86 JIT if compiling on X86
16ifeq ($(ARCH), x86)
17 ENABLE_X86_JIT = 1
18endif
19
20# This flag can also be used on the command line to force inclusion
21# of the X86 JIT on non-X86 hosts
22ifdef ENABLE_X86_JIT
23 CPPFLAGS += -DENABLE_X86_JIT
24endif
25
Misha Brukmand9a92762003-07-28 19:06:50 +000026# Enable the Sparc JIT if compiling on Sparc
Misha Brukman7dee4432003-07-02 17:53:19 +000027ifeq ($(ARCH), Sparc)
28 ENABLE_SPARC_JIT = 1
29endif
30
31# This flag can also be used on the command line to force inclusion
32# of the Sparc JIT on non-Sparc hosts
33ifdef ENABLE_SPARC_JIT
34 CPPFLAGS += -DENABLE_SPARC_JIT
35endif
36
Chris Lattner996fe012002-12-24 00:01:05 +000037include $(LEVEL)/Makefile.common