Misha Brukman | 5dfe3a9 | 2004-06-21 16:55:25 +0000 | [diff] [blame] | 1 | ##===- 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 | ##===----------------------------------------------------------------------===## |
| 9 | LEVEL = ../../.. |
Chris Lattner | 017fdcb | 2004-07-15 02:33:38 +0000 | [diff] [blame] | 10 | LIBRARYNAME = powerpc |
Misha Brukman | 5dfe3a9 | 2004-06-21 16:55:25 +0000 | [diff] [blame] | 11 | include $(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 Brukman | 039ba76 | 2004-07-16 20:31:13 +0000 | [diff] [blame] | 16 | PowerPCGenInstrInfo.inc |
Misha Brukman | 5dfe3a9 | 2004-06-21 16:55:25 +0000 | [diff] [blame] | 17 | |
| 18 | PowerPCGenRegisterNames.inc:: $(SourceDir)/PowerPC.td \ |
Misha Brukman | dee0f9b | 2004-08-04 21:37:41 +0000 | [diff] [blame] | 19 | $(SourceDir)/PowerPCRegisterInfo.td \ |
| 20 | $(SourceDir)/../Target.td $(TBLGEN) |
Misha Brukman | 5dfe3a9 | 2004-06-21 16:55:25 +0000 | [diff] [blame] | 21 | @echo "Building PowerPC.td register names with tblgen" |
| 22 | $(VERB) $(TBLGEN) -I $(BUILD_SRC_DIR) $< -gen-register-enums -o $@ |
| 23 | |
| 24 | PowerPCGenRegisterInfo.h.inc:: $(SourceDir)/PowerPC.td \ |
Misha Brukman | dee0f9b | 2004-08-04 21:37:41 +0000 | [diff] [blame] | 25 | $(SourceDir)/PowerPCRegisterInfo.td \ |
| 26 | $(SourceDir)/../Target.td $(TBLGEN) |
Misha Brukman | 5dfe3a9 | 2004-06-21 16:55:25 +0000 | [diff] [blame] | 27 | @echo "Building PowerPC.td register information header with tblgen" |
| 28 | $(VERB) $(TBLGEN) -I $(BUILD_SRC_DIR) $< -gen-register-desc-header -o $@ |
| 29 | |
| 30 | PowerPCGenRegisterInfo.inc:: $(SourceDir)/PowerPC.td \ |
Misha Brukman | dee0f9b | 2004-08-04 21:37:41 +0000 | [diff] [blame] | 31 | $(SourceDir)/PowerPCRegisterInfo.td \ |
| 32 | $(SourceDir)/../Target.td $(TBLGEN) |
Misha Brukman | 5dfe3a9 | 2004-06-21 16:55:25 +0000 | [diff] [blame] | 33 | @echo "Building PowerPC.td register information implementation with tblgen" |
| 34 | $(VERB) $(TBLGEN) -I $(BUILD_SRC_DIR) $< -gen-register-desc -o $@ |
| 35 | |
| 36 | PowerPCGenInstrNames.inc:: $(SourceDir)/PowerPC.td \ |
Misha Brukman | dee0f9b | 2004-08-04 21:37:41 +0000 | [diff] [blame] | 37 | $(SourceDir)/PowerPCInstrInfo.td \ |
| 38 | $(SourceDir)/PowerPCInstrFormats.td \ |
| 39 | $(SourceDir)/../Target.td $(TBLGEN) |
Misha Brukman | 5dfe3a9 | 2004-06-21 16:55:25 +0000 | [diff] [blame] | 40 | @echo "Building PowerPC.td instruction names with tblgen" |
| 41 | $(VERB) $(TBLGEN) -I $(BUILD_SRC_DIR) $< -gen-instr-enums -o $@ |
| 42 | |
| 43 | PowerPCGenInstrInfo.inc:: $(SourceDir)/PowerPC.td \ |
Misha Brukman | dee0f9b | 2004-08-04 21:37:41 +0000 | [diff] [blame] | 44 | $(SourceDir)/PowerPCInstrInfo.td \ |
| 45 | $(SourceDir)/PowerPCInstrFormats.td \ |
| 46 | $(SourceDir)/../Target.td $(TBLGEN) |
Misha Brukman | 5dfe3a9 | 2004-06-21 16:55:25 +0000 | [diff] [blame] | 47 | @echo "Building PowerPC.td instruction information with tblgen" |
| 48 | $(VERB) $(TBLGEN) -I $(BUILD_SRC_DIR) $< -gen-instr-desc -o $@ |
| 49 | |
Misha Brukman | 5dfe3a9 | 2004-06-21 16:55:25 +0000 | [diff] [blame] | 50 | clean:: |
| 51 | $(VERB) rm -f *.inc |