#
# /emx/src/lib/io/makefile
#
.INCLUDE: /emx/src/lib/libc.mak

local: ;

access.o: access.c $(E) $(I)string.h $(I)io.h $(ERRNO)
chmod.o: chmod.c $(I)io.h $(I)sys/types.h $(I)sys/stat.h $(E) $(ERRNO)
chsize.o: chsize.c $(I)io.h $(E) $(ERRNO) $(I)strings.h
close.o: close.c $(E) $(I)io.h $(ERRNO)
creat.o: creat.c $(I)io.h $(FCNTL)
crlf.o: crlf.c $(I)io.h $(I)string.h
dup.o: dup.c $(I)io.h $(E) $(ERRNO)
dup2.o: dup2.c $(I)io.h $(E) $(ERRNO)
ead.o: ead.c $(I)sys/ead.h $(I)stdlib.h $(I)string.h $(ERRNO) \
    $(I)io.h ea.h
eadadd.o: eadadd.c $(I)sys/ead.h $(I)stdlib.h $(I)string.h $(ERRNO) \
    $(I)io.h ea.h
eadcopy.o: eadcopy.c $(I)sys/ead.h $(I)stdlib.h $(I)string.h $(ERRNO) \
    $(I)io.h ea.h
eadfea.o: eadfea.c $(I)sys/ead.h $(I)stdlib.h $(I)string.h $(ERRNO) \
    $(I)io.h ea.h
eadread.o: eadread.c $(I)sys/ead.h $(I)stdlib.h $(I)string.h $(ERRNO) \
    $(I)io.h ea.h
eadsort.o: eadsort.c $(I)sys/ead.h $(I)stdlib.h $(I)string.h $(ERRNO) \
    $(I)io.h ea.h
eadwrite.o: eadwrite.c $(I)sys/ead.h $(I)stdlib.h $(I)string.h $(ERRNO) \
    $(I)io.h ea.h
eaerrno.o: eaerrno.c $(ERRNO) $(I)os2.h $(I)stdlib.h ea.h
eafree.o: eafree.c $(I)sys/ea.h $(I)stdlib.h
eaget.o: eaget.c $(I)sys/ea.h $(I)stdlib.h $(I)string.h $(ERRNO) \
    $(I)io.h ea.h
eaput.o: eaput.c $(I)sys/ea.h $(I)stdlib.h $(I)string.h $(ERRNO) \
    $(I)io.h ea.h
earemove.o: earemove.c $(I)sys/ea.h $(I)stdlib.h
eawrite.o: eawrite.c ea.h $(I)stdlib.h
eof.o: eof.c $(I)io.h $(E) $(ERRNO)
fcntl.o: fcntl.c $(E) $(I)unistd.h $(FCNTL) $(ERRNO)
fileleng.o: fileleng.c $(I)io.h $(E)
flock.o: flock.c $(I)sys/file.h $(FCNTL) $(ERRNO)
fstat.o: fstat.c $(I)io.h $(E) $(I)sys/types.h $(I)sys/stat.h $(I)time.h
fsync.o: fsync.c $(I)io.h $(E)
ftruncat.o: ftruncat.c $(I)io.h $(E) $(ERRNO)
getw.o: getw.c $(I)stdio.h
imphandl.o: imphandl.c $(E) $(I)io.h $(FCNTL) $(ERRNO) $(S)ioctl.h
ioctl.o: ioctl.c $(E) $(I)io.h $(I)stdlib.h $(I)sys/termio.h $(I)sys/ioctl.h \
                 $(ERRNO) $(I)stdarg.h
isatty.o: isatty.c $(E) $(I)io.h $(ERRNO)
lseek.o: lseek.c $(E) $(I)io.h $(ERRNO)
mktemp.o: mktemp.c $(I)io.h $(I)string.h $(PROCESS) $(ERRNO)
open.o: open.c $(E) $(I)io.h $(I)stdarg.h $(I)share.h
read.o: read.c $(E) $(I)io.h $(ERRNO) $(I)string.h $(FCNTL)
readv.o: readv.c $(I)stdlib.h $(I)string.h $(I)unistd.h $(ERRNO) \
                 $(I)sys/types.h $(I)sys/uio.h
remove.o: remove.c $(E) $(I)io.h $(ERRNO)
sopen.o: sopen.c $(E) $(I)io.h $(I)stdarg.h
stat.o: stat.c $(I)io.h $(I)sys/types.h $(I)sys/stat.h $(I)time.h \
               $(I)stdlib.h $(ERRNO) $(I)string.h
