blob: ee4cf8c85cc8a908a8529d9983fceebf11dcf765 [file] [log] [blame]
Chris Lattnerd92fb002002-10-25 22:55:53 +00001LEVEL = ../../..
2LIBRARYNAME = x86
3include $(LEVEL)/Makefile.common
4
Chris Lattnera4741a92003-08-03 15:48:14 +00005# Make sure that tblgen is run, first thing.
Chris Lattner553f6c12003-08-03 21:54:59 +00006$(SourceDepend): X86GenRegisterInfo.h.inc X86GenRegisterNames.inc \
7 X86GenRegisterInfo.inc X86GenInstrNames.inc \
Chris Lattnere61db422003-08-11 14:59:22 +00008 X86GenInstrInfo.inc X86GenInstrSelector.inc
Chris Lattnera4741a92003-08-03 15:48:14 +00009
Chris Lattnere61db422003-08-11 14:59:22 +000010X86GenRegisterNames.inc: X86.td X86RegisterInfo.td ../Target.td $(TBLGEN)
11 $(TBLGEN) $< -gen-register-enums -o $@
Chris Lattnera4741a92003-08-03 15:48:14 +000012
Chris Lattnere61db422003-08-11 14:59:22 +000013X86GenRegisterInfo.h.inc: X86.td X86RegisterInfo.td ../Target.td $(TBLGEN)
14 $(TBLGEN) $< -gen-register-desc-header -o $@
Chris Lattnera4741a92003-08-03 15:48:14 +000015
Chris Lattnere61db422003-08-11 14:59:22 +000016X86GenRegisterInfo.inc: X86.td X86RegisterInfo.td ../Target.td $(TBLGEN)
17 $(TBLGEN) $< -gen-register-desc -o $@
Chris Lattnera4741a92003-08-03 15:48:14 +000018
Chris Lattnere61db422003-08-11 14:59:22 +000019X86GenInstrNames.inc: X86.td X86InstrInfo.td ../Target.td $(TBLGEN)
20 $(TBLGEN) $< -gen-instr-enums -o $@
Chris Lattner553f6c12003-08-03 21:54:59 +000021
Chris Lattnere61db422003-08-11 14:59:22 +000022X86GenInstrInfo.inc: X86.td X86InstrInfo.td ../Target.td $(TBLGEN)
23 $(TBLGEN) $< -gen-instr-desc -o $@
24
25X86GenInstrSelector.inc: X86.td X86InstrInfo.td ../Target.td $(TBLGEN)
26 $(TBLGEN) $< -gen-instr-selector -o $@
Chris Lattner553f6c12003-08-03 21:54:59 +000027
Chris Lattnera4741a92003-08-03 15:48:14 +000028clean::
29 $(VERB) rm -f *.inc
30