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 | 15456a1 | 2008-05-06 18:08:12 +0000 | [diff] [blame^] | 17 | TOOLS_SOURCE=Example.td Tools.td Common.td |
Anton Korobeynikov | e9ffb5b | 2008-03-23 08:57:20 +0000 | [diff] [blame] | 18 | |
| 19 | # TOFIX: integrate this part into Makefile.rules? |
| 20 | # The degree of horrorshowness in that file is too much for me atm. |
Mikhail Glushenkov | afbeae9 | 2008-05-06 16:34:12 +0000 | [diff] [blame] | 21 | $(ObjDir)/AutoGenerated.inc.tmp: $(TOOLS_SOURCE) $(ObjDir)/.dir |
Anton Korobeynikov | e9ffb5b | 2008-03-23 08:57:20 +0000 | [diff] [blame] | 22 | $(Echo) "Building LLVMCC configuration library with tblgen" |
Anton Korobeynikov | 01b2df6 | 2008-03-25 18:53:36 +0000 | [diff] [blame] | 23 | $(Verb) $(TableGen) -gen-llvmcc -o $(call SYSPATH, $@) $< |
Anton Korobeynikov | e9ffb5b | 2008-03-23 08:57:20 +0000 | [diff] [blame] | 24 | |
Mikhail Glushenkov | afbeae9 | 2008-05-06 16:34:12 +0000 | [diff] [blame] | 25 | AutoGenerated.inc : $(ObjDir)/AutoGenerated.inc.tmp |
Anton Korobeynikov | e9ffb5b | 2008-03-23 08:57:20 +0000 | [diff] [blame] | 26 | $(Verb) $(CMP) -s $@ $< || $(CP) $< $@ |
| 27 | |