Modified cast so that it converts the int to a long before casting to
[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::  $(SourceDir)/X86.td $(SourceDir)/X86RegisterInfo.td \
19                            $(SourceDir)/../Target.td $(TBLGEN)
20         @echo "Building X86.td register names with tblgen"
21         $(VERB) $(TBLGEN) -I $(BUILD_SRC_DIR) $< -gen-register-enums -o $@
22
23 X86GenRegisterInfo.h.inc:: $(SourceDir)/X86.td $(SourceDir)/X86RegisterInfo.td \
24                            $(SourceDir)/../Target.td $(TBLGEN)
25         @echo "Building X86.td register information header with tblgen"
26         $(VERB) $(TBLGEN) -I $(BUILD_SRC_DIR) $< -gen-register-desc-header -o $@
27
28 X86GenRegisterInfo.inc:: $(SourceDir)/X86.td $(SourceDir)/X86RegisterInfo.td \
29                          $(SourceDir)/../Target.td $(TBLGEN)
30         @echo "Building X86.td register information implementation with tblgen"
31         $(VERB) $(TBLGEN) -I $(BUILD_SRC_DIR) $< -gen-register-desc -o $@
32
33 X86GenInstrNames.inc:: $(SourceDir)/X86.td $(SourceDir)/X86InstrInfo.td \
34                        $(SourceDir)/../Target.td $(TBLGEN)
35         @echo "Building X86.td instruction names with tblgen"
36         $(VERB) $(TBLGEN) -I $(BUILD_SRC_DIR) $< -gen-instr-enums -o $@
37
38 X86GenInstrInfo.inc:: $(SourceDir)/X86.td $(SourceDir)/X86InstrInfo.td \
39                       $(SourceDir)/../Target.td $(TBLGEN)
40         @echo "Building X86.td instruction information with tblgen"
41         $(VERB) $(TBLGEN) -I $(BUILD_SRC_DIR) $< -gen-instr-desc -o $@
42
43 X86GenInstrSelector.inc:: $(SourceDir)/X86.td $(SourceDir)/X86InstrInfo.td \
44                           $(SourceDir)/../Target.td $(TBLGEN)
45         @echo "Building X86.td instruction selector with tblgen"
46         $(VERB) $(TBLGEN) -I $(BUILD_SRC_DIR) $< -gen-instr-selector -o $@
47
48 clean::
49         $(VERB) rm -f *.inc