1-include ../../../../../petscdir.mk 2#requiresdefine 'PETSC_HAVE_POPEN' 3 4MANSEC = Vec 5 6include ${PETSC_DIR}/lib/petsc/conf/variables 7include ${PETSC_DIR}/lib/petsc/conf/rules 8 9# These rules are called by the function PFStringCreateFunction() and creates a dynamic library with that function in it named FNAME 10 11petscdlib.c: 12 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 13 14petscdlib.o: petscdlib.c 15 16libpetscdlib: petscdlib.o 17 -@${RM} libpetscdlib.${SL_LINKER_SUFFIX} 18 ${CLINKER} $(call SL_LINKER_FUNCTION,petscdlib,1,0) petscdlib.o -o libpetscdlib.${SL_LINKER_SUFFIX} $(PETSC_EXTERNAL_LIB_BASIC) 19 20