Fixed some bugs.
[llvm/zpu.git] / lib / VMCore / Makefile
blob03a4fc707debb5a72b6273b71920476363c5036f
1 ##===- lib/VMCore/Makefile ---------------------------------*- Makefile -*-===##
3 # The LLVM Compiler Infrastructure
5 # This file is distributed under the University of Illinois Open Source
6 # License. See LICENSE.TXT for details.
8 ##===----------------------------------------------------------------------===##
9 LEVEL = ../..
10 LIBRARYNAME = LLVMCore
11 BUILD_ARCHIVE = 1
12 REQUIRES_RTTI = 1
14 BUILT_SOURCES = $(PROJ_OBJ_ROOT)/include/llvm/Intrinsics.gen
16 include $(LEVEL)/Makefile.common
18 GENFILE:=$(PROJ_OBJ_ROOT)/include/llvm/Intrinsics.gen
20 INTRINSICTD := $(PROJ_SRC_ROOT)/include/llvm/Intrinsics.td
21 INTRINSICTDS := $(wildcard $(PROJ_SRC_ROOT)/include/llvm/Intrinsics*.td)
23 $(ObjDir)/Intrinsics.gen.tmp: $(ObjDir)/.dir $(INTRINSICTDS) $(TBLGEN)
24 $(Echo) Building Intrinsics.gen.tmp from Intrinsics.td
25 $(Verb) $(TableGen) $(call SYSPATH, $(INTRINSICTD)) -o $(call SYSPATH, $@) -gen-intrinsic
27 $(GENFILE): $(ObjDir)/Intrinsics.gen.tmp
28 $(Verb) $(CMP) -s $@ $< || ( $(CP) $< $@ && \
29 $(EchoCmd) Updated Intrinsics.gen because Intrinsics.gen.tmp \
30 changed significantly. )
32 install-local:: $(GENFILE)
33 $(Echo) Installing $(DESTDIR)$(PROJ_includedir)/llvm/Intrinsics.gen
34 $(Verb) $(DataInstall) $(GENFILE) $(DESTDIR)$(PROJ_includedir)/llvm/Intrinsics.gen