# WARNING: DO NOT EDIT.
# THIS FILE WAS AUTOMATICALLY GENERATED USING THE
# BUILDMAKE PROGRAM.

# Makefile for V/libc/io
#	by David Cheriton, Andrew Shore, Eric Berglund, Tim Mann, 
#	and a cast of thousands
# 	(among which was Bill Nowicki, December 1982)

.SUFFIXES: .b .c .s


VOBJS = bufferempty.b createinst.b _open.b openfile.b \
	open.b openstr.b read.b setowner.b \
	write.b seek.b flush.b close.b teamfile.b \
	resynch.b fillbuffer.b flushbuffer.b printfile.b \
	blksinfile.b blkposition.b blocksize.b byteposition.b \
	cleareof.b fileexcept.b fileid.b fileserver.b filetype.b \
	eof.b interactive.b seekblock.b removefile.b setbreak.b \
	openip.b openpup.b opentcp.b createpipe.b releaseinst.b

OBJS =  clrerr.b doprnt.b doscan.b fgetc.b fgets.b \
	chdir.b fclose.b fopen.b fseek.b rdwr.b \
	fprintf.b fputc.b fputs.b gets.b getw.b puts.b \
	putw.b scanf.b setbuf.b sprintf.b strout.b ungetc.b printf.b \
	ferror.b fflush.b ftell.b rewind.b freopen.b oldstuff.b

C68FLAGS =  -V -I../include

lib: $(OBJS) $(VOBJS)

# how to make a .b file from a .c file
.c.b:
	cc68 $(C68FLAGS) -O -c $*.c

# how to make a .b file from a .s file
.s.b:
	cc68 $(C68FLAGS) -c $*.s

clean: 
	rm -f *.b *CKP *BAK libV.a

backup:
	cd ..; cpdir io ../../Vbackup/libc/io

build:
	buildmake.sh

xbuild:
	buildmake.sh -DX=1
