Put in a disabled template for when gccld is replaced by the shell script.
[oota-llvm.git] / tools / gccld / Makefile
index dba89b9eb9581e78cff2cbf97798af2628cda704..21adca217c02b5ce2781df86db7ba17b4d8b8696 100644 (file)
@@ -1,7 +1,35 @@
+##===- tools/gccld/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.
+# 
+##===----------------------------------------------------------------------===##
+
 LEVEL = ../..
 
 TOOLNAME = gccld
-USEDLIBS = ipo.a analysis.a transforms.a ipa.a scalaropts.a transformutils.a \
-           target.a bcreader bcwriter vmcore support.a
+LINK_COMPONENTS = bcreader bcwriter ipo scalaropts ipa linker
+REQUIRES_EH := 1
 
 include $(LEVEL)/Makefile.common
+
+ifdef DONT_USE_THIS
+install-local:: $(PROJ_bindir)/gccld
+       
+$(PROJ_bindir)/gccld : gccld.sh Makefile
+       $(Echo)Installing gccld shell script.
+       $(Verb)sed "s#@TOOLDIR@#$(PROJ_bindir)#" $< > $@
+       $(Verb)chmod 0755 $@
+
+all-local:: $(ToolDir)/gccld
+       
+$(ToolDir)/gccld : gccld.sh Makefile
+       $(Echo)Making $(ToolDir)/gccld shell script.
+       $(Verb)sed "s#@TOOLDIR@#$(ToolDir)#" $< > $@
+       $(Verb)chmod 0755 $@
+
+clean-local::
+       $(Verb)$(RM) -f $(ToolDir)/gccld
+endif