2002-10-25 22:55:53 +00:00
|
|
|
LEVEL = ../../..
|
|
|
|
LIBRARYNAME = x86
|
|
|
|
include $(LEVEL)/Makefile.common
|
|
|
|
|
2003-08-03 15:48:14 +00:00
|
|
|
# Make sure that tblgen is run, first thing.
|
2003-08-03 21:54:59 +00:00
|
|
|
$(SourceDepend): X86GenRegisterInfo.h.inc X86GenRegisterNames.inc \
|
|
|
|
X86GenRegisterInfo.inc X86GenInstrNames.inc \
|
2003-08-11 14:59:22 +00:00
|
|
|
X86GenInstrInfo.inc X86GenInstrSelector.inc
|
2003-08-03 15:48:14 +00:00
|
|
|
|
2003-08-21 20:37:17 +00:00
|
|
|
X86GenRegisterNames.inc:: X86.td X86RegisterInfo.td ../Target.td $(TBLGEN)
|
2003-09-10 19:52:54 +00:00
|
|
|
@echo "Building $< register names with tblgen"
|
|
|
|
$(VERB) $(TBLGEN) -I $(BUILD_SRC_DIR) $< -gen-register-enums -o $@
|
2003-08-03 15:48:14 +00:00
|
|
|
|
2003-08-21 20:37:17 +00:00
|
|
|
X86GenRegisterInfo.h.inc:: X86.td X86RegisterInfo.td ../Target.td $(TBLGEN)
|
2003-09-10 19:52:54 +00:00
|
|
|
@echo "Building $< register information header with tblgen"
|
|
|
|
$(VERB) $(TBLGEN) -I $(BUILD_SRC_DIR) $< -gen-register-desc-header -o $@
|
2003-08-03 15:48:14 +00:00
|
|
|
|
2003-08-21 20:37:17 +00:00
|
|
|
X86GenRegisterInfo.inc:: X86.td X86RegisterInfo.td ../Target.td $(TBLGEN)
|
2003-09-10 19:52:54 +00:00
|
|
|
@echo "Building $< register information implementation with tblgen"
|
|
|
|
$(VERB) $(TBLGEN) -I $(BUILD_SRC_DIR) $< -gen-register-desc -o $@
|
2003-08-03 15:48:14 +00:00
|
|
|
|
2003-08-21 20:37:17 +00:00
|
|
|
X86GenInstrNames.inc:: X86.td X86InstrInfo.td ../Target.td $(TBLGEN)
|
2003-09-10 19:52:54 +00:00
|
|
|
@echo "Building $< instruction names with tblgen"
|
|
|
|
$(VERB) $(TBLGEN) -I $(BUILD_SRC_DIR) $< -gen-instr-enums -o $@
|
2003-08-03 21:54:59 +00:00
|
|
|
|
2003-08-21 20:37:17 +00:00
|
|
|
X86GenInstrInfo.inc:: X86.td X86InstrInfo.td ../Target.td $(TBLGEN)
|
2003-09-10 19:52:54 +00:00
|
|
|
@echo "Building $< instruction information with tblgen"
|
|
|
|
$(VERB) $(TBLGEN) -I $(BUILD_SRC_DIR) $< -gen-instr-desc -o $@
|
2003-08-11 14:59:22 +00:00
|
|
|
|
2003-08-21 20:37:17 +00:00
|
|
|
X86GenInstrSelector.inc:: X86.td X86InstrInfo.td ../Target.td $(TBLGEN)
|
2003-09-10 19:52:54 +00:00
|
|
|
@echo "Building $< instruction selector with tblgen"
|
|
|
|
$(VERB) $(TBLGEN) -I $(BUILD_SRC_DIR) $< -gen-instr-selector -o $@
|
2003-08-03 21:54:59 +00:00
|
|
|
|
2003-08-03 15:48:14 +00:00
|
|
|
clean::
|
|
|
|
$(VERB) rm -f *.inc
|
|
|
|
|