1 ##===- lib/CompilerDriver/Makefile -------------------------*- Makefile -*-===##
3 # The LLVM Compiler Infrastructure
5 # This file is distributed under the University of Illinois Open
6 # Source License. See LICENSE.TXT for details.
8 ##===----------------------------------------------------------------------===##
12 # We don't want this library to appear in `llvm-config --libs` output, so its
13 # name doesn't start with "LLVM".
15 ifeq ($(ENABLE_LLVMC_DYNAMIC),1)
16 LIBRARYNAME = libCompilerDriver
17 LLVMLIBS = LLVMSupport.a LLVMSystem.a
20 LIBRARYNAME = CompilerDriver
21 LINK_COMPONENTS = support system
27 include $(LEVEL)/Makefile.common
29 ifeq ($(ENABLE_LLVMC_DYNAMIC_PLUGINS), 1)
30 CPP.Flags += -DENABLE_LLVMC_DYNAMIC_PLUGINS
33 # Copy libCompilerDriver to the bin dir so that llvmc can find it.
34 ifeq ($(ENABLE_LLVMC_DYNAMIC),1)
36 FullLibName = $(LIBRARYNAME)$(SHLIBEXT)
38 all-local:: $(ToolDir)/$(FullLibName)
40 $(ToolDir)/$(FullLibName): $(LibDir)/$(FullLibName) $(ToolDir)/.dir
41 $(Echo) Copying $(BuildMode) Shared Library $(FullLibName) to $@
45 $(Echo) Removing $(BuildMode) Shared Library $(FullLibName) \
47 -$(Verb) $(RM) -f $(ToolDir)/$(FullLibName)