Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uunet!comp.vuw.ac.nz!massey.ac.nz!ARaman From: ARaman@massey.ac.nz (A.V. Raman) Newsgroups: comp.unix.questions Subject: problem with make suffix rules Message-ID: <862@massey.ac.nz> Date: 17 Jul 90 05:47:58 GMT Reply-To: ARaman@massey.ac.nz (A.V. Raman) Organization: Massey University, Palmerston North, New Zealand Lines: 35 I've got a Makefile that says: .SUFFIXES: .SUFFIXES: .o .c .o: cc -o $@ $< misc.a .c.o: cc -c $< In the ucb universe, When I say `make program' for example, make says "Don't know how to make program" Shouldn't it try to apply the second suffix rule to generate program.o and then the first one to generate program from program.o ? In the att universe, make tries cc -O program.c -o program instead of cc -c program.c which is what the suffix rule tells it to do. What's more, when I don't have a Makefile at all, and type `make program' (ucb) make doesn't apply the default suffix rule to run cc program.c -o program Instead, it comes up with the same message as before. Thanks for any help on where I'm goofing. - & (Anand)