--- ray/src/rt/Rmakefile 1991/08/22 09:25:22 1.59 +++ ray/src/rt/Rmakefile 1991/10/09 10:07:47 1.62 @@ -42,14 +42,14 @@ DLIBS = -lX11 # Standard object files: # -RTOBJS = rtmain.o rtrace.o $(ROBJS) -RTSRC = rmain.c rtrace.c $(RSRC) +RTOBJS = rtmain.o rtrace.o $(ROBJS) Version.o +RTSRC = rmain.c rtrace.c $(RSRC) Version.c -RPOBJS = rpmain.o rpict.o $(ROBJS) -RPSRC = rmain.c rpict.c $(RSRC) +RPOBJS = rpmain.o rpict.o $(ROBJS) Version.o +RPSRC = rmain.c rpict.c $(RSRC) Version.c -RVOBJS = rvmain.o rview.o rv2.o rv3.o $(DOBJS) $(ROBJS) -RVSRC = rmain.c rview.c rv2.c rv3.c $(DSRC) $(RSRC) +RVOBJS = rvmain.o rview.o rv2.o rv3.o $(DOBJS) $(ROBJS) Version.o +RVSRC = rmain.c rview.c rv2.c rv3.c $(DSRC) $(RSRC) Version.c ROBJS = $(RAYOBJS) $(SURFOBJS) $(MATOBJS) \ $(MODOBJS) $(SUPPOBJS) @@ -72,9 +72,13 @@ MATSRC = normal.c dielectric.c m_clip.c glass.c m_brdf MODOBJS = p_func.o t_func.o p_data.o t_data.o text.o mx_func.o mx_data.o MODSRC = p_func.c t_func.c p_data.c t_data.c text.c mx_func.c mx_data.c -SUPPOBJS = zeroes.o calexpr.o caldefn.o func.o noise3.o data.o readfargs.o -SUPPSRC = zeroes.c calexpr.c caldefn.c func.c noise3.c data.c readfargs.c +SUPPOBJS = zeroes.o calexpr.o caldefn.o func.o noise3.o data.o readfargs.o \ + malloc.o +SUPPSRC = zeroes.c calexpr.c caldefn.c func.c noise3.c data.c readfargs.c \ + malloc.c +HEADERS = ambient.h ray.h data.h otspecial.h source.h + # # What this makefile produces: # @@ -152,6 +156,9 @@ rvmain.o: rmain.c readfargs.o: readfargs.c ../common/object.h $(CC) $(CFLAGS) -DMEMHOG -c readfargs.c +malloc.o: malloc.c + $(CC) $(CFLAGS) -DMCOMP -c malloc.c + # # Uncomment the following to model dispersion: # @@ -186,6 +193,15 @@ nwsdev.o: nwsdev.c nwsdev.h newsconstants.h nwsdev.h: nwsdev.cps newsconstants.h cps nwsdev.cps + +# +# Version module: +# + +Version.c: VERSION $(RSRC) $(HEADERS) verscript.ed + cp VERSION Version.c + ls -lLt $(RSRC) $(HEADERS) >> Version.c + ed - Version.c < verscript.ed # # Include dependencies: