Put in a disabled template for when gccld is replaced by the shell script.
[oota-llvm.git] / tools / gccld / Makefile
1 ##===- tools/gccld/Makefile --------------------------------*- Makefile -*-===##
2
3 #                     The LLVM Compiler Infrastructure
4 #
5 # This file was developed by the LLVM research group and is distributed under
6 # the University of Illinois Open Source License. See LICENSE.TXT for details.
7
8 ##===----------------------------------------------------------------------===##
9
10 LEVEL = ../..
11
12 TOOLNAME = gccld
13 LINK_COMPONENTS = bcreader bcwriter ipo scalaropts ipa linker
14 REQUIRES_EH := 1
15
16 include $(LEVEL)/Makefile.common
17
18 ifdef DONT_USE_THIS
19 install-local:: $(PROJ_bindir)/gccld
20         
21 $(PROJ_bindir)/gccld : gccld.sh Makefile
22         $(Echo)Installing gccld shell script.
23         $(Verb)sed "s#@TOOLDIR@#$(PROJ_bindir)#" $< > $@
24         $(Verb)chmod 0755 $@
25
26 all-local:: $(ToolDir)/gccld
27         
28 $(ToolDir)/gccld : gccld.sh Makefile
29         $(Echo)Making $(ToolDir)/gccld shell script.
30         $(Verb)sed "s#@TOOLDIR@#$(ToolDir)#" $< > $@
31         $(Verb)chmod 0755 $@
32
33 clean-local::
34         $(Verb)$(RM) -f $(ToolDir)/gccld
35 endif