#################################################
#						#
# Makefile for CLIB\STDIO directory		#
#						#
# Routines contained in this directory are:	#
#	_cflush.asm				#
#	_filbuf.asm				#
#	_file.c 				#
#	_flsbuf.asm				#
#	_freebuf.asm				#
#	_getbuf.asm				#
#	_open.c 				#
#	_sftbuf.asm				#
#	_tmpoff.asm				#
#	clearerr.c				#
#	closeall.c (fcloseall)			#
#	commode.asm				#
#	fclose.c				#
#	fdopen.c				#
#	feoferr.c				#
#	fflush.c				#
#	fgetpos.c				#
#	fgets.asm				#
#	fileno.c				#
#	fopen.c 				#
#	fprintf.c				#
#	fputs.c 				#
#	freopen.c				#
#	fscanf.c				#
#	fseek.c 				#
#	fsetpos.c				#
#	ftell.c 				#
#	getc.asm				#
#	gets.asm				#
#	getw.c					#
#	input.c 				#
#	ncommode.asm 				#
#	output.asm				#
#	popen.c 				#
#	printf.c				#
#	putc.asm				#
#	puts.c					#
#	putw.c					#
#	rewind.c				#
#	rmtmp.c 				#
#	scanf.c 				#
#	setbuf.c				#
#	setvbuf.c				#
#	sprintf.c				#
#	sscanf.c				#
#	stream.c				#
#	tempnam.c				#
#	tmpfile.c				#
#	ungetc.c				#
#	vfprintf.c				#
#	vprintf.c				#
#	vsprintf.c				#
#						#
#################################################


#########################################
#					#
# Object lists				#
#					#
#########################################

# Common objects
COMM_O= \
	$(LIBC)\_cflush.obj \
	$(LIBC)\_filbuf.obj \
	$(LIBC)\_freebuf.obj \
	$(LIBC)\_getbuf.obj \
	$(LIBC)\_open.obj \
	$(LIBC)\_tmpoff.obj \
	$(LIBC)\clearerr.obj \
	..\commode.obj \
	$(LIBC)\cprintf.obj \
	$(LIBC)\cscanf.obj \
	$(LIBC)\fclose.obj \
	$(LIBC)\fdopen.obj \
	$(LIBC)\feoferr.obj \
	$(LIBC)\fflush.obj \
	$(LIBC)\fgetpos.obj \
	$(LIBC)\fgets.obj \
	$(LIBC)\fileno.obj \
	$(LIBC)\fprintf.obj \
	$(LIBC)\fputs.obj \
	$(LIBC)\fread.obj \
	$(LIBC)\fscanf.obj \
	$(LIBC)\fseek.obj \
	$(LIBC)\fsetpos.obj \
	$(LIBC)\ftell.obj \
	$(LIBC)\fwrite.obj \
	$(LIBC)\getc.obj \
	$(LIBC)\gets.obj \
	$(LIBC)\getw.obj \
	$(LIBC)\input.obj \
	$(LIBC)\ncommode.obj \
	$(LIBC)\output.obj \
	$(LIBC)\printf.obj \
	$(LIBC)\putc.obj \
	$(LIBC)\puts.obj \
	$(LIBC)\putw.obj \
	$(LIBC)\rewind.obj \
	$(LIBC)\rmtmp.obj \
	$(LIBC)\scanf.obj \
	$(LIBC)\setbuf.obj \
	$(LIBC)\setvbuf.obj \
	$(LIBC)\snprintf.obj \
	$(LIBC)\sprintf.obj \
	$(LIBC)\sscanf.obj \
	$(LIBC)\stream.obj \
	$(LIBC)\ungetc.obj \
	$(LIBC)\vprintf.obj \
	$(LIBC)\vfprintf.obj \
	$(LIBC)\vsnprint.obj \
	$(LIBC)\vsprintf.obj


# DOS objects
DOS_O=	\
	$(LIBC)\dos\_flsbuf.obj \
	$(LIBC)\dos\_sftbuf.obj \
	$(LIBC)\dos\_file.obj \
	$(LIBC)\dos\closeall.obj \
	$(LIBC)\dos\file.obj \
	$(LIBC)\dos\fopen.obj \
	$(LIBC)\dos\freopen.obj \
	$(LIBC)\dos\tempnam.obj \
	$(LIBC)\dos\tmpfile.obj


