.SUFFIXES : .m .o 
#.SUFFIXES : .c .o 

.m.o : 
	$(CC) $(CFLAGS) -c $< -o $@

#.c.o : 
#	gcc  $(CFLAGS) -c $< -o $@



CC = g++

INC =
LIBS =
CFLAGS = -g $(INC) -fPIC 

OBJS =  XGActionMonitor.o XGConnection.o XGGSSAuthenticator.o XGAuthenticator.o\
XGTwoWayRandomAuthenticator.o XGJob.o  XGResource.o XGController.o XGFile.o\
XGFileDownload.o


SRCS =  XGActionMonitor.m XGConnection.m XGGSSAuthenticator.m XGAuthenticator.m\
XGTwoWayRandomAuthenticator.m XGJob.m  XGResource.m XGController.m XGFile.m\
XGFileDownload.m



TARGET = libXgridFoundation.so


all : $(TARGET)
$(TARGET) : $(OBJS)
	$(CC) -shared -Wl,-soname,$@ -o $@ $(OBJS)
#	strip *.so & 
dep :
	gccmakedep $(INC) $(SRCS)

clean :
	rm -rf $(OBJS) $(TARGET) core# DO NOT DELETE

##$(TARGET) : $(OBJS)
#	#$(CC) -shared -Wl,-soname,$@ -o $@ $(OBJS)

# DO NOT DELETE


