mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-26 05:32:25 +00:00
e0c0a71531
llvm-lit needs suffix.py for multiprocess to find a main module. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@196328 91177308-0d34-0410-b5e6-96231b3b80d8
28 lines
857 B
Makefile
28 lines
857 B
Makefile
##===- 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
|
|
|
|
# llvm-lit needs suffix.py for multiprocess to find a main module.
|
|
ifeq ($(HOST_OS),MingW)
|
|
Suffix := .py
|
|
endif
|
|
|
|
all:: $(ToolDir)/llvm-lit$(Suffix)
|
|
|
|
$(ToolDir)/llvm-lit$(Suffix): llvm-lit.in Makefile $(ToolDir)/.dir
|
|
$(Echo) "Creating 'llvm-lit' script..."
|
|
$(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 $< > $@
|
|
$(Verb)chmod +x $@
|
|
$(Verb)rm -f lit.tmp
|