2009-11-15 08:27:43 +08:00
|
|
|
##===- examples/PrintFunctionNames/Makefile ----------------*- Makefile -*-===##
|
|
|
|
#
|
|
|
|
# The LLVM Compiler Infrastructure
|
|
|
|
#
|
|
|
|
# This file is distributed under the University of Illinois Open Source
|
|
|
|
# License. See LICENSE.TXT for details.
|
|
|
|
#
|
|
|
|
##===----------------------------------------------------------------------===##
|
|
|
|
|
2010-06-09 04:34:18 +08:00
|
|
|
CLANG_LEVEL := ../..
|
2009-11-15 08:27:43 +08:00
|
|
|
LIBRARYNAME = PrintFunctionNames
|
|
|
|
|
2010-07-27 05:12:10 +08:00
|
|
|
# If we don't need RTTI or EH, there's no reason to export anything
|
|
|
|
# from the plugin.
|
|
|
|
ifneq ($(REQUIRES_RTTI), 1)
|
|
|
|
ifneq ($(REQUIRES_EH), 1)
|
|
|
|
EXPORTED_SYMBOL_FILE = $(PROJ_SRC_DIR)/PrintFunctionNames.exports
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
2011-01-27 05:28:52 +08:00
|
|
|
LINK_LIBS_IN_SHARED = 0
|
2014-02-13 05:04:23 +08:00
|
|
|
LOADABLE_MODULE = 1
|
2009-11-15 08:27:43 +08:00
|
|
|
|
2010-06-09 04:34:18 +08:00
|
|
|
include $(CLANG_LEVEL)/Makefile
|
2011-01-27 05:28:52 +08:00
|
|
|
|
|
|
|
ifeq ($(OS),Darwin)
|
|
|
|
LDFLAGS=-Wl,-undefined,dynamic_lookup
|
|
|
|
endif
|