<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Mon, Jan 29, 2018 at 2:27 AM, Mark Adams <span dir="ltr"><<a href="mailto:mfadams@lbl.gov" target="_blank">mfadams@lbl.gov</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">I want to add stuff to compile lines and I tried:<div><br></div><div><div><br></div><div>include ${PETSC_DIR}/lib/petsc/conf/<wbr>variables</div><div>include ${PETSC_DIR}/lib/petsc/conf/<wbr>rules</div><div><br></div><div>CC_FLAGS := ${CC_FLAGS} -I$(OLYMPUS_INC_DIR) -I$(FEI_DIR) -DPROM_HAVE_METIS -DPROM_USE_PETSC -DPROM_NO_FEI -DPROM_HAVE_SILO # -I$(SILO_INC)</div><div>FC_FLAGS := ${FC_FLAGS} -fdefault-integer-8</div></div><div><br></div><div>This a C++ code:</div><div><br></div><div>
<span></span>
<p class="m_1622509283810497172gmail-p1" style="margin:0px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:"Andale Mono";color:rgb(52,188,38);background-color:rgba(0,0,0,0.9)"><span class="m_1622509283810497172gmail-s1" style="font-variant-ligatures:no-common-ligatures;color:rgb(0,249,0)">10:21</span><span class="m_1622509283810497172gmail-s2" style="font-variant-ligatures:no-common-ligatures;color:rgb(213,59,211)"> 2</span><span class="m_1622509283810497172gmail-s1" style="font-variant-ligatures:no-common-ligatures;color:rgb(0,249,0)"> </span><span class="m_1622509283810497172gmail-s3" style="font-variant-ligatures:no-common-ligatures;color:rgb(82,48,225)">master *= </span><span class="m_1622509283810497172gmail-s4" style="font-variant-ligatures:no-common-ligatures">~/Codes/olympus-keaveny/<wbr>Olympus</span><span class="m_1622509283810497172gmail-s1" style="font-variant-ligatures:no-common-ligatures;color:rgb(0,249,0)">$ make getcflags</span></p>
<p class="m_1622509283810497172gmail-p2" style="margin:0px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:"Andale Mono";color:rgb(0,249,0);background-color:rgba(0,0,0,0.9)"><span class="m_1622509283810497172gmail-s4" style="font-variant-ligatures:no-common-ligatures">-Wall -Wwrite-strings -Wno-strict-aliasing -Wno-unknown-pragmas -fstack-protector -Qunused-arguments -fvisibility=hidden -g -mavx2 -I./include -I./fei_prom -DPROM_HAVE_METIS -DPROM_USE_PETSC -DPROM_NO_FEI -DPROM_HAVE_SILO</span></p>
<p class="m_1622509283810497172gmail-p1" style="margin:0px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:"Andale Mono";color:rgb(52,188,38);background-color:rgba(0,0,0,0.9)"><span class="m_1622509283810497172gmail-s1" style="font-variant-ligatures:no-common-ligatures;color:rgb(0,249,0)">10:21 </span><span class="m_1622509283810497172gmail-s3" style="font-variant-ligatures:no-common-ligatures;color:rgb(82,48,225)">master *= </span><span class="m_1622509283810497172gmail-s4" style="font-variant-ligatures:no-common-ligatures">~/Codes/olympus-keaveny/<wbr>Olympus</span><span class="m_1622509283810497172gmail-s1" style="font-variant-ligatures:no-common-ligatures;color:rgb(0,249,0)">$ make</span></p>
<p class="m_1622509283810497172gmail-p2" style="margin:0px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:"Andale Mono";color:rgb(0,249,0);background-color:rgba(0,0,0,0.9)"><span class="m_1622509283810497172gmail-s4" style="font-variant-ligatures:no-common-ligatures">/Users/markadams/Codes/petsc/<wbr>arch-macosx-gnu-g/bin/mpicxx -o pfeap/pfeap.o -c -Wall -Wwrite-strings -Wno-strict-aliasing -Wno-unknown-pragmas -fstack-protector -fvisibility=hidden -g -mavx2 <span class="m_1622509283810497172gmail-Apple-converted-space"> </span>-I/Users/markadams/Codes/<wbr>petsc/include -I/Users/markadams/Codes/<wbr>petsc/arch-macosx-gnu-g/<wbr>include -I/Users/markadams/Codes/<wbr>petsc/arch-macosx-gnu-g/<wbr>include/pragmatic -I/Users/markadams/Codes/<wbr>petsc/arch-macosx-gnu-g/<wbr>include/eigen3<span class="m_1622509283810497172gmail-Apple-converted-space"> </span>`pwd`/pfeap/pfeap.C</span></p>
<p class="m_1622509283810497172gmail-p2" style="margin:0px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:"Andale Mono";color:rgb(0,249,0);background-color:rgba(0,0,0,0.9)"><span class="m_1622509283810497172gmail-s4" style="font-variant-ligatures:no-common-ligatures">/Users/markadams/Codes/<wbr>olympus-keaveny/Olympus/pfeap/<wbr>pfeap.C:7:10: </span><span class="m_1622509283810497172gmail-s5" style="font-variant-ligatures:no-common-ligatures;color:rgb(195,55,32)">fatal error: </span><span class="m_1622509283810497172gmail-s4" style="font-variant-ligatures:no-common-ligatures">'pfeap.hh' file not found</span></p>
<p class="m_1622509283810497172gmail-p2" style="margin:0px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:"Andale Mono";color:rgb(0,249,0);background-color:rgba(0,0,0,0.9)"><span class="m_1622509283810497172gmail-s4" style="font-variant-ligatures:no-common-ligatures">#include "pfeap.hh"</span></p>
<p class="m_1622509283810497172gmail-p1" style="margin:0px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:"Andale Mono";color:rgb(52,188,38);background-color:rgba(0,0,0,0.9)"><span class="m_1622509283810497172gmail-s4" style="font-variant-ligatures:no-common-ligatures"><span class="m_1622509283810497172gmail-Apple-converted-space"> </span>^~~~~~~~~~</span></p>
<p class="m_1622509283810497172gmail-p2" style="margin:0px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:"Andale Mono";color:rgb(0,249,0);background-color:rgba(0,0,0,0.9)"><span class="m_1622509283810497172gmail-s4" style="font-variant-ligatures:no-common-ligatures">1 error generated.</span></p>
<br></div>It looks like CC_FLAGS are not getting used by CXX (-I./include is not making it to the compile line). How should I do this? I don't see a <span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:small;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline">CXX_FLAGS.</span></div></blockquote><div><br></div><div>It is CXX_FLAGS.</div><div><br></div><div> Matt</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><br></div><div>Thanks,</div><div>Mark</div></div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div>What most experimenters take for granted before they begin their experiments is infinitely more interesting than any results to which their experiments lead.<br>-- Norbert Wiener</div><div><br></div><div><a href="http://www.caam.rice.edu/~mk51/" target="_blank">https://www.cse.buffalo.edu/~knepley/</a><br></div></div></div></div></div>
</div></div>