##===- runtime/libprofile/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 = ../..
+include $(LEVEL)/Makefile.config
+
+ifneq ($(strip $(LLVMCC)),)
BYTECODE_LIBRARY = 1
+endif
SHARED_LIBRARY = 1
+LOADABLE_MODULE = 1
LIBRARYNAME = profile_rt
-EXTRA_DIST = exported_symbols.lst
-EXPORTED_SYMBOL_FILE = $(BUILD_SRC_DIR)/exported_symbols.lst
+EXTRA_DIST = libprofile.exports
+EXPORTED_SYMBOL_FILE = $(PROJ_SRC_DIR)/libprofile.exports
include $(LEVEL)/Makefile.common