John Criswell | e488e93 | 2003-10-20 22:26:57 +0000 | [diff] [blame] | 1 | ##===- 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 Lattner | 0095054 | 2001-06-06 20:29:01 +0000 | [diff] [blame] | 9 | |
Chris Lattner | 4047a49 | 2005-02-01 01:47:12 +0000 | [diff] [blame] | 10 | LEVEL = ../.. |
Reid Spencer | 5d6ca51 | 2004-10-28 00:43:24 +0000 | [diff] [blame] | 11 | LIBRARYNAME := LLVMAsmParser |
Reid Spencer | 18c8b49 | 2006-06-01 01:30:27 +0000 | [diff] [blame] | 12 | BUILD_ARCHIVE = 1 |
Chris Lattner | 7c339b8 | 2006-07-07 16:44:31 +0000 | [diff] [blame] | 13 | REQUIRES_EH := 1 |
Reid Spencer | 536c006 | 2006-04-12 20:57:05 +0000 | [diff] [blame] | 14 | EXTRA_DIST := Lexer.cpp.cvs Lexer.l.cvs \ |
| 15 | llvmAsmParser.cpp.cvs llvmAsmParser.h.cvs llvmAsmParser.y.cvs |
Chris Lattner | 0095054 | 2001-06-06 20:29:01 +0000 | [diff] [blame] | 16 | |
| 17 | include $(LEVEL)/Makefile.common |
| 18 | |
Chris Lattner | 57de7a4 | 2006-06-02 18:20:28 +0000 | [diff] [blame] | 19 | # Disable -pedantic for this library, as bison output isn't necessarily |
| 20 | # -pedantic clean. |
| 21 | CompileCommonOpts := $(filter-out -pedantic,$(CompileCommonOpts)) |
| 22 | CompileCommonOpts := $(filter-out -Wno-long-long,$(CompileCommonOpts)) |
| 23 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 24 | # |
Reid Spencer | 5d6ca51 | 2004-10-28 00:43:24 +0000 | [diff] [blame] | 25 | # 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 Spencer | 68a24bd | 2005-08-27 18:50:39 +0000 | [diff] [blame] | 28 | $(ObjDir)/Lexer.o: $(PROJ_SRC_DIR)/llvmAsmParser.h |