1##===- lib/IR/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##===----------------------------------------------------------------------===## 9LEVEL = ../.. 10LIBRARYNAME = LLVMCore 11BUILD_ARCHIVE = 1 12 13BUILT_SOURCES = $(PROJ_OBJ_ROOT)/include/llvm/IR/Intrinsics.gen 14 15include $(LEVEL)/Makefile.common 16 17GENFILE:=$(PROJ_OBJ_ROOT)/include/llvm/IR/Intrinsics.gen 18 19INTRINSICTD := $(PROJ_SRC_ROOT)/include/llvm/IR/Intrinsics.td 20INTRINSICTDS := $(wildcard $(PROJ_SRC_ROOT)/include/llvm/IR/Intrinsics*.td) 21 22$(ObjDir)/Intrinsics.gen.tmp: $(ObjDir)/.dir $(INTRINSICTDS) $(LLVM_TBLGEN) 23 $(Echo) Building Intrinsics.gen.tmp from Intrinsics.td 24 $(Verb) $(LLVMTableGen) $(call SYSPATH, $(INTRINSICTD)) -o $(call SYSPATH, $@) -gen-intrinsic 25 26$(GENFILE): $(ObjDir)/Intrinsics.gen.tmp $(PROJ_OBJ_ROOT)/include/llvm/IR/.dir 27 $(Verb) $(CMP) -s $@ $< || ( $(CP) $< $@ && \ 28 $(EchoCmd) Updated Intrinsics.gen because Intrinsics.gen.tmp \ 29 changed significantly. ) 30 31install-local:: $(GENFILE) 32 $(Echo) Installing $(DESTDIR)$(PROJ_includedir)/llvm/IR/Intrinsics.gen 33 $(Verb) $(DataInstall) $(GENFILE) $(DESTDIR)$(PROJ_includedir)/llvm/IR/Intrinsics.gen 34