I want to add a makefile from an external library to my own software makefile. The simplest would be to figure out the CMake code for the equivalent Makefile include ${dir}/makefile .
But maybe I should give a little context. I am trying to integrate PETSc (and SLEPc) into my code. Here is an example from an example using SLEPc (although PETSc is almost the same):
hello: hello.o chkopts -${CLINKER} -o hello hello.o ${SLEPC_LIB} ${RM} hello.o include ${SLEPC_DIR}/conf/slepc_common
As you can see, this requires the inclusion of a specific makefile, which includes a bunch of other makefiles. This is a little strange, because it seems that it would be easier to just have an include directory, but apparently there is more than what I understand. Anyway, my first solution was to simply include the makefile that he wants and see if that works.
hadsed
source share