Sorry was not exacht you have to wrap CFLAGS+= "-I${LOCALBASE}/include" CPPFLAGS+= "-I${LOCALBASE}/include" LDFLAGS+= "-L${LOCALBASE}/lib" in the condition or you delete these three lines from the makefile.