blob: 62e9c87076340ebc2ab6ad30899802949d95fb2a [file] [log] [blame]
John Criswelle488e932003-10-20 22:26:57 +00001##===- lib/AsmParser/Makefile ------------------------------*- Makefile -*-===##
2#
3# The LLVM Compiler Infrastructure
4#
Chris Lattnerfc643c52007-12-29 20:09:26 +00005# This file is distributed under the University of Illinois Open Source
6# License. See LICENSE.TXT for details.
John Criswelle488e932003-10-20 22:26:57 +00007#
8##===----------------------------------------------------------------------===##
Chris Lattner00950542001-06-06 20:29:01 +00009
Chris Lattner4047a492005-02-01 01:47:12 +000010LEVEL = ../..
Reid Spencer5d6ca512004-10-28 00:43:24 +000011LIBRARYNAME := LLVMAsmParser
Reid Spencer18c8b492006-06-01 01:30:27 +000012BUILD_ARCHIVE = 1
Chris Lattner8e3a8e02007-11-18 08:46:26 +000013EXTRA_DIST := llvmAsmParser.cpp.cvs llvmAsmParser.h.cvs llvmAsmParser.y.cvs
Chris Lattner00950542001-06-06 20:29:01 +000014
15include $(LEVEL)/Makefile.common
16
Chris Lattner57de7a42006-06-02 18:20:28 +000017# Disable -pedantic for this library, as bison output isn't necessarily
18# -pedantic clean.
19CompileCommonOpts := $(filter-out -pedantic,$(CompileCommonOpts))
20CompileCommonOpts := $(filter-out -Wno-long-long,$(CompileCommonOpts))
21
John Criswell7a73b802003-06-30 21:59:07 +000022#
Reid Spencer5d6ca512004-10-28 00:43:24 +000023# Make the object code file for the lexer depend upon the header file generated
24# by the Bison parser. This prevents the Lexer from being compiled before the
25# header file it needs is built.
Chris Lattner8e3a8e02007-11-18 08:46:26 +000026$(ObjDir)/LLLexer.o: $(PROJ_SRC_DIR)/llvmAsmParser.h