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 | 76e2df2 | 2004-07-15 02:14:30 +0000 | [diff] [blame] | 10 | LIBRARYNAME = powerpc2 |
| 11 | SHARED_LIBRARY=1 |
Misha Brukman | 5dfe3a9 | 2004-06-21 16:55:25 +0000 | [diff] [blame] | 12 | include $(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 | |
| 19 | PowerPCGenRegisterNames.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 | |
| 25 | PowerPCGenRegisterInfo.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 | |
| 31 | PowerPCGenRegisterInfo.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 | |
| 37 | PowerPCGenInstrNames.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 | |
| 43 | PowerPCGenInstrInfo.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 | |
| 49 | PowerPCGenInstrSelector.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 | |
| 55 | clean:: |
| 56 | $(VERB) rm -f *.inc |