Add methods to StringMap to erase entries by key.
[oota-llvm.git] / tools / llvmc2 / Makefile
1 ##===- tools/llvmc2/Makefile -------------------------------*- Makefile -*-===##
2 #
3 #                     The LLVM Compiler Infrastructure
4 #
5 # This file is distributed under the University of Illinois Open
6 # Source License. See LICENSE.TXT for details.
7 #
8 ##===----------------------------------------------------------------------===##
9 LEVEL = ../..
10 TOOLNAME = llvmc2
11 BUILT_SOURCES = AutoGenerated.inc
12 LINK_COMPONENTS = support system
13 REQUIRES_EH := 1
14
15 include $(LEVEL)/Makefile.common
16
17 GRAPH=Graph.td
18 $(GRAPH) : Common.td
19 Graph.td : Tools.td
20 TOOLS_SOURCE=$(GRAPH)
21
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, $@) $<
27
28 AutoGenerated.inc : $(ObjDir)/AutoGenerated.inc.tmp
29         $(Verb) $(CMP) -s $@ $< || $(CP) $< $@