2004-09-22 23:29:12 +02:00
|
|
|
##===- lib/Target/Sparc/V8/Makefile ------------------------*- Makefile -*-===##
|
2004-02-25 20:28:19 +01: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.
|
|
|
|
#
|
|
|
|
##===----------------------------------------------------------------------===##
|
2004-09-22 22:08:52 +02:00
|
|
|
LEVEL = ../../../..
|
2004-02-25 20:28:19 +01:00
|
|
|
LIBRARYNAME = sparcv8
|
|
|
|
include $(LEVEL)/Makefile.common
|
|
|
|
|
2004-09-22 22:08:52 +02:00
|
|
|
TDFILES := $(wildcard $(SourceDir)/*.td) $(SourceDir)/../../Target.td
|
2004-02-28 20:43:40 +01:00
|
|
|
TDFILE := $(SourceDir)/SparcV8.td
|
|
|
|
|
2004-02-25 20:28:19 +01:00
|
|
|
# Make sure that tblgen is run, first thing.
|
|
|
|
$(SourceDepend): SparcV8GenRegisterInfo.h.inc SparcV8GenRegisterNames.inc \
|
|
|
|
SparcV8GenRegisterInfo.inc SparcV8GenInstrNames.inc \
|
2004-08-16 01:07:40 +02:00
|
|
|
SparcV8GenInstrInfo.inc
|
2004-02-25 20:28:19 +01:00
|
|
|
|
2004-02-28 20:43:40 +01:00
|
|
|
SparcV8GenRegisterNames.inc:: $(TDFILES) $(TBLGEN)
|
2004-02-25 20:28:19 +01:00
|
|
|
@echo "Building SparcV8.td register names with tblgen"
|
2004-02-28 20:43:40 +01:00
|
|
|
$(VERB) $(TBLGEN) -I $(BUILD_SRC_DIR) $(TDFILE) -gen-register-enums -o $@
|
2004-02-25 20:28:19 +01:00
|
|
|
|
2004-02-28 20:43:40 +01:00
|
|
|
SparcV8GenRegisterInfo.h.inc:: $(TDFILES) $(TBLGEN)
|
2004-02-25 20:28:19 +01:00
|
|
|
@echo "Building SparcV8.td register information header with tblgen"
|
2004-02-28 20:43:40 +01:00
|
|
|
$(VERB) $(TBLGEN) -I $(BUILD_SRC_DIR) $(TDFILE) -gen-register-desc-header -o $@
|
2004-02-25 20:28:19 +01:00
|
|
|
|
2004-02-28 20:43:40 +01:00
|
|
|
SparcV8GenRegisterInfo.inc:: $(TDFILES) $(TBLGEN)
|
2004-02-25 20:28:19 +01:00
|
|
|
@echo "Building SparcV8.td register information implementation with tblgen"
|
2004-02-28 20:43:40 +01:00
|
|
|
$(VERB) $(TBLGEN) -I $(BUILD_SRC_DIR) $(TDFILE) -gen-register-desc -o $@
|
2004-02-25 20:28:19 +01:00
|
|
|
|
2004-02-28 20:43:40 +01:00
|
|
|
SparcV8GenInstrNames.inc:: $(TDFILES) $(TBLGEN)
|
2004-02-25 20:28:19 +01:00
|
|
|
@echo "Building SparcV8.td instruction names with tblgen"
|
2004-02-28 20:43:40 +01:00
|
|
|
$(VERB) $(TBLGEN) -I $(BUILD_SRC_DIR) $(TDFILE) -gen-instr-enums -o $@
|
2004-02-25 20:28:19 +01:00
|
|
|
|
2004-02-28 20:43:40 +01:00
|
|
|
SparcV8GenInstrInfo.inc:: $(TDFILES) $(TBLGEN)
|
2004-02-25 20:28:19 +01:00
|
|
|
@echo "Building SparcV8.td instruction information with tblgen"
|
2004-02-28 20:43:40 +01:00
|
|
|
$(VERB) $(TBLGEN) -I $(BUILD_SRC_DIR) $(TDFILE) -gen-instr-desc -o $@
|
2004-02-25 20:28:19 +01:00
|
|
|
|
|
|
|
clean::
|
|
|
|
$(VERB) rm -f *.inc
|