2010-08-02 00:39:42 +00:00
|
|
|
##===- utils/llvm-lit/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
|
|
|
|
|
2013-12-03 23:22:18 +00:00
|
|
|
# llvm-lit needs suffix.py for multiprocess to find a main module.
|
|
|
|
ifeq ($(HOST_OS),MingW)
|
|
|
|
Suffix := .py
|
|
|
|
endif
|
2010-08-02 00:39:42 +00:00
|
|
|
|
2013-12-03 23:22:18 +00:00
|
|
|
all:: $(ToolDir)/llvm-lit$(Suffix)
|
|
|
|
|
|
|
|
$(ToolDir)/llvm-lit$(Suffix): llvm-lit.in Makefile $(ToolDir)/.dir
|
2010-08-02 00:39:42 +00:00
|
|
|
$(Echo) "Creating 'llvm-lit' script..."
|
2011-03-08 12:25:19 +00:00
|
|
|
$(Verb)$(ECHOPATH) s=@LLVM_SOURCE_DIR@=$(LLVM_SRC_ROOT)=g > lit.tmp
|
|
|
|
$(Verb)$(ECHOPATH) s=@LLVM_BINARY_DIR@=$(LLVM_OBJ_ROOT)=g >> lit.tmp
|
|
|
|
$(Verb)sed -f lit.tmp $< > $@
|
2010-08-02 00:39:42 +00:00
|
|
|
$(Verb)chmod +x $@
|
2011-03-08 12:25:19 +00:00
|
|
|
$(Verb)rm -f lit.tmp
|