🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.ibm.pc
Article #43960

Need help with Microsoft Make.

#43960
From: B. Narasimhan
Date: Mon, 12 Mar 1990 21:07
33 lines
1484 bytes
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
Technical Details
Message-ID: <809@stat.fsu.edu>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!cs.utexas.edu!samsung!uakari.primate.wisc.edu!uflorida!stat!naras

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!cs.utexas.edu!samsung!uakari.primate.wisc.edu!uflorida!stat!naras
From: naras@stat.fsu.edu (B. Narasimhan)
Newsgroups: comp.sys.ibm.pc
Subject: Need help with Microsoft Make.
Message-ID: <809@stat.fsu.edu>
Date: 12 Mar 90 21:07:27 GMT
Reply-To: naras@stat.fsu.edu (B. Narasimhan)
Distribution: usa
Organization: Dept. of Statistics, Florida State Univ.
Lines: 33