[Top][All Lists]

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

Re: define variable in rule

From: Jason Pearce
Subject: Re: define variable in rule
Date: Wed, 08 Jun 2005 17:09:47 +0100
User-agent: Mozilla Thunderbird 1.0 (Windows/20041206)

I think you will find your answer here:

address@hidden wrote:


Can the variable be defined in rule ? Like this:

1 target :  $(OBJ_FILE)
2       TMP_LIB := $(shell cat $(OBJ_FILES))
3       $(LD) $(OPT_LD_STD) $(LDFLAGS) -o $@   $(TMP_LIB)
The OBJ_FILE is a text file with .o file list, and I want to translate
it to .o list used as the argument of link, so the variable TMP_LIB is
But when do Make, syntax error found in line 3. So I doubt the variable
can not be defined within a fule.

Who can help me on this? Thanks.


Help-make mailing list

reply via email to

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