##
##	Ohio Trollius
##	Copyright 1995 The Ohio State University
##
##	Function:	- libtstdio.a
##			- standard I/O under Trollius
##

DEPTH   = ../../..

##
## global configuration
##
include $(DEPTH)/Config/config

##
## local configuration
##
VPATH	= $(DEPTH)/share/tstdio
INCLUDE = -I$(IDIR)
DEFS    =
LCFLAGS = $(INCLUDE) $(DEFS)
AFLAGS  = rv

##
## modules and libraries
##
LIB	= libtstdio.a

SRC	= _tiob.c getbuf.c iomap.c tfclose.c tfdopen.c tfflush.c tfgetc.c \
	  tfgets.c tfopen.c tfprint.c tfputc.c tfputs.c tfread.c tfscan.c \
	  tfseek.c tfwrite.c tprint.c tscan.c tsetbuf.c

OBJ	= _tiob.o getbuf.o iomap.o tfclose.o tfdopen.o tfflush.o tfgetc.o \
	  tfgets.o tfopen.o tfprint.o tfputc.o tfputs.o tfread.o tfscan.o \
	  tfseek.o tfwrite.o tprint.o tscan.o tsetbuf.o

all: $(LIB)

$(LIB): $(OBJ)
	$(RM) $(LIB)
	$(AR) $(AFLAGS) $(LIB) $(OBJ)
	$(RANLIB) $(LIB)

install: $(OLDIR)/$(LIB)

$(OLDIR)/$(LIB): $(LIB)
	$(INSTALL) $(LIB) $(OLDIR)/$(LIB)
	$(RANLIB) $(OLDIR)/$(LIB)

clean:
	$(RM) $(OBJ) $(LIB)

##
## depend:
##
include	$(DEPTH)/Config/depend

##
## automatic dependencies and rules
##
include Depends
