Original Post
------------------------------ 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= icc CFLAGS= -g -O0 -Wall -Werror AR= ar DEBUG= yes PROJECTNAME= test VERSION_MAJOR= 0 VERSION_MINOR= 0 VERSION_SUB= 0 SRCDIR= src SOURCES= test.c HEADERS= test.h TARGET= lib$(PROJECTNAME).a OBJECTS= $(SOURCES:.c=.o) #create debug macro-def ifeq "$(DEBUG)" "yes" CFLAGS+= -DDXML_DEBUG endif all: $(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]