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:: X86.td X86RegisterInfo.td ../Target.td $(TBLGEN)
19 @echo "Building $< register names with tblgen"
20 $(VERB) $(TBLGEN) -I $(BUILD_SRC_DIR) $< -gen-register-enums -o $@
22 X86GenRegisterInfo.h.inc:: X86.td X86RegisterInfo.td ../Target.td $(TBLGEN)
23 @echo "Building $< register information header with tblgen"
24 $(VERB) $(TBLGEN) -I $(BUILD_SRC_DIR) $< -gen-register-desc-header -o $@
26 X86GenRegisterInfo.inc:: X86.td X86RegisterInfo.td ../Target.td $(TBLGEN)
27 @echo "Building $< register information implementation with tblgen"
28 $(VERB) $(TBLGEN) -I $(BUILD_SRC_DIR) $< -gen-register-desc -o $@
30 X86GenInstrNames.inc:: X86.td X86InstrInfo.td ../Target.td $(TBLGEN)
31 @echo "Building $< instruction names with tblgen"
32 $(VERB) $(TBLGEN) -I $(BUILD_SRC_DIR) $< -gen-instr-enums -o $@
34 X86GenInstrInfo.inc:: X86.td X86InstrInfo.td ../Target.td $(TBLGEN)
35 @echo "Building $< instruction information with tblgen"
36 $(VERB) $(TBLGEN) -I $(BUILD_SRC_DIR) $< -gen-instr-desc -o $@
38 X86GenInstrSelector.inc:: X86.td X86InstrInfo.td ../Target.td $(TBLGEN)
39 @echo "Building $< instruction selector with tblgen"
40 $(VERB) $(TBLGEN) -I $(BUILD_SRC_DIR) $< -gen-instr-selector -o $@