blob: 553004d7a6d6339dcf9d304e413668acd28ce659 [file] [log] [blame]
Chris Lattner4bb13b82002-09-13 22:14:47 +00001#===-- Makefile.Linux - Linux specific makefile options ---*- makefile -*--====#
2#
3# This file is included by all other files, through Makefile.common, but only
4# when compiling on a Linux based platform.
5#
6#===-----------------------------------------------------------------------====#
7
Chris Lattnerc35679b2002-12-06 03:45:20 +00008# Set the architecture so that x86 platform dependant code is compmiled
9ARCH := x86
10
Chris Lattner4bb13b82002-09-13 22:14:47 +000011# MakeSharedObjectOption - This option is passed to the linker by
12# Makefile.common when compiling a shared object.
13#
14MakeSharedObjectOption := -shared
15
Chris Lattner1c588502002-11-04 20:50:33 +000016# PLATFORMLINKOPTS - On Linux, we must specify this linker option so that all
17# symbols are exported by tools for runtime use by dlsym.
Chris Lattner4bb13b82002-09-13 22:14:47 +000018#
Chris Lattner1c588502002-11-04 20:50:33 +000019PLATFORMLINKOPTS := -Wl,--export-dynamic
Chris Lattner4bb13b82002-09-13 22:14:47 +000020
Chris Lattner527002c2003-01-31 19:00:26 +000021# PLATFORMSTRIPOPTS - Command to pass to the link phase to cause symbols to be
22# stripped from the resultant binary.
23PLATFORMSTRIPOPTS := -Wl,-x
24
Chris Lattner7f666ca2002-09-19 19:44:28 +000025# Path to location for LLVM front-end for this architecture. This setting may
26# be overriden by the Makefile.config option, and should not override it if set.
27#
Chris Lattner6d107652003-05-09 04:17:06 +000028LLVMGCCARCH := i686-pc-linux-gnu/3.4-llvm
Chris Lattnerf6bcd1b2003-05-25 16:52:41 +000029ifndef LLVMGCCDIR
Chris Lattner6d107652003-05-09 04:17:06 +000030LLVMGCCDIR := /home/vadve/lattner/local/x86/llvm-gcc/
Chris Lattner7f666ca2002-09-19 19:44:28 +000031endif
Chris Lattner698a1312002-09-19 21:32:44 +000032
Vikram S. Adve11fd1d32002-09-23 14:24:19 +000033# For now we disable running LLC output, because LLC does not generate x86 code
34# LLC itself can be run so disable the diffs, not LLC itself.
35#
36DISABLE_LLC_DIFFS := 1
Chris Lattner63757f52003-01-13 00:13:19 +000037
38# This platform has a JIT compiler! FIXME: This should be changed to be an
39# option printed by LLI itself at some point.
40#
41TARGET_HAS_JIT := 1
42