2004-06-21 16:55:25 +00:00
|
|
|
##===- lib/Target/PowerPC/Makefile -------------------------*- Makefile -*-===##
|
|
|
|
#
|
|
|
|
# The LLVM Compiler Infrastructure
|
|
|
|
#
|
|
|
|
# This file was developed by the LLVM research group and is distributed under
|
|
|
|
# the University of Illinois Open Source License. See LICENSE.TXT for details.
|
|
|
|
#
|
|
|
|
##===----------------------------------------------------------------------===##
|
|
|
|
LEVEL = ../../..
|
2004-07-15 02:33:38 +00:00
|
|
|
LIBRARYNAME = powerpc
|
2004-06-21 16:55:25 +00:00
|
|
|
include $(LEVEL)/Makefile.common
|
|
|
|
|
2004-08-05 18:34:15 +00:00
|
|
|
TARGET = PowerPC
|
|
|
|
|
2004-06-21 16:55:25 +00:00
|
|
|
# Make sure that tblgen is run, first thing.
|
2004-08-17 05:11:54 +00:00
|
|
|
$(SourceDepend): PowerPCGenInstrNames.inc PowerPCGenRegisterNames.inc \
|
|
|
|
PowerPCGenCodeEmitter.inc PowerPCGenAsmWriter.inc \
|
|
|
|
PPC32GenRegisterInfo.h.inc PPC32GenRegisterInfo.inc PPC32GenInstrInfo.inc \
|
|
|
|
PPC64GenRegisterInfo.h.inc PPC64GenRegisterInfo.inc PPC64GenInstrInfo.inc
|
2004-06-21 16:55:25 +00:00
|
|
|
|
2004-08-17 05:11:54 +00:00
|
|
|
TDFILES = $(wildcard $(SourceDir)/*.td) $(SourceDir)/../Target.td
|
2004-08-05 18:34:15 +00:00
|
|
|
|
2004-08-17 05:11:54 +00:00
|
|
|
%GenRegisterNames.inc:: PPC32.td $(TDFILES) $(TBLGEN)
|
|
|
|
@echo "Building PowerPC register names with tblgen"
|
2004-06-21 16:55:25 +00:00
|
|
|
$(VERB) $(TBLGEN) -I $(BUILD_SRC_DIR) $< -gen-register-enums -o $@
|
|
|
|
|
2004-08-17 05:11:54 +00:00
|
|
|
%GenRegisterInfo.h.inc:: %.td $(TDFILES) $(TBLGEN)
|
|
|
|
@echo "Building `basename $<` register information header with tblgen"
|
2004-06-21 16:55:25 +00:00
|
|
|
$(VERB) $(TBLGEN) -I $(BUILD_SRC_DIR) $< -gen-register-desc-header -o $@
|
|
|
|
|
2004-08-17 05:11:54 +00:00
|
|
|
%GenRegisterInfo.inc:: %.td $(TDFILES) $(TBLGEN)
|
|
|
|
@echo "Building `basename $<` register information implementation with tblgen"
|
2004-06-21 16:55:25 +00:00
|
|
|
$(VERB) $(TBLGEN) -I $(BUILD_SRC_DIR) $< -gen-register-desc -o $@
|
|
|
|
|
2004-08-17 05:11:54 +00:00
|
|
|
$(TARGET)GenInstrNames.inc:: PPC32.td $(TDFILES) $(TBLGEN)
|
|
|
|
@echo "Building $(TARGET) instruction names with tblgen"
|
2004-06-21 16:55:25 +00:00
|
|
|
$(VERB) $(TBLGEN) -I $(BUILD_SRC_DIR) $< -gen-instr-enums -o $@
|
|
|
|
|
2004-08-17 05:11:54 +00:00
|
|
|
%GenInstrInfo.inc:: %.td $(TDFILES) $(TBLGEN)
|
|
|
|
@echo "Building $(TARGET) instruction information with tblgen"
|
2004-06-21 16:55:25 +00:00
|
|
|
$(VERB) $(TBLGEN) -I $(BUILD_SRC_DIR) $< -gen-instr-desc -o $@
|
|
|
|
|
2004-08-17 05:11:54 +00:00
|
|
|
$(TARGET)GenCodeEmitter.inc:: PPC32.td $(TDFILES) $(TBLGEN)
|
|
|
|
@echo "Building $(TARGET) code emitter"
|
2004-08-09 17:24:32 +00:00
|
|
|
$(VERB) $(TBLGEN) -I $(SourceDir) $< -gen-emitter -o $@
|
|
|
|
|
2004-08-17 05:11:54 +00:00
|
|
|
$(TARGET)GenAsmWriter.inc:: PPC32.td $(TDFILES) $(TBLGEN)
|
2004-08-14 22:06:38 +00:00
|
|
|
@echo "Building $(TARGET).td assembly writer with tblgen"
|
|
|
|
$(VERB) $(TBLGEN) -I $(SourceDir) $< -gen-asm-writer -o $@
|
|
|
|
|
2004-06-21 16:55:25 +00:00
|
|
|
clean::
|
|
|
|
$(VERB) rm -f *.inc
|