# makefile for multigrid program, Sun version C859 = /afs/cs/project/classes-ph/859E/pub # include and library paths IPATH = -I$(C859)/include LIBS = -L$(C859)/lib -lsvl.dbg -larg -lm # compilers and settings to use for C++ and C code, respectively CPPC = g++ CC = gcc CFLAGS = -g $(IPATH) CPPFLAGS = $(CFLAGS) -DVL_CHECKING # the above VL options turn on subscriptrange checking # after code is debugged, replace -g -lsvl.dbg -DVL_CHECKING # with -O -lsvl # for optimization. Program may run many times faster that way. SOURCE = simp.cc levi.cc all: simp levi simp: simp.o $(CPPC) -o simp simp.o $(LIBS) levi: levi.o $(CPPC) -o levi levi.o $(LIBS) .SUFFIXES: .cc .c .cc.o: $(CPPC) -c $(CPPFLAGS) $< clean: -rm -rf simp levi core *.o *~ "#"*"#" Makefile.sun.bak depend: makedepend -fMakefile.sun $(IPATH) \ -I/usr/local/include/g++ \ -I/usr/local/include \ $(SOURCE) # DO NOT DELETE