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 ##===----------------------------------------------------------------------===##
10 LIBRARYNAME = powerpc2
12 include $(LEVEL)/Makefile.common
14 # Make sure that tblgen is run, first thing.
15 $(SourceDepend): PowerPCGenRegisterInfo.h.inc PowerPCGenRegisterNames.inc \
16 PowerPCGenRegisterInfo.inc PowerPCGenInstrNames.inc \
17 PowerPCGenInstrInfo.inc PowerPCGenInstrSelector.inc
19 PowerPCGenRegisterNames.inc:: $(SourceDir)/PowerPC.td \
20 $(SourceDir)/PowerPCReg.td \
21 $(SourceDir)/../Target.td $(TBLGEN)
22 @echo "Building PowerPC.td register names with tblgen"
23 $(VERB) $(TBLGEN) -I $(BUILD_SRC_DIR) $< -gen-register-enums -o $@
25 PowerPCGenRegisterInfo.h.inc:: $(SourceDir)/PowerPC.td \
26 $(SourceDir)/PowerPCReg.td \
27 $(SourceDir)/../Target.td $(TBLGEN)
28 @echo "Building PowerPC.td register information header with tblgen"
29 $(VERB) $(TBLGEN) -I $(BUILD_SRC_DIR) $< -gen-register-desc-header -o $@
31 PowerPCGenRegisterInfo.inc:: $(SourceDir)/PowerPC.td \
32 $(SourceDir)/PowerPCReg.td \
33 $(SourceDir)/../Target.td $(TBLGEN)
34 @echo "Building PowerPC.td register information implementation with tblgen"
35 $(VERB) $(TBLGEN) -I $(BUILD_SRC_DIR) $< -gen-register-desc -o $@
37 PowerPCGenInstrNames.inc:: $(SourceDir)/PowerPC.td \
38 $(SourceDir)/PowerPCInstrs.td \
39 $(SourceDir)/../Target.td $(TBLGEN)
40 @echo "Building PowerPC.td instruction names with tblgen"
41 $(VERB) $(TBLGEN) -I $(BUILD_SRC_DIR) $< -gen-instr-enums -o $@
43 PowerPCGenInstrInfo.inc:: $(SourceDir)/PowerPC.td \
44 $(SourceDir)/PowerPCInstrs.td \
45 $(SourceDir)/../Target.td $(TBLGEN)
46 @echo "Building PowerPC.td instruction information with tblgen"
47 $(VERB) $(TBLGEN) -I $(BUILD_SRC_DIR) $< -gen-instr-desc -o $@
49 PowerPCGenInstrSelector.inc:: $(SourceDir)/PowerPC.td \
50 $(SourceDir)/PowerPCInstrs.td \
51 $(SourceDir)/../Target.td $(TBLGEN)
52 @echo "Building PowerPC.td instruction selector with tblgen"
53 $(VERB) $(TBLGEN) -I $(BUILD_SRC_DIR) $< -gen-instr-selector -o $@