blob: aafa3d9d420f046a91f9f4fdc9c61ec8b0bbca42 [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##===----------------------------------------------------------------------===##
Chris Lattner5c804552010-01-22 06:49:46 +00009
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010LEVEL = ../../..
11LIBRARYNAME = LLVMJIT
Dan Gohmanf17a25c2007-07-18 16:29:46 +000012
13# Get the $(ARCH) setting
14include $(LEVEL)/Makefile.config
15
16# Enable the X86 JIT if compiling on X86
17ifeq ($(ARCH), x86)
18 ENABLE_X86_JIT = 1
19endif
20
21# This flag can also be used on the command line to force inclusion
22# of the X86 JIT on non-X86 hosts
23ifdef ENABLE_X86_JIT
24 CPPFLAGS += -DENABLE_X86_JIT
25endif
26
27# Enable the Sparc JIT if compiling on Sparc
28ifeq ($(ARCH), Sparc)
29 ENABLE_SPARC_JIT = 1
30endif
31
32# This flag can also be used on the command line to force inclusion
33# of the Sparc JIT on non-Sparc hosts
34ifdef ENABLE_SPARC_JIT
35 CPPFLAGS += -DENABLE_SPARC_JIT
36endif
37
38include $(LEVEL)/Makefile.common