Path: utzoo!utgpu!news-server.csri.toronto.edu!bonnie.concordia.ca!uunet!wsrcc.com!wolfgang From: wolfgang@wsrcc.com (Wolfgang S. Rupprecht) Newsgroups: comp.unix.programmer Subject: Re: Make doesn't understand .SUFFIXES: .b .c .s .i .o Message-ID: <1991Jun6.043546.26717@wsrcc.com> Date: 6 Jun 91 04:35:46 GMT References: <23182@shlump.lkg.dec.com> Organization: Wolfgang S Rupprecht Computer Consulting, Washington DC. Lines: 21 jc@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@wsrcc.com (or) uunet!wsrcc!wolfgang Snail Mail Address: Box 6524, Alexandria, VA 22306-0524