help-make
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: "Batch-Mode" rules with Microsoft compile


From: Paul D. Smith
Subject: Re: "Batch-Mode" rules with Microsoft compile
Date: Mon, 26 Mar 2001 20:46:40 -0500

%% John Skiff <address@hidden> 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 <address@hidden>          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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]