# Makefile - makefile for target/src/arch/arm/math
#
# Copyright (c) 2001-2002, 2004, 2005, 2009, 2010, 2012, 2013
#                           Wind River Systems, Inc.
#
# The right to copy, distribute or otherwise make use of this software
# may be licensed only pursuant to the terms of an applicable Wind River
# license agreement. No license to Wind River intellectual property rights
# is granted herein. All rights not licensed by Wind River are reserved
# by Wind River.
#
#
# modification history
# --------------------
# 01p,12mar13,yjw  update for armv7-m
# 01o,17dec12,jdw  Fix missing symbols needed for migration (WIND00391096)
# 01n,21sep12,jdw  Switch ARMARCH7 to use generic math libraries
# 01m,13feb12,jdw  Modify Thumb2 to use the VFP support code, WIND00332894
# 01l,24may10,m_h  Thumb-2 Support
# 01k,03mar09,m_h  Adding ARMARCH7 support
# 01j,06apr05,jb   Adding ARCH6
# 01i,03nov04,mcm  Fix for SPR#103179 - added dccMathLib.c for missing _d_fnXX
#                  and _f_fnXX functions.
# 01h,17jan02,to   add armFpLib
# 01g,10jan02,to   remove old fplib
# 01f,18dec01,to   add ARMARCH5(_T) support
# 01e,25oct01,tam  updated for repackaging
# 01d,09oct01,jb   Removing math lib build
# 01c,26jul01,to   added mathSoftLib.o
# 01b,23jul01,scm  change XScale name to conform to coding standards...
# 01a,20jul01,to   written
#
# DESCRIPTION
# This file contains the makefile rules for building the vxWorks architecture
# dependent library.
#
#

TGT_DIR=$(WIND_BASE)/target

LIB_BASE_NAME	= arch

OBJS_COMMON	= mathSoftLib.o dccMathLib.o

OBJS_ARM_FPLIB	= armFpLib.o

# We require mathSoftLib.o for ARMARCH7 vector builds to satisfy
# migration dependencies on mathSoftInit().

OBJS_ARMARCH7_vector = vfpMathLib.o armFpLib.o mathSoftLib.o

OBJS_ARMARCH7_soft = $(OBJS_COMMON) $(OBJS_ARM_FPLIB)

OBJS_ARMARCH4	= $(OBJS_COMMON) $(OBJS_ARM_FPLIB)
OBJS_ARMARCH5	= $(OBJS_COMMON) $(OBJS_ARM_FPLIB)
OBJS_ARMARCH6	= $(OBJS_COMMON) $(OBJS_ARM_FPLIB)
OBJS_ARMARCH7	= $(OBJS_ARMARCH7_$(_WRS_CONFIG_FP))
OBJS_ARMARCH7_T2 = $(OBJS_ARMARCH7_vector)
OBJS_STRONGARM	= $(OBJS_COMMON) $(OBJS_ARM_FPLIB)
OBJS_XSCALE	= $(OBJS_COMMON) $(OBJS_ARM_FPLIB)
OBJS_ARMARCH4_T	= $(OBJS_COMMON)
OBJS_ARMARCH5_T	= $(OBJS_COMMON)
OBJS_ARMARCH7M = $(OBJS_ARMARCH7_$(_WRS_CONFIG_FP))

OBJS		= $(OBJS_$(CPU))

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