#  Makefile for UCTuple environment

#  Author : Rob Sweeney/Dave Standring
#  Date: 05/19/1999
#  Revision: 1.0
#------------------------------------------------------------------------------

CFLAGS = -g -c

CC  = g++
LIBDIR = ../lib

#---------------------------------------------------------
# Source files

SRCS = UCTGlobal.c++ UCTInit.c++ UCTManager.c++ UCTPacketMgmt.c++ \
UCTTupleMgmt.c++ UCTWorker.c++

OBJS = UCTGlobal.o UCTInit.o UCTManager.o UCTPacketMgmt.o UCTTupleMgmt.o UCTWorker.o
LIB  = $(LIBDIR)/libuct.a

# ------------------------------------------------------

# ------------------------------------------------------------------------
default: uctuple

uctuple:
	rm -f ./lib/*.a; \
	cd src; \
	$(CC) $(CFLAGS) $(SRCS); \
	$(AR) -cvr $(LIB) $(OBJS); \
	$(RM) $(OBJS); \
	cp UCTRun ../bin; \
	cd ..
