Anders Waldenborg | b932c66 | 2013-10-23 08:10:20 +0000 | [diff] [blame] | 1 | ##===- tools/llvm-c-test -----------------------------------*- 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 | |
| 10 | LEVEL = ../.. |
| 11 | TOOLNAME = llvm-c-test |
| 12 | |
| 13 | TOOL_NO_EXPORTS = 1 |
| 14 | NO_INSTALL = 1 |
| 15 | |
| 16 | |
| 17 | # If there is no shared lib, link all components... |
| 18 | ifneq ($(ENABLE_SHARED),1) |
| 19 | LINK_COMPONENTS = all |
| 20 | endif |
| 21 | |
| 22 | include $(LEVEL)/Makefile.common |
| 23 | |
| 24 | CFLAGS += -std=c99 -Wall -Wstrict-prototypes |
| 25 | |
| 26 | # ...but if it is built - use it |
| 27 | ifeq ($(ENABLE_SHARED),1) |
| 28 | LIBS = -lLLVM-$(LLVMVersion) |
| 29 | endif |