mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-18 01:35:44 +00:00
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
f0b7500beb
commit
a909f95ebd
@ -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…
x
Reference in New Issue
Block a user