tell.o: tell.c $(I)io.h $(E) $(ERRNO)
truncate.o: truncate.c $(I)io.h $(FCNTL)
umask.o: umask.c $(E) $(I)stdlib.h
unlink.o: unlink.c $(I)io.h
write.o: write.c $(E) $(I)io.h $(ERRNO) $(I)string.h $(FCNTL) $(SIGNAL)
writev.o: writev.c $(I)stdlib.h $(I)string.h $(I)unistd.h $(ERRNO) \
                  $(I)sys/types.h $(I)sys/uio.h
isterm.o: isterm.c $(I)io.h $(E)
_sopen.o: _sopen.c $(E) $(I)io.h $(I)stdarg.h $(ERRNO) $(FCNTL) \
                   $(I)sys/types.h $(I)sys/stat.h

clearerr.o: clearerr.c $(I)stdio.h
fbuf.o: fbuf.c $(I)stdio.h $(E) $(I)stdlib.h
fclose.o: fclose.c $(I)stdio.h $(I)stdlib.h $(I)io.h $(E) $(I)string.h
fcloseal.o: fcloseal.c $(I)stdio.h $(E)
fdopen.o: fdopen.c $(I)stdio.h $(E) $(FCNTL) $(ERRNO) $(I)io.h
fflush.o: fflush.c $(I)stdio.h $(E) $(FCNTL) $(I)io.h $(I)sys/ioctl.h
fgetc.o: fgetc.c $(I)stdio.h
fgetchar.o: fgetchar.c $(I)stdio.h
fgetpos.o: fgetpos.c $(I)stdio.h
fgets.o: fgets.c $(I)stdio.h
fill.o: fill.c $(I)stdio.h $(E) $(I)io.h $(ERRNO) $(FCNTL)
flush.o: flush.c $(I)stdio.h $(E) $(I)io.h $(ERRNO) $(FCNTL)
flushall.o: flushall.c $(I)stdio.h $(E)
flushstr.o: flushstr.c $(I)stdio.h $(E) $(I)io.h $(ERRNO) $(FCNTL)
fopen.o: fopen.c $(I)stdio.h $(E) $(I)share.h
fprintf.o: fprintf.c $(I)stdio.h $(I)stdarg.h $(E)
fputc.o: fputc.c $(I)stdio.h
fputchar.o: fputchar.c $(I)stdio.h
fputs.o: fputs.c $(I)stdio.h $(I)string.h
fread.o: fread.c $(I)stdio.h $(I)io.h $(ERRNO) $(I)string.h $(E)
freopen.o: freopen.c $(I)stdio.h $(E) $(I)share.h
fscanf.o: fscanf.c $(I)stdio.h $(I)stdarg.h $(E)
fseek.o: fseek.c $(I)stdio.h $(I)io.h $(ERRNO) $(E)
fseekhdr.o: fseekhdr.c $(I)stdio.h $(I)memory.h $(ERRNO)
fsetmode.o: fsetmode.c $(I)stdio.h $(I)io.h $(ERRNO) $(FCNTL)
fsetpos.o: fsetpos.c $(I)stdio.h
fsopen.o: fsopen.c $(I)stdio.h $(E)
ftell.o: ftell.c $(I)stdio.h $(I)io.h $(FCNTL) $(E)
fwrite.o: fwrite.c $(I)stdio.h $(I)io.h $(ERRNO) $(I)string.h $(E)
gets.o: gets.c $(I)stdio.h
input.o: input.c $(E) $(I)stdio.h $(I)stdarg.h $(I)string.h $(I)setjmp.h \
                 $(I)stdlib.h $(I)limits.h $(I)ctype.h $(I)locale.h $(ERRNO)
mfopen.o: mfopen.c $(I)stdio.h $(I)stdlib.h $(ERRNO) $(E)
newstrea.o: newstrea.c $(I)stdio.h
output.o: output.c $(E) $(I)stdio.h $(I)stdarg.h $(I)string.h $(I)float.h \
                   $(I)stdlib.h $(I)limits.h $(I)setjmp.h $(I)math.h \
                   $(I)locale.h
pclose.o: pclose.c $(I)io.h $(PROCESS) $(ERRNO) $(E)
pipe.o: pipe.c $(I)io.h $(ERRNO) $(FCNTL) $(E)
popen.o: popen.c $(E) $(I)stdio.h $(I)stdlib.h $(I)string.h $(PROCESS) \
                 $(I)io.h $(I)unistd.h $(FCNTL) $(ERRNO)
