# Makefile - makefile for target/src/boot
#
#  Copyright (c) 2005-2010,2012 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
# --------------------
# 01u,05jan12,pgh  Remove deprecated USB file.
# 01t,06jan12,d_c  Defect WIND00202474 Fix WIND00318218
#                  Remove bootVxBusSupport.c
# 01s,16nov10,pgh  Add USB show routine files
# 01r,18jun09,pgh  Remove CC_OPTIM_DRIVER
# 01q,05jan09,pgh  Add bootFdLoad.c back in.
# 01p,08dec08,pgh  Remove unused files.
# 01o,08sep08,rbc  Add bootUefiSupport.c
# 01n,07jul08,jpb  Changed SMP conditional.
# 01m,06jun08,pgh  Add DOC_FILES definition
# 01l,12oct07,pgh  Fix WIND00107491
# 01k,04oct07,pgh  Disable building bootDhcpcLoad.c until IPNET changes are
#                  checked in.
# 01j,11sep07,pgh  Add DHCP boot support to bootapp.
# 01i,31jul07,h_k  disabled SCSI support.
# 01h,28feb07,jmt  Add bootEdrSupport.c
# 01g,06feb07,jmt  Add PCMCIA, SCSI, TFFS filesystem boot
# 01f,17jan07,jmt  Add USB components
# 01e,28nov06,h_k  add bootEthAdrSet. (CQ:81271)
# 01d,24oct06,jmt  Add bootEthMacHandler.c
# 01c,22aug06,jmt  Add bootAppTestFuncs.c
# 01b,15aug06,jmt  Add bootVxBusSupport.o and bootAddMem.o
# 01a,06jul05,jmt  created from drv/end
#
# DESCRIPTION
# This file contains the makefile rules for building the bootApp
# into the VxWorks library.
#

TGT_DIR=$(WIND_BASE)/target

LIB_BASE_NAME=boot

# Including defs.library to see if _WRS_CONFIG_SMP is defined.
# It must be after LIB_BASE_NAME
include $(TGT_DIR)/h/make/defs.library

EXTRA_INCLUDE=-I$(TGT_DIR)/h/ -I$(TGT_DIR)/h/wrn/coreip/ -I$(TGT_DIR)/h/private

DOC_FILES = bootAddMem.c bootApp.c bootAppExc.c bootAppShell.c \
    bootAppTestFuncs.c bootDhcpcLoad.c bootEdrSupport.c bootEndSupport.c \
    bootEthAdrSet.c bootEthMacHandler.c bootFdLoad.c bootFsLoad.c \
    bootFtpLoad.c bootMemCmds.c bootNetLoad.c bootRshLoad.c bootTftpLoad.c \
    bootTsfsLoad.c bootUsbShow.c

ifeq ($(CPU),PENTIUM4)
DOC_FILES += bootUefiSupport.c
endif

OBJS = bootAddMem.o bootApp.o bootAppExc.o bootAppShell.o bootAppTestFuncs.o \
    bootDhcpcLoad.o bootEdrSupport.o bootEndSupport.o bootEthAdrSet.o \
    bootEthMacHandler.o bootFdLoad.o bootFsLoad.o bootFtpLoad.o bootMemCmds.o \
    bootNetLoad.o bootRshLoad.o bootTftpLoad.o bootTsfsLoad.o \
    bootUsbShow.o
    

ifeq ($(CPU),PENTIUM4)
OBJS += bootUefiSupport.o
endif

include $(WRVX_COMPBASE)/$(COMP_IPNET2)/osconfig/vxworks/make/defs.ipcom
include $(TGT_DIR)/h/make/rules.library
include $(WRVX_COMPBASE)/$(COMP_IPNET2)/osconfig/vxworks/make/rules.ipcom
