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