#
#===-----------------------------------------------------------------------====#
+# Set the architecture so that Sparc platform dependant code is compmiled
+ARCH := Sparc
+
# MakeSharedObjectOption - This option is passed to the linker by
# Makefile.common when compiling a shared object.
#
MakeSharedObjectOption := -G
-# ExportSymbols - This is used by tools that need to make sure that all of their
-# symbols are exported for use at runtime by dlsym.
+# PLATFORMLINKOPTS - On sun we need to link to libmalloc.so to get a definition
+# of mallinfo.
+PLATFORMLINKOPTS := -lmalloc
+
+# PLATFORMSTRIPOPTS - Command to pass to the link phase to cause symbols to be
+# stripped from the resultant binary.
#
-ExportSymbols :=
+# FIXME: I don't know what this is for sun, so leave it alone
+#
+PLATFORMSTRIPOPTS :=
+# PLATFORMLIBDL - Library that supports dlsym() et al.
+PLATFORMLIBDL := -ldl
+# Path to location for LLVM front-end for this architecture. This setting may
+# be overriden by the Makefile.config option, and should not override it if set.
+#
+LLVMGCCARCH := sparcv9-sun-solaris2.8/3.4-llvm
+ifndef LLVMGCCDIR
+LLVMGCCDIR := /home/vadve/lattner/local/sparc/llvm-gcc/
+endif