--- ray/src/rt/Rmakefile 2009/12/12 05:20:10 2.58 +++ ray/src/rt/Rmakefile 2010/09/26 15:51:15 2.61 @@ -1,4 +1,4 @@ -# RCSid: $Id: Rmakefile,v 2.58 2009/12/12 05:20:10 greg Exp $ +# RCSid: $Id: Rmakefile,v 2.61 2010/09/26 15:51:15 greg Exp $ # # Compiles for ray tracing programs. # @@ -111,8 +111,8 @@ lint: $(RVSRC) # Links: # -$(DESTDIR)/rtrace: $(RTOBJS) $(RLIB) - $(CC) $(CFLAGS) -o $(DESTDIR)/rtrace $(RTOBJS) $(RLIB) $(LIBS) +$(DESTDIR)/rtrace: $(RTOBJS) $(RCLIB) $(RLIB) + $(CC) $(CFLAGS) -o $(DESTDIR)/rtrace $(RTOBJS) $(RCLIB) $(RLIB) $(LIBS) $(DESTDIR)/rpict: $(RPOBJS) $(RLIB) $(CC) $(CFLAGS) -o $(DESTDIR)/rpict $(RPOBJS) $(RLIB) $(LIBS) @@ -125,10 +125,12 @@ $(DESTDIR)/lookamb: lookamb.o ambio.o $(CC) $(CFLAGS) -o $(DESTDIR)/lookamb lookamb.o ambio.o $(LIBS) $(RLIB): $(ROBJS) Version.o + rm -f $(RLIB) ar rc $(RLIB) $(ROBJS) Version.o -ranlib $(RLIB) $(RCLIB): $(RLOBJS) + rm -f $(RCLIB) ar rc $(RCLIB) $(RLOBJS) -ranlib $(RCLIB)