mirror of
https://github.com/RPCSX/llvm.git
synced 2024-12-12 22:26:14 +00:00
cc4f8bcedc
Controlled via the --enable-llvmc-dynamic-plugins option. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74784 91177308-0d34-0410-b5e6-96231b3b80d8
48 lines
1.3 KiB
Makefile
48 lines
1.3 KiB
Makefile
##===- lib/CompilerDriver/Makefile -------------------------*- Makefile -*-===##
|
|
#
|
|
# The LLVM Compiler Infrastructure
|
|
#
|
|
# This file is distributed under the University of Illinois Open
|
|
# Source License. See LICENSE.TXT for details.
|
|
#
|
|
##===----------------------------------------------------------------------===##
|
|
|
|
LEVEL = ../..
|
|
|
|
# We don't want this library to appear in `llvm-config --libs` output, so its
|
|
# name doesn't start with "LLVM".
|
|
|
|
ifeq ($(ENABLE_LLVMC_DYNAMIC),1)
|
|
LIBRARYNAME = libCompilerDriver
|
|
LLVMLIBS = LLVMSupport.a LLVMSystem.a
|
|
LOADABLE_MODULE := 1
|
|
else
|
|
LIBRARYNAME = CompilerDriver
|
|
LINK_COMPONENTS = support system
|
|
endif
|
|
|
|
REQUIRES_EH := 1
|
|
|
|
include $(LEVEL)/Makefile.common
|
|
|
|
ifeq ($(ENABLE_LLVMC_DYNAMIC_PLUGINS), 1)
|
|
CPP.Flags += -DENABLE_LLVMC_DYNAMIC_PLUGINS
|
|
endif
|
|
|
|
# Copy libCompilerDriver to the bin dir so that llvmc can find it.
|
|
ifeq ($(ENABLE_LLVMC_DYNAMIC),1)
|
|
|
|
FullLibName = $(LIBRARYNAME)$(SHLIBEXT)
|
|
|
|
all-local:: $(ToolDir)/$(FullLibName)
|
|
|
|
$(ToolDir)/$(FullLibName): $(LibDir)/$(FullLibName) $(ToolDir)/.dir
|
|
$(Echo) Copying $(BuildMode) Shared Library $(FullLibName) to $@
|
|
-$(Verb) $(CP) $< $@
|
|
|
|
clean-local::
|
|
$(Echo) Removing $(BuildMode) Shared Library $(FullLibName) \
|
|
from $(ToolDir)
|
|
-$(Verb) $(RM) -f $(ToolDir)/$(FullLibName)
|
|
endif
|