1-include ../../../../../petscdir.mk 2#requiresdefine 'PETSC_HAVE_POPEN' 3 4LIBBASE = libpetscvec 5MANSEC = Vec 6DIRS = tests 7 8include ${PETSC_DIR}/lib/petsc/conf/variables 9include ${PETSC_DIR}/lib/petsc/conf/rules 10 11# These rules are called by the function PFStringCreateFunction() and creates a dynamic library with that function in it named FNAME 12 13petscdlib.c: 14 sed -e "s/FUNCTION/${STRINGFUNCTION}/g" -e "s/_NIN_/${NIN}/g" -e "s/_NOUT_/${NOUT}/g" ${PETSC_DIR}/src/vec/pf/impls/string/cstringbase.template > petscdlib.c 15 16petscdlib.o: petscdlib.c 17 18libpetscdlib: petscdlib.o 19 -@${RM} libpetscdlib.${SL_LINKER_SUFFIX} 20 ${CLINKER} $(call SL_LINKER_FUNCTION,petscdlib,1,0) petscdlib.o -o libpetscdlib.${SL_LINKER_SUFFIX} $(PETSC_EXTERNAL_LIB_BASIC) 21 22