Add generation of asm writer from tablegen files to Makefile

llvm-svn: 15740
diff --git a/llvm/lib/Target/PowerPC/Makefile b/llvm/lib/Target/PowerPC/Makefile
index 5bc1fce..f210964 100644
--- a/llvm/lib/Target/PowerPC/Makefile
+++ b/llvm/lib/Target/PowerPC/Makefile
@@ -15,7 +15,8 @@
 # Make sure that tblgen is run, first thing.
 $(SourceDepend): PowerPCGenRegisterInfo.h.inc PowerPCGenRegisterNames.inc \
                  PowerPCGenRegisterInfo.inc PowerPCGenInstrNames.inc \
-                 PowerPCGenInstrInfo.inc PowerPCGenCodeEmitter.inc
+                 PowerPCGenInstrInfo.inc PowerPCGenCodeEmitter.inc \
+                 PowerPCGenAsmWriter.inc
 
 TDFILES = $(SourceDir)/$(TARGET).td $(wildcard $(SourceDir)/*.td) \
           $(SourceDir)/../Target.td
@@ -44,5 +45,9 @@
 	@echo "Building $(TARGET).td code emitter"
 	$(VERB) $(TBLGEN) -I $(SourceDir) $< -gen-emitter -o $@
 
+$(TARGET)GenAsmWriter.inc:: $(TDFILES) $(TBLGEN)
+	@echo "Building $(TARGET).td assembly writer with tblgen"
+	$(VERB) $(TBLGEN) -I $(SourceDir) $< -gen-asm-writer -o $@
+
 clean::
 	$(VERB) rm -f *.inc