##===- tools/llvmc/Makefile --------------------------------*- Makefile -*-===##
-#
+#
# The LLVM Compiler Infrastructure
#
-# This file was developed by the LLVM research group and is distributed under
-# the University of Illinois Open Source License. See LICENSE.TXT for details.
-#
+# This file is distributed under the University of Illinois Open
+# Source License. See LICENSE.TXT for details.
+#
##===----------------------------------------------------------------------===##
+
LEVEL = ../..
-TOOLNAME = llvmc
-USEDLIBS = bcreader vmcore support.a LLVMsystem.a
-CONFIG_FILES = st ll
+
+DIRS = src
+
+ifeq ($(BUILD_EXAMPLES),1)
+ OPTIONAL_DIRS += examples
+endif
include $(LEVEL)/Makefile.common