blob: 75ae34542a8cb387c367b1764edbca9164832170 [file] [log] [blame]
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001##===- lib/AsmParser/Makefile ------------------------------*- Makefile -*-===##
2#
3# The LLVM Compiler Infrastructure
4#
5# This file was developed by the LLVM research group and is distributed under
6# the University of Illinois Open Source License. See LICENSE.TXT for details.
7#
8##===----------------------------------------------------------------------===##
9
10LEVEL = ../..
11LIBRARYNAME := LLVMAsmParser
12BUILD_ARCHIVE = 1
13EXTRA_DIST := Lexer.cpp.cvs Lexer.l.cvs \
14 llvmAsmParser.cpp.cvs llvmAsmParser.h.cvs llvmAsmParser.y.cvs
15
16include $(LEVEL)/Makefile.common
17
18# Disable -pedantic for this library, as bison output isn't necessarily
19# -pedantic clean.
20CompileCommonOpts := $(filter-out -pedantic,$(CompileCommonOpts))
21CompileCommonOpts := $(filter-out -Wno-long-long,$(CompileCommonOpts))
22
23#
24# Make the object code file for the lexer depend upon the header file generated
25# by the Bison parser. This prevents the Lexer from being compiled before the
26# header file it needs is built.
27$(ObjDir)/Lexer.o: $(PROJ_SRC_DIR)/llvmAsmParser.h