1 ##===- tools/llvmc2/Makefile -------------------------------*- Makefile -*-===##
3 # The LLVM Compiler Infrastructure
5 # This file is distributed under the University of Illinois Open
6 # Source License. See LICENSE.TXT for details.
8 ##===----------------------------------------------------------------------===##
11 BUILT_SOURCES = AutoGenerated.inc
12 LINK_COMPONENTS = support system
15 include $(LEVEL)/Makefile.common
22 # TOFIX: integrate this part into Makefile.rules?
23 # The degree of horrorshowness in that file is too much for me atm.
24 $(ObjDir)/AutoGenerated.inc.tmp: $(TOOLS_SOURCE) $(ObjDir)/.dir $(TBLGEN)
25 $(Echo) "Building LLVMC configuration library with tblgen"
26 $(Verb) $(TableGen) -gen-llvmc -o $(call SYSPATH, $@) $<
28 AutoGenerated.inc : $(ObjDir)/AutoGenerated.inc.tmp
29 $(Verb) $(CMP) -s $@ $< || $(CP) $< $@