# Makefile - makefile for target/src/tool/common
#
# Copyright (c) 2020 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
# --------------------
# 01i,28may20,lau  removed arm_math (VXW6-87229)
# 01h,15jun16,lau  arm_math
# 01g,22sep10,gvm  added misc
# 01f,08nov06,dbt  Added tls directory to build.
# 01e,17feb04,pch  remove PPC32 hack, no longer needed
# 01d,27oct03,sn   moved rules.library include here
# 01c,01aug03,pch  hack for buildExec bug
# 01b,05dec01,to   added arm_call_via.o for Thumb mode
# 01a,03dec01,sn   wrote
# 
# DESCRIPTION
# Build toolchain independent assembly code

TGT_DIR	= $(WIND_BASE)/target

SUBDIRS		= tls misc

LIB_BASE_NAME	= commoncc
LIB_COMMON	= true

CONFIGLETTE_NAME = common_intrinsics

OBJS_ppc = saverest.o

OBJS_arm = arm_call_via.o

PRE_OBJS = $(OBJS_$(TOOLENV))

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