%% John Skiff <[EMAIL PROTECTED]> writes:

  js> I've tried everything I can think of get gmake to pass the names
  js> of all changed files on one line to the compiler but nothing was
  js> successful.  Can anyone tell me of a way to do this?

Well, this works fine on UNIX.  I'm not familiar with NT, but if this
(or the appropriate NT translation thereof) doesn't work maybe you could
explain what _does_ happen?

  SRCS  = foo.c bar.c baz.c boz.c

  all: foo.exe

  foo.exe: all.os
          $(CC) $(LDFLAGS) $(SRCS:.c=.o)

  all.os: $(SRCS)
          $(CC) $(CFLAGS) -c $?
          touch $@

-- 
-------------------------------------------------------------------------------
 Paul D. Smith <[EMAIL PROTECTED]>          Find some GNU make tips at:
 http://www.gnu.org                      http://www.paulandlesley.org/gmake/
 "Please remain calm...I may be mad, but I am a professional." --Mad Scientist

_______________________________________________
Help-make mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/help-make

Reply via email to