Mail Archives: djgpp/1995/04/28/15:33:37
Hi again.
Using mak369, I could use the following to define dependencies for libraries
in a makefile:
.c.a:
$(CC) $(CFLAGS) -c $<
$(AR) $(ARFLGS) $@ $*.o
$(RM) -f $*.o
foo.a(foo1.o): foo1.h foo2.h
foo.a(foo2.o): foo1.h
With the new mak371, it will try to recompile everything, every time,
whether you make any changes or not. SO, following the info instructions,
I have no definition for how to make a library (.c.a: ... ), and have
my dependencies as follows:
foo1.o: foo1.h foo2.h
foo2.o: foo1.h
This at least does not try to re-make the *.o files every time. But, the
make does re-archive every file, whether its been changed or not. Also,
the make default apparently does not delete the *.o files. I've tried
a couple of other things too, but unsuccessfully.
I would really like a makefile which recompiles and rearchives only those
files which need it. Is anyone using makefile successfully in this way?
Steve
- Raw text -