blob: 1c93c0661426a5825cbe0a6f1d943663229c79a0 [file] [log] [blame]
John Criswelle488e932003-10-20 22:26:57 +00001##===- lib/ExecutionEngine/JIT/Makefile --------------------*- Makefile -*-===##
Misha Brukman9b8f5422009-01-09 16:44:42 +00002#
John Criswelle488e932003-10-20 22:26:57 +00003# The LLVM Compiler Infrastructure
4#
Chris Lattnerfc643c52007-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 Brukman9b8f5422009-01-09 16:44:42 +00007#
John Criswelle488e932003-10-20 22:26:57 +00008##===----------------------------------------------------------------------===##
Chris Lattnere73a31f2010-01-22 06:49:46 +00009
Chris Lattnerbd199fb2002-12-24 00:01:05 +000010LEVEL = ../../..
Reid Spencer685f86a2004-10-28 05:37:24 +000011LIBRARYNAME = LLVMJIT
Chris Lattnere73a31f2010-01-22 06:49:46 +000012CXXFLAGS = -fno-rtti
Chris Lattnerbd199fb2002-12-24 00:01:05 +000013
Misha Brukman82742912003-07-02 17:53:19 +000014# Get the $(ARCH) setting
15include $(LEVEL)/Makefile.config
16
17# Enable the X86 JIT if compiling on X86
18ifeq ($(ARCH), x86)
19 ENABLE_X86_JIT = 1
20endif
21
22# This flag can also be used on the command line to force inclusion
23# of the X86 JIT on non-X86 hosts
24ifdef ENABLE_X86_JIT
25 CPPFLAGS += -DENABLE_X86_JIT
26endif
27
Misha Brukmandf38dae2003-07-28 19:06:50 +000028# Enable the Sparc JIT if compiling on Sparc
Misha Brukman82742912003-07-02 17:53:19 +000029ifeq ($(ARCH), Sparc)
30 ENABLE_SPARC_JIT = 1
31endif
32
33# This flag can also be used on the command line to force inclusion
34# of the Sparc JIT on non-Sparc hosts
35ifdef ENABLE_SPARC_JIT
36 CPPFLAGS += -DENABLE_SPARC_JIT
37endif
38
Chris Lattnerbd199fb2002-12-24 00:01:05 +000039include $(LEVEL)/Makefile.common