# Makefile - makefile for target/src/arch/simnt
#
# Copyright (c) 1998,2000-2007,2010,2015 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
# --------------------
# 02n,30jun15,rlp  added vxdbgCpuArchLib.o
# 02m,02jun10,elp  added adrSpaceArchLib.o
# 02l,03jul07,elp  added vxMemProbeALib.o
# 02k,12jun07,bwa  added vxbAccessArchLib.o
# 02j,02feb07,elp  added intALib.o
# 02i,08nov06,elp  added vxAtomicALib.o vxCpuArchLib.o
# 02h,14sep06,slk  add vxMemProbeArchLib.c
# 02g,05sep05,elp  added archSysctl.o
# 02f,20jan05,jmp  added fppArchShow.o (SPR #105785).
# 02e,28aug04,dbt  Added objALib.o and objArchLib.o.
# 02d,26apr04,jmp  replace trcLib.o by trcArchLib.o.
#		   added trcScArchLib.o.
# 02c,22mar04,m_h  add in_cksum.o
# 02b,18feb04,yvp  Deleted coprocArchLib.o.
# 02a,17nov03,jmp  added syscallALib.o, syscallArchLib.o and rtpSigArchLib.o.
# 01z,12nov03,jeg  added rtpALib.s build
# 01y,07oct03,elp  removed vxsimNetArchLib.c
# 01x,30sep03,jmp  added mmuArchLib.
# 01w,27aug03,elp  added vxsimNetArchLib.o
# 01v,18aug03,dbt  PAL Coprocessor Abstraction
# 01u,13jun03,jeg  added vxALib.o build
# 01t,26mar03,jmp  removed VXWORKS_5X define.
# 01s,18feb03,jmp  code cleanup.
# 01r,03may02,jmp  added fppALib.o build (SPR #76719).
# 01q,09nov01,jmp  fixed simLib.o build.
# 01p,25oct01,tam  updated for repackaging
# 01o,11oct01,jmp  fixed dependencies on ulipIpLib.c.
# 01n,27sep01,jmp  fixed type in windALib.o object name.
# 01m,17sep01,jmp  added windALib.o build.
# 01l,11sep01,hbh  Merged WindML modifications back (SPR 64897). This merge
#                  introduced in 01h version has disappeared in 01j version.
# 01k,30jul01,sn   Use T2 versions of $(LD) and $(CC) to create simLib.o
# 01j,12apr01,mrs  Don't use copy, it doesn't update the timestamp,
#                  and we need a new timestamp to add the file to the archive.
# 01i,30mar01,mrs  Use old copy of simLib.o for now.
# 01h,12mar01,mrs  Account for new ccsimpc toolchain.
# 01h,13mar01,msr  WindML 2.0 Post FCS -- Merging back to main branch.
# 01h,04dec00,jlb  added functions for win32 graphics (WindML)
# 01g,02sep98,cym  building cvtupperPeGnu.exe here.
# 01f,23jul98,dbt  replaced wdbArchLib.o with wdbDbgArchLib.o
# 01e,08jul98,cym  redid the compilation/cvt2upper for simLib.o
# 01d,19jun98,cym  changed to mingwin32/eggs 1.0.2 toolchain.
# 01c,29apr98,cym  moved development to GNU, added some files to cvtToUpper.
# 01b,04mar98,jmb  clean-up.
# 01a,27feb98,jmb  derived from Makefile
#
# DESCRIPTION
# This file contains the makefile rules for building the arch part library
# of the vxWorks runtime library, libSIMNTgnuvx.a.
#
#*/

TGT_DIR=$(WIND_BASE)/target

DOC_FILES	=

LIB_BASE_NAME   = arch

# Including defs.library to see if VSB defines _WRS_CONFIG_SMP/LP64.
# It must be after LIB_BASE_NAME

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

OBJ_COPROC	= 

ifdef _WRS_CONFIG_LP64
OBJS_COMMON     =       adrSpaceArchLib.o
endif

OBJS_COMMON	+=	archSysctl.o		\
			cacheArchLib.o		\
			dbgArchLib.o		\
			dsmLib.o		\
			elfI86.o		\
			excArchLib.o		\
			excArchShow.o		\
			fppALib.o		\
			fppArchLib.o		\
			fppArchShow.o		\
			in_cksum.o		\
			intALib.o		\
			intArchLib.o		\
			mmuArchLib.o		\
			objALib.o		\
			objArchLib.o		\
			rtpALib.o		\
			rtpSigArchLib.o		\
			sigCtxALib.o		\
			sigCtxLib.o		\
			syscallALib.o		\
			syscallArchLib.o	\
			taskArchLib.o		\
			trcArchLib.o		\
			trcScArchLib.o		\
			vxALib.o		\
                        vxbAccessArchLib.o      \
			vxAtomicALib.o		\
			vxCpuArchLib.o		\
			vxLib.o			\
			vxMemProbeALib.o	\
			vxMemProbeArchLib.o	\
			vxsimArchLib.o		\
			vxsimHostArchLib.o 	\
			wdbDbgArchLib.o		\
			windALib.o		\
			windArchLib.o

ifdef _WRS_CONFIG_SMP
OBJS_COMMON += vxdbgCpuArchLib.o
endif

OBJS = $(OBJS_COMMON) $(OBJ_COPROC)

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