Misha Brukman | 0603079 | 2004-06-17 15:49:36 +0000 | [diff] [blame] | 1 | ##===- utils/TableGen/Makefile -----------------------------*- Makefile -*-===## |
John Criswell | e2fab73 | 2003-10-20 22:29:16 +0000 | [diff] [blame] | 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 | a539c03 | 2006-07-07 00:21:17 +0000 | [diff] [blame] | 9 | |
Chris Lattner | 0a92ebf | 2003-10-05 19:27:59 +0000 | [diff] [blame] | 10 | LEVEL = ../.. |
Chris Lattner | e62c118 | 2002-12-02 01:23:04 +0000 | [diff] [blame] | 11 | TOOLNAME = tblgen |
Reid Spencer | 6cb21d4 | 2004-10-27 23:18:45 +0000 | [diff] [blame] | 12 | USEDLIBS = LLVMSupport.a LLVMSystem.a |
Reid Spencer | 28421d0 | 2006-04-13 06:27:20 +0000 | [diff] [blame] | 13 | EXTRA_DIST = FileLexer.cpp.cvs FileLexer.l.cvs \ |
| 14 | FileParser.cpp.cvs FileParser.h.cvs FileParser.y.cvs |
Chris Lattner | a539c03 | 2006-07-07 00:21:17 +0000 | [diff] [blame] | 15 | REQUIRES_EH := 1 |
Chris Lattner | e62c118 | 2002-12-02 01:23:04 +0000 | [diff] [blame] | 16 | |
| 17 | include $(LEVEL)/Makefile.common |
| 18 | |
Reid Spencer | d386e55 | 2006-06-01 18:20:23 +0000 | [diff] [blame] | 19 | # Disable -pedantic for tblgen |
| 20 | CompileCommonOpts := $(filter-out -pedantic,$(CompileCommonOpts)) |
| 21 | CompileCommonOpts := $(filter-out -Wno-long-long,$(CompileCommonOpts)) |
| 22 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 23 | # |
| 24 | # Make the source file depend on the header file. In this way, dependencies |
| 25 | # (which depend on the source file) won't get generated until bison is done |
| 26 | # generating the C source and header files for the parser. |
| 27 | # |
Reid Spencer | 68a24bd | 2005-08-27 18:50:39 +0000 | [diff] [blame] | 28 | $(ObjDir)/FileLexer.o : $(PROJ_SRC_DIR)/FileParser.h |