# Windows objects
WIN_O=	\
	$(LIBC)\_filbuf.obj \
	$(LIBC)\_freebuf.obj \
	$(LIBC)\_getbuf.obj \
	$(LIBC)\_open.obj \
	$(LIBC)\clearerr.obj \
	$(LIBC)\fclose.obj \
	$(LIBC)\fdopen.obj \
	$(LIBC)\feoferr.obj \
	$(LIBC)\fflush.obj \
	$(LIBC)\fgetpos.obj \
	$(LIBC)\fgets.obj \
	$(LIBC)\fileno.obj \
	$(LIBC)\fprintf.obj \
	$(LIBC)\fputs.obj \
	$(LIBC)\fread.obj \
	$(LIBC)\fscanf.obj \
	$(LIBC)\fseek.obj \
	$(LIBC)\fsetpos.obj \
	$(LIBC)\ftell.obj \
	$(LIBC)\fwopen.obj \
	$(LIBC)\fwrite.obj \
	$(LIBC)\getc.obj \
	$(LIBC)\gets.obj \
	$(LIBC)\getw.obj \
	$(LIBC)\input.obj \
	$(LIBC)\output.obj \
	$(LIBC)\printf.obj \
	$(LIBC)\putc.obj \
	$(LIBC)\puts.obj \
	$(LIBC)\putw.obj \
	$(LIBC)\rewind.obj \
	$(LIBC)\rmtmp.obj \
	$(LIBC)\scanf.obj \
	$(LIBC)\setbuf.obj \
	$(LIBC)\setvbuf.obj \
	$(LIBC)\snprintf.obj \
	$(LIBC)\sprintf.obj \
	$(LIBC)\sscanf.obj \
	$(LIBC)\stream.obj \
	$(LIBC)\ungetc.obj \
	$(LIBC)\vfprintf.obj \
	$(LIBC)\vprintf.obj \
	$(LIBC)\vsnprint.obj \
	$(LIBC)\vsprintf.obj \
	$(LIBC)\dos\_flsbuf.obj \
	$(LIBC)\dos\_sftbuf.obj \
	$(LIBC)\dos\file.obj \
	$(LIBC)\dos\wfile.obj \
	$(LIBC)\dos\closeall.obj \
	$(LIBC)\dos\fopen.obj \
	$(LIBC)\dos\freopen.obj \
	$(LIBC)\dos\tempnam.obj \
	$(LIBC)\dos\tmpfile.obj

WINDLL_O= \
	$(LIBC)\_cflush.obj \
	$(LIBC)\fclose.obj \
	$(LIBC)\fdopen.obj \
	$(LIBC)\fprintf.obj \
	$(LIBC)\getc.obj \
	$(LIBC)\getw.obj \
	$(LIBC)\putc.obj \
	$(LIBC)\putw.obj \
	$(LIBC)\output.obj \
	$(LIBC)\snprintf.obj \
	$(LIBC)\sprintf.obj \
	$(LIBC)\vfprintf.obj \
	$(LIBC)\vsnprint.obj \
	$(LIBC)\vsprintf.obj \
	$(LIBC)\dos\file.obj \
	$(LIBC)\dos\_flsbuf.obj \
	$(LIBC)\dos\_sftbuf.obj \
	$(LIBC)\dos\closeall.obj \
	$(LIBC)\dos\tmpfile.obj


#########################################
#					#
# Target Dependency listings		#
#					#
#########################################

libc: $(COMM_O) $(DOS_O)



libcw: $(WIN_O)

libcwdll:  $(WINDLL_O)


#########################################################
#							#
# Dependencies and rules for making local objects	#
#							#
#########################################################

$(LIBC)\_cflush.obj: _cflush.asm $(ASMSTD) $(ASMINC)\defsegs.inc
	$(MM) -Fo$(LIBC)\_cflush.obj _cflush.asm

$(LIBC)\_tmpoff.obj: _tmpoff.asm $(ASMSTD) $(ASMINC)\defsegs.inc
	$(MM) -Fo$(LIBC)\_tmpoff.obj _tmpoff.asm

