home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / unix / question / 15976 < prev    next >
Encoding:
Internet Message Format  |  1993-01-27  |  1.3 KB

  1. Path: sparky!uunet!stanford.edu!unix!updike!nixon
  2. From: nixon@updike.sri.com (Tom Nixon)
  3. Newsgroups: comp.unix.questions
  4. Subject: Help with Make files
  5. Summary: Novice needs help with tricky makefile
  6. Keywords: make
  7. Message-ID: <nixon.728076022@updike>
  8. Date: 26 Jan 93 19:20:22 GMT
  9. Sender: news@unix.SRI.COM
  10. Lines: 20
  11.  
  12.  
  13.      Can anyone help me create the following make file?  Lets say I have
  14. two files called foo.i and bar.i.  (Actually there may be many more .i files, 
  15. but two will suffice for now.)  The first step is to convert these .i files to
  16. .c files.  This would be done at a unix prompt by running a script file called 
  17. convert.sh (which only takes one .i file at a time) in the following manner:
  18.     >> convert.sh  foo.i
  19.     >> convert.sh  bar.i
  20. This now gives me foo.c and bar.c.  Along with these .c files, I have another 
  21. file called main.c (which is not created with convert.sh).  I want to compile 
  22. all the .c files with "acc" to make foo.o, bar.o, and main.o.  Next, I would
  23. like to link them all together with the final executable stored under the name 
  24. "main".  Can all this be done within a nice convenient make file?  
  25.  
  26. ****  Could any help on this subject please be sent directly to me at:
  27. ****         nixon@updike.sri.com                
  28.  
  29.      Thanks in advance
  30.  
  31.           Tom Nixon
  32.