hello,
I'm using other programs besides gcc.

Thanks,
Tyler Littlefield
Web: tysdomain.com
email: [email protected]
My programs don't have bugs, they're called randomly added features.

  ----- Original Message ----- 
  From: Brett McCoy 
  To: [email protected] 
  Sent: Saturday, April 11, 2009 4:34 PM
  Subject: Re: [c-prog] testing exit status in makefile





  On Sat, Apr 11, 2009 at 4:28 PM, Tyler Littlefield <[email protected]> 
wrote:

  > I've got a Makefile which is rather long, and I have a couple of questions.
  > I'm building modules in separate directories, so I have something like:
  > O_FILES= module1/file1.o, MODULE2/file2.o
  > then I have:
  > O_FILES_A = file1.o file2.o
  > for the linking.
  > Is there a way I can do this with one line?

  Not sure what you mean by doing it with one line, do what?

  > I would also like to be able to test for the exit status; (if gcc fails 
just exit without running the rest), etc.
  > Any ideas on how this might be done?

  If gcc fails, the make will automatically stop, unless you use the -k
  option on the command-line.

  -- Brett
  ----------------------------------------------------------
  "In the rhythm of music a secret is hidden;
  If I were to divulge it, it would overturn the world."
  -- Jelaleddin Rumi


  

[Non-text portions of this message have been removed]

Reply via email to