blob: 5b93bf2e54fcbd5482f27d08d61eeae021309b3d [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 Spencerc9c17872007-02-06 18:51:28 +000012NO_INSTALL = 1;
Reid Spencer6cb21d42004-10-27 23:18:45 +000013USEDLIBS = LLVMSupport.a LLVMSystem.a
Reid Spencer28421d02006-04-13 06:27:20 +000014EXTRA_DIST = FileLexer.cpp.cvs FileLexer.l.cvs \
15 FileParser.cpp.cvs FileParser.h.cvs FileParser.y.cvs
Chris Lattnera539c032006-07-07 00:21:17 +000016REQUIRES_EH := 1
Chris Lattnere62c1182002-12-02 01:23:04 +000017
18include $(LEVEL)/Makefile.common
19
Reid Spencerd386e552006-06-01 18:20:23 +000020# Disable -pedantic for tblgen
21CompileCommonOpts := $(filter-out -pedantic,$(CompileCommonOpts))
22CompileCommonOpts := $(filter-out -Wno-long-long,$(CompileCommonOpts))
23
John Criswell7a73b802003-06-30 21:59:07 +000024#
25# Make the source file depend on the header file. In this way, dependencies
26# (which depend on the source file) won't get generated until bison is done
27# generating the C source and header files for the parser.
28#
Reid Spencer68a24bd2005-08-27 18:50:39 +000029$(ObjDir)/FileLexer.o : $(PROJ_SRC_DIR)/FileParser.h