diff options
author | Daniel Dunbar <daniel@zuster.org> | 2009-01-19 18:50:49 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2009-01-19 18:50:49 +0000 |
commit | c72e5aee742dd7101ac46e08ce560d991a575b3e (patch) | |
tree | f7766b1fe78f22893ed7ba88a7afda328a773995 | |
parent | f034e9cc4dad81d8fe6eb88a84da55b2909a9cdd (diff) |
ccc: Add installation of ccc; based on patch from Mike Stump.
- This doesn't follow normal installation procedure of python
code, but no sense trying too hard since ccc will be moved to
C++.
- Entry point is now tools/ccc.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@62517 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | Makefile | 2 | ||||
-rw-r--r-- | tools/ccc/Makefile | 28 | ||||
-rwxr-xr-x | tools/ccc/ccc (renamed from tools/ccc/xcc) | 0 |
3 files changed, 29 insertions, 1 deletions
@@ -1,5 +1,5 @@ LEVEL = ../.. -DIRS := lib Driver docs +DIRS := lib Driver docs tools include $(LEVEL)/Makefile.common diff --git a/tools/ccc/Makefile b/tools/ccc/Makefile new file mode 100644 index 0000000000..00f9d2fa82 --- /dev/null +++ b/tools/ccc/Makefile @@ -0,0 +1,28 @@ +##===- tools/ccc/Makefile ----------------------------------*- Makefile -*-===## +# +# The LLVM Compiler Infrastructure +# +# This file is distributed under the University of Illinois Open Source +# License. See LICENSE.TXT for details. +# +##===----------------------------------------------------------------------===## + +LEVEL = ../../../.. + +include $(LEVEL)/Makefile.common + +install-local:: $(PROJ_bindir)/ccc $(PROJ_bindir)/ccclib + +Extra := $(wildcard ccclib/*.py) + +$(PROJ_bindir)/ccclib : $(Extra) + $(Echo) Installing ccclib. + $(Verb) mkdir -p $(PROJ_bindir)/ccclib + $(Verb) cp $? $(PROJ_bindir)/ccclib + $(Verb) python -m compileall $(PROJ_bindir)/ccclib + $(Verb) touch $(PROJ_bindir)/ccclib + +$(PROJ_bindir)/ccc : ccc + $(Echo) Installing $< shell script. + $(Verb) cat $< > $@ + $(Verb) chmod 0755 $@ diff --git a/tools/ccc/xcc b/tools/ccc/ccc index 030243b815..030243b815 100755 --- a/tools/ccc/xcc +++ b/tools/ccc/ccc |