###############################################################################
#  Makefile for:  sftp
#  Written  by :  Aju John (aju@cs.wpi.edu)
#  Written  on :  Mar 5, 1991
#  Modified on :  $Id: Makefile,v 1.1 91/04/20 17:15:33 aju Exp Locker: aju $  
###############################################################################
SHELL = /bin/sh
# current working directory for Makefile
CURDIR = .
# directory for the source codes and local include files 
SRCDIR = .
# directory for the executable of the benchmark program
BINDIR = .
# directory for the datafiles and the data generator program.
DATDIR = .
# directory for dumping the output file of sdump
DUMPDIR = .

OBJECTA = server.o utils.o timing.o
OBJECTB = client.o utils.o timing.o wpi_banner.o
LIBES = 
CFLAGS =   -g
PROGS = $(BINDIR)/server $(BINDIR)/client


all: client server data help

server: $(OBJECTA)
	cc $(OBJECTA) $(LIBES) -o $(BINDIR)/server
	@size server

client: $(OBJECTB)
	cc $(OBJECTB) $(LIBES) -o $(BINDIR)/client
	@size client

data:	sftpdata.o 
	cc sftpdata.c -o $(BINDIR)/sftpdata       
	

clean:
	rm -f $(CURDIR)/*.o
	rm -f $(CURDIR)/*~
	rm -f $(CURDIR)/*_TFR
	rm -f $(CURDIR)/*_RCV
	rm -f  $(CURDIR)/server
	rm -f  $(CURDIR)/client
	rm -f $(CURDIR)/sftpdata
       
help: 
	@more sftp.help
