Added LLVM copyright notice to Makefiles.
[oota-llvm.git] / lib / Target / X86 / Makefile
1 ##===- 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 ##===----------------------------------------------------------------------===##
9 LEVEL = ../../..
10 LIBRARYNAME = x86
11 include $(LEVEL)/Makefile.common
12
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
17
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 $@
21
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 $@
25
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 $@
29
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 $@
33
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 $@
37
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 $@
41
42 clean::
43         $(VERB) rm -f *.inc
44