diff options
-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 |