List Info

Thread: brane ded!




brane ded!
user name
2006-05-16 19:08:31
I have :
ldb             : INCLUDE =
ldb             : ldb+infgn
ldb+infgn       : INCLUDE += -I$(SRC_TREE)/ldb/infgn/pub
ldb+infgn       : INCLUDE += -I$(SRC_TREE)/ldb/infgn/shr
ldb+infgn       : ldb+infgn+gi
ldb+infgn+gi    : $(src+ldb+infgn+gi:.c=.o)
ldb+infgn+gi    : INCLUDE += -I$(SRC_TREE)/ldb/infgn/gi/inc
ldb+infgn+gi    : CFLAGS += $(INCLUDE)

$(PRD_TREE)/ldb/infgn/%.o : $(SRC_TREE)/ldb/infgn/gi/src/%.c
        $(CC) $(CCFLAGS) $(INCLUDE) -o $ -c $<


But it doesn't use my rule above.  It used default rule
What am I not seeing?


_______________________________________________
Help-make mailing list
Help-makegnu.org
http:
//lists.gnu.org/mailman/listinfo/help-make
brane ded!
user name
2006-05-16 19:16:27
Found it 

> -----Original Message-----
> From: help-make-bounces+bp1497=att.comgnu.org 
> [mailto:help-make-bounces+bp1497=att.comgnu.org]
On Behalf 
> Of PATTON, BILLY (SBCSI)
> Sent: Tuesday, May 16, 2006 2:09 PM
> To: help-makegnu.org
> Subject: brane ded!
> 
> 
> I have :
> ldb             : INCLUDE =
> ldb             : ldb+infgn
> ldb+infgn       : INCLUDE +=
-I$(SRC_TREE)/ldb/infgn/pub
> ldb+infgn       : INCLUDE +=
-I$(SRC_TREE)/ldb/infgn/shr
> ldb+infgn       : ldb+infgn+gi
> ldb+infgn+gi    : $(src+ldb+infgn+gi:.c=.o)
> ldb+infgn+gi    : INCLUDE +=
-I$(SRC_TREE)/ldb/infgn/gi/inc
> ldb+infgn+gi    : CFLAGS += $(INCLUDE)
> 
> $(PRD_TREE)/ldb/infgn/%.o :
$(SRC_TREE)/ldb/infgn/gi/src/%.c
>         $(CC) $(CCFLAGS) $(INCLUDE) -o $ -c $<
> 
> 
> But it doesn't use my rule above.  It used default
rule
> What am I not seeing?
> 
> 
> _______________________________________________
> Help-make mailing list
> Help-makegnu.org
> http:
//lists.gnu.org/mailman/listinfo/help-make
> 


_______________________________________________
Help-make mailing list
Help-makegnu.org
http:
//lists.gnu.org/mailman/listinfo/help-make
brane ded!
user name
2006-05-16 19:26:16
Well I thought I did, but that produced another problem

TOP_DIR         := /makefile_test/dev/bp1497/test/v0608
SRC_TREE        := $(TOP_DIR)/SOURCE_TREE
PRD_TREE        := $(TOP_DIR)/PRODUCT_TREE
src+ldb+infgn+gi :=     \
$(SRC_TREE)/ldb/infgn/gi/src/gistr.c \
$(SRC_TREE)/ldb/infgn/gi/src/gistack.c \
$(SRC_TREE)/ldb/infgn/gi/src/crypt.c


$(warning dogs)
$(warning $(src+ldb+infgn+gi:$(SRC_TREE)=$(PRD_TREE)))


I'm trying to change
/makefile_test/dev/bp1497/test/v0608/SOURCE_TREE/ldb/infgn/g
i/src/gistr.
c
to 
/makefile_test/dev/bp1497/test/v0608/PRODUCT_TREE/ldb/infgn/
gistr.o

I know that
$(src+ldb+infgn+gi:.c=.o)  will change the .c to a .o

I assumed that the effort above ,warning wouyld change the
first part

Then I could :/infgn=) to get rid of infgn

But the warning line is not doing what I want it to.


_______________________________________________
Help-make mailing list
Help-makegnu.org
http:
//lists.gnu.org/mailman/listinfo/help-make
brane ded!
user name
2006-05-16 19:34:24
%% "PATTON, BILLY \(SBCSI\)" <BP1497att.com> writes:

  pb> I assumed that the effort above ,warning wouyld
change the first part

I'm not sure what you're expecting $(warning ...) to do,
but (as
described in the manual) what it IS going to do is print
some text out
to the terminal so the person who ran "make" can
see it.

-- 
------------------------------------------------------------
-------------------
 Paul D. Smith <psmithgnu.org>          Find
some GNU make tips at:
 http://www.gnu.org        
             http://make.paulandlesl
ey.org
 "Please remain calm...I may be mad, but I am a
professional." --Mad Scientist


_______________________________________________
Help-make mailing list
Help-makegnu.org
http:
//lists.gnu.org/mailman/listinfo/help-make
brane ded!
user name
2006-05-16 19:47:40
On 5/16/06, PATTON, BILLY (SBCSI) <BP1497att.com> wrote:
...
> $(warning dogs)
> $(warning $(src+ldb+infgn+gi:$(SRC_TREE)=$(PRD_TREE)))
...
> I know that
> $(src+ldb+infgn+gi:.c=.o)  will change the .c to a .o
>
> I assumed that the effort above ,warning wouyld change
the first part

The *only* way to modify a variable's value is to assign to
it.  The
$(var:A=B) syntax _only_ changes that expansion and _not_
the value of
'var'.  Indeed, it's just a shorthand for some use of the
$(patsubst)
function.  Please read section 6.3.1 of the info pages
again.


> Then I could :/infgn=) to get rid of infgn

Just use $(patsubst) twice.


Philip Guenther


_______________________________________________
Help-make mailing list
Help-makegnu.org
http:
//lists.gnu.org/mailman/listinfo/help-make
[1-5]

about | contact  Other archives ( Real Estate discussion Medical topics )