xref: /petsc/src/vec/pf/impls/string/makefile (revision 2423ceccb24e7c4e920586461c18d276a9f3c5ae)
1292f8084SBarry Smith
2292f8084SBarry SmithALL: lib
3292f8084SBarry Smith
4292f8084SBarry SmithCFLAGS   =
5292f8084SBarry SmithFFLAGS   =
6292f8084SBarry SmithSOURCEC  = cstring.c
7292f8084SBarry SmithSOURCEF  =
8292f8084SBarry SmithSOURCEH  =
9292f8084SBarry SmithOBJSC    = cstring.o
10292f8084SBarry SmithOBJSF    =
11292f8084SBarry SmithLIBBASE  = libpetscvec
12292f8084SBarry SmithMANSEC   = Vec
13615cd37bSBarry SmithLOCDIR   = src/vec/pf/impls/string/
14292f8084SBarry Smith
15*2423ceccSBarry Smithinclude ${PETSC_DIR}/conf/base
16*2423ceccSBarry Smithinclude ${PETSC_DIR}/conf/test
17292f8084SBarry Smith
18292f8084SBarry Smith#
19292f8084SBarry Smith#  This rule is called by the function PFStringCreateFunction() and creates a dynamic
20292f8084SBarry Smith# library with a function in it named FNAME
21292f8084SBarry Smithpetscdlib.c:
22292f8084SBarry Smith	sed -e "s/FUNCTION/${STRINGFUNCTION}/g" -e "s/_MIN_/${MIN}/g" -e "s/_NOUT_/${NOUT}/g" ${PETSC_DIR}/src/pf/impls/string/cstringbase.c > petscdlib.c
23292f8084SBarry Smith
24292f8084SBarry Smithpetscdlib:  petscdlib.c
2521d91ea6SKris Buschelman	-@${RM} libpetscdlib.a libpetscdlib.${SL_LINKER_SUFFIX}
26ab901514SBarry Smith	-@${OMAKE} PETSC_ARCH=${PETSC_ARCH}  LIBNAME=libpetscdlib.a OBJSC=petscdlib.o libc
27ab901514SBarry Smith	-@${OMAKE} PETSC_ARCH=${PETSC_ARCH}  LIBNAME=libpetscdlib oshared
28292f8084SBarry Smith#	-@${RM} petscdlib.c
29292f8084SBarry Smith
30