$(LIBC)\_filbuf.obj: _filbuf.asm $(ASMSTD) \
		$(ASMINC)\stdio.inc
	$(MM) -Fo$(LIBC)\_filbuf.obj _filbuf.asm

$(LIBC)\_freebuf.obj: _freebuf.asm $(ASMSTD) \
		$(ASMINC)\stdio.inc
	$(MM) -Fo$(LIBC)\_freebuf.obj _freebuf.asm

$(LIBC)\_getbuf.obj: _getbuf.asm $(ASMSTD) \
		$(ASMINC)\stdio.inc
	$(MM) -Fo$(LIBC)\_getbuf.obj _getbuf.asm

$(LIBC)\_open.obj: _open.c \
		$(INCLUDE)\stdio.h \
		$(INCLUDE)\io.h \
		$(INCLUDE)\fcntl.h \
		$(INCLUDE)\register.h \
		$(INCLUDE)\file2.h \
		$(INCLUDE)\assert.h \
		$(INCLUDE)\internal.h \
		$(INCLUDE)\dos.h
	$(CC) $(MEM) -Fo$(LIBC)\_open.obj _open.c

$(LIBC)\clearerr.obj: clearerr.c \
		$(INCLUDE)\stdio.h \
		$(INCLUDE)\assert.h \
		$(INCLUDE)\file2.h \
		$(INCLUDE)\internal.h \
		$(INCLUDE)\msdos.h
	$(CC) $(MEM) -Fo$(LIBC)\clearerr.obj clearerr.c

..\commode.obj: commode.asm $(ASMSTD)
	$(MM) -Fo..\commode.obj commode.asm

$(LIBC)\cprintf.obj: output.asm $(ASMSTD) \
		$(ASMINC)\stdio.inc \
		$(ASMINC)\math.inc \
		$(ASMINC)\fltintrn.inc
	$(MM) -DCPRFLAG -Fo$(LIBC)\cprintf.obj output.asm

$(LIBC)\cscanf.obj: input.c \
		$(INCLUDE)\sizeptr.h \
		$(INCLUDE)\stdio.h \
		$(INCLUDE)\string.h \
		$(INCLUDE)\register.h \
		$(INCLUDE)\assert.h \
		$(INCLUDE)\ctype.h \
		$(INCLUDE)\cvt.h \
		$(INCLUDE)\conio.h \
		$(INCLUDE)\stdarg.h \
		$(INCLUDE)\fltintrn.h
	$(CC) $(MEM) -DCPRFLAG -Fo$(LIBC)\cscanf.obj input.c

$(LIBC)\fclose.obj: fclose.c \
		$(INCLUDE)\stdio.h \
		$(INCLUDE)\file2.h \
		$(INCLUDE)\register.h \
		$(INCLUDE)\assert.h \
		$(INCLUDE)\string.h \
		$(INCLUDE)\io.h \
		$(INCLUDE)\stdlib.h \
		$(INCLUDE)\internal.h \
		$(INCLUDE)\dos.h
	$(CC) $(MEM) -Fo$(LIBC)\fclose.obj fclose.c

$(LIBC)\fdopen.obj: fdopen.c \
		$(INCLUDE)\stdio.h \
		$(INCLUDE)\file2.h \
		$(INCLUDE)\register.h \
		$(INCLUDE)\assert.h \
		$(INCLUDE)\internal.h
	$(CC) $(MEM) -Fo$(LIBC)\fdopen.obj fdopen.c

$(LIBC)\feoferr.obj: feoferr.c \
		$(INCLUDE)\stdio.h
	$(CC) $(MEM) -Fo$(LIBC)\feoferr.obj feoferr.c

$(LIBC)\fflush.obj: fflush.c \
		$(INCLUDE)\stdio.h \
		$(INCLUDE)\register.h \
		$(INCLUDE)\file2.h \
		$(INCLUDE)\io.h \
		$(INCLUDE)\internal.h \
		$(INCLUDE)\dos.h
	$(CC) $(MEM) -Fo$(LIBC)\fflush.obj fflush.c

