1PETSC_DIR = ../.. 2ALL: 3 4CFLAGS = $(PETSC_INCLUDE) $(COPT) $(PCONF) 5FFLAGS = 6SOURCEC = 7SOURCEF = 8SOURCEH = 9OBJSC = 10OBJSF = 11LIBBASE = libpetscsys 12EXAMPLES_1 = 13RUNEXAMPLES_1 = 14EXAMPLES_2 = PetscTime PetscGetTime MPI_Wtime PLogEvent PetscMalloc 15RUNEXAMPLES_2 = 16EXAMPLES_3 = 17RUNEXAMPLES_3 = 18EXAMPLES_4 = 19RUNEXAMPLES_4 = 20EXAMPLESC = 21EXAMPLESF = 22 23PetscTime: PetscTime.o chkopts 24 -$(CLINKER) -o PetscTime PetscTime.o $(PETSC_LIB) 25 $(RM) -f PetscTime.o 26 27PetscGetTime: PetscGetTime.o chkopts 28 -$(CLINKER) -o PetscGetTime PetscGetTime.o $(PETSC_LIB) 29 $(RM) -f PetscGetTime.o 30 31MPI_Wtime: MPI_Wtime.o chkopts 32 -$(CLINKER) -o MPI_Wtime MPI_Wtime.o $(PETSC_LIB) 33 $(RM) -f MPI_Wtime.o 34 35PLogEvent: PLogEvent.o chkopts 36 -$(CLINKER) -o PLogEvent PLogEvent.o $(PETSC_LIB) 37 $(RM) -f PLogEvent.o 38 39PetscMalloc: PetscMalloc.o chkopts 40 -$(CLINKER) -o PetscMalloc PetscMalloc.o $(PETSC_LIB) 41 $(RM) -f PetscMalloc.o 42 43test: $(EXAMPLES_2) 44 45runtest: 46 -@echo "Time Taken by some PETSc routines are as follows:" 47 -@echo "------------------------------------------------" 48 -@$(MPIRUN) PetscTime > /dev/null 49 -@$(MPIRUN) PetscGetTime > /dev/null 50 -@$(MPIRUN) MPI_Wtime > /dev/null 51 -@echo " " 52 -@echo "PLogEventBegin and PLogEventEnd together with options" 53 -@echo "------------------------------------------------" 54 -@$(MPIRUN) PLogEvent > /dev/null 55 -@$(MPIRUN) PLogEvent -log > /dev/null 56 -@$(MPIRUN) PLogEvent -log_summary > /dev/null 57 -@$(MPIRUN) PLogEvent -log_all > /dev/null 58 -@$(MPIRUN) PLogEvent -log_mpe > /dev/null 59 -@$(MPIRUN) PLogEvent -log_mpe -log > /dev/null 60 -@echo " " 61 -@echo "PetscMalloc and PetscFree together with options" 62 -@echo "------------------------------------------------" 63 -@$(MPIRUN) PetscMalloc > /dev/null 64 -@$(MPIRUN) PetscMalloc -trmalloc > /dev/null 65 66 67include $(PETSC_DIR)/bmake/$(PETSC_ARCH)/$(PETSC_ARCH) 68 69