xref: /petsc/src/vec/pf/impls/string/makefile (revision 2d50711886017447cb8c1ab06d8b61e8775efc0e)
1292f8084SBarry Smith
2292f8084SBarry SmithALL: lib
3292f8084SBarry Smith
4292f8084SBarry SmithCFLAGS   =
5292f8084SBarry SmithFFLAGS   =
6292f8084SBarry SmithSOURCEC  = cstring.c
7292f8084SBarry SmithSOURCEF  =
8292f8084SBarry SmithSOURCEH  =
9292f8084SBarry SmithLIBBASE  = libpetscvec
10292f8084SBarry SmithMANSEC   = Vec
11615cd37bSBarry SmithLOCDIR   = src/vec/pf/impls/string/
12292f8084SBarry Smith
13da93591fSBarry Smithinclude ${PETSC_DIR}/conf/variables
14da93591fSBarry Smithinclude ${PETSC_DIR}/conf/rules
152423ceccSBarry Smithinclude ${PETSC_DIR}/conf/test
16292f8084SBarry Smith
17292f8084SBarry Smith#
18292f8084SBarry Smith#  This rule is called by the function PFStringCreateFunction() and creates a dynamic
19292f8084SBarry Smith# library with a function in it named FNAME
20292f8084SBarry Smithpetscdlib.c:
21c4da4110SBarry 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
22292f8084SBarry Smith
23292f8084SBarry Smithpetscdlib:  petscdlib.c
2421d91ea6SKris Buschelman	-@${RM} libpetscdlib.a libpetscdlib.${SL_LINKER_SUFFIX}
25*2d507118SSatish Balay	-@${OMAKE} PETSC_ARCH=${PETSC_ARCH}  LIBNAME=libpetscdlib.a SOURCEC=petscdlib.c libc
26ab901514SBarry Smith	-@${OMAKE} PETSC_ARCH=${PETSC_ARCH}  LIBNAME=libpetscdlib oshared
27292f8084SBarry Smith#	-@${RM} petscdlib.c
28292f8084SBarry Smith
29