home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / unix / programm / 3817 < prev    next >
Encoding:
Text File  |  1992-07-20  |  1.8 KB  |  50 lines

  1. Newsgroups: comp.unix.programmer
  2. Path: sparky!uunet!munnari.oz.au!bunyip.cc.uq.oz.au!brolga!drt
  3. From: drt@brolga.cc.uq.oz.au (David Taylor)
  4. Subject: MAKE Question - am I asking too much?
  5. Message-ID: <drt.711704826@brolga>
  6. Summary: My make is more complicated than what it is compiling.
  7. Keywords: MAKE HELP 
  8. Sender: news@bunyip.cc.uq.oz.au (USENET News System)
  9. Organization: Prentice Centre, University of Queensland
  10. Date: Tue, 21 Jul 1992 07:47:06 GMT
  11. Lines: 37
  12.  
  13.  
  14. We have a set of programs (C and C/SQL) being worked on by multiple
  15. programmers. Usually each program has a "main()" source file and
  16. several support modules with header files. These support modules are
  17. shared accross most of the programs.
  18.  
  19. All the source is stored on a common area and access is controlled 
  20. via RCS. I am trying to set up a common makefile that will:
  21.  
  22. - checkout any files that are needed to satisfy the make.
  23. - pre-compile the C/SQL files.
  24. - compile the C files
  25. - link the program.
  26.  
  27. What rule should I use to check out a file? At present I use 
  28. .DEFAULT:
  29.     co ...
  30. It seems bad to use .DEFAULT in this way.
  31.  
  32. What is the prefered method of pre-compiling/compiling. Bear in mind that
  33. it needs to be specified implicitly because of the large number of
  34. programs, and not all programs are to be precompiled.
  35.  
  36. Each program has a target with all its dependant object files listed.
  37. Each object file    "    "     "    "    "    "  source   "     "   .
  38.  
  39. Do I need another target for C/SQL files? I am curious to see other
  40. attempts at handling this. If you have a makefile that does all this
  41. I'd like to see it. In particular the pre-compile type stuff.
  42.  
  43. What I have does work, but it does not retrieve the latest file from RCS.
  44. Also it would be nice if it could clean up all the pre-compiled code
  45. if compilation was successful.
  46.  
  47. Any help muchly appreciated.
  48. --
  49. D.T - ccdavid@uqvax.cc.uq.oz.au
  50.