Make doesn't understand .SUFFIXES: .b .c .s .i .o

Wolfgang S. Rupprecht wolfgang at wsrcc.com
Thu Jun 6 14:35:46 AEST 1991


jc at netrix.nac.dec.com writes:
>	.SUFFIXES: .b .c .s .i .o
>	.b.c:   ;b-c 0-8t 9 <$*.b >$@
>	.c.o:   ;cc -c $(CFLAGS) $*.c

>If I tell it to make foo.c, it works, and then it knows  how  to  make
>foo.o  from  foo.c;  the problem is that it doesn't seem to understand
>the .b -> .c -> .o sequence

You never told it how to make a .b -> .o .

add this:

.b.o:   
	b-c 0-8t 9 <$*.b >$@
	cc -c $(CFLAGS) $*.c

-wolfgang
-- 
Wolfgang Rupprecht    wolfgang at wsrcc.com (or) uunet!wsrcc!wolfgang
Snail Mail Address:   Box 6524, Alexandria, VA 22306-0524



More information about the Comp.unix.programmer mailing list