Mikhail Glushenkov | f188178 | 2009-03-02 09:01:14 +0000 | [diff] [blame] | 1 | ##===- 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 | |
| 10 | LEVEL = ../.. |
| 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 Glushenkov | 95c1f5b | 2009-06-29 03:09:15 +0000 | [diff] [blame] | 15 | LIBRARYNAME = libCompilerDriver |
| 16 | LLVMLIBS = LLVMSupport.a LLVMSystem.a |
| 17 | LOADABLE_MODULE := 1 |
Mikhail Glushenkov | f188178 | 2009-03-02 09:01:14 +0000 | [diff] [blame] | 18 | REQUIRES_EH := 1 |
| 19 | |
| 20 | include $(LEVEL)/Makefile.common |
Mikhail Glushenkov | 95c1f5b | 2009-06-29 03:09:15 +0000 | [diff] [blame] | 21 | |
| 22 | FullLibName = $(LIBRARYNAME)$(SHLIBEXT) |
| 23 | |
Daniel Dunbar | 0faea04 | 2009-06-29 22:59:36 +0000 | [diff] [blame] | 24 | all-local:: $(ToolDir)/$(FullLibName) |
| 25 | |
Mikhail Glushenkov | 95c1f5b | 2009-06-29 03:09:15 +0000 | [diff] [blame] | 26 | # Copy the library to the bin dir so that llvmc can find it. |
Daniel Dunbar | 0faea04 | 2009-06-29 22:59:36 +0000 | [diff] [blame] | 27 | $(ToolDir)/$(FullLibName): $(LibDir)/$(FullLibName) $(ToolDir)/.dir |
| 28 | $(Echo) Copying $(BuildMode) Shared Library $(FullLibName) to $@ |
| 29 | -$(Verb) $(CP) $< $@ |
Mikhail Glushenkov | 95c1f5b | 2009-06-29 03:09:15 +0000 | [diff] [blame] | 30 | |
| 31 | clean-local:: |
| 32 | $(Echo) Removing $(BuildMode) Shared Library $(FullLibName) \ |
| 33 | from $(ToolDir) |
| 34 | -$(Verb) $(RM) -f $(ToolDir)/$(FullLibName) |