PETSc is installed with MPI, LAPACK - and can be installed with PARMETIS
[which has metis.a]. So there is no reason to have a non-petsc
makefile.
And you can't use a different MPI than what PETSc is installed with.
The simplest makefile would be:
--
CFLAGS
For one you have correctly modify SOURCE_DIR [I didn't know what was
correct value for you]. And then make sure other things are correctly
specified - like SOURCE_OBJ etc..
I don't see any 'debug/main.o' specified in the makefile - not sure
where its coming from.
This discusion is better done at