blob: 57bc95412525a6c43657288e53d0303338b2bdea [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 Lattner017fdcb2004-07-15 02:33:38 +000010LIBRARYNAME = powerpc
Misha Brukman5dfe3a92004-06-21 16:55:25 +000011include $(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 \
Misha Brukman039ba762004-07-16 20:31:13 +000016 PowerPCGenInstrInfo.inc
Misha Brukman5dfe3a92004-06-21 16:55:25 +000017
18PowerPCGenRegisterNames.inc:: $(SourceDir)/PowerPC.td \
Misha Brukman8c02c1c2004-07-27 23:29:16 +000019 $(SourceDir)/PowerPCRegisterInfo.td \
Misha Brukman5dfe3a92004-06-21 16:55:25 +000020 $(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 \
Misha Brukman8c02c1c2004-07-27 23:29:16 +000025 $(SourceDir)/PowerPCRegisterInfo.td \
Misha Brukman5dfe3a92004-06-21 16:55:25 +000026 $(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 \
Misha Brukman8c02c1c2004-07-27 23:29:16 +000031 $(SourceDir)/PowerPCRegisterInfo.td \
Misha Brukman5dfe3a92004-06-21 16:55:25 +000032 $(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 \
Misha Brukman8c02c1c2004-07-27 23:29:16 +000037 $(SourceDir)/PowerPCInstrInfo.td \
Misha Brukmandb013562004-08-04 21:18:36 +000038 $(SourceDir)/PowerPCInstrFormats.td \
Misha Brukman5dfe3a92004-06-21 16:55:25 +000039 $(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 \
Misha Brukman8c02c1c2004-07-27 23:29:16 +000044 $(SourceDir)/PowerPCInstrInfo.td \
Misha Brukmandb013562004-08-04 21:18:36 +000045 $(SourceDir)/PowerPCInstrFormats.td \
Misha Brukman5dfe3a92004-06-21 16:55:25 +000046 $(SourceDir)/../Target.td $(TBLGEN)
47 @echo "Building PowerPC.td instruction information with tblgen"
48 $(VERB) $(TBLGEN) -I $(BUILD_SRC_DIR) $< -gen-instr-desc -o $@
49
Misha Brukman5dfe3a92004-06-21 16:55:25 +000050clean::
51 $(VERB) rm -f *.inc