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 = ../..
|
LEVEL := ../..
|
||||||
|
LIBRARYNAME := LLVMAsmParser
|
||||||
LIBRARYNAME = LLVMAsmParser
|
BUILT_SOURCES := llvmAsmParser.cpp llvmAsmParser.h Lexer.cpp
|
||||||
|
|
||||||
include $(LEVEL)/Makefile.common
|
include $(LEVEL)/Makefile.common
|
||||||
|
|
||||||
#
|
#
|
||||||
# Make the source code file for the lexer depend upon the header file generated
|
# Make the object code file for the lexer depend upon the header file generated
|
||||||
# by the Bison parser. This prevents the generation of dependencies from
|
# by the Bison parser. This prevents the Lexer from being compiled before the
|
||||||
# being performed until after the header file has been created.
|
# header file it needs is built.
|
||||||
#
|
$(OBJDIR)/Lexer.o: llvmAsmParser.h
|
||||||
Lexer.cpp: llvmAsmParser.h
|
|
||||||
|
|
Loading…
Reference in New Issue