From f6135630a8905e8658b77c4d27b4931bb083140f Mon Sep 17 00:00:00 2001 From: Daniel Dunbar Date: Mon, 19 Jan 2009 18:50:49 +0000 Subject: [PATCH] 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. llvm-svn: 62517 --- clang/Makefile | 2 +- clang/tools/ccc/Makefile | 28 ++++++++++++++++++++++++++++ clang/tools/ccc/{xcc => ccc} | 0 3 files changed, 29 insertions(+), 1 deletion(-) create mode 100644 clang/tools/ccc/Makefile rename clang/tools/ccc/{xcc => ccc} (100%) diff --git a/clang/Makefile b/clang/Makefile index 06b92886911d..51693c4d84e1 100644 --- a/clang/Makefile +++ b/clang/Makefile @@ -1,5 +1,5 @@ LEVEL = ../.. -DIRS := lib Driver docs +DIRS := lib Driver docs tools include $(LEVEL)/Makefile.common diff --git a/clang/tools/ccc/Makefile b/clang/tools/ccc/Makefile new file mode 100644 index 000000000000..00f9d2fa821e --- /dev/null +++ b/clang/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/clang/tools/ccc/xcc b/clang/tools/ccc/ccc similarity index 100% rename from clang/tools/ccc/xcc rename to clang/tools/ccc/ccc