xref: /petsc/src/vec/pf/impls/string/makefile (revision da93591f59bc1e95f467c6fc21a755040df0b8f3)
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*da93591fSBarry Smithinclude ${PETSC_DIR}/conf/variables
16*da93591fSBarry Smithinclude ${PETSC_DIR}/conf/rules
172423ceccSBarry Smithinclude ${PETSC_DIR}/conf/test
18292f8084SBarry Smith
19292f8084SBarry Smith#
20292f8084SBarry Smith#  This rule is called by the function PFStringCreateFunction() and creates a dynamic
21292f8084SBarry Smith# library with a function in it named FNAME
22292f8084SBarry Smithpetscdlib.c:
23292f8084SBarry 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
24292f8084SBarry Smith
25292f8084SBarry Smithpetscdlib:  petscdlib.c
2621d91ea6SKris Buschelman	-@${RM} libpetscdlib.a libpetscdlib.${SL_LINKER_SUFFIX}
27ab901514SBarry Smith	-@${OMAKE} PETSC_ARCH=${PETSC_ARCH}  LIBNAME=libpetscdlib.a OBJSC=petscdlib.o libc
28ab901514SBarry Smith	-@${OMAKE} PETSC_ARCH=${PETSC_ARCH}  LIBNAME=libpetscdlib oshared
29292f8084SBarry Smith#	-@${RM} petscdlib.c
30292f8084SBarry Smith
31