help-gnu-utils
[Top][All Lists]
Advanced

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

Re: makefile question


From: Liang
Subject: Re: makefile question
Date: Mon, 20 Dec 2004 16:09:10 +0800

>
> Do I need to change the suffix rule as "$(target_folder)/%.o:%.c", and
> specify VPATH= $(foreach src, $(SRC), $(dir $(src))) for c files at the
same
> time? But this approach not only looks awkward, but also error-prone. And
> the rule doesn't work well.
>
one more word. The compiler that I'm using is unable to support '-o' option.
So, I have to specify the command as:
 $(CC) $(CFLAGS) -c $< -fr $(target_folder)

It's not beautiful to give variable like $(target_folder) in implicit rule,
is it?








reply via email to

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