FEAP User Forum

FEAP => Wishlist => Topic started by: nrs on November 14, 2012, 10:40:18 AM

Title: FEAPHOME variable
Post by: nrs on November 14, 2012, 10:40:18 AM
It would have been nice if there were no need for a FEAPHOME variable. I have many directories of the same version of feap for debugging purposes, and it is tiresome to change the variable each time I need to compile.  Removing the variable would make the process more abstract.
You can look at libmesh for reference. I modified my own version of FEAP, and it works.
Title: Re: FEAPHOME variable
Post by: FEAP_Admin on December 22, 2012, 01:16:44 PM
Can you explain in more detail what you did?  We are also looking at moving to CMAKE to solve this problem.
Title: Re: FEAPHOME variable
Post by: nrs on December 22, 2012, 07:45:55 PM
There is already a "makefile.in" file that is included by all the other makefiles in different subdirectories. Since every path is defined relative to the FEAPHOME variable, one could specify FEAPHOME in each makefile.
Code: [Select]
For example in ./makefile:
FEAPHOME=./
include $(FEAPHOME)/makefile.in

and in ./unix/makefile
FEAPHOME=../
include $(FEAPHOME)/makefile.in
FEAPHOME only changes for different subdirectory levels. I think this is a common method for large scale projects. It is also convenient to change FEAPHOME to something shorter like "F".
Using cmake would also be useful for compiling under windows.