blob: 0d64088cedcd033ec7ef26f7c002123bd73c6a2c [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 Glushenkovdedba642008-05-30 06:08:50 +000017GRAPH=Graph.td
Mikhail Glushenkov1ce87222008-05-30 06:14:42 +000018$(GRAPH) : Common.td
19Graph.td : Tools.td
20TOOLS_SOURCE=$(GRAPH)
Anton Korobeynikove9ffb5b2008-03-23 08:57:20 +000021
22# TOFIX: integrate this part into Makefile.rules?
23# The degree of horrorshowness in that file is too much for me atm.
Mikhail Glushenkovdedba642008-05-30 06:08:50 +000024$(ObjDir)/AutoGenerated.inc.tmp: $(TOOLS_SOURCE) $(ObjDir)/.dir $(TBLGEN)
25 $(Echo) "Building LLVMC configuration library with tblgen"
Mikhail Glushenkovc1f738d2008-05-06 18:12:03 +000026 $(Verb) $(TableGen) -gen-llvmc -o $(call SYSPATH, $@) $<
Anton Korobeynikove9ffb5b2008-03-23 08:57:20 +000027
Mikhail Glushenkovafbeae92008-05-06 16:34:12 +000028AutoGenerated.inc : $(ObjDir)/AutoGenerated.inc.tmp
Anton Korobeynikove9ffb5b2008-03-23 08:57:20 +000029 $(Verb) $(CMP) -s $@ $< || $(CP) $< $@