[petsc-dev] Experimental GNU make build system

Jed Brown jedbrown at mcs.anl.gov
Thu May 23 15:47:28 CDT 2013


Satish Balay <balay at mcs.anl.gov> writes:

> __SDIR__ is primarily needed by 'all-legacy'. cmake/gmake builds are
> using the full paths at compile time - so they don't need it [and are
> using empty LOCDIR]

This should take care of all-legacy:

diff --git i/conf/rules w/conf/rules
index 0fc01dc..f8b70ad 100644
--- i/conf/rules
+++ w/conf/rules
@@ -391,7 +391,7 @@ getautoconfargs:
         if [ $${mypwd} != $${newpwd} ]; then \
          ${OMAKE}  PETSC_ARCH=${PETSC_ARCH}  chk_petscdir;\
         fi
-       ${PETSC_COMPILE_SINGLE} $<
+       ${PETSC_COMPILE_SINGLE} ${PWD}/$<
        @if [ "${PETSCPORTABLE}" != "" ]; then \
           ${PYTHON} ${PETSC_DIR}/bin/portabilitycheck.py $*.o ; \
         fi



More information about the petsc-dev mailing list