mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-30 17:33:24 +00:00
e441b831c0
Change the naming scheme for llvmc plugins so that they do not appear in 'llvm-config --libs' output. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@62687 91177308-0d34-0410-b5e6-96231b3b80d8
56 lines
1.3 KiB
Makefile
56 lines
1.3 KiB
Makefile
##===- tools/llvmc/plugins/Makefile.plugins ----------------*- Makefile -*-===##
|
|
#
|
|
# The LLVM Compiler Infrastructure
|
|
#
|
|
# This file is distributed under the University of Illinois Open
|
|
# Source License. See LICENSE.TXT for details.
|
|
#
|
|
##===----------------------------------------------------------------------===##
|
|
|
|
ifndef LLVMC_PLUGIN
|
|
|
|
LEVEL = ../../..
|
|
DIRS = $(BUILTIN_PLUGINS)
|
|
|
|
# TOFIX: Should we also build DSO versions of plugins?
|
|
export BUILTIN_LLVMC_PLUGIN=1
|
|
|
|
include $(LEVEL)/Makefile.common
|
|
|
|
else # LLVMC_PLUGIN
|
|
|
|
LEVEL = ../../../..
|
|
|
|
LIBRARYNAME := $(patsubst %,plugin_llvmc_%,$(LLVMC_PLUGIN))
|
|
REQUIRES_EH = 1
|
|
|
|
ifndef BUILTIN_LLVMC_PLUGIN
|
|
LOADABLE_MODULE = 1
|
|
endif
|
|
|
|
ifneq ($(BUILT_SOURCES),)
|
|
BUILD_AUTOGENERATED_INC=1
|
|
endif
|
|
|
|
include $(LEVEL)/Makefile.common
|
|
|
|
# TOFIX: This probably should go into Makefile.rules
|
|
|
|
ifdef BUILD_AUTOGENERATED_INC
|
|
|
|
TOOLS_SOURCE := $(strip $(wildcard $(PROJ_SRC_DIR)/*.td))
|
|
|
|
TD_COMMON :=$(strip $(wildcard \
|
|
$(LLVM_SRC_ROOT)/include/llvm/CompilerDriver/*.td))
|
|
|
|
$(ObjDir)/AutoGenerated.inc.tmp: $(TOOLS_SOURCE) $(ObjDir)/.dir \
|
|
$(TBLGEN) $(TD_COMMON)
|
|
$(Echo) "Building LLVMC configuration library with tblgen"
|
|
$(Verb) $(TableGen) -gen-llvmc -o $(call SYSPATH, $@) $<
|
|
|
|
AutoGenerated.inc : $(ObjDir)/AutoGenerated.inc.tmp
|
|
$(Verb) $(CMP) -s $@ $< || $(CP) $< $@
|
|
endif # BUILD_AUTOGENERATED_INC
|
|
|
|
endif # LLVMC_PLUGIN
|