blob: 772e9ec33a9661efd90ef4a8132abd2716bdae8a [file] [log] [blame]
Mikhail Glushenkov15456a12008-05-06 18:08:12 +00001##===- tools/llvmc2/Makefile -------------------------------*- Makefile -*-===##
Anton Korobeynikove9ffb5b2008-03-23 08:57:20 +00002#
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##===----------------------------------------------------------------------===##
9LEVEL = ../..
10TOOLNAME = llvmc2
Mikhail Glushenkovafbeae92008-05-06 16:34:12 +000011BUILT_SOURCES = AutoGenerated.inc
Anton Korobeynikove9ffb5b2008-03-23 08:57:20 +000012LINK_COMPONENTS = support system
13REQUIRES_EH := 1
14
15include $(LEVEL)/Makefile.common
16
Mikhail Glushenkov15456a12008-05-06 18:08:12 +000017TOOLS_SOURCE=Example.td Tools.td Common.td
Anton Korobeynikove9ffb5b2008-03-23 08:57:20 +000018
19# TOFIX: integrate this part into Makefile.rules?
20# The degree of horrorshowness in that file is too much for me atm.
Mikhail Glushenkovafbeae92008-05-06 16:34:12 +000021$(ObjDir)/AutoGenerated.inc.tmp: $(TOOLS_SOURCE) $(ObjDir)/.dir
Anton Korobeynikove9ffb5b2008-03-23 08:57:20 +000022 $(Echo) "Building LLVMCC configuration library with tblgen"
Anton Korobeynikov01b2df62008-03-25 18:53:36 +000023 $(Verb) $(TableGen) -gen-llvmcc -o $(call SYSPATH, $@) $<
Anton Korobeynikove9ffb5b2008-03-23 08:57:20 +000024
Mikhail Glushenkovafbeae92008-05-06 16:34:12 +000025AutoGenerated.inc : $(ObjDir)/AutoGenerated.inc.tmp
Anton Korobeynikove9ffb5b2008-03-23 08:57:20 +000026 $(Verb) $(CMP) -s $@ $< || $(CP) $< $@
27