printf.o: printf.c $(I)stdio.h $(I)stdarg.h $(E)
puts.o: puts.c $(I)stdio.h $(I)string.h $(E)
putw.o: putw.c $(I)stdio.h
rename.o: rename.c $(I)stdio.h $(E) $(ERRNO)
rewind.o: rewind.c $(I)stdio.h
rmtmp.o: rmtmp.c $(I)stdio.h $(E)
scanf.o: scanf.c $(I)stdio.h $(I)stdarg.h $(E)
seekhdr.o: seekhdr.c $(I)io.h $(I)memory.h $(ERRNO)
setbuf.o: setbuf.c $(I)stdio.h
setbuffe.o: setbuffe.c $(I)stdio.h
setmode.o: setmode.c $(I)io.h $(FCNTL) $(ERRNO) $(E)
setvbuf.o: setvbuf.c $(I)stdio.h $(E) $(I)stdlib.h
sprintf.o: sprintf.c $(I)stdio.h $(I)stdarg.h $(E) $(I)limits.h
sscanf.o: sscanf.c $(I)stdio.h $(I)stdarg.h $(E) $(I)limits.h
select.o: select.c $(I)io.h $(I)sys/types.h $(I)sys/time.h $(E) $(I)stdlib.h \
                   $(I)memory.h
tmpbuf.o: tmpbuf.c $(E) $(I)stdio.h
tmpfile.o: tmpfile.c $(I)stdio.h $(E) $(I)stdlib.h $(ERRNO) $(I)io.h \
                     $(I)string.h $(I)sys/param.h
ungetc.o: ungetc.c $(I)stdio.h $(I)limits.h $(S)ioctl.h $(E) $(ERRNO)
utime.o: utime.c $(I)time.h $(I)sys/time.h $(I)sys/utime.h $(E)
utimes.o: utimes.c $(I)time.h $(I)sys/time.h $(E)
vfprintf.o: vfprintf.c $(I)stdio.h $(E)
vfscanf.o: vfscanf.c $(I)stdio.h $(I)stdarg.h $(E)
vprintf.o: vprintf.c $(I)stdio.h $(E)
vscanf.o: vscanf.c $(I)stdio.h $(I)stdarg.h $(E)
vsprintf.o: vsprintf.c $(I)stdio.h $(E) $(I)limits.h
vsscanf.o: vsscanf.c $(I)stdio.h $(I)stdarg.h $(E) $(I)limits.h
_fopen.o: _fopen.c $(I)stdio.h $(E) $(I)io.h $(FCNTL) $(ERRNO)

$(DSTLIB):  read.o write.o open.o close.o lseek.o isatty.o access.o \
    eof.o remove.o tell.o unlink.o fileleng.o creat.o fstat.o fsync.o dup.o \
    fcntl.o pipe.o pclose.o popen.o dup2.o select.o getw.o putw.o sopen.o \
    chmod.o stat.o mktemp.o ftruncat.o truncate.o fopen.o freopen.o flock.o \
    fclose.o fread.o fwrite.o fflush.o fgetc.o fputc.o fgetchar.o mfopen.o \
    fputchar.o fputs.o puts.o flush.o fill.o fbuf.o _fopen.o \
    flushall.o fcloseal.o clearerr.o rewind.o setvbuf.o fdopen.o ioctl.o \
    fgetpos.o fsetpos.o ftell.o fseek.o setbuf.o printf.o fprintf.o \
    sprintf.o vprintf.o vfprintf.o vsprintf.o rename.o scanf.o sscanf.o \
    fscanf.o fgets.o gets.o ungetc.o setbuffe.o setmode.o tmpfile.o rmtmp.o \
    input.o output.o newstrea.o tmpbuf.o fseekhdr.o seekhdr.o isterm.o \
    crlf.o fsetmode.o _sopen.o chsize.o fsopen.o umask.o utime.o utimes.o \
    vscanf.o vfscanf.o vsscanf.o flushstr.o ead.o eadadd.o eadcopy.o eadfea.o \
    eadread.o eadsort.o eadwrite.o eaerrno.o eafree.o eaget.o eaput.o \
    earemove.o eawrite.o imphandl.o readv.o writev.o
	-$(AR) d $(DSTLIB) __.SYMDEF
	$(AR) r $(DSTLIB) *.o
	$(AR) s $(DSTLIB)
