1d1874862SSatish Balay-include ../../../../../petscdir.mk 2f236b2adSBarry Smith#requiresdefine 'PETSC_HAVE_POPEN' 3292f8084SBarry Smith 4292f8084SBarry SmithMANSEC = Vec 5*ce78bad3SBarry SmithSUBMANSEC = PF 6292f8084SBarry Smith 7af0996ceSBarry Smithinclude ${PETSC_DIR}/lib/petsc/conf/variables 8f236b2adSBarry Smithinclude ${PETSC_DIR}/lib/petsc/conf/rules 9292f8084SBarry Smith 10f236b2adSBarry Smith# These rules are called by the function PFStringCreateFunction() and creates a dynamic library with that function in it named FNAME 11f236b2adSBarry Smith 12292f8084SBarry Smithpetscdlib.c: 13f236b2adSBarry Smith 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 14292f8084SBarry Smith 15f236b2adSBarry Smithpetscdlib.o: petscdlib.c 16f236b2adSBarry Smith 17f236b2adSBarry Smithlibpetscdlib: petscdlib.o 18f236b2adSBarry Smith -@${RM} libpetscdlib.${SL_LINKER_SUFFIX} 19f236b2adSBarry Smith ${CLINKER} $(call SL_LINKER_FUNCTION,petscdlib,1,0) petscdlib.o -o libpetscdlib.${SL_LINKER_SUFFIX} $(PETSC_EXTERNAL_LIB_BASIC) 20