Author Topic: FEAPHOME variable  (Read 11459 times)

nrs

  • New Member
  • *
  • Posts: 3
FEAPHOME variable
« 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.

FEAP_Admin

  • Administrator
  • FEAP Guru
  • *****
  • Posts: 993
Re: FEAPHOME variable
« Reply #1 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.

nrs

  • New Member
  • *
  • Posts: 3
Re: FEAPHOME variable
« Reply #2 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.