$(LIBC)\fgetpos.obj: fgetpos.c \
		$(INCLUDE)\stdio.h
	$(CC) $(MEM) -Fo$(LIBC)\fgetpos.obj fgetpos.c

$(LIBC)\fgets.obj: fgets.asm $(ASMSTD) \
		$(ASMINC)\stdio.inc
	$(MM) -Fo$(LIBC)\fgets.obj fgets.asm

$(LIBC)\fileno.obj: fileno.c \
		$(INCLUDE)\stdio.h
	$(CC) $(MEM) -Fo$(LIBC)\fileno.obj fileno.c

$(LIBC)\fprintf.obj: fprintf.c \
		$(INCLUDE)\stdio.h \
		$(INCLUDE)\register.h \
		$(INCLUDE)\assert.h \
		$(INCLUDE)\stdarg.h \
		$(INCLUDE)\file2.h \
		$(INCLUDE)\internal.h \
		$(INCLUDE)\dos.h
	$(CC) $(MEM) -Fo$(LIBC)\fprintf.obj fprintf.c

$(LIBC)\fputs.obj: fputs.c \
		$(INCLUDE)\stdio.h \
		$(INCLUDE)\string.h \
		$(INCLUDE)\register.h \
		$(INCLUDE)\assert.h \
		$(INCLUDE)\file2.h \
		$(INCLUDE)\internal.h
	$(CC) $(MEM) -Fo$(LIBC)\fputs.obj fputs.c

$(LIBC)\fread.obj: fread.asm $(ASMSTD) \
		$(ASMINC)\stdio.inc
	$(MM) -Fo$(LIBC)\fread.obj fread.asm

$(LIBC)\fscanf.obj: fscanf.c \
		$(INCLUDE)\stdio.h \
		$(INCLUDE)\assert.h \
		$(INCLUDE)\stdarg.h \
		$(INCLUDE)\internal.h \
		$(INCLUDE)\file2.h
	$(CC) $(MEM) -Fo$(LIBC)\fscanf.obj fscanf.c

$(LIBC)\fseek.obj: fseek.c \
		$(INCLUDE)\stdio.h \
		$(INCLUDE)\register.h \
		$(INCLUDE)\file2.h \
		$(INCLUDE)\assert.h \
		$(INCLUDE)\msdos.h \
		$(INCLUDE)\errno.h \
		$(INCLUDE)\malloc.h \
		$(INCLUDE)\io.h \
		$(INCLUDE)\stddef.h \
		$(INCLUDE)\internal.h \
		$(INCLUDE)\dos.h
	$(CC) $(MEM) -Fo$(LIBC)\fseek.obj fseek.c

$(LIBC)\fsetpos.obj: fsetpos.c \
		$(INCLUDE)\stdio.h
	$(CC) $(MEM) -Fo$(LIBC)\fsetpos.obj fsetpos.c

$(LIBC)\ftell.obj: ftell.c \
		$(INCLUDE)\stdio.h \
		$(INCLUDE)\register.h \
		$(INCLUDE)\file2.h \
		$(INCLUDE)\assert.h \
		$(INCLUDE)\errno.h \
		$(INCLUDE)\msdos.h \
		$(INCLUDE)\stddef.h \
		$(INCLUDE)\io.h \
		$(INCLUDE)\internal.h \
		$(INCLUDE)\dos.h
	$(CC) $(MEM) -Fo$(LIBC)\ftell.obj ftell.c

$(LIBC)\fwrite.obj: fwrite.asm $(ASMSTD) \
		$(ASMINC)\stdio.inc
	$(MM) -Fo$(LIBC)\fwrite.obj fwrite.asm

$(LIBC)\getc.obj: getc.asm $(ASMSTD) \
		$(ASMINC)\stdio.inc
	$(MM) -Fo$(LIBC)\getc.obj getc.asm

$(LIBC)\gets.obj: gets.asm $(ASMSTD) \
		$(ASMINC)\stdio.inc
	$(MM) -Fo$(LIBC)\gets.obj gets.asm

$(LIBC)\getw.obj: getw.c \
		$(INCLUDE)\stdio.h \
		$(INCLUDE)\register.h \
		$(INCLUDE)\assert.h \
		$(INCLUDE)\file2.h \
		$(INCLUDE)\internal.h \
		$(INCLUDE)\dos.h
	$(CC) $(MEM) -Fo$(LIBC)\getw.obj getw.c

