#
# Copyright (C) 2004, SCONCE, UCI-ICS
#
#
# File Name:
#    $ libtsd/Makefile $
#
#
# Description:
#    Make dependancy file.
#
#
# Revision History:
#     01/18/2005   JHYI   Initial revision.
#
#

INCDIR = ../include 

DEFS	 = 
CC = gcc
OPTS	 = -g -Wall     	
CFLAGS = $(OPTS) $(DEFS)
CCFLAGS = $(OPTS) $(DEFS)

AR = ar
ARFLAGS = r

INCS = -I$(INCDIR) 

LIB     = ./libtsd.a
CSRCS    = tsdEncode.c  tsdLib.c  tsdMemory.c  tsdProto.c  tsdSocket.c  tsdUtil.c

.c.o:
	$(CC) -c $(CFLAGS) $(INCS) $(CSRCS)

OBJS    = $(CSRCS:.c=.o)

all:	$(LIB)

$(LIB):	$(OBJS)
	rm -f $(LIB)
	$(AR) $(ARFLAGS) $@ $(OBJS)

clean:
	rm -f *.o core $(LIB)

