1 ##===- tools/llvmcc/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 = Tools.inc
12 LINK_COMPONENTS = support system
15 include $(LEVEL)/Makefile.common
18 ifeq ($(TOOLS_TARGET), default)
19 TOOLS_SOURCE=Example.td
21 TOOLS_SOURCE=ExampleWithOpt.td
24 # TOFIX: integrate this part into Makefile.rules?
25 # The degree of horrorshowness in that file is too much for me atm.
26 $(ObjDir)/Tools.inc.tmp: $(TOOLS_SOURCE) $(ObjDir)/.dir
27 $(Echo) "Building LLVMCC configuration library with tblgen"
28 $(Verb) $(TableGen) -gen-llvmcc -o $@ $<
30 Tools.inc : $(ObjDir)/Tools.inc.tmp
31 $(Verb) $(CMP) -s $@ $< || $(CP) $< $@