$(LIBC)\input.obj: input.c \
		$(INCLUDE)\sizeptr.h \
		$(INCLUDE)\stdio.h \
		$(INCLUDE)\string.h \
		$(INCLUDE)\register.h \
		$(INCLUDE)\assert.h \
		$(INCLUDE)\ctype.h \
		$(INCLUDE)\cvt.h \
		$(INCLUDE)\conio.h \
		$(INCLUDE)\stdarg.h \
		$(INCLUDE)\fltintrn.h
	$(CC) $(MEM) -Fo$(LIBC)\input.obj input.c

$(LIBC)\ncommode.obj: ncommode.asm $(ASMSTD)
	$(MM) -Fo$(LIBC)\ncommode.obj ncommode.asm

$(LIBC)\output.obj: output.asm $(ASMSTD) \
		$(ASMINC)\stdio.inc \
		$(ASMINC)\math.inc \
		$(ASMINC)\fltintrn.inc
	$(MM) -Fo$(LIBC)\output.obj output.asm

$(LIBC)\printf.obj: printf.c \
		$(INCLUDE)\stdio.h \
		$(INCLUDE)\register.h \
		$(INCLUDE)\assert.h \
		$(INCLUDE)\stdarg.h \
		$(INCLUDE)\file2.h \
		$(INCLUDE)\internal.h
	$(CC) $(MEM) -Fo$(LIBC)\printf.obj printf.c

$(LIBC)\putc.obj: putc.asm $(ASMSTD) \
		$(ASMINC)\stdio.inc
	$(MM) -Fo$(LIBC)\putc.obj putc.asm

$(LIBC)\puts.obj: puts.c \
		$(INCLUDE)\stdio.h \
		$(INCLUDE)\string.h \
		$(INCLUDE)\register.h \
		$(INCLUDE)\assert.h \
		$(INCLUDE)\file2.h \
		$(INCLUDE)\internal.h
	$(CC) $(MEM) -Fo$(LIBC)\puts.obj puts.c

$(LIBC)\putw.obj: putw.c \
		$(INCLUDE)\stdio.h \
		$(INCLUDE)\register.h \
		$(INCLUDE)\assert.h \
		$(INCLUDE)\file2.h \
		$(INCLUDE)\internal.h \
		$(INCLUDE)\dos.h
	$(CC) $(MEM) -Fo$(LIBC)\putw.obj putw.c

$(LIBC)\rewind.obj: rewind.c \
		$(INCLUDE)\stdio.h \
		$(INCLUDE)\register.h \
		$(INCLUDE)\file2.h \
		$(INCLUDE)\assert.h \
		$(INCLUDE)\io.h \
		$(INCLUDE)\msdos.h \
		$(INCLUDE)\internal.h \
		$(INCLUDE)\dos.h
	$(CC) $(MEM) -Fo$(LIBC)\rewind.obj rewind.c

$(LIBC)\rmtmp.obj: rmtmp.c \
		$(INCLUDE)\stdio.h \
		$(INCLUDE)\file2.h \
		$(INCLUDE)\register.h \
		$(INCLUDE)\internal.h
	$(CC) $(MEM) -Fo$(LIBC)\rmtmp.obj rmtmp.c

$(LIBC)\scanf.obj: scanf.c \
		$(INCLUDE)\stdio.h \
		$(INCLUDE)\register.h \
		$(INCLUDE)\assert.h \
		$(INCLUDE)\stdarg.h \
		$(INCLUDE)\file2.h \
		$(INCLUDE)\internal.h
	$(CC) $(MEM) -Fo$(LIBC)\scanf.obj scanf.c

$(LIBC)\setbuf.obj: setbuf.c \
		$(INCLUDE)\assert.h \
		$(INCLUDE)\stdio.h
	$(CC) $(MEM) -Fo$(LIBC)\setbuf.obj setbuf.c

