2003-11-05 07:43:36 +01:00
|
|
|
##===- lib/Target/X86/Makefile -----------------------------*- Makefile -*-===##
|
2003-10-21 00:26:57 +02: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-26 00:55:53 +02:00
|
|
|
LEVEL = ../../..
|
|
|
|
LIBRARYNAME = x86
|
|
|
|
include $(LEVEL)/Makefile.common
|
|
|
|
|
2004-08-01 08:01:32 +02:00
|
|
|
TARGET = X86
|
|
|
|
|
2003-08-03 17:48:14 +02:00
|
|
|
# Make sure that tblgen is run, first thing.
|
2003-08-03 23:54:59 +02:00
|
|
|
$(SourceDepend): X86GenRegisterInfo.h.inc X86GenRegisterNames.inc \
|
|
|
|
X86GenRegisterInfo.inc X86GenInstrNames.inc \
|
2004-10-03 22:36:57 +02:00
|
|
|
X86GenInstrInfo.inc X86GenATTAsmWriter.inc \
|
|
|
|
X86GenIntelAsmWriter.inc
|
2004-08-01 08:01:32 +02:00
|
|
|
|
|
|
|
TDFILES = $(SourceDir)/$(TARGET).td $(wildcard $(SourceDir)/*.td) \
|
|
|
|
$(SourceDir)/../Target.td
|
2003-08-03 17:48:14 +02:00
|
|
|
|
2004-08-01 08:01:32 +02:00
|
|
|
$(TARGET)GenRegisterNames.inc:: $(TDFILES) $(TBLGEN)
|
|
|
|
@echo "Building $(TARGET).td register names with tblgen"
|
2003-09-10 21:52:54 +02:00
|
|
|
$(VERB) $(TBLGEN) -I $(BUILD_SRC_DIR) $< -gen-register-enums -o $@
|
2003-08-03 17:48:14 +02:00
|
|
|
|
2004-08-01 08:01:32 +02:00
|
|
|
$(TARGET)GenRegisterInfo.h.inc:: $(TDFILES) $(TBLGEN)
|
|
|
|
@echo "Building $(TARGET).td register information header with tblgen"
|
2003-09-10 21:52:54 +02:00
|
|
|
$(VERB) $(TBLGEN) -I $(BUILD_SRC_DIR) $< -gen-register-desc-header -o $@
|
2003-08-03 17:48:14 +02:00
|
|
|
|
2004-08-01 08:01:32 +02:00
|
|
|
$(TARGET)GenRegisterInfo.inc:: $(TDFILES) $(TBLGEN)
|
|
|
|
@echo "Building $(TARGET).td register info implementation with tblgen"
|
2003-09-10 21:52:54 +02:00
|
|
|
$(VERB) $(TBLGEN) -I $(BUILD_SRC_DIR) $< -gen-register-desc -o $@
|
2003-08-03 17:48:14 +02:00
|
|
|
|
2004-08-01 08:01:32 +02:00
|
|
|
$(TARGET)GenInstrNames.inc:: $(TDFILES) $(TBLGEN)
|
|
|
|
@echo "Building $(TARGET).td instruction names with tblgen"
|
2003-09-10 21:52:54 +02:00
|
|
|
$(VERB) $(TBLGEN) -I $(BUILD_SRC_DIR) $< -gen-instr-enums -o $@
|
2003-08-03 23:54:59 +02:00
|
|
|
|
2004-08-01 08:01:32 +02:00
|
|
|
$(TARGET)GenInstrInfo.inc:: $(TDFILES) $(TBLGEN)
|
|
|
|
@echo "Building $(TARGET).td instruction information with tblgen"
|
2003-09-10 21:52:54 +02:00
|
|
|
$(VERB) $(TBLGEN) -I $(BUILD_SRC_DIR) $< -gen-instr-desc -o $@
|
2003-08-11 16:59:22 +02:00
|
|
|
|
2004-10-03 22:36:57 +02:00
|
|
|
$(TARGET)GenATTAsmWriter.inc:: $(TDFILES) $(TBLGEN)
|
|
|
|
@echo "Building $(TARGET).td AT&T assembly writer with tblgen"
|
2004-08-01 08:01:32 +02:00
|
|
|
$(VERB) $(TBLGEN) -I $(BUILD_SRC_DIR) $< -gen-asm-writer -o $@
|
2004-04-06 21:34:00 +02:00
|
|
|
|
2004-10-03 22:36:57 +02:00
|
|
|
$(TARGET)GenIntelAsmWriter.inc:: $(TDFILES) $(TBLGEN)
|
|
|
|
@echo "Building $(TARGET).td Intel assembly writer with tblgen"
|
|
|
|
$(VERB) $(TBLGEN) -I $(BUILD_SRC_DIR) $< -gen-asm-writer -asmwriternum=1 -o $@
|
|
|
|
|
2004-08-16 01:02:17 +02:00
|
|
|
#$(TARGET)GenInstrSelector.inc:: $(TDFILES) $(TBLGEN)
|
|
|
|
# @echo "Building $(TARGET).td instruction selector with tblgen"
|
|
|
|
# $(VERB) $(TBLGEN) -I $(BUILD_SRC_DIR) $< -gen-instr-selector -o $@
|
2004-04-06 21:34:00 +02:00
|
|
|
|
2003-08-03 17:48:14 +02:00
|
|
|
clean::
|
|
|
|
$(VERB) rm -f *.inc
|