1 ##===- lib/Target/Skeleton/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 LIBRARYNAME = skeleton
12 include $(LEVEL)/Makefile.common
15 TDFILES = $(SourceDir)/$(TARGET).td $(wildcard $(SourceDir)/*.td) \
16 $(SourceDir)/../Target.td
19 # Make sure that tblgen is run, first thing.
20 $(SourceDepend): $(TARGET)GenRegisterInfo.h.inc $(TARGET)GenRegisterNames.inc \
21 $(TARGET)GenRegisterInfo.inc $(TARGET)GenInstrNames.inc \
22 $(TARGET)GenInstrInfo.inc
24 $(TARGET)GenRegisterNames.inc:: $(TDFILES) $(TBLGEN)
25 @echo "Building $(TARGET).td register names with tblgen"
26 $(VERB) $(TBLGEN) -I $(BUILD_SRC_DIR) $< -gen-register-enums -o $@
28 $(TARGET)GenRegisterInfo.h.inc:: $(TDFILES) $(TBLGEN)
29 @echo "Building $(TARGET).td register information header with tblgen"
30 $(VERB) $(TBLGEN) -I $(BUILD_SRC_DIR) $< -gen-register-desc-header -o $@
32 $(TARGET)GenRegisterInfo.inc:: $(TDFILES) $(TBLGEN)
33 @echo "Building $(TARGET).td register information implementation with tblgen"
34 $(VERB) $(TBLGEN) -I $(BUILD_SRC_DIR) $< -gen-register-desc -o $@
36 $(TARGET)GenInstrNames.inc:: $(TDFILES) $(TBLGEN)
37 @echo "Building $(TARGET).td instruction names with tblgen"
38 $(VERB) $(TBLGEN) -I $(BUILD_SRC_DIR) $< -gen-instr-enums -o $@
40 $(TARGET)GenInstrInfo.inc:: $(TDFILES) $(TBLGEN)
41 @echo "Building $(TARGET).td instruction information with tblgen"
42 $(VERB) $(TBLGEN) -I $(BUILD_SRC_DIR) $< -gen-instr-desc -o $@