blob: bbef2e34a14127530c430b5fc6c3d93fe9ca71ce [file] [log] [blame]
Mikhail Glushenkovf1881782009-03-02 09:01:14 +00001##===- lib/CompilerDriver/Makefile -------------------------*- Makefile -*-===##
2#
3# The LLVM Compiler Infrastructure
4#
5# This file is distributed under the University of Illinois Open
6# Source License. See LICENSE.TXT for details.
7#
8##===----------------------------------------------------------------------===##
9
10LEVEL = ../..
11
12# We don't want this library to appear in `llvm-config --libs` output, so its
13# name doesn't start with "LLVM".
14
Mikhail Glushenkov95c1f5b2009-06-29 03:09:15 +000015LIBRARYNAME = libCompilerDriver
16LLVMLIBS = LLVMSupport.a LLVMSystem.a
17LOADABLE_MODULE := 1
Mikhail Glushenkovf1881782009-03-02 09:01:14 +000018REQUIRES_EH := 1
19
20include $(LEVEL)/Makefile.common
Mikhail Glushenkov95c1f5b2009-06-29 03:09:15 +000021
22FullLibName = $(LIBRARYNAME)$(SHLIBEXT)
23
24# Copy the library to the bin dir so that llvmc can find it.
25all-local::
26 $(Echo) Copying $(BuildMode) Shared Library $(FullLibName) \
27 to $(ToolDir)
28 -$(Verb) $(CP) $(LibDir)/$(FullLibName) $(ToolDir)/
29
30clean-local::
31 $(Echo) Removing $(BuildMode) Shared Library $(FullLibName) \
32 from $(ToolDir)
33 -$(Verb) $(RM) -f $(ToolDir)/$(FullLibName)