www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1995/04/28/15:33:37

From: morris AT linus DOT mer DOT utexas DOT edu
Date: Fri, 28 Apr 95 13:17:56 CDT
To: djgpp AT sun DOT soe DOT clarkson DOT edu
Subject: make problems

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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019