# Makefile - makefile for target/src/ostool/wrload
#
# Copyright (c) 2008-2010 Wind River Systems, Inc.
#
# The right to copy, distribute, modify or otherwise make use of this software
# may be licensed only pursuant to the terms of an applicable Wind River
# license agreement.
#
# Copyright (c) 2008-2010 Wind River Systems, Inc.
#
# The right to copy, distribute, modify or otherwise make use of this software
# may be licensed only pursuant to the terms of an applicable Wind River
# license agreement.
#
# modification history
# --------------------
# 01h,12jul10,v_r  wrload unsupported on LP64, thus excluded from the build.
# 01e,30mar10,v_r  Added backward compatibility layer to the build.
# 01d,01mar10,v_r  Moved includes to quoted style.
# 01g,09mar09,dbt  Added VxSim support.
# 01c,16oct09,v_r  Mods for P4080 36bits support (CQ:WIND00174166):
#		   + added CPU-specific library to the build. 
#		   + includes now located within include/ directory.
# 01f,17nov08,mze  do not build for simulators
# 01e,02oct08,mze  adding VSB configuration check
# 01d,30sep08,dtr  Change ADDED_CFLAGS to EXTRA_INCLUDE.
# 01c,22aug08,mak  Ci Updates
# 01b,24jul08,mak  tree re-org
# 01a,13feb08,mak  written
#
# DESCRIPTION
# This file contains the makefile rules for building wrload.

TGT_DIR=$(WIND_BASE)/target

EXTRA_INCLUDE += -I.

LIB_BASE_NAME	= wrload

include $(TGT_DIR)/h/make/defs.library

# By default, do not build anything

OBJS = 

# wrload is only built if the VSB option is selected and if this is not an LP64
# build.

ifdef _WRS_CONFIG_COMPONENT_WRLOAD
  ifndef _WRS_CONFIG_LP64
OBJS = memConfigVxWorks.o wrloadElfLib.o cmdLineLib.o omfLib.o \
       wrload.o wrloadFlags.o wrloadCpuLib.o wrloadVxWorks.o \
       wrloadCompatLib.o
  endif
endif

DOC_FILES = wrload.c

include $(TGT_DIR)/h/make/rules.library
