[llvm-commits] CVS: llvm/lib/AsmParser/Makefile

Reid Spencer reid at x10sys.com
Wed Oct 27 17:43:35 PDT 2004



Changes in directory llvm/lib/AsmParser:

Makefile updated: 1.5 -> 1.6
---
Log message:

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


---
Diffs of the changes:  (+7 -8)

Index: llvm/lib/AsmParser/Makefile
diff -u llvm/lib/AsmParser/Makefile:1.5 llvm/lib/AsmParser/Makefile:1.6
--- llvm/lib/AsmParser/Makefile:1.5	Wed Oct 27 18:18:44 2004
+++ llvm/lib/AsmParser/Makefile	Wed Oct 27 19:43:24 2004
@@ -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






More information about the llvm-commits mailing list