1 ##===- lib/Target/PowerPC/Makefile -------------------------*- Makefile -*-===##
3 # The LLVM Compiler Infrastructure
5 # This file was developed by the LLVM research group and is distributed under
6 # the University of Illinois Open Source License. See LICENSE.TXT for details.
8 ##===----------------------------------------------------------------------===##
11 include $(LEVEL)/Makefile.common
15 # Make sure that tblgen is run, first thing.
16 $(SourceDepend): PowerPCGenRegisterInfo.h.inc PowerPCGenRegisterNames.inc \
17 PowerPCGenRegisterInfo.inc PowerPCGenInstrNames.inc \
18 PowerPCGenInstrInfo.inc
20 TDFILES = $(SourceDir)/$(TARGET).td $(wildcard $(SourceDir)/*.td) \
21 $(SourceDir)/../Target.td
23 $(TARGET)GenRegisterNames.inc:: $(TDFILES) $(TBLGEN)
24 @echo "Building $(TARGET).td register names with tblgen"
25 $(VERB) $(TBLGEN) -I $(BUILD_SRC_DIR) $< -gen-register-enums -o $@
27 $(TARGET)GenRegisterInfo.h.inc:: $(TDFILES) $(TBLGEN)
28 @echo "Building $(TARGET).td register information header with tblgen"
29 $(VERB) $(TBLGEN) -I $(BUILD_SRC_DIR) $< -gen-register-desc-header -o $@
31 $(TARGET)GenRegisterInfo.inc:: $(TDFILES) $(TBLGEN)
32 @echo "Building $(TARGET).td register information implementation with tblgen"
33 $(VERB) $(TBLGEN) -I $(BUILD_SRC_DIR) $< -gen-register-desc -o $@
35 $(TARGET)GenInstrNames.inc:: $(TDFILES) $(TBLGEN)
36 @echo "Building $(TARGET).td instruction names with tblgen"
37 $(VERB) $(TBLGEN) -I $(BUILD_SRC_DIR) $< -gen-instr-enums -o $@
39 $(TARGET)GenInstrInfo.inc:: $(TDFILES) $(TBLGEN)
40 @echo "Building $(TARGET).td instruction information with tblgen"
41 $(VERB) $(TBLGEN) -I $(BUILD_SRC_DIR) $< -gen-instr-desc -o $@