@@ -10,41 +10,34 @@ LEVEL = ../../..
10
10
LIBRARYNAME = powerpc
11
11
include $(LEVEL ) /Makefile.common
12
12
13
+ TARGET = PowerPC
14
+
13
15
# Make sure that tblgen is run, first thing.
14
16
$(SourceDepend ) : PowerPCGenRegisterInfo.h.inc PowerPCGenRegisterNames.inc \
15
17
PowerPCGenRegisterInfo.inc PowerPCGenInstrNames.inc \
16
18
PowerPCGenInstrInfo.inc
17
19
18
- PowerPCGenRegisterNames.inc :: $(SourceDir ) /PowerPC.td \
19
- $(SourceDir)/PowerPCRegisterInfo.td \
20
- $(SourceDir)/../Target.td $(TBLGEN)
21
- @echo "Building PowerPC.td register names with tblgen"
20
+ TDFILES = $(SourceDir ) /$(TARGET ) .td $(wildcard $(SourceDir ) /* .td) \
21
+ $(SourceDir ) /../Target.td
22
+
23
+ $(TARGET ) GenRegisterNames.inc :: $(TDFILES ) $(TBLGEN )
24
+ @echo " Building $( TARGET) .td register names with tblgen"
22
25
$(VERB ) $(TBLGEN ) -I $(BUILD_SRC_DIR ) $< -gen-register-enums -o $@
23
26
24
- PowerPCGenRegisterInfo.h.inc :: $(SourceDir ) /PowerPC.td \
25
- $(SourceDir)/PowerPCRegisterInfo.td \
26
- $(SourceDir)/../Target.td $(TBLGEN)
27
- @echo "Building PowerPC.td register information header with tblgen"
27
+ $(TARGET ) GenRegisterInfo.h.inc :: $(TDFILES ) $(TBLGEN )
28
+ @echo " Building $( TARGET) .td register information header with tblgen"
28
29
$(VERB ) $(TBLGEN ) -I $(BUILD_SRC_DIR ) $< -gen-register-desc-header -o $@
29
30
30
- PowerPCGenRegisterInfo.inc :: $(SourceDir ) /PowerPC.td \
31
- $(SourceDir)/PowerPCRegisterInfo.td \
32
- $(SourceDir)/../Target.td $(TBLGEN)
33
- @echo "Building PowerPC.td register information implementation with tblgen"
31
+ $(TARGET ) GenRegisterInfo.inc :: $(TDFILES ) $(TBLGEN )
32
+ @echo " Building $( TARGET) .td register information implementation with tblgen"
34
33
$(VERB ) $(TBLGEN ) -I $(BUILD_SRC_DIR ) $< -gen-register-desc -o $@
35
34
36
- PowerPCGenInstrNames.inc :: $(SourceDir ) /PowerPC.td \
37
- $(SourceDir)/PowerPCInstrInfo.td \
38
- $(SourceDir)/PowerPCInstrFormats.td \
39
- $(SourceDir)/../Target.td $(TBLGEN)
40
- @echo "Building PowerPC.td instruction names with tblgen"
35
+ $(TARGET ) GenInstrNames.inc :: $(TDFILES ) $(TBLGEN )
36
+ @echo " Building $( TARGET) .td instruction names with tblgen"
41
37
$(VERB ) $(TBLGEN ) -I $(BUILD_SRC_DIR ) $< -gen-instr-enums -o $@
42
38
43
- PowerPCGenInstrInfo.inc :: $(SourceDir ) /PowerPC.td \
44
- $(SourceDir)/PowerPCInstrInfo.td \
45
- $(SourceDir)/PowerPCInstrFormats.td \
46
- $(SourceDir)/../Target.td $(TBLGEN)
47
- @echo "Building PowerPC.td instruction information with tblgen"
39
+ $(TARGET ) GenInstrInfo.inc :: $(TDFILES ) $(TBLGEN )
40
+ @echo " Building $( TARGET) .td instruction information with tblgen"
48
41
$(VERB ) $(TBLGEN ) -I $(BUILD_SRC_DIR ) $< -gen-instr-desc -o $@
49
42
50
43
clean ::
0 commit comments