home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / unix / aix / 9359 < prev    next >
Encoding:
Internet Message Format  |  1992-09-03  |  1.0 KB

  1. Path: sparky!uunet!dtix!darwin.sura.net!zaphod.mps.ohio-state.edu!moe.ksu.ksu.edu!unlinfo.unl.edu!james
  2. From: james@engrs.unl.edu (James Nau)
  3. Newsgroups: comp.unix.aix
  4. Subject: xlc -M (or cc -M)
  5. Keywords: xlc cc -M
  6. Message-ID: <1992Sep3.203512.3164@unlinfo.unl.edu>
  7. Date: 3 Sep 92 20:35:12 GMT
  8. Sender: news@unlinfo.unl.edu
  9. Organization: College of Engineering & Technology, University of Nebraska-Lincoln
  10. Lines: 13
  11. Nntp-Posting-Host: engrss2.unl.edu
  12.  
  13. Does anyone know if cc -M is supposed to actually compile a
  14. program?  I was building some software which has a "cc -M x.c y.c
  15. z.c >> Makefile" in it to build dependencies.  It died a horrible
  16. death, and complained that it couldn't find .main (actually, this
  17. was in the Makefile since stdout was there).
  18. "cc -E -M x.c y.c z.c >/dev/null" seemed to work fairly well.
  19.  
  20. Also, cc -M does not write to stdout as this Configure script
  21. expected (cc on Sun, and gcc write the dependencies to stdout) but
  22. writes to .u files.  (This is documented in the help file.)
  23.  
  24. James
  25. james@engrs.unl.edu
  26.