#
# 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 = ../..
-BYTECODE_LIBRARY=1
-SHARED_LIBRARY=1
-#DONT_BUILD_RELINKED=1
-LIBRARYNAME=profile_rt
-EXPORTED_SYMBOL_FILE = $(SourceDir)/exported_symbols.lst
+include $(LEVEL)/Makefile.config
-include $(LEVEL)/Makefile.common
+ifneq ($(wildcard $(LLVMGCC)),)
+BYTECODE_LIBRARY = 1
+endif
+SHARED_LIBRARY = 1
+LOADABLE_MODULE = 1
+LIBRARYNAME = profile_rt
+EXTRA_DIST = exported_symbols.lst
+EXPORTED_SYMBOL_FILE = $(PROJ_SRC_DIR)/exported_symbols.lst
+include $(LEVEL)/Makefile.common