diff options
Diffstat (limited to 'lib/CompilerDriver/Makefile')
-rw-r--r-- | lib/CompilerDriver/Makefile | 18 |
1 files changed, 16 insertions, 2 deletions
diff --git a/lib/CompilerDriver/Makefile b/lib/CompilerDriver/Makefile index e5bf3e10a7..bbef2e34a1 100644 --- a/lib/CompilerDriver/Makefile +++ b/lib/CompilerDriver/Makefile @@ -12,8 +12,22 @@ LEVEL = ../.. # We don't want this library to appear in `llvm-config --libs` output, so its # name doesn't start with "LLVM". -LIBRARYNAME = CompilerDriver -LINK_COMPONENTS = support system +LIBRARYNAME = libCompilerDriver +LLVMLIBS = LLVMSupport.a LLVMSystem.a +LOADABLE_MODULE := 1 REQUIRES_EH := 1 include $(LEVEL)/Makefile.common + +FullLibName = $(LIBRARYNAME)$(SHLIBEXT) + +# Copy the library to the bin dir so that llvmc can find it. +all-local:: + $(Echo) Copying $(BuildMode) Shared Library $(FullLibName) \ + to $(ToolDir) + -$(Verb) $(CP) $(LibDir)/$(FullLibName) $(ToolDir)/ + +clean-local:: + $(Echo) Removing $(BuildMode) Shared Library $(FullLibName) \ + from $(ToolDir) + -$(Verb) $(RM) -f $(ToolDir)/$(FullLibName) |