blob: 99c23f59b4248a09f8acd2b716272bee4f44a116 [file] [log] [blame]
John Criswelle488e932003-10-20 22:26:57 +00001##===- lib/Target/X86/Makefile ----------------------------*- Makefile -*-===##
2#
3# The LLVM Compiler Infrastructure
4#
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.
7#
8##===----------------------------------------------------------------------===##
Chris Lattner72614082002-10-25 22:55:53 +00009LEVEL = ../../..
10LIBRARYNAME = x86
11include $(LEVEL)/Makefile.common
12
Chris Lattner7ad3e062003-08-03 15:48:14 +000013# Make sure that tblgen is run, first thing.
Chris Lattnerc01f3932003-08-03 21:54:59 +000014$(SourceDepend): X86GenRegisterInfo.h.inc X86GenRegisterNames.inc \
15 X86GenRegisterInfo.inc X86GenInstrNames.inc \
Chris Lattnerac0c8682003-08-11 14:59:22 +000016 X86GenInstrInfo.inc X86GenInstrSelector.inc
Chris Lattner7ad3e062003-08-03 15:48:14 +000017
Chris Lattnerf3526e22003-08-21 20:37:17 +000018X86GenRegisterNames.inc:: X86.td X86RegisterInfo.td ../Target.td $(TBLGEN)
Chris Lattnerb787e132003-09-10 19:52:54 +000019 @echo "Building $< register names with tblgen"
20 $(VERB) $(TBLGEN) -I $(BUILD_SRC_DIR) $< -gen-register-enums -o $@
Chris Lattner7ad3e062003-08-03 15:48:14 +000021
Chris Lattnerf3526e22003-08-21 20:37:17 +000022X86GenRegisterInfo.h.inc:: X86.td X86RegisterInfo.td ../Target.td $(TBLGEN)
Chris Lattnerb787e132003-09-10 19:52:54 +000023 @echo "Building $< register information header with tblgen"
24 $(VERB) $(TBLGEN) -I $(BUILD_SRC_DIR) $< -gen-register-desc-header -o $@
Chris Lattner7ad3e062003-08-03 15:48:14 +000025
Chris Lattnerf3526e22003-08-21 20:37:17 +000026X86GenRegisterInfo.inc:: X86.td X86RegisterInfo.td ../Target.td $(TBLGEN)
Chris Lattnerb787e132003-09-10 19:52:54 +000027 @echo "Building $< register information implementation with tblgen"
28 $(VERB) $(TBLGEN) -I $(BUILD_SRC_DIR) $< -gen-register-desc -o $@
Chris Lattner7ad3e062003-08-03 15:48:14 +000029
Chris Lattnerf3526e22003-08-21 20:37:17 +000030X86GenInstrNames.inc:: X86.td X86InstrInfo.td ../Target.td $(TBLGEN)
Chris Lattnerb787e132003-09-10 19:52:54 +000031 @echo "Building $< instruction names with tblgen"
32 $(VERB) $(TBLGEN) -I $(BUILD_SRC_DIR) $< -gen-instr-enums -o $@
Chris Lattnerc01f3932003-08-03 21:54:59 +000033
Chris Lattnerf3526e22003-08-21 20:37:17 +000034X86GenInstrInfo.inc:: X86.td X86InstrInfo.td ../Target.td $(TBLGEN)
Chris Lattnerb787e132003-09-10 19:52:54 +000035 @echo "Building $< instruction information with tblgen"
36 $(VERB) $(TBLGEN) -I $(BUILD_SRC_DIR) $< -gen-instr-desc -o $@
Chris Lattnerac0c8682003-08-11 14:59:22 +000037
Chris Lattnerf3526e22003-08-21 20:37:17 +000038X86GenInstrSelector.inc:: X86.td X86InstrInfo.td ../Target.td $(TBLGEN)
Chris Lattnerb787e132003-09-10 19:52:54 +000039 @echo "Building $< instruction selector with tblgen"
40 $(VERB) $(TBLGEN) -I $(BUILD_SRC_DIR) $< -gen-instr-selector -o $@
Chris Lattnerc01f3932003-08-03 21:54:59 +000041
Chris Lattner7ad3e062003-08-03 15:48:14 +000042clean::
43 $(VERB) rm -f *.inc
44