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
This commit is contained in:
Daniel Dunbar 2009-01-19 18:50:49 +00:00
parent 6c02498215
commit f6135630a8
3 changed files with 29 additions and 1 deletions

View File

@ -1,5 +1,5 @@
LEVEL = ../..
DIRS := lib Driver docs
DIRS := lib Driver docs tools
include $(LEVEL)/Makefile.common

28
clang/tools/ccc/Makefile Normal file
View File

@ -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 $@