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

  1. Path: sparky!uunet!charon.amdahl.com!pacbell.com!att-out!rutgers!uwm.edu!wupost!sdd.hp.com!swrinde!network.ucsd.edu!sdcrsi!equalizer!timbuk.cray.com!shamash!ems!ems.cdc.com!dmcpheet
  2. From: dmcpheet@ems.cdc.com (Dennis McPheeters)
  3. Newsgroups: comp.unix.aix
  4. Subject: Re: xlc -M (or cc -M)
  5. Keywords: xlc cc -M
  6. Message-ID: <22125@nntp_server.ems.cdc.com>
  7. Date: 4 Sep 92 15:43:21 GMT
  8. References: <1992Sep3.203512.3164@unlinfo.unl.edu>
  9. Sender: sys@ems.ems.cdc.com
  10. Reply-To: dmcpheet@ems.cdc.com
  11. Organization: Empros Systems International, a division of CDC
  12. Lines: 25
  13. Nntp-Posting-Host: eurydice.ems.cdc.com
  14.  
  15. In article <1992Sep3.203512.3164@unlinfo.unl.edu>, james@engrs.unl.edu (James Nau) writes:
  16. |> Does anyone know if cc -M is supposed to actually compile a
  17. |> program?  I was building some software which has a "cc -M x.c y.c
  18. |> z.c >> Makefile" in it to build dependencies.  It died a horrible
  19. |> death, and complained that it couldn't find .main (actually, this
  20. |> was in the Makefile since stdout was there).
  21. |> "cc -E -M x.c y.c z.c >/dev/null" seemed to work fairly well.
  22. |> 
  23. |> Also, cc -M does not write to stdout as this Configure script
  24. |> expected (cc on Sun, and gcc write the dependencies to stdout) but
  25. |> writes to .u files.  (This is documented in the help file.)
  26. |> 
  27. |> James
  28. |> james@engrs.unl.edu
  29.  
  30. I'm rather fond of the -M option, but I don't use it the way you do.  I simply
  31. have an "include x.u" in my Makefile (I "touch" x.u when I add the include),
  32. and haven't had problems actually compiling. The -E option does produce stdout,
  33. but, as you noticed, -M doesn't.
  34.  
  35. -- 
  36.  Dennis R. McPheeters                        dmcpheet@ems.cdc.com >>>
  37.  Empros Systems International     __o              (612) 553-4768 <<<
  38.  2300 Berkshire Lane North       -\<,        fax:  (612) 553-4018 >>>
  39.  Plymouth, MN 55441-3694         O/ O              Software Tools <<<
  40.