naras@stat.fsu.edu (B. Narasimhan) (03/13/90)
I am a little familiar with make on our Sun, but the one with
with Microsoft C is driving me nuts. Here's what I am trying to do.
I have a library that is made up of some 50 files, all fortran
programs. I need them all compiled with my batch command which I
call `f' and added to my library `mylib.lib' using `LIB'.
I did the following.
I made an inference rule
.for.obj:
f $*
Then I listed the various names of the files as follows
file1.obj: file1.for
file2.obj: file2.for
and finally I added a line
mylib.lib: <list of all obj files with extensions>
lib $** ;
( I am aware that the last line is a problem since I need to put
`+'s to add modules.)
Question 1) Is there a good way to do this?
Question 2) How may I use wildcard characters to refer
to the filenames?
Question 3) Is there a way to automatically include the `+' signs for
LIB?
Thanks in advance for your replies.
-B. Narasimhan
naras@stat.fsu.edu