Daniel Dunbar | 9a69387 | 2009-11-15 00:27:43 +0000 | [diff] [blame] | 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 | |
Daniel Dunbar | afed099 | 2010-06-08 20:34:18 +0000 | [diff] [blame] | 10 | CLANG_LEVEL := ../.. |
Daniel Dunbar | 9a69387 | 2009-11-15 00:27:43 +0000 | [diff] [blame] | 11 | LIBRARYNAME = PrintFunctionNames |
| 12 | |
Dan Gohman | b02d96b | 2010-07-26 21:12:10 +0000 | [diff] [blame] | 13 | # If we don't need RTTI or EH, there's no reason to export anything |
| 14 | # from the plugin. |
| 15 | ifneq ($(REQUIRES_RTTI), 1) |
| 16 | ifneq ($(REQUIRES_EH), 1) |
| 17 | EXPORTED_SYMBOL_FILE = $(PROJ_SRC_DIR)/PrintFunctionNames.exports |
| 18 | endif |
| 19 | endif |
| 20 | |
Nico Weber | 6d733ed | 2011-01-26 21:28:52 +0000 | [diff] [blame^] | 21 | LINK_LIBS_IN_SHARED = 0 |
Daniel Dunbar | 9a69387 | 2009-11-15 00:27:43 +0000 | [diff] [blame] | 22 | SHARED_LIBRARY = 1 |
| 23 | |
Daniel Dunbar | afed099 | 2010-06-08 20:34:18 +0000 | [diff] [blame] | 24 | include $(CLANG_LEVEL)/Makefile |
Nico Weber | 6d733ed | 2011-01-26 21:28:52 +0000 | [diff] [blame^] | 25 | |
| 26 | ifeq ($(OS),Darwin) |
| 27 | LDFLAGS=-Wl,-undefined,dynamic_lookup |
| 28 | endif |