#-------------------------------------------------------------
#  Makefile for Anirudh Modi's PhD work
#  Penn State University
#  Anirudh Modi (modi@cse.psu.edu / anirudh@anirudh.net)
#  October 8, 2001 (Monday)
#-------------------------------------------------------------
TARGET = libSteering
SRCS = tcpsocket.cc remotesocket.cc dataserver.cc dataclient.cc semaphore.cc misc.cc keyinfo.cc errcode.cc demangle.cc demangle3.cc dataservermpi.cc
RM = -rm -f

CC = g++ -DMPI #-DANIDEBUG
LIBBASE  = $(TARGET)
LIBNAME  = $(LIBBASE).a

#CFLAGS    = -O4 -funroll-all-loops -c
#CFLAGS    = -g -O6 -funroll-all-loops -c
CFLAGS    = -g -O6 -mcpu=pentiumpro -funroll-all-loops -finline-functions -c
#CFLAGS    = -g -c

OBJS =	$(SRCS:.cc=.o)

.cc.o:
	($(CC) -I. $(CFLAGS)  $< -o $(<:.cc=.o))

$(TARGET): $(OBJS)
	$(AR) cr $(LIBNAME) $(OBJS)

default : $(TARGET)

clean:
	-$(RM) $(OBJS) $(LIBNAME) *~ 
