SubDir OBOS_TOP src kernel libroot posix glibc libio ;

SubDirHdrs $(OBOS_TOP) src kernel libroot posix glibc include arch $(OBOS_ARCH) ;
#SubDirHdrs $(OBOS_TOP) src kernel libroot posix glibc stdio-common ;
#SubDirHdrs $(OBOS_TOP) src kernel libroot posix glibc libio ;
SubDirHdrs $(OBOS_TOP) src kernel libroot posix glibc include ;
SubDirHdrs $(OBOS_TOP) src kernel libroot posix glibc locale ;
SubDirHdrs $(OBOS_TOP) src kernel libroot posix glibc ;

# For now, all wide character functions are disabled,
# obprintf() is also disabled, because we don't have
# obstack functionality

KernelMergeObject posix_gnu_libio.o :
	<$(SOURCE_GRIST)>clearerr.c
	<$(SOURCE_GRIST)>clearerr_u.c
	<$(SOURCE_GRIST)>fcloseall.c
	<$(SOURCE_GRIST)>feof.c
	<$(SOURCE_GRIST)>feof_u.c
	<$(SOURCE_GRIST)>ferror.c
	<$(SOURCE_GRIST)>ferror_u.c
	<$(SOURCE_GRIST)>fileno.c
	<$(SOURCE_GRIST)>filedoalloc.c
	<$(SOURCE_GRIST)>fileops.c
	<$(SOURCE_GRIST)>flockfile.c
	<$(SOURCE_GRIST)>fputc.c
	<$(SOURCE_GRIST)>fputc_u.c
#	<$(SOURCE_GRIST)>freopen.c
	<$(SOURCE_GRIST)>fseek.c
	<$(SOURCE_GRIST)>fseeko.c
	<$(SOURCE_GRIST)>ftello.c
	<$(SOURCE_GRIST)>fwide.c
	<$(SOURCE_GRIST)>genops.c
	<$(SOURCE_GRIST)>getc.c
	<$(SOURCE_GRIST)>getc_u.c
	<$(SOURCE_GRIST)>getchar.c
	<$(SOURCE_GRIST)>getchar_u.c
	<$(SOURCE_GRIST)>iofclose.c
	<$(SOURCE_GRIST)>iofdopen.c
	<$(SOURCE_GRIST)>iofflush.c
#	<$(SOURCE_GRIST)>iofgetpos.c
	<$(SOURCE_GRIST)>iofgets.c
	<$(SOURCE_GRIST)>iofgets_u.c
	<$(SOURCE_GRIST)>iofopen.c
	<$(SOURCE_GRIST)>iofputs.c
	<$(SOURCE_GRIST)>iofputs_u.c
	<$(SOURCE_GRIST)>iofread.c
	<$(SOURCE_GRIST)>iofread_u.c
#	<$(SOURCE_GRIST)>iofsetpos.c
	<$(SOURCE_GRIST)>ioftell.c
	<$(SOURCE_GRIST)>iofwrite.c
	<$(SOURCE_GRIST)>iofwrite_u.c
	<$(SOURCE_GRIST)>iofwide.c
	<$(SOURCE_GRIST)>iogetdelim.c
	<$(SOURCE_GRIST)>iogetline.c
	<$(SOURCE_GRIST)>iogets.c
	<$(SOURCE_GRIST)>iopadn.c
	<$(SOURCE_GRIST)>ioputs.c
	<$(SOURCE_GRIST)>ioseekoff.c
	<$(SOURCE_GRIST)>ioseekpos.c
	<$(SOURCE_GRIST)>iosetbuffer.c
	<$(SOURCE_GRIST)>iosetvbuf.c
	<$(SOURCE_GRIST)>ioungetc.c
	<$(SOURCE_GRIST)>iovdprintf.c
	<$(SOURCE_GRIST)>iovsprintf.c
	<$(SOURCE_GRIST)>iovsscanf.c
#	<$(SOURCE_GRIST)>obprintf.c
	<$(SOURCE_GRIST)>peekc.c
	<$(SOURCE_GRIST)>putc.c
	<$(SOURCE_GRIST)>putc_u.c
	<$(SOURCE_GRIST)>putchar.c
	<$(SOURCE_GRIST)>putchar_u.c
	<$(SOURCE_GRIST)>rewind.c
	<$(SOURCE_GRIST)>setbuf.c
	<$(SOURCE_GRIST)>setlinebuf.c
	<$(SOURCE_GRIST)>stdfiles.c
	<$(SOURCE_GRIST)>stdio.c
	<$(SOURCE_GRIST)>strops.c
	<$(SOURCE_GRIST)>vasprintf.c
	<$(SOURCE_GRIST)>vscanf.c
	<$(SOURCE_GRIST)>vsnprintf.c
	<$(SOURCE_GRIST)>wfile_stubs.c

	# wide character

#	<$(SOURCE_GRIST)>fputwc.c
#	<$(SOURCE_GRIST)>fputwc_u.c
#	<$(SOURCE_GRIST)>fwprintf.c
#	<$(SOURCE_GRIST)>fwscanf.c
#	<$(SOURCE_GRIST)>getwc.c
#	<$(SOURCE_GRIST)>getwc_u.c
#	<$(SOURCE_GRIST)>iofputws.c
#	<$(SOURCE_GRIST)>iofputws_u.c
#	<$(SOURCE_GRIST)>iogetwline.c
#	<$(SOURCE_GRIST)>ioungetwc.c
#	<$(SOURCE_GRIST)>iovswscanf.c
#	<$(SOURCE_GRIST)>iowpadn.c
#	<$(SOURCE_GRIST)>putwc.c
#	<$(SOURCE_GRIST)>putwc_u.c
#	<$(SOURCE_GRIST)>putwchar.c
#	<$(SOURCE_GRIST)>putwchar_u.c
#	<$(SOURCE_GRIST)>swprintf.c
#	<$(SOURCE_GRIST)>swscanf.c
#	<$(SOURCE_GRIST)>vswprintf.c
#	<$(SOURCE_GRIST)>vwprintf.c
#	<$(SOURCE_GRIST)>vwscanf.c
#	<$(SOURCE_GRIST)>wfiledoalloc.c
#	<$(SOURCE_GRIST)>wfileops.c
#	<$(SOURCE_GRIST)>wgenops.c
#	<$(SOURCE_GRIST)>wprintf.c
#	<$(SOURCE_GRIST)>wscanf.c
#	<$(SOURCE_GRIST)>wstrops.c
	:
	-fPIC -DPIC
	;

#KernelMergeObject kernel_posix_stdio.o :
#	<$(SOURCE_GRIST)>kvsprintf.c
#	:
#	-fPIC -DPIC
#	;
#