$(LIBC)\setvbuf.obj: setvbuf.c \
		$(INCLUDE)\stdio.h \
		$(INCLUDE)\register.h \
		$(INCLUDE)\file2.h \
		$(INCLUDE)\assert.h \
		$(INCLUDE)\malloc.h \
		$(INCLUDE)\internal.h \
		$(INCLUDE)\dos.h \
		$(INCLUDE)\limits.h
	$(CC) $(MEM) -Fo$(LIBC)\setvbuf.obj setvbuf.c

$(LIBC)\snprintf.obj: sprintf.c \
		$(INCLUDE)\stdio.h \
		$(INCLUDE)\register.h \
		$(INCLUDE)\assert.h \
		$(INCLUDE)\stdarg.h \
		$(INCLUDE)\internal.h \
		$(INCLUDE)\limits.h
	$(CC) $(MEM) -D_COUNT_ -Fo$(LIBC)\snprintf.obj sprintf.c

$(LIBC)\sprintf.obj: sprintf.c \
		$(INCLUDE)\stdio.h \
		$(INCLUDE)\register.h \
		$(INCLUDE)\assert.h \
		$(INCLUDE)\stdarg.h \
		$(INCLUDE)\internal.h \
		$(INCLUDE)\limits.h
	$(CC) $(MEM) -Fo$(LIBC)\sprintf.obj sprintf.c

$(LIBC)\sscanf.obj: sscanf.c \
		$(INCLUDE)\stdio.h \
		$(INCLUDE)\string.h \
		$(INCLUDE)\register.h \
		$(INCLUDE)\assert.h \
		$(INCLUDE)\stdarg.h \
		$(INCLUDE)\internal.h
	$(CC) $(MEM) -Fo$(LIBC)\sscanf.obj sscanf.c

$(LIBC)\stream.obj: stream.c \
		$(INCLUDE)\stdio.h \
		$(INCLUDE)\register.h \
		$(INCLUDE)\file2.h \
		$(INCLUDE)\internal.h
	$(CC) $(MEM) -Fo$(LIBC)\stream.obj stream.c

$(LIBC)\ungetc.obj: ungetc.c \
		$(INCLUDE)\stdio.h \
		$(INCLUDE)\file2.h \
		$(INCLUDE)\register.h \
		$(INCLUDE)\assert.h \
		$(INCLUDE)\internal.h \
		$(INCLUDE)\dos.h
	$(CC) $(MEM) -Fo$(LIBC)\ungetc.obj ungetc.c

$(LIBC)\vprintf.obj: vprintf.c \
		$(INCLUDE)\stdio.h \
		$(INCLUDE)\register.h \
		$(INCLUDE)\assert.h \
		$(INCLUDE)\varargs.h \
		$(INCLUDE)\internal.h \
		$(INCLUDE)\dos.h \
		$(INCLUDE)\file2.h
	$(CC) $(MEM) -Fo$(LIBC)\vprintf.obj vprintf.c

$(LIBC)\vfprintf.obj: vfprintf.c \
		$(INCLUDE)\stdio.h \
		$(INCLUDE)\register.h \
		$(INCLUDE)\assert.h \
		$(INCLUDE)\stdarg.h \
		$(INCLUDE)\file2.h \
		$(INCLUDE)\internal.h \
		$(INCLUDE)\dos.h
	$(CC) $(MEM) -Fo$(LIBC)\vfprintf.obj vfprintf.c

$(LIBC)\vsnprint.obj: vsprintf.c \
		$(INCLUDE)\stdio.h \
		$(INCLUDE)\register.h \
		$(INCLUDE)\assert.h \
		$(INCLUDE)\stdarg.h \
		$(INCLUDE)\internal.h \
		$(INCLUDE)\limits.h
	$(CC) $(MEM) -D_COUNT_ -Fo$(LIBC)\vsnprint.obj vsprintf.c

$(LIBC)\vsprintf.obj: vsprintf.c \
		$(INCLUDE)\stdio.h \
		$(INCLUDE)\register.h \
		$(INCLUDE)\assert.h \
		$(INCLUDE)\stdarg.h \
		$(INCLUDE)\internal.h
	$(CC) $(MEM) -Fo$(LIBC)\vsprintf.obj vsprintf.c


