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.
|
|
|
|
$(SourceDepend): PowerPCGenRegisterInfo.h.inc PowerPCGenRegisterNames.inc \
|
|
|
|
PowerPCGenRegisterInfo.inc PowerPCGenInstrNames.inc \
|
2004-07-16 20:31:13 +00:00
|
|
|
PowerPCGenInstrInfo.inc
|
2004-06-21 16:55:25 +00:00
|
|
|
|
2004-08-05 18:34:15 +00:00
|
|
|
TDFILES = $(SourceDir)/$(TARGET).td $(wildcard $(SourceDir)/*.td) \
|
|
|
|
$(SourceDir)/../Target.td
|
|
|
|
|
|
|
|
$(TARGET)GenRegisterNames.inc:: $(TDFILES) $(TBLGEN)
|
|
|
|
@echo "Building $(TARGET).td register names with tblgen"
|
2004-06-21 16:55:25 +00:00
|
|
|
$(VERB) $(TBLGEN) -I $(BUILD_SRC_DIR) $< -gen-register-enums -o $@
|
|
|
|
|
2004-08-05 18:34:15 +00:00
|
|
|
$(TARGET)GenRegisterInfo.h.inc:: $(TDFILES) $(TBLGEN)
|
|
|
|
@echo "Building $(TARGET).td 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-05 18:34:15 +00:00
|
|
|
$(TARGET)GenRegisterInfo.inc:: $(TDFILES) $(TBLGEN)
|
|
|
|
@echo "Building $(TARGET).td 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-05 18:34:15 +00:00
|
|
|
$(TARGET)GenInstrNames.inc:: $(TDFILES) $(TBLGEN)
|
|
|
|
@echo "Building $(TARGET).td instruction names with tblgen"
|
2004-06-21 16:55:25 +00:00
|
|
|
$(VERB) $(TBLGEN) -I $(BUILD_SRC_DIR) $< -gen-instr-enums -o $@
|
|
|
|
|
2004-08-05 18:34:15 +00:00
|
|
|
$(TARGET)GenInstrInfo.inc:: $(TDFILES) $(TBLGEN)
|
|
|
|
@echo "Building $(TARGET).td instruction information with tblgen"
|
2004-06-21 16:55:25 +00:00
|
|
|
$(VERB) $(TBLGEN) -I $(BUILD_SRC_DIR) $< -gen-instr-desc -o $@
|
|
|
|
|
|
|
|
clean::
|
|
|
|
$(VERB) rm -f *.inc
|