blob: 9755571d07cae1cc8bef49628220067125292831 [file] [log] [blame]
John Criswelle488e932003-10-20 22:26:57 +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##===----------------------------------------------------------------------===##
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 Lattner7c339b82006-07-07 16:44:31 +000013REQUIRES_EH := 1
Reid Spencer536c0062006-04-12 20:57:05 +000014EXTRA_DIST := Lexer.cpp.cvs Lexer.l.cvs \
15 llvmAsmParser.cpp.cvs llvmAsmParser.h.cvs llvmAsmParser.y.cvs
Chris Lattner00950542001-06-06 20:29:01 +000016
17include $(LEVEL)/Makefile.common
18
Chris Lattner57de7a42006-06-02 18:20:28 +000019# Disable -pedantic for this library, as bison output isn't necessarily
20# -pedantic clean.
21CompileCommonOpts := $(filter-out -pedantic,$(CompileCommonOpts))
22CompileCommonOpts := $(filter-out -Wno-long-long,$(CompileCommonOpts))
23
John Criswell7a73b802003-06-30 21:59:07 +000024#
Reid Spencer5d6ca512004-10-28 00:43:24 +000025# Make the object code file for the lexer depend upon the header file generated
26# by the Bison parser. This prevents the Lexer from being compiled before the
27# header file it needs is built.
Reid Spencer68a24bd2005-08-27 18:50:39 +000028$(ObjDir)/Lexer.o: $(PROJ_SRC_DIR)/llvmAsmParser.h