1 ##===- lib/Target/X86/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): X86GenRegisterInfo.h.inc X86GenRegisterNames.inc \
15 X86GenRegisterInfo.inc X86GenInstrNames.inc \
16 X86GenInstrInfo.inc X86GenInstrSelector.inc
18 X86GenRegisterNames.inc:: $(SourceDir)/X86.td $(SourceDir)/X86RegisterInfo.td \
19 $(SourceDir)/../Target.td $(TBLGEN)
20 @echo "Building X86.td register names with tblgen"
21 $(VERB) $(TBLGEN) -I $(BUILD_SRC_DIR) $< -gen-register-enums -o $@
23 X86GenRegisterInfo.h.inc:: $(SourceDir)/X86.td $(SourceDir)/X86RegisterInfo.td \
24 $(SourceDir)/../Target.td $(TBLGEN)
25 @echo "Building X86.td register information header with tblgen"
26 $(VERB) $(TBLGEN) -I $(BUILD_SRC_DIR) $< -gen-register-desc-header -o $@
28 X86GenRegisterInfo.inc:: $(SourceDir)/X86.td $(SourceDir)/X86RegisterInfo.td \
29 $(SourceDir)/../Target.td $(TBLGEN)
30 @echo "Building X86.td register information implementation with tblgen"
31 $(VERB) $(TBLGEN) -I $(BUILD_SRC_DIR) $< -gen-register-desc -o $@
33 X86GenInstrNames.inc:: $(SourceDir)/X86.td $(SourceDir)/X86InstrInfo.td \
34 $(SourceDir)/../Target.td $(TBLGEN)
35 @echo "Building X86.td instruction names with tblgen"
36 $(VERB) $(TBLGEN) -I $(BUILD_SRC_DIR) $< -gen-instr-enums -o $@
38 X86GenInstrInfo.inc:: $(SourceDir)/X86.td $(SourceDir)/X86InstrInfo.td \
39 $(SourceDir)/../Target.td $(TBLGEN)
40 @echo "Building X86.td instruction information with tblgen"
41 $(VERB) $(TBLGEN) -I $(BUILD_SRC_DIR) $< -gen-instr-desc -o $@
43 X86GenInstrSelector.inc:: $(SourceDir)/X86.td $(SourceDir)/X86InstrInfo.td \
44 $(SourceDir)/../Target.td $(TBLGEN)
45 @echo "Building X86.td instruction selector with tblgen"
46 $(VERB) $(TBLGEN) -I $(BUILD_SRC_DIR) $< -gen-instr-selector -o $@