1) https://github.com/huiscliu/sxamg/tree/master/example 2) make make: *** No rule to make target 'cg-amg2', needed by 'default'. Stop. 3) default: lib amg amg-low-level cg-amg cg-amg2 gmres-amg lib: @(cd ../; make) include ../Makefile.inc amg.o: amg.c ../src/lib$(SXAMGLIB)$(LIB_SUFFIX) amg-low-level.o: amg-low-level.c ../src/lib$(SXAMGLIB)$(LIB_SUFFIX) cg-amg.o: cg-amg.c ../src/lib$(SXAMGLIB)$(LIB_SUFFIX) cg-amg2.o: cg-amg2.c ../src/lib$(SXAMGLIB)$(LIB_SUFFIX) gmres-amg.o: gmres-amg.c ../src/lib$(SXAMGLIB)$(LIB_SUFFIX) clean: rm -f *.o amg amg-low-level cg-amg cg-amg2 gmres-amg 4) make: *** No rule to make target 'cg-amg2.c', needed by 'cg-amg2.o'. Stop. 其实就是没有cg-amg2.o: cg-amg2.c ../src/lib$(SXAMGLIB)$(LIB_SUFFIX) 5) ls A.dat amg.c amg-low-level.c amg.o cg-amg.c Makefile amg amg-low-level amg-low-level.o cg-amg cg-amg.o mat.h 没有cg-amg2.c的文件 6)去年cg-amg2.c相差的就行 |
说点什么...