xref: /petsc/src/vec/pf/impls/string/makefile (revision f236b2ad18af65eafb1995156e06d20e80c6f49d)
1d1874862SSatish Balay-include ../../../../../petscdir.mk
2*f236b2adSBarry Smith#requiresdefine  'PETSC_HAVE_POPEN'
3292f8084SBarry Smith
4292f8084SBarry SmithLIBBASE  = libpetscvec
5292f8084SBarry SmithMANSEC   = Vec
6*f236b2adSBarry SmithDIRS     = tests
7292f8084SBarry Smith
8af0996ceSBarry Smithinclude ${PETSC_DIR}/lib/petsc/conf/variables
9*f236b2adSBarry Smithinclude ${PETSC_DIR}/lib/petsc/conf/rules
10292f8084SBarry Smith
11*f236b2adSBarry Smith#  These rules are called by the function PFStringCreateFunction() and creates a dynamic library with that function in it named FNAME
12*f236b2adSBarry Smith
13292f8084SBarry Smithpetscdlib.c:
14*f236b2adSBarry 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
15292f8084SBarry Smith
16*f236b2adSBarry Smithpetscdlib.o: petscdlib.c
17*f236b2adSBarry Smith
18*f236b2adSBarry Smithlibpetscdlib:  petscdlib.o
19*f236b2adSBarry Smith	-@${RM} libpetscdlib.${SL_LINKER_SUFFIX}
20*f236b2adSBarry Smith	${CLINKER} $(call SL_LINKER_FUNCTION,petscdlib,1,0) petscdlib.o -o libpetscdlib.${SL_LINKER_SUFFIX} $(PETSC_EXTERNAL_LIB_BASIC)
21292f8084SBarry Smith
22