xref: /petsc/src/vec/pf/impls/string/makefile (revision d18748622689843e8c5ce717aabfcc708e80ab43)
1*d1874862SSatish Balay-include ../../../../../petscdir.mk
2292f8084SBarry Smith
3292f8084SBarry SmithSOURCEC  = cstring.c
4292f8084SBarry SmithSOURCEF  =
5292f8084SBarry SmithSOURCEH  =
6292f8084SBarry SmithLIBBASE  = libpetscvec
7292f8084SBarry SmithMANSEC   = Vec
8615cd37bSBarry SmithLOCDIR   = src/vec/pf/impls/string/
9292f8084SBarry Smith
10af0996ceSBarry Smithinclude ${PETSC_DIR}/lib/petsc/conf/variables
11af0996ceSBarry Smithinclude ${PETSC_DIR}/lib/petsc/conf/rules
12af0996ceSBarry Smithinclude ${PETSC_DIR}/lib/petsc/conf/test
13292f8084SBarry Smith
14292f8084SBarry Smith#
15292f8084SBarry Smith#  This rule is called by the function PFStringCreateFunction() and creates a dynamic
16292f8084SBarry Smith# library with a function in it named FNAME
17292f8084SBarry Smithpetscdlib.c:
18c4da4110SBarry Smith	sed -e "s/FUNCTION/${STRINGFUNCTION}/g" -e "s/_MIN_/${MIN}/g" -e "s/_NOUT_/${NOUT}/g" ${PETSC_DIR}/src/pf/impls/string/cstringbase.template > petscdlib.c
19292f8084SBarry Smith
20292f8084SBarry Smithpetscdlib:  petscdlib.c
2121d91ea6SKris Buschelman	-@${RM} libpetscdlib.a libpetscdlib.${SL_LINKER_SUFFIX}
222d507118SSatish Balay	-@${OMAKE} PETSC_ARCH=${PETSC_ARCH}  LIBNAME=libpetscdlib.a SOURCEC=petscdlib.c libc
23ab901514SBarry Smith	-@${OMAKE} PETSC_ARCH=${PETSC_ARCH}  LIBNAME=libpetscdlib oshared
24292f8084SBarry Smith#	-@${RM} petscdlib.c
25292f8084SBarry Smith
26