1 ##===- lib/Target/SparcV8/Makefile -------------------------*- Makefile -*-===##
3 # The LLVM Compiler Infrastructure
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.
8 ##===----------------------------------------------------------------------===##
11 include $(LEVEL)/Makefile.common
13 TDFILES := $(wildcard $(SourceDir)/*.td) $(SourceDir)/../Target.td
14 TDFILE := $(SourceDir)/SparcV8.td
16 # Make sure that tblgen is run, first thing.
17 $(SourceDepend): SparcV8GenRegisterInfo.h.inc SparcV8GenRegisterNames.inc \
18 SparcV8GenRegisterInfo.inc SparcV8GenInstrNames.inc \
19 SparcV8GenInstrInfo.inc
21 SparcV8GenRegisterNames.inc:: $(TDFILES) $(TBLGEN)
22 @echo "Building SparcV8.td register names with tblgen"
23 $(VERB) $(TBLGEN) -I $(BUILD_SRC_DIR) $(TDFILE) -gen-register-enums -o $@
25 SparcV8GenRegisterInfo.h.inc:: $(TDFILES) $(TBLGEN)
26 @echo "Building SparcV8.td register information header with tblgen"
27 $(VERB) $(TBLGEN) -I $(BUILD_SRC_DIR) $(TDFILE) -gen-register-desc-header -o $@
29 SparcV8GenRegisterInfo.inc:: $(TDFILES) $(TBLGEN)
30 @echo "Building SparcV8.td register information implementation with tblgen"
31 $(VERB) $(TBLGEN) -I $(BUILD_SRC_DIR) $(TDFILE) -gen-register-desc -o $@
33 SparcV8GenInstrNames.inc:: $(TDFILES) $(TBLGEN)
34 @echo "Building SparcV8.td instruction names with tblgen"
35 $(VERB) $(TBLGEN) -I $(BUILD_SRC_DIR) $(TDFILE) -gen-instr-enums -o $@
37 SparcV8GenInstrInfo.inc:: $(TDFILES) $(TBLGEN)
38 @echo "Building SparcV8.td instruction information with tblgen"
39 $(VERB) $(TBLGEN) -I $(BUILD_SRC_DIR) $(TDFILE) -gen-instr-desc -o $@