OBJ =    graph.o maxflow.o


include ../Makefile.mk

all install : $(LIB_GC)

$(LIB_GC) :\
	$(DIR_LIB)/$(LIB_GC)($(OBJ))
	$(RANLIB) $(DIR_LIB)/$(LIB_GC)

$(DIR_LIB)/$(LIB_GC)(%.o):%.cpp 
	@echo "*"
	@echo "* Add $*.cpp in library $@ "
	@echo "*"
	g++ -g -Wall  -c  $*.cpp -o $*.o 
	($(AR) $@ $%; rm $%)
	


$(DIR_LIB)(graph.o) : graph.cpp graph.h
$(DIR_LIB)(maxflow.o) : maxflow.cpp 

clean :
	rm -f *~
	rm -f *%

uninstall :
	rm -f $(DIR_LIB)/$(LIB_GC)