Make out-of-source-tree builds work with Solaris make.

diff --git a/Make.rules.in b/Make.rules.in
index 6f11049..8c9cab2 100644
--- a/Make.rules.in
+++ b/Make.rules.in
@@ -98,13 +98,13 @@
 .SUFFIXES: .mc .rc .mc.rc .res .spec .spec.c .glue.c
 
 .c.o:
-	$(CC) -c $(ALLCFLAGS) -o $*.o $<
+	$(CC) -c $(ALLCFLAGS) -o $@ $<
 
 .s.o:
-	$(AS) -o $*.o $<  
+	$(AS) -o $@ $<
 
 .S.o:
-	$(CC) -c -o $*.o $<  
+	$(CC) -c -o $@ $<
 
 .mc.mc.rc:
 	$(LDPATH) $(WMC) -i -H /dev/null -o $@ $<