Read Makefile.config before using LLVMGCC.
[oota-llvm.git] / runtime / libprofile / Makefile
index 87badfec0260197605e5e9ba6517a0979f099692..92a85584db171bb47619b1e88547815ca48bf06e 100644 (file)
@@ -2,16 +2,21 @@
 # 
 #                     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