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