thisgonnabemyname
Programmer
- May 11, 2010
- 2
Hey there,
I have a programm (which consists of one fortran file, let's assume it bla.f). I added some functionalities to it (it's a code-block which is completely independend from the others), which needed external libraries (so I made use of the "use MODULE_XYZ" statement in the fortran file).
my question is the following: is there any possibility to have only ONE bla.f file and compile it in two different versions:
1. "make": compile the program as if the added code wouldn't exist in the file (I don't know how to "disable" certain lines of code therefor)
2. "make bla": compile the program in the latest version, which means: compile it including the new code.
Is this possible? Would be nice for checking it into the CVS repository without having two versions of code in bla.f, which was there before I added functionality.
thanks so far!
I have a programm (which consists of one fortran file, let's assume it bla.f). I added some functionalities to it (it's a code-block which is completely independend from the others), which needed external libraries (so I made use of the "use MODULE_XYZ" statement in the fortran file).
my question is the following: is there any possibility to have only ONE bla.f file and compile it in two different versions:
1. "make": compile the program as if the added code wouldn't exist in the file (I don't know how to "disable" certain lines of code therefor)
2. "make bla": compile the program in the latest version, which means: compile it including the new code.
Is this possible? Would be nice for checking it into the CVS repository without having two versions of code in bla.f, which was there before I added functionality.
thanks so far!