Give MSP430 a separate asmprinter lib

llvm-svn: 79012
This commit is contained in:
Anton Korobeynikov 2009-08-14 18:28:12 +00:00
parent d0d7256b8f
commit 52b7f0ad5f
4 changed files with 23 additions and 2 deletions

View File

@ -0,0 +1,6 @@
include_directories( ${CMAKE_CURRENT_BINARY_DIR}/.. ${CMAKE_CURRENT_SOURCE_DIR}/.. )
add_llvm_library(LLVMMSP430AsmPrinter
MSP430AsmPrinter.cpp
)
add_dependencies(LLVMMSP430AsmPrinter MSP430CodeGenTable_gen)

View File

@ -0,0 +1,15 @@
##===- lib/Target/MSP430/Makefile --------------------------*- Makefile -*-===##
#
# The LLVM Compiler Infrastructure
#
# This file is distributed under the University of Illinois Open Source
# License. See LICENSE.TXT for details.
#
##===----------------------------------------------------------------------===##
LEVEL = ../../../..
LIBRARYNAME = LLVMMSP430AsmPrinter
# Hack: we need to include 'main' MSP430 target directory to grab private headers
CPPFLAGS = -I$(PROJ_OBJ_DIR)/.. -I$(PROJ_SRC_DIR)/..
include $(LEVEL)/Makefile.common

View File

@ -7,7 +7,7 @@
#
##===----------------------------------------------------------------------===##
LEVEL = ../../..
LIBRARYNAME = LLVMMSP430
LIBRARYNAME = LLVMMSP430CodeGen
TARGET = MSP430
# Make sure that tblgen is run, first thing.
@ -17,7 +17,7 @@ BUILT_SOURCES = MSP430GenRegisterInfo.h.inc MSP430GenRegisterNames.inc \
MSP430GenDAGISel.inc MSP430GenCallingConv.inc \
MSP430GenSubtarget.inc
DIRS = TargetInfo
DIRS = AsmPrinter TargetInfo
include $(LEVEL)/Makefile.common