blob: 23a53054019d126efc3a4ed71fbe59a6f5d1b5f6 [file] [log] [blame]
Daniel Dunbar9a693872009-11-15 00:27:43 +00001##===- 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
Daniel Dunbarafed0992010-06-08 20:34:18 +000010CLANG_LEVEL := ../..
Daniel Dunbar9a693872009-11-15 00:27:43 +000011LIBRARYNAME = PrintFunctionNames
12
Dan Gohmanb02d96b2010-07-26 21:12:10 +000013# 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
Nico Weber6d733ed2011-01-26 21:28:52 +000021LINK_LIBS_IN_SHARED = 0
Daniel Dunbar9a693872009-11-15 00:27:43 +000022SHARED_LIBRARY = 1
23
Daniel Dunbarafed0992010-06-08 20:34:18 +000024include $(CLANG_LEVEL)/Makefile
Nico Weber6d733ed2011-01-26 21:28:52 +000025
26ifeq ($(OS),Darwin)
27 LDFLAGS=-Wl,-undefined,dynamic_lookup
28endif