<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/variables</div><div>include ${PETSC_DIR}/lib/petsc/conf/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="gmail-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="gmail-s1" style="font-variant-ligatures:no-common-ligatures;color:rgb(0,249,0)">10:21</span><span class="gmail-s2" style="font-variant-ligatures:no-common-ligatures;color:rgb(213,59,211)"> 2</span><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures;color:rgb(0,249,0)"> </span><span class="gmail-s3" style="font-variant-ligatures:no-common-ligatures;color:rgb(82,48,225)">master *= </span><span class="gmail-s4" style="font-variant-ligatures:no-common-ligatures">~/Codes/olympus-keaveny/Olympus</span><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures;color:rgb(0,249,0)">$ make getcflags</span></p>
<p class="gmail-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="gmail-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="gmail-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="gmail-s1" style="font-variant-ligatures:no-common-ligatures;color:rgb(0,249,0)">10:21 </span><span class="gmail-s3" style="font-variant-ligatures:no-common-ligatures;color:rgb(82,48,225)">master *= </span><span class="gmail-s4" style="font-variant-ligatures:no-common-ligatures">~/Codes/olympus-keaveny/Olympus</span><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures;color:rgb(0,249,0)">$ make</span></p>
<p class="gmail-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="gmail-s4" style="font-variant-ligatures:no-common-ligatures">/Users/markadams/Codes/petsc/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="gmail-Apple-converted-space">      </span>-I/Users/markadams/Codes/petsc/include -I/Users/markadams/Codes/petsc/arch-macosx-gnu-g/include -I/Users/markadams/Codes/petsc/arch-macosx-gnu-g/include/pragmatic -I/Users/markadams/Codes/petsc/arch-macosx-gnu-g/include/eigen3<span class="gmail-Apple-converted-space">    </span>`pwd`/pfeap/pfeap.C</span></p>
<p class="gmail-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="gmail-s4" style="font-variant-ligatures:no-common-ligatures">/Users/markadams/Codes/olympus-keaveny/Olympus/pfeap/pfeap.C:7:10: </span><span class="gmail-s5" style="font-variant-ligatures:no-common-ligatures;color:rgb(195,55,32)">fatal error: </span><span class="gmail-s4" style="font-variant-ligatures:no-common-ligatures">'pfeap.hh' file not found</span></p>
<p class="gmail-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="gmail-s4" style="font-variant-ligatures:no-common-ligatures">#include "pfeap.hh"</span></p>
<p class="gmail-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="gmail-s4" style="font-variant-ligatures:no-common-ligatures"><span class="gmail-Apple-converted-space">         </span>^~~~~~~~~~</span></p>
<p class="gmail-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="gmail-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><br></div><div>Thanks,</div><div>Mark</div></div>