testing
[oota-llvm.git] / lib / Target / Skeleton / Makefile
1 ##===- lib/Target/Skeleton/Makefile ------------------------*- Makefile -*-===##
2
3 #                     The LLVM Compiler Infrastructure
4 #
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.
7
8 ##===----------------------------------------------------------------------===##
9
10 LEVEL = ../../..
11 LIBRARYNAME = skeleton
12 include $(LEVEL)/Makefile.common
13
14 TARGET = Skeleton
15 TDFILES = $(SourceDir)/$(TARGET).td $(wildcard $(SourceDir)/*.td) \
16           $(SourceDir)/../Target.td
17
18
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
23
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 $@
27
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 $@
31
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 $@
35
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 $@
39
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 $@
43
44 clean::
45         $(VERB) rm -f *.inc