aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorReid Spencer <rspencer@reidspencer.com>2004-10-28 00:43:24 +0000
committerReid Spencer <rspencer@reidspencer.com>2004-10-28 00:43:24 +0000
commit5d6ca51ded679e7c5b4784895c9f36456533aa07 (patch)
tree3f32d3496f383302e26b87dee82f291def243013 /lib
parent80f0ef72913a5ed0bc9388a5aa9635a5a27b31e7 (diff)
downloadexternal_llvm-5d6ca51ded679e7c5b4784895c9f36456533aa07.zip
external_llvm-5d6ca51ded679e7c5b4784895c9f36456533aa07.tar.gz
external_llvm-5d6ca51ded679e7c5b4784895c9f36456533aa07.tar.bz2
Make sure that the yacc and lex output are specified as BUILT_SOURCES.
Correct the dependency of the Lexer.o file on the constructed llvmAsmParser.h header file. It is not the Lexer.cpp file that depends on the header, its the output of compiling Lexer.cpp, Lexer.o git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@17289 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r--lib/AsmParser/Makefile15
1 files changed, 7 insertions, 8 deletions
diff --git a/lib/AsmParser/Makefile b/lib/AsmParser/Makefile
index 2b85e1a..865e112 100644
--- a/lib/AsmParser/Makefile
+++ b/lib/AsmParser/Makefile
@@ -7,15 +7,14 @@
#
##===----------------------------------------------------------------------===##
-LEVEL = ../..
-
-LIBRARYNAME = LLVMAsmParser
+LEVEL := ../..
+LIBRARYNAME := LLVMAsmParser
+BUILT_SOURCES := llvmAsmParser.cpp llvmAsmParser.h Lexer.cpp
include $(LEVEL)/Makefile.common
#
-# Make the source code file for the lexer depend upon the header file generated
-# by the Bison parser. This prevents the generation of dependencies from
-# being performed until after the header file has been created.
-#
-Lexer.cpp: llvmAsmParser.h
+# Make the object code file for the lexer depend upon the header file generated
+# by the Bison parser. This prevents the Lexer from being compiled before the
+# header file it needs is built.
+$(OBJDIR)/Lexer.o: llvmAsmParser.h