# Makefile - makefile for target/src/libc/stdio
#
# modification history
# --------------------
# 01l,06jan11,jph  remove include mapping file not needed
# 01k,08nov10,jph  add mapping file
# 01j,26oct10,jph  remove version
# 01i,06sep10,fan  added stdioFuncBind.o
# 01h,17feb10,pch  small footprint
# 01g,08oct09,kkz  Adding version number
# 01f,15sep05,mcm  Fix for SPR#101756
# 01e,04feb04,pch  remove PPC32 hack, no longer needed
# 01d,07oct03,pch  SPR 90803: fprintf, fscanf, and scanf use floating point
# 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=	ansiStdio.c

## ansiStdio.c includes the following files
# 	clearerr.c fclose.c fdopen.c feof.c ferror.c fflush.c 
#	fgetc.c fgetpos.c fgets.c fileno.c fopen.c fprintf.c 
#	fputc.c fputs.c fread.c freopen.c fscanf.c fseek.c 
#	fsetpos.c ftell.c fvwrite.c fwrite.c getc.c getchar.c 
#	gets.c getw.c perror.c putc.c putchar.c puts.c putw.c 
#	rewind.c scanf.c setbuf.c setbuffer.c setvbuf.c stdioLib.c 
#	stdioShow.c tmpfile.c tmpnam.c ungetc.c vfprintf.c


OBJS=	clearerr.o fdopen.o feof.o ferror.o fflush.o fgetc.o \
	fgetpos.o fgets.o fileno.o flags.o fopen.o \
	fputc.o fputs.o fread.o fsetpos.o \
	ftell.o fvwrite.o fwrite.o getc.o getchar.o gets.o getw.o \
	perror.o putc.o putchar.o putw.o puts.o \
	rewind.o rget.o setbuf.o setbuffer.o \
	stdio.o tmpnam.o tmpfile.o \
	wbuf.o vfprintf.o fprintf.o fscanf.o scanf.o stdioFuncBind.o

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

# no point in building these w/ MEM_ALLOT -- they require memory management
ifndef _WRS_CONFIG_MEM_ALLOT
OBJS+=	fclose.o freopen.o fseek.o makebuf.o refill.o setvbuf.o \
	stdioLib.o stdioShow.o ungetc.o wsetup.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)
