# Makefile - makefile for bsp/config/mv2604
#
# Copyright 1984-1997 Wind River Systems, Inc.
# Copyright 1996 Motorola, Inc.
#
# modification history
# --------------------
# 01e,11jun97,mas  changed bootrom_uncmp.hex to bootrom.hex for standard RELEASE
# 01f,18feb97,dat  removed dcCsr.obj, not needed
# 01e,10jan97,dat  added CPU=PPC604 to dec21140 make rule
# 01d,13dec96,mas  upgraded for Motorola 2600 BSP (SPR 7525).
# 01c,05mar96,tpr  changed -DULTRA by -DMV1600.
# 01b,04mar96,tpr  added EXTRA_DEFINE .
# 01a,28nov95,tpr  written from bsp/mv167/Makefile 01h version.
#
# DESCRIPTION
# This file contains rules for building VxWorks for the
# Motorola MVME2600 board with a PowerPC 604 processor.
#
# INCLUDES
#     makeTarget
#*/

CPU              = PPC604
TOOL             = gnu

TGT_DIR=$(WIND_BASE)/target
include $(TGT_DIR)/h/make/defs.bsp
include $(TGT_DIR)/h/make/make.$(CPU)$(TOOL)
include $(TGT_DIR)/h/make/defs.$(WIND_HOST_TYPE)

## Only redefine make definitions below this point, or your definitions will
## be overwritten by the makefile stubs above.


TARGET_DIR	= mv2604
VENDOR		= Motorola
BOARD		= MVME2600

EXTRA_DEFINE    = -DMV2600 -DTARGET_DIR="\"$(TARGET_DIR)\""

RELEASE		= make.dec21140 vxWorks vxWorks.st bootrom.hex

USR_ENTRY       = usrInit

#
# The constants ROM_TEXT_ADRS, ROM_SIZE, and RAM_HIGH_ADRS are defined
# in config.h, MakeSkel, Makefile, and Makefile.*
# All definitions for these constants must be identical.
#

ROM_TEXT_ADRS	= fff00100 # ROM entry address
ROM_SIZE	= 00080000 # number of bytes of ROM space

RAM_LOW_ADRS	= 00100000 # RAM text/data address
RAM_HIGH_ADRS	= 00200000 # RAM text/data address

HEX_FLAGS	= -a 100

MACH_EXTRA	= dec21140.obj



## Only redefine make definitions above this point, or the expansion of 
## makefile target dependencies may be incorrect.

include $(TGT_DIR)/h/make/rules.bsp
include $(TGT_DIR)/h/make/rules.$(WIND_HOST_TYPE)

make.dec21140:
	(cd ./dec21140; $(MAKE) CPU=PPC604 DIR=$(TGT_DIR)/config/$(TARGET_DIR) objs)

