blob: 62e9c87076340ebc2ab6ad30899802949d95fb2a [file] [log] [blame]
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001##===- lib/AsmParser/Makefile ------------------------------*- Makefile -*-===##
2#
3# The LLVM Compiler Infrastructure
4#
Chris Lattner80455b82007-12-29 20:09:26 +00005# This file is distributed under the University of Illinois Open Source
6# License. See LICENSE.TXT for details.
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007#
8##===----------------------------------------------------------------------===##
9
10LEVEL = ../..
11LIBRARYNAME := LLVMAsmParser
12BUILD_ARCHIVE = 1
Chris Lattner17e73c22007-11-18 08:46:26 +000013EXTRA_DIST := llvmAsmParser.cpp.cvs llvmAsmParser.h.cvs llvmAsmParser.y.cvs
Dan Gohmanf17a25c2007-07-18 16:29:46 +000014
15include $(LEVEL)/Makefile.common
16
17# 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
22#
23# 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 Lattner17e73c22007-11-18 08:46:26 +000026$(ObjDir)/LLLexer.o: $(PROJ_SRC_DIR)/llvmAsmParser.h