View previous topic :: View next topic |
Author |
Message |
jjgermis
Joined: 21 Jun 2006 Posts: 404 Location: N�rnberg, Germany
|
Posted: Mon Apr 11, 2011 2:10 pm Post subject: mk32: How to avoid list files |
|
|
We are using Silverfrost together with gfortran. Since I could not figure out how to suppress the directory structure from Plato, the idea is to rather use of make files. In doing so the repository has the same structure for both compilers.
Below is the make file for mk32. Since I have OBJ as a macro I would like to avoid the @listfile, i.e. making a file which has the same content as OBJ. Is this possible?
Code: | .SUFFIXES: .f90 .obj
OBJ = NRTYPE.obj NRUTIL.obj NR.obj POLIN2.obj POLINT.obj ZBRAK.obj LOCATE.obj BRENT.obj ZBRENT.obj
T = nr.lib
.f90.obj:
ftn95 $< /check
nr.lib: $(OBJ)
slink -archive:$@ -addobj:@listfile |
|
|
Back to top |
|
 |
PaulLaidler Site Admin
Joined: 21 Feb 2005 Posts: 8211 Location: Salford, UK
|
Posted: Mon Apr 11, 2011 4:13 pm Post subject: |
|
|
I am not sure what you are asking for but an alternative approach is to have the slink line in the form
slink listfile
where listfile is a file containing line by line commands in script file mode. |
|
Back to top |
|
 |
jjgermis
Joined: 21 Jun 2006 Posts: 404 Location: N�rnberg, Germany
|
Posted: Tue Apr 12, 2011 6:31 am Post subject: |
|
|
Thanks.
The idea is to avoid a list file, i.e. have some implicit rule in the make file. Using a listfile implies track keeping of two files instead of one. |
|
Back to top |
|
 |
|