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
13 # Make sure that tblgen is run, first thing.
14 $(SourceDepend): PowerPCGenRegisterInfo.h.inc PowerPCGenRegisterNames.inc \
15 PowerPCGenRegisterInfo.inc PowerPCGenInstrNames.inc \
16 PowerPCGenInstrInfo.inc
18 PowerPCGenRegisterNames.inc:: $(SourceDir)/PowerPC.td \
19 $(SourceDir)/PowerPCRegisterInfo.td \
20 $(SourceDir)/../Target.td $(TBLGEN)
21 @echo "Building PowerPC.td register names with tblgen"
22 $(VERB) $(TBLGEN) -I $(BUILD_SRC_DIR) $< -gen-register-enums -o $@
24 PowerPCGenRegisterInfo.h.inc:: $(SourceDir)/PowerPC.td \
25 $(SourceDir)/PowerPCRegisterInfo.td \
26 $(SourceDir)/../Target.td $(TBLGEN)
27 @echo "Building PowerPC.td register information header with tblgen"
28 $(VERB) $(TBLGEN) -I $(BUILD_SRC_DIR) $< -gen-register-desc-header -o $@
30 PowerPCGenRegisterInfo.inc:: $(SourceDir)/PowerPC.td \
31 $(SourceDir)/PowerPCRegisterInfo.td \
32 $(SourceDir)/../Target.td $(TBLGEN)
33 @echo "Building PowerPC.td register information implementation with tblgen"
34 $(VERB) $(TBLGEN) -I $(BUILD_SRC_DIR) $< -gen-register-desc -o $@
36 PowerPCGenInstrNames.inc:: $(SourceDir)/PowerPC.td \
37 $(SourceDir)/PowerPCInstrInfo.td \
38 $(SourceDir)/../Target.td $(TBLGEN)
39 @echo "Building PowerPC.td instruction names with tblgen"
40 $(VERB) $(TBLGEN) -I $(BUILD_SRC_DIR) $< -gen-instr-enums -o $@
42 PowerPCGenInstrInfo.inc:: $(SourceDir)/PowerPC.td \
43 $(SourceDir)/PowerPCInstrInfo.td \
44 $(SourceDir)/../Target.td $(TBLGEN)
45 @echo "Building PowerPC.td instruction information with tblgen"
46 $(VERB) $(TBLGEN) -I $(BUILD_SRC_DIR) $< -gen-instr-desc -o $@