64e24e07b595b9dabc6cd97489a3dc9bed221142
[oota-llvm.git] / utils / TableGen / Makefile
1 ##===- utils/TableGen/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
10 LEVEL = ../..
11 TOOLNAME = tblgen
12 USEDLIBS = LLVMSupport.a LLVMSystem.a
13 EXTRA_DIST = FileLexer.cpp.cvs FileLexer.l.cvs \
14              FileParser.cpp.cvs FileParser.h.cvs FileParser.y.cvs
15 REQUIRES_EH := 1
16
17 include $(LEVEL)/Makefile.common
18
19 # Disable -pedantic for tblgen
20 CompileCommonOpts := $(filter-out -pedantic,$(CompileCommonOpts))
21 CompileCommonOpts := $(filter-out -Wno-long-long,$(CompileCommonOpts))
22
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 #
28 $(ObjDir)/FileLexer.o : $(PROJ_SRC_DIR)/FileParser.h