blob: e2c9c61e88faa568f298cd5e241e67f0f3d15809 [file] [log] [blame]
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001##===- lib/ExecutionEngine/JIT/Makefile --------------------*- Makefile -*-===##
Misha Brukmane025bcc2009-01-09 16:44:42 +00002#
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003# The LLVM Compiler Infrastructure
4#
Chris Lattner80455b82007-12-29 20:09:26 +00005# This file is distributed under the University of Illinois Open Source
6# License. See LICENSE.TXT for details.
Misha Brukmane025bcc2009-01-09 16:44:42 +00007#
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008##===----------------------------------------------------------------------===##
9LEVEL = ../../..
10LIBRARYNAME = LLVMJIT
11
12# 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
26# Enable the Sparc JIT if compiling on Sparc
27ifeq ($(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
37include $(LEVEL)/Makefile.common