[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: "Batch-Mode" rules with Microsoft compile
From: |
John Skiff |
Subject: |
Re: "Batch-Mode" rules with Microsoft compile |
Date: |
Wed, 28 Mar 2001 10:49:43 -0500 |
Well it turns out that this doesn't work after all. If any of the
include files which a source file depends on changes then make tries to
compile the include file instead of the source file. I can't find any
way around it.
Thanks for your response,
john
"Paul D. Smith" wrote:
>
> %% 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