SHELL	= /ex32/bin/vssh

OBJECTS = \
	editbuf.o \
	filebuf.o \
	fstream.o \
	igetline.o \
	indstrea.o \
	iostream.o \
	makebuf.o \
	parsestr.o \
	plotfile.o \
	sbufvfor.o \
	sbufvsca.o \
	sfile.o \
	sgetline.o \
	stdstrbu.o \
	stdstrea.o \
	stream.o \
	streambu.o \
	strstrea.o

SOURCES = \
	editbuf.cc \
	filebuf.cc \
	fstream.cc \
	igetline.cc \
	indstrea.cc \
	iostream.cc \
	makebuf.cc \
	parsestr.cc \
	plotfile.cc \
	sbufvfor.cc \
	sbufvsca.cc \
	sfile.cc \
	sgetline.cc \
	stdstrbu.cc \
	stdstrea.cc \
	stream.cc \
	streambu.cc \
	strstrea.cc

MAKEFILE= makefile
CC	= /ex32/bin/gcc
AR	= /ex32/bin/ar
RM	= /ex32/bin/rm -f
ARFLAGS = rvs
CFLAGS	= -c -O2
LIBDIR	= /ex32/lib
LIBRARY = libgcc.a

all:	$(OBJECTS) $(MAKEFILE)
	
lib:
	$(AR) $(ARFLAGS) $(LIBDIR)/$(LIBRARY) $(OBJECTS)
	
clean:
	$(RM) $(OBJECTS)

editbuf.o:	editbuf.cc;	$(CC) $(CFLAGS) editbuf.cc
filebuf.o:	filebuf.cc;	$(CC) $(CFLAGS) filebuf.cc
fstream.o:	fstream.cc;	$(CC) $(CFLAGS) fstream.cc
igetline.o:	igetline.cc;	$(CC) $(CFLAGS) igetline.cc
indstrea.o:	indstrea.cc;	$(CC) $(CFLAGS) indstrea.cc
iostream.o:	iostream.cc;	$(CC) $(CFLAGS) iostream.cc
makebuf.o:	makebuf.cc;	$(CC) $(CFLAGS) makebuf.cc
parsestr.o:	parsestr.cc;	$(CC) $(CFLAGS) parsestr.cc
plotfile.o:	plotfile.cc;	$(CC) $(CFLAGS) plotfile.cc
sbufvfor.o:	sbufvfor.cc;	$(CC) $(CFLAGS) sbufvfor.cc
sbufvsca.o:	sbufvsca.cc;	$(CC) $(CFLAGS) sbufvsca.cc
sfile.o:	sfile.cc;	$(CC) $(CFLAGS) sfile.cc
sgetline.o:	sgetline.cc;	$(CC) $(CFLAGS) sgetline.cc
stdstrbu.o:	stdstrbu.cc;	$(CC) $(CFLAGS) stdstrbu.cc
stdstrea.o:	stdstrea.cc;	$(CC) $(CFLAGS) stdstrea.cc
stream.o:	stream.cc;	$(CC) $(CFLAGS) stream.cc
streambu.o:	streambu.cc;	$(CC) $(CFLAGS) streambu.cc
strstrea.o:	strstrea.cc;	$(CC) $(CFLAGS) strstrea.cc
