Add generation of asm writer from tablegen files to Makefile
authorNate Begeman <natebegeman@mac.com>
Sat, 14 Aug 2004 22:06:38 +0000 (22:06 +0000)
committerNate Begeman <natebegeman@mac.com>
Sat, 14 Aug 2004 22:06:38 +0000 (22:06 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@15740 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/PowerPC/Makefile

index 5bc1fcec0c4462c703838346f0faa24bce766537..f210964b8cb94e557b1c38d4a637485eb3923372 100644 (file)
@@ -15,7 +15,8 @@ TARGET = PowerPC
 # 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 @@ $(TARGET)GenCodeEmitter.inc:: $(TDFILES) $(TBLGEN)
        @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