Fix comment for consistency sake.
[llvm/avr.git] / lib / CompilerDriver / Makefile
bloba5ecfd5d324ea60e82c4718b6cd2284364062c47
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 ##===----------------------------------------------------------------------===##
10 LEVEL = ../..
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
18 LOADABLE_MODULE := 1
19 else
20 LIBRARYNAME = CompilerDriver
21 LINK_COMPONENTS = support system
22 endif
24 REQUIRES_EH := 1
26 include $(LEVEL)/Makefile.common
28 ifeq ($(ENABLE_LLVMC_DYNAMIC_PLUGINS), 1)
29 CPP.Flags += -DENABLE_LLVMC_DYNAMIC_PLUGINS
30 endif
32 # Copy libCompilerDriver to the bin dir so that llvmc can find it.
33 ifeq ($(ENABLE_LLVMC_DYNAMIC),1)
35 FullLibName = $(LIBRARYNAME)$(SHLIBEXT)
37 all-local:: $(ToolDir)/$(FullLibName)
39 $(ToolDir)/$(FullLibName): $(LibDir)/$(FullLibName) $(ToolDir)/.dir
40 $(Echo) Copying $(BuildMode) Shared Library $(FullLibName) to $@
41 -$(Verb) $(CP) $< $@
43 clean-local::
44 $(Echo) Removing $(BuildMode) Shared Library $(FullLibName) \
45 from $(ToolDir)
46 -$(Verb) $(RM) -f $(ToolDir)/$(FullLibName)
47 endif