##################################################
#  Makefile for libmextreme                      #
#                                                #
#     libextreme are handy dandy functions       #
#     Use and modify as you like but please      #
#     just email me with your changes            #
#                                                #
#     mike@innercite.com                         #
#                                                #
##################################################

PACKAGE = libextreme.a
CC = gcc
AR = ar
CFLAGS = -g -O2

OBJS = strparse.o esock_new.o esock_read.o esock_write.o
HEADERS = extreme.h


%.o:%.c $(HEADERS)
	$(CC) $(CFLAGS) -c $<


$(PACKAGE):$(OBJS)
	$(AR) cru $@ $(OBJS)
	ranlib $(PACKAGE)

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

