blob: ef9fff7377b4ff9c9281f1b424b02da8ac1b1fe7 [file] [log] [blame]
Misha Brukman5dfe3a92004-06-21 16:55:25 +00001##===- lib/Target/PowerPC/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##===----------------------------------------------------------------------===##
9LEVEL = ../../..
10LIBRARYNAME = powerpc
11include $(LEVEL)/Makefile.common
12
13# Make sure that tblgen is run, first thing.
14$(SourceDepend): PowerPCGenRegisterInfo.h.inc PowerPCGenRegisterNames.inc \
15 PowerPCGenRegisterInfo.inc PowerPCGenInstrNames.inc \
16 PowerPCGenInstrInfo.inc PowerPCGenInstrSelector.inc
17
18PowerPCGenRegisterNames.inc:: $(SourceDir)/PowerPC.td \
19 $(SourceDir)/PowerPCReg.td \
20 $(SourceDir)/../Target.td $(TBLGEN)
21 @echo "Building PowerPC.td register names with tblgen"
22 $(VERB) $(TBLGEN) -I $(BUILD_SRC_DIR) $< -gen-register-enums -o $@
23
24PowerPCGenRegisterInfo.h.inc:: $(SourceDir)/PowerPC.td \
25 $(SourceDir)/PowerPCReg.td \
26 $(SourceDir)/../Target.td $(TBLGEN)
27 @echo "Building PowerPC.td register information header with tblgen"
28 $(VERB) $(TBLGEN) -I $(BUILD_SRC_DIR) $< -gen-register-desc-header -o $@
29
30PowerPCGenRegisterInfo.inc:: $(SourceDir)/PowerPC.td \
31 $(SourceDir)/PowerPCReg.td \
32 $(SourceDir)/../Target.td $(TBLGEN)
33 @echo "Building PowerPC.td register information implementation with tblgen"
34 $(VERB) $(TBLGEN) -I $(BUILD_SRC_DIR) $< -gen-register-desc -o $@
35
36PowerPCGenInstrNames.inc:: $(SourceDir)/PowerPC.td \
37 $(SourceDir)/PowerPCInstrs.td \
38 $(SourceDir)/../Target.td $(TBLGEN)
39 @echo "Building PowerPC.td instruction names with tblgen"
40 $(VERB) $(TBLGEN) -I $(BUILD_SRC_DIR) $< -gen-instr-enums -o $@
41
42PowerPCGenInstrInfo.inc:: $(SourceDir)/PowerPC.td \
43 $(SourceDir)/PowerPCInstrs.td \
44 $(SourceDir)/../Target.td $(TBLGEN)
45 @echo "Building PowerPC.td instruction information with tblgen"
46 $(VERB) $(TBLGEN) -I $(BUILD_SRC_DIR) $< -gen-instr-desc -o $@
47
48PowerPCGenInstrSelector.inc:: $(SourceDir)/PowerPC.td \
49 $(SourceDir)/PowerPCInstrs.td \
50 $(SourceDir)/../Target.td $(TBLGEN)
51 @echo "Building PowerPC.td instruction selector with tblgen"
52 $(VERB) $(TBLGEN) -I $(BUILD_SRC_DIR) $< -gen-instr-selector -o $@
53
54clean::
55 $(VERB) rm -f *.inc