2008-05-06 18:08:12 +00:00
|
|
|
##===- tools/llvmc2/Makefile -------------------------------*- Makefile -*-===##
|
2008-03-23 08:57:20 +00:00
|
|
|
#
|
|
|
|
# The LLVM Compiler Infrastructure
|
|
|
|
#
|
|
|
|
# This file is distributed under the University of Illinois Open
|
|
|
|
# Source License. See LICENSE.TXT for details.
|
|
|
|
#
|
|
|
|
##===----------------------------------------------------------------------===##
|
|
|
|
LEVEL = ../..
|
|
|
|
TOOLNAME = llvmc2
|
2008-05-06 16:34:12 +00:00
|
|
|
BUILT_SOURCES = AutoGenerated.inc
|
2008-03-23 08:57:20 +00:00
|
|
|
LINK_COMPONENTS = support system
|
|
|
|
REQUIRES_EH := 1
|
|
|
|
|
|
|
|
include $(LEVEL)/Makefile.common
|
|
|
|
|
2008-05-06 18:08:12 +00:00
|
|
|
TOOLS_SOURCE=Example.td Tools.td Common.td
|
2008-03-23 08:57:20 +00:00
|
|
|
|
|
|
|
# TOFIX: integrate this part into Makefile.rules?
|
|
|
|
# The degree of horrorshowness in that file is too much for me atm.
|
2008-05-06 16:34:12 +00:00
|
|
|
$(ObjDir)/AutoGenerated.inc.tmp: $(TOOLS_SOURCE) $(ObjDir)/.dir
|
2008-03-23 08:57:20 +00:00
|
|
|
$(Echo) "Building LLVMCC configuration library with tblgen"
|
2008-03-25 18:53:36 +00:00
|
|
|
$(Verb) $(TableGen) -gen-llvmcc -o $(call SYSPATH, $@) $<
|
2008-03-23 08:57:20 +00:00
|
|
|
|
2008-05-06 16:34:12 +00:00
|
|
|
AutoGenerated.inc : $(ObjDir)/AutoGenerated.inc.tmp
|
2008-03-23 08:57:20 +00:00
|
|
|
$(Verb) $(CMP) -s $@ $< || $(CP) $< $@
|
|
|
|
|