forked from OSchip/llvm-project
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 llvm-svn: 17289
This commit is contained in:
parent
b7f710ae7b
commit
c9bbb35c6f
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue