##
##	Ohio Trollius
##	Copyright 1995 The Ohio State University
##
##	Function: 	- filed
##			- POSIX remote file server
##

DEPTH   = ../../..

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

##
## local configuration
##
VPATH	= ../../../otb/sys/filed
INCLUDE	= -I$(IDIR)
DEFS	=
LCFLAGS = $(INCLUDE) $(DEFS)
LDFLAGS	= $(LIBBIND)

##
## modules and libraries
##
LIB     = -L$(OLDIR) -lt $(SYSLIBS)
BIN	= filed
SRC	= f_main.c fdesc.c fface.c filed.c \
	  fqclose.c fqf77.c fqlseek.c fqopen.c fqread.c \
	  fqsimplex.c fqstate.c fqwrite.c fqopenfd.c
OBJ	= f_main.o fdesc.o fface.o filed.o \
	  fqclose.o fqf77.o fqlseek.o fqopen.o fqread.o \
	  fqsimplex.o fqstate.o fqwrite.o fqopenfd.o


all: $(BIN)

$(BIN): $(OBJ) $(OLDIR)/libt.a
	$(CC) $(LDFLAGS) -o $(BIN) $(OBJ) $(LIB)

install: $(OBDIR)/$(BIN)

$(OBDIR)/$(BIN): $(BIN)
	$(INSTALL) $(BIN) $(OBDIR)/$(BIN)

clean:
	$(RM) $(OBJ) $(BIN)

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

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