1 ##===- lib/VMCore/Makefile ---------------------------------*- Makefile -*-===## 2 # 3 # The LLVM Compiler Infrastructure 4 # 5 # This file is distributed under the University of Illinois Open Source 6 # License. See LICENSE.TXT for details. 7 # 8 ##===----------------------------------------------------------------------===## 9 LEVEL = ../.. 10 LIBRARYNAME = LLVMCore 11 BUILD_ARCHIVE = 1 12 REQUIRES_RTTI = 1 13 14 BUILT_SOURCES = $(PROJ_OBJ_ROOT)/include/llvm/Intrinsics.gen 15 16 include $(LEVEL)/Makefile.common 17 18 GENFILE:=$(PROJ_OBJ_ROOT)/include/llvm/Intrinsics.gen 19 20 INTRINSICTD := $(PROJ_SRC_ROOT)/include/llvm/Intrinsics.td 21 INTRINSICTDS := $(wildcard $(PROJ_SRC_ROOT)/include/llvm/Intrinsics*.td) 22 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 26 27 $(GENFILE): $(ObjDir)/Intrinsics.gen.tmp 28 $(Verb) $(CMP) -s $@ $< || ( $(CP) $< $@ && \ 29 $(EchoCmd) Updated Intrinsics.gen because Intrinsics.gen.tmp \ 30 changed significantly. ) 31 32 install-local:: $(GENFILE) 33 $(Echo) Installing $(DESTDIR)$(PROJ_includedir)/llvm/Intrinsics.gen 34 $(Verb) $(DataInstall) $(GENFILE) $(DESTDIR)$(PROJ_includedir)/llvm/Intrinsics.gen 35