2010-01-01 05:34:51 -05: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-07-13 13:21:42 -04:00
|
|
|
CLANG_LEVEL := ../..
|
2010-01-01 05:34:51 -05:00
|
|
|
LIBRARYNAME = PrintFunctionNames
|
|
|
|
|
|
2010-09-17 11:54:40 -04: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-02-20 08:06:31 -05:00
|
|
|
LINK_LIBS_IN_SHARED = 0
|
2010-01-01 05:34:51 -05:00
|
|
|
SHARED_LIBRARY = 1
|
|
|
|
|
|
2010-07-13 13:21:42 -04:00
|
|
|
include $(CLANG_LEVEL)/Makefile
|
2011-02-20 08:06:31 -05:00
|
|
|
|
|
|
|
|
ifeq ($(OS),Darwin)
|
|
|
|
|
LDFLAGS=-Wl,-undefined,dynamic_lookup
|
|
|
|
|
endif
|