$(LIBC)\dos\_file.obj: _file.c \
		$(INCLUDE)\stdio.h \
		$(INCLUDE)\file2.h
	$(CC) $(MEM) -Fo$(LIBC)\dos\_file.obj _file.c

$(LIBC)\dos\_flsbuf.obj: _flsbuf.asm $(ASMSTD) \
		$(ASMINC)\msdos.inc $(ASMINC)\fcntl.inc \
		$(ASMINC)\stdio.inc
	$(MM) -Fo$(LIBC)\dos\_flsbuf.obj _flsbuf.asm

$(LIBC)\dos\_sftbuf.obj: _sftbuf.asm $(ASMSTD) \
		$(ASMINC)\stdio.inc $(ASMINC)\msdos.inc
	$(MM) -Fo$(LIBC)\dos\_sftbuf.obj _sftbuf.asm

$(LIBC)\dos\closeall.obj: closeall.c \
		$(INCLUDE)\stdio.h \
		$(INCLUDE)\file2.h \
		$(INCLUDE)\register.h \
		$(INCLUDE)\internal.h
	$(CC) $(MEM) -Fo$(LIBC)\dos\closeall.obj closeall.c

$(LIBC)\dos\file.obj: file.asm $(ASMSTD) \
		$(ASMINC)\defsegs.inc $(ASMINC)\stdio.inc
	$(MM) -Fo$(LIBC)\dos\file.obj file.asm

$(LIBC)\dos\fopen.obj: fopen.c \
		$(INCLUDE)\stdio.h \
		$(INCLUDE)\share.h \
		$(INCLUDE)\register.h \
		$(INCLUDE)\assert.h \
		$(INCLUDE)\internal.h \
		$(INCLUDE)\file2.h
	$(CC) $(MEM) -Fo$(LIBC)\dos\fopen.obj fopen.c

$(LIBC)\dos\freopen.obj: freopen.c \
		$(INCLUDE)\stdio.h \
		$(INCLUDE)\file2.h \
		$(INCLUDE)\share.h \
		$(INCLUDE)\register.h \
		$(INCLUDE)\assert.h \
		$(INCLUDE)\internal.h \
		$(INCLUDE)\dos.h
	$(CC) $(MEM) -Fo$(LIBC)\dos\freopen.obj freopen.c

$(LIBC)\dos\tempnam.obj: tempnam.c \
		$(INCLUDE)\sys\types.h \
		$(INCLUDE)\sys\stat.h \
		$(INCLUDE)\stdio.h \
		$(INCLUDE)\stdlib.h \
		$(INCLUDE)\io.h \
		$(INCLUDE)\errno.h \
		$(INCLUDE)\malloc.h \
		$(INCLUDE)\string.h \
		$(INCLUDE)\register.h \
		$(INCLUDE)\internal.h
	$(CC) $(MEM) -Fo$(LIBC)\dos\tempnam.obj tempnam.c

$(LIBC)\dos\tmpfile.obj: tmpfile.c \
		$(INCLUDE)\stdio.h \
		$(INCLUDE)\share.h \
		$(INCLUDE)\stdlib.h \
		$(INCLUDE)\register.h \
		$(INCLUDE)\file2.h \
		$(INCLUDE)\malloc.h \
		$(INCLUDE)\io.h \
		$(INCLUDE)\errno.h \
		$(INCLUDE)\internal.h \
		$(INCLUDE)\string.h
	$(CC) $(MEM) -Fo$(LIBC)\dos\tmpfile.obj tmpfile.c



$(LIBC)\fwopen.obj: fwopen.c \
		$(INCLUDE)\assert.h \
		$(INCLUDE)\fcntl.h \
		$(INCLUDE)\file2.h \
		$(INCLUDE)\io.h \
		$(INCLUDE)\internal.h \
		$(INCLUDE)\stdio.h \
		$(INCLUDE)\stdlib.h
	$(CC) $(MEM) -Fo$(LIBC)\fwopen.obj fwopen.c

$(LIBC)\dos\wfile.obj: windows\wfile.asm $(ASMSTD) \
		$(ASMINC)\defsegs.inc $(ASMINC)\stdio.inc
	$(MM) -Fo$(LIBC)\dos\wfile.obj windows\wfile.asm

