Mikhail Glushenkov | 15456a1 | 2008-05-06 18:08:12 +0000 | [diff] [blame] | 1 | ##===- tools/llvmc2/Makefile -------------------------------*- Makefile -*-===## |
Anton Korobeynikov | e9ffb5b | 2008-03-23 08:57:20 +0000 | [diff] [blame] | 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 |
Mikhail Glushenkov | afbeae9 | 2008-05-06 16:34:12 +0000 | [diff] [blame] | 11 | BUILT_SOURCES = AutoGenerated.inc |
Anton Korobeynikov | e9ffb5b | 2008-03-23 08:57:20 +0000 | [diff] [blame] | 12 | LINK_COMPONENTS = support system |
| 13 | REQUIRES_EH := 1 |
| 14 | |
| 15 | include $(LEVEL)/Makefile.common |
| 16 | |
Mikhail Glushenkov | dedba64 | 2008-05-30 06:08:50 +0000 | [diff] [blame] | 17 | GRAPH=Graph.td |
Mikhail Glushenkov | 1ce8722 | 2008-05-30 06:14:42 +0000 | [diff] [blame] | 18 | $(GRAPH) : Common.td |
| 19 | Graph.td : Tools.td |
| 20 | TOOLS_SOURCE=$(GRAPH) |
Anton Korobeynikov | e9ffb5b | 2008-03-23 08:57:20 +0000 | [diff] [blame] | 21 | |
| 22 | # TOFIX: integrate this part into Makefile.rules? |
| 23 | # The degree of horrorshowness in that file is too much for me atm. |
Mikhail Glushenkov | dedba64 | 2008-05-30 06:08:50 +0000 | [diff] [blame] | 24 | $(ObjDir)/AutoGenerated.inc.tmp: $(TOOLS_SOURCE) $(ObjDir)/.dir $(TBLGEN) |
| 25 | $(Echo) "Building LLVMC configuration library with tblgen" |
Mikhail Glushenkov | c1f738d | 2008-05-06 18:12:03 +0000 | [diff] [blame] | 26 | $(Verb) $(TableGen) -gen-llvmc -o $(call SYSPATH, $@) $< |
Anton Korobeynikov | e9ffb5b | 2008-03-23 08:57:20 +0000 | [diff] [blame] | 27 | |
Mikhail Glushenkov | afbeae9 | 2008-05-06 16:34:12 +0000 | [diff] [blame] | 28 | AutoGenerated.inc : $(ObjDir)/AutoGenerated.inc.tmp |
Anton Korobeynikov | e9ffb5b | 2008-03-23 08:57:20 +0000 | [diff] [blame] | 29 | $(Verb) $(CMP) -s $@ $< || $(CP) $< $@ |