help-make
[Top][All Lists]
Advanced

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

make always rebuilds...


From: ody13
Subject: make always rebuilds...
Date: Sun, 19 Mar 2006 04:13:55 -0800 (PST)

Hi all,

I got a trivial Makefile looking like this, can someone tell me why all the
objects are rebuild everytime make is called? Any help is appreciated.

############################################
BRANCH = ../../../

include $(BRANCH)make/makedirdefs
include $(BRANCH)make/makerules

THISBINDIR = $(BRANCH)$(BINDIR)
THISLIBDIR = $(BRANCH)$(LIBDIR)

# source files
SRC = CCdid.cpp CID3Tagger.cpp ITagger.cpp CTaggerProxy.cpp

OBJ = $(SRC:.cpp=.o)
ALLOBJ = $(OBJ:.c=.o)

OUT = $(THISLIBDIR)libxtcore.a


# include directories
INCLUDES = -I. -I$(BRANCH)$(INCDIR)XTagger/ -I$(BRANCH)$(ID3LIBDIR)


.SUFFIXES: .cpp .c

# rules
default: $(OUT)

.cpp.o:
        $(ccc) $(INCLUDES) $(CCFLAGS) -c $< -o $(THISBINDIR)$@

.c.o:
        $(ccc) $(INCLUDES) $(CCFLAGS) -c $< -o $(THISBINDIR)$@

$(OUT): $(ALLOBJ)
        ar rvu $(OUT) $(THISBINDIR)CCdid.o $(THISBINDIR)CID3Tagger.o
$(THISBINDIR)ITagger.o $(THISBINDIR)CTaggerProxy.o
############################################


Cheers,
ODY
--
View this message in context: 
http://www.nabble.com/make-always-rebuilds...-t1306074.html#a3479947
Sent from the Gnu - Make - Help forum at Nabble.com.





reply via email to

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