blob: 5b93bf2e54fcbd5482f27d08d61eeae021309b3d [file] [log] [blame]
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001##===- 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
10LEVEL = ../..
11TOOLNAME = tblgen
12NO_INSTALL = 1;
13USEDLIBS = LLVMSupport.a LLVMSystem.a
14EXTRA_DIST = FileLexer.cpp.cvs FileLexer.l.cvs \
15 FileParser.cpp.cvs FileParser.h.cvs FileParser.y.cvs
16REQUIRES_EH := 1
17
18include $(LEVEL)/Makefile.common
19
20# Disable -pedantic for tblgen
21CompileCommonOpts := $(filter-out -pedantic,$(CompileCommonOpts))
22CompileCommonOpts := $(filter-out -Wno-long-long,$(CompileCommonOpts))
23
24#
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#
29$(ObjDir)/FileLexer.o : $(PROJ_SRC_DIR)/FileParser.h