##===----------------------------------------------------------------------===##
LEVEL = ../..
-
-LIBRARYNAME = asmparser
+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