</$objtype/mkfile
LIB=/$objtype/lib/ape/fmemopen.a
OFILES=fmemopen.$O
HFILES=local.h machine/types.h sys/_types.h sys/lock.h machine/_types.h sys/_types.h \
	_ansi.h sys/reent.h reent.h sys/features.h machine/ieeefp.h sys/config.h \
	newlib.h _ansi.h sys/lock.h 

</sys/src/cmd/mksyslib

CC=pcc
LD=pcc
CFLAGS=-c -I. -D_POSIX_SOURCE -Dwint_t=long -D__extension__= -D__restrict= -D__IEEE_LITTLE_ENDIAN -D__SINGLE_THREAD__

#need to figure out how to define either big or little endian in mkfile.

fmemopen.$O: 

install:V:
	cp stdio.new /sys/include/ape/stdio.h

nuke:V:
	mk clean
	rm -f $LIB
	cp stdio.orig /sys/include/ape/stdio.h


