[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: GNU Make - 3.79.1 Redhat 7.3
From: |
Stepan Kasal |
Subject: |
Re: GNU Make - 3.79.1 Redhat 7.3 |
Date: |
Tue, 28 Jan 2003 12:45:54 +0100 |
User-agent: |
Mutt/1.2.5.1i |
Hello,
On Tue, Jan 28, 2003 at 10:53:44AM +0000, Dave Saville wrote:
> % : %.o
> %.o : %.c
> make -f makefile_linux
> gcc calander.c -o calander
it seems that the newest version of make contains a built-in implicit rule
looking like this:
%: %.c
That rule seems to be better then going the longer path %.c --> %.o --> %
That's why make chooses it.
> I tried changing to the old rule style of .c.o: and it still does not
> see it and uses the built in rules. Someone has sugessted using make
> -r but I would like to know what make or myself are doing wrong. I
> have other, very similar, makefiles that *do* work on linux.
I hope this explains it. By calling -r you get rid of built-in rules
altogether.
Or you can use
.SUFFIXES:
to clear the list of recognized suffixes. The suffixes are not necessary
as long as you use the pattern rules, not the old-style implicite rules.
Have a nice day,
Stepan Kasal