blob: 64e24e07b595b9dabc6cd97489a3dc9bed221142 [file] [log] [blame]
Misha Brukman06030792004-06-17 15:49:36 +00001##===- utils/TableGen/Makefile -----------------------------*- Makefile -*-===##
John Criswelle2fab732003-10-20 22:29:16 +00002#
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 Lattnera539c032006-07-07 00:21:17 +00009
Chris Lattner0a92ebf2003-10-05 19:27:59 +000010LEVEL = ../..
Chris Lattnere62c1182002-12-02 01:23:04 +000011TOOLNAME = tblgen
Reid Spencer6cb21d42004-10-27 23:18:45 +000012USEDLIBS = LLVMSupport.a LLVMSystem.a
Reid Spencer28421d02006-04-13 06:27:20 +000013EXTRA_DIST = FileLexer.cpp.cvs FileLexer.l.cvs \
14 FileParser.cpp.cvs FileParser.h.cvs FileParser.y.cvs
Chris Lattnera539c032006-07-07 00:21:17 +000015REQUIRES_EH := 1
Chris Lattnere62c1182002-12-02 01:23:04 +000016
17include $(LEVEL)/Makefile.common
18
Reid Spencerd386e552006-06-01 18:20:23 +000019# Disable -pedantic for tblgen
20CompileCommonOpts := $(filter-out -pedantic,$(CompileCommonOpts))
21CompileCommonOpts := $(filter-out -Wno-long-long,$(CompileCommonOpts))
22
John Criswell7a73b802003-06-30 21:59:07 +000023#
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 Spencer68a24bd2005-08-27 18:50:39 +000028$(ObjDir)/FileLexer.o : $(PROJ_SRC_DIR)/FileParser.h