1##===- examples/PrintFunctionNames/Makefile ----------------*- Makefile -*-===##
2# 
3#                     The LLVM Compiler Infrastructure
4#
5# This file is distributed under the University of Illinois Open Source
6# License. See LICENSE.TXT for details.
7# 
8##===----------------------------------------------------------------------===##
9
10CLANG_LEVEL := ../..
11LIBRARYNAME = PrintFunctionNames
12
13# If we don't need RTTI or EH, there's no reason to export anything
14# from the plugin.
15ifneq ($(REQUIRES_RTTI), 1)
16ifneq ($(REQUIRES_EH), 1)
17EXPORTED_SYMBOL_FILE = $(PROJ_SRC_DIR)/PrintFunctionNames.exports
18endif
19endif
20
21LINK_LIBS_IN_SHARED = 0
22SHARED_LIBRARY = 1
23
24include $(CLANG_LEVEL)/Makefile
25
26ifeq ($(OS),Darwin)
27  LDFLAGS=-Wl,-undefined,dynamic_lookup
28endif
29