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