2003-11-05 06:43:36 +00:00
|
|
|
##===- lib/Target/X86/Makefile -----------------------------*- Makefile -*-===##
|
2003-10-20 22:26:57 +00:00
|
|
|
#
|
|
|
|
# The LLVM Compiler Infrastructure
|
|
|
|
#
|
|
|
|
# This file was developed by the LLVM research group and is distributed under
|
|
|
|
# the University of Illinois Open Source License. See LICENSE.TXT for details.
|
|
|
|
#
|
|
|
|
##===----------------------------------------------------------------------===##
|
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-11-07 00:34:33 +00:00
|
|
|
X86GenRegisterNames.inc:: $(SourceDir)/X86.td $(SourceDir)/X86RegisterInfo.td \
|
|
|
|
$(SourceDir)/../Target.td $(TBLGEN)
|
2003-11-05 06:43:36 +00:00
|
|
|
@echo "Building X86.td register names with tblgen"
|
2003-09-10 19:52:54 +00:00
|
|
|
$(VERB) $(TBLGEN) -I $(BUILD_SRC_DIR) $< -gen-register-enums -o $@
|
2003-08-03 15:48:14 +00:00
|
|
|
|
2003-11-07 00:34:33 +00:00
|
|
|
X86GenRegisterInfo.h.inc:: $(SourceDir)/X86.td $(SourceDir)/X86RegisterInfo.td \
|
|
|
|
$(SourceDir)/../Target.td $(TBLGEN)
|
2003-11-05 06:43:36 +00:00
|
|
|
@echo "Building X86.td register information header with tblgen"
|
2003-09-10 19:52:54 +00:00
|
|
|
$(VERB) $(TBLGEN) -I $(BUILD_SRC_DIR) $< -gen-register-desc-header -o $@
|
2003-08-03 15:48:14 +00:00
|
|
|
|
2003-11-07 00:34:33 +00:00
|
|
|
X86GenRegisterInfo.inc:: $(SourceDir)/X86.td $(SourceDir)/X86RegisterInfo.td \
|
|
|
|
$(SourceDir)/../Target.td $(TBLGEN)
|
2003-11-05 06:43:36 +00:00
|
|
|
@echo "Building X86.td register information implementation with tblgen"
|
2003-09-10 19:52:54 +00:00
|
|
|
$(VERB) $(TBLGEN) -I $(BUILD_SRC_DIR) $< -gen-register-desc -o $@
|
2003-08-03 15:48:14 +00:00
|
|
|
|
2003-11-07 00:34:33 +00:00
|
|
|
X86GenInstrNames.inc:: $(SourceDir)/X86.td $(SourceDir)/X86InstrInfo.td \
|
|
|
|
$(SourceDir)/../Target.td $(TBLGEN)
|
2003-11-05 06:43:36 +00:00
|
|
|
@echo "Building X86.td instruction names with tblgen"
|
2003-09-10 19:52:54 +00:00
|
|
|
$(VERB) $(TBLGEN) -I $(BUILD_SRC_DIR) $< -gen-instr-enums -o $@
|
2003-08-03 21:54:59 +00:00
|
|
|
|
2003-11-07 00:34:33 +00:00
|
|
|
X86GenInstrInfo.inc:: $(SourceDir)/X86.td $(SourceDir)/X86InstrInfo.td \
|
|
|
|
$(SourceDir)/../Target.td $(TBLGEN)
|
2003-11-05 06:43:36 +00:00
|
|
|
@echo "Building X86.td instruction information with tblgen"
|
2003-09-10 19:52:54 +00:00
|
|
|
$(VERB) $(TBLGEN) -I $(BUILD_SRC_DIR) $< -gen-instr-desc -o $@
|
2003-08-11 14:59:22 +00:00
|
|
|
|
2003-11-07 00:34:33 +00:00
|
|
|
X86GenInstrSelector.inc:: $(SourceDir)/X86.td $(SourceDir)/X86InstrInfo.td \
|
|
|
|
$(SourceDir)/../Target.td $(TBLGEN)
|
2003-11-05 06:43:36 +00:00
|
|
|
@echo "Building X86.td instruction selector with tblgen"
|
2003-09-10 19:52:54 +00:00
|
|
|
$(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
|