   [solved] "make" question
  ------------------------------question: why does he not have a look at fileactuality? ( it compiles the file over and over again ... without looking if its changed or not ... )------------------------------CC= iccCFLAGS= -g -O0 -Wall -WerrorAR= arDEBUG= yesPROJECTNAME= testVERSION_MAJOR= 0VERSION_MINOR= 0VERSION_SUB= 0SRCDIR= srcSOURCES= test.cHEADERS= test.hTARGET= lib$(PROJECTNAME).aOBJECTS= $(SOURCES:.c=.o)#create debug macro-defifeq "$(DEBUG)" "yes"CFLAGS+= -DDXML_DEBUGendifall: $(SOURCES) $(OBJECTS)@echo 'creating $(TARGET)';#create the archive index@$(AR) -s $(TARGET);#compile everything%.c:$(CC) $(CFLAGS) -c $(SRCDIR)/$@ -o $(SRCDIR)/$*.o%.o:#add all objects to the library@$(AR) -csr $(TARGET) $(SRCDIR)/$@[Edited by - ronnybrendel on May 24, 2006 1:29:22 PM]
  It's been a long time since I've used makefiles, but I remember having that problem before, and it usually (always?) was caused by the source file having a date from sometime in the future.  I had this problem often when I was editing the code on my machine, but compiling on another.   ;  It's been a while, but it appears that your rules are not set up correctly. I think this is how you want to do it:# Rule that builds everything    all: $(TARGET)   # Rule that builds the library from .o files    $(TARGET): $(OBJECTS)   @$(AR) -csr $(TARGET) $<   # Rule that builds .o files from .c files    %.o: %.c   $(CC) $(CFLAGS) -c $< -o $@ ;  nevermind i found it :) big thanks :)   