Makefile revision b787e13e736da92378129bbe807e2501018539cb
1LEVEL = ../../..
2LIBRARYNAME = x86
3include $(LEVEL)/Makefile.common
4
5# Make sure that tblgen is run, first thing.
6$(SourceDepend): X86GenRegisterInfo.h.inc X86GenRegisterNames.inc \
7                 X86GenRegisterInfo.inc X86GenInstrNames.inc \
8                 X86GenInstrInfo.inc X86GenInstrSelector.inc
9
10X86GenRegisterNames.inc::  X86.td X86RegisterInfo.td ../Target.td $(TBLGEN)
11	@echo "Building $< register names with tblgen"
12	$(VERB) $(TBLGEN) -I $(BUILD_SRC_DIR) $< -gen-register-enums -o $@
13
14X86GenRegisterInfo.h.inc:: X86.td X86RegisterInfo.td ../Target.td $(TBLGEN)
15	@echo "Building $< register information header with tblgen"
16	$(VERB) $(TBLGEN) -I $(BUILD_SRC_DIR) $< -gen-register-desc-header -o $@
17
18X86GenRegisterInfo.inc:: X86.td X86RegisterInfo.td ../Target.td $(TBLGEN)
19	@echo "Building $< register information implementation with tblgen"
20	$(VERB) $(TBLGEN) -I $(BUILD_SRC_DIR) $< -gen-register-desc -o $@
21
22X86GenInstrNames.inc:: X86.td X86InstrInfo.td ../Target.td $(TBLGEN)
23	@echo "Building $< instruction names with tblgen"
24	$(VERB) $(TBLGEN) -I $(BUILD_SRC_DIR) $< -gen-instr-enums -o $@
25
26X86GenInstrInfo.inc:: X86.td X86InstrInfo.td ../Target.td $(TBLGEN)
27	@echo "Building $< instruction information with tblgen"
28	$(VERB) $(TBLGEN) -I $(BUILD_SRC_DIR) $< -gen-instr-desc -o $@
29
30X86GenInstrSelector.inc:: X86.td X86InstrInfo.td ../Target.td $(TBLGEN)
31	@echo "Building $< instruction selector with tblgen"
32	$(VERB) $(TBLGEN) -I $(BUILD_SRC_DIR) $< -gen-instr-selector -o $@
33
34clean::
35	$(VERB) rm -f *.inc
36
37