# Makefile - makefile for vw/src/libc/string
#
# modification history
# --------------------
# 01m,06jan11,jph  remove include mapping file not needed
# 01l,08nov10,jph  add mapping file
# 01k,26oct10,jph  remove version
# 01j,17feb10,pch  small footprint
# 01i,08oct09,kkz  Adding version number
# 01h,25apr06,mcm  SPR#117934 - adding strcasecmp (and strncasecmp)
# 01g,15sep05,mcm  Fix for SPR#101756
# 01f,14mar05,yvp  Added strdup.o.
# 01e,17feb04,pch  remove PPC32 hack, no longer needed
# 01d,10sep03,aim  added strlcat, strlcpy
# 01c,31jan03,pch  Add PPC32 support
# 01b,12oct01,tam  added repackaging support
# 01a,18jun96,yp   created from 01d of MakeSkel
#
# DESCRIPTION
# This file contains the makefile rules for building the vx library
#
#*/

TGT_DIR=$(WIND_BASE)/target

LIB_BASE_NAME   = c_wr

DOC_FILES=	ansiString.c

## ansiString.c includes the following files
#	memchr.c memcmp.c memcpy.c memmove.c memset.c strcat.c 
#	strchr.c strcmp.c strcoll.c strcpy.c strcspn.c strerror.c 
#	string.c strlen.c strncat.c strncmp.c strncpy.c strpbrk.c 
#	strrchr.c strspn.c strstr.c strtok.c strtok_r.c strxfrm.c
#	strcasecmp.c strncasecmp.c


OBJS=	memchr.o memcmp.o memcpy.o memmove.o memset.o strcat.o strchr.o \
	strcmp.o strcoll.o strcpy.o strcspn.o strerror.o strlen.o strncat.o \
	strncmp.o strncpy.o strpbrk.o strrchr.o strspn.o strstr.o strtok.o \
	strtok_r.o strxfrm.o xstate.o strlcat.o strlcpy.o \
	strcasecmp.o strncasecmp.o

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

# no point in building this w/ MEM_ALLOT -- it requires memory management
ifndef _WRS_CONFIG_MEM_ALLOT
OBJS+=	strdup.o
endif

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

DOC_BOOK	= Standard_C_and_C++_Libraries
DOC_CHAPTER	= VxWorks_Native_C_Libraries
DOC_DIR=$(DOCS_ROOT)/$(DOC_CCPLUS_LIB)
