bug-make
[Top][All Lists]
Advanced

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

RE: Reg Make build on LINUX


From: A, Sravanthi
Subject: RE: Reg Make build on LINUX
Date: Wed, 25 Jun 2008 12:30:07 +0530

 
Dear Johan Bezem,

Iam able to recompile only modified resources after verifying below
site. I need help if I need to include my .o files also in same folder.
In my projects we maintain separate folders for object files in each
subfolder. Also would be grateful if you explain further on $(*F).

My Makefile
============
ia64-cross: cat Makefile
OBJECTS=b.o \
        c.o
DEPDIR = rh3
df = $(DEPDIR)/$(*F)
SRCS=b.cc c.cc
CFLAGS= -I/home/sa20358/test/base/
MAKEDEPEND = $(CC) -M $(CFLAGS) -o $(df).d $<
all: $(OBJECTS)
%.o: %.cc
        #generate the *.d file with the dependency targets.
        @$(MAKEDEPEND); \
        cp $(df).d $(df).P; \
        sed -e 's/#.*//' -e 's/^[^:]*: *//' -e 's/ *\\$$//' \
        -e '/^$$/ d' -e 's/$$/ :/' < $(df).d >> $(df).P; \
        rm -f $(df).d
        @echo "++making .o file"
        $(CC) $(CFLAGS) -c $< -o $@

-include $(SRCS:%.cc=$(DEDIR)%.P)

My Files
========
ia64-cross: ls -ltr
total 24
-rw-r--r--  1 sa20358 sa20358  156 Jun 23 07:19 c.cc
-rw-r--r--  1 sa20358 sa20358  156 Jun 25 02:44 b.cc
drwxr-xr-x  2 sa20358 sa20358 4096 Jun 25 02:48 rh3  ----- Currently
only .P files available. want to include object files
-rw-r--r--  1 sa20358 sa20358  483 Jun 25 02:49 Makefile

Thanks,
Sravanthi
FID DPS team
Citi Technology Services
Ascendas, International Tech Park,
Chennai,India
Desk No.: +91-44-4294-4158
Group Line: +91-44-4294-4971
-----Original Message-----
From: Johan Bezem [mailto:address@hidden 
Sent: Saturday, June 21, 2008 12:00 AM
To: A, Sravanthi [CCC-OT_IT]
Cc: address@hidden
Subject: Re: Reg Make build on LINUX

Sravanthi,

go to Paul's website at http://make.paulandlesley.org/autodep.html, read
and _understand_ what he's showing you, and implement it in your
environment.

HTH,

Johan Bezem
http://blog.bezem.de/

A, Sravanthi wrote:
> Smith /Team,
> 
> Would you help me on this issue. Recompilation of object files is not 
> happening if the source file is changed. I want to know how to use 
> include dependency file when I have recursive make.
> ...
-- 
JB Enterprises - Johan Bezem       Tel:   +49 172 5463210
Interim Manager - Project Manager  Fax:   +49 172 50 5463210
Management Consultant              Email: address@hidden
automotive - real-time - embedded  Web:   http://www.bezem.de




reply via email to

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