blob: e43424b5fcf3869ad21f7b33f8bfaed5c2332910 [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 Lattner6c1ba312007-10-18 15:54:45 +000017REQUIRES_RTTI := 1
Chris Lattnere62c1182002-12-02 01:23:04 +000018
19include $(LEVEL)/Makefile.common
20
Reid Spencerd386e552006-06-01 18:20:23 +000021# Disable -pedantic for tblgen
22CompileCommonOpts := $(filter-out -pedantic,$(CompileCommonOpts))
23CompileCommonOpts := $(filter-out -Wno-long-long,$(CompileCommonOpts))
24
John Criswell7a73b802003-06-30 21:59:07 +000025#
26# Make the source file depend on the header file. In this way, dependencies
27# (which depend on the source file) won't get generated until bison is done
28# generating the C source and header files for the parser.
29#
Reid Spencer68a24bd2005-08-27 18:50:39 +000030$(ObjDir)/FileLexer.o : $(PROJ_SRC_DIR)/FileParser.h