Silverfrost Forums

Welcome to our forums

mk32: How to avoid list files

11 Apr 2011 1:10 #8066

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?

.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
11 Apr 2011 3:13 #8067

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.

12 Apr 2011 5:31 #8069

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.

Please login to reply.