blob: 14da3e718ce57b67ab08878d47f700e5efed3174 [file] [log] [blame]
Misha Brukmanb1883932004-10-29 23:26:09 +00001##===- tools/gccas/Makefile --------------------------------*- Makefile -*-===##
John Criswelle2fab732003-10-20 22:29:16 +00002#
3# The LLVM Compiler Infrastructure
4#
Reid Spencerbd70c0b2007-02-02 15:50:58 +00005# This file was developed by Reid Spencer and is distributed under the
6# University of Illinois Open Source License. See LICENSE.TXT for details.
John Criswelle2fab732003-10-20 22:29:16 +00007#
8##===----------------------------------------------------------------------===##
Chris Lattnerecbde332001-10-31 04:28:11 +00009LEVEL = ../..
10
Chris Lattnerecbde332001-10-31 04:28:11 +000011include $(LEVEL)/Makefile.common
Reid Spencerbd70c0b2007-02-02 15:50:58 +000012
13install-local:: $(PROJ_bindir)/gccas
14
Reid Spencera3e60622007-02-04 00:23:51 +000015$(PROJ_bindir)/gccas : gccas.sh Makefile
Reid Spencerc74913c2007-02-03 16:09:12 +000016 $(Echo)Installing gccas shell script.
17 $(Verb)sed "s#@TOOLDIR@#$(PROJ_bindir)#" $< > $@
Reid Spencera3e60622007-02-04 00:23:51 +000018 $(Verb)chmod 0755 $@
Reid Spencerbd70c0b2007-02-02 15:50:58 +000019
20all-local:: $(ToolDir)/gccas
21
Reid Spencera3e60622007-02-04 00:23:51 +000022$(ToolDir)/gccas : gccas.sh Makefile
Reid Spencerc74913c2007-02-03 16:09:12 +000023 $(Echo)Making $(ToolDir)/gccas shell script.
24 $(Verb)sed "s#@TOOLDIR@#$(ToolDir)#" $< > $@
Reid Spencera3e60622007-02-04 00:23:51 +000025 $(Verb)chmod 0755 $@
Reid Spencerbd70c0b2007-02-02 15:50:58 +000026
Reid Spencerc74913c2007-02-03 16:09:12 +000027clean-local::
28 $(Verb)$(RM) -f $(ToolDir)/gccas