--- ray/src/cal/Rmakefile 2007/11/24 00:37:26 1.5 +++ ray/src/cal/Rmakefile 2023/02/09 00:18:05 1.12 @@ -1,4 +1,4 @@ -# RCSid: $Id: Rmakefile,v 1.5 2007/11/24 00:37:26 greg Exp $ +# RCSid: $Id: Rmakefile,v 1.12 2023/02/09 00:18:05 greg Exp $ # # Compiles for icalc, rcalc, ev, and utilities # @@ -15,14 +15,16 @@ CFLAGS = $(OPT) $(MACH) $(DEFS) -I../common -L../lib MLIB = -lm +INSTALL = cp + INSTDIR = /usr/local/bin -PROGS = icalc ev rcalc total cnt neaten rlam tabfunc histo +PROGS = icalc ev rcalc total cnt neaten rlam rsplit tabfunc histo all: $(PROGS) install: $(PROGS) - cp $(PROGS) $(INSTDIR) + $(INSTALL) $(PROGS) $(INSTDIR) clean: set nonomatch; rm -f *.o $(PROGS) @@ -37,19 +39,22 @@ rcalc: rcalc.o $(CC) $(CFLAGS) -o rcalc rcalc.o -lrtrad $(MLIB) total: total.o - $(CC) $(CFLAGS) -o total total.o $(MLIB) + $(CC) $(CFLAGS) -o total total.o -lrtrad $(MLIB) cnt: cnt.o - $(CC) $(CFLAGS) -o cnt cnt.o + $(CC) $(CFLAGS) -o cnt cnt.o -lrtrad neaten: neat.o $(CC) $(CFLAGS) -o neaten neat.o rlam: lam.o - $(CC) $(CFLAGS) -o rlam lam.o + $(CC) $(CFLAGS) -o rlam lam.o -lrtrad +rsplit: rsplit.o + $(CC) $(CFLAGS) -o rsplit rsplit.c -lrtrad + tabfunc: tabfunc.o - $(CC) $(CFLAGS) -o tabfunc tabfunc.o -lrtrad + $(CC) $(CFLAGS) -o tabfunc tabfunc.o -lrtrad $(MLIB) histo: histo.o $(CC) $(CFLAGS) -o histo histo.o $(MLIB) @@ -59,3 +64,6 @@ calc.o ev.o rcalc.o: ../common/calcomp.h total.o rcalc.o: ../common/platform.h rcalc.o: ../common/rterror.h ../common/rtmisc.h ../common/rtio.h + +tabfunc.o: ../common/rtmath.h ../common/mat4.h \ +../common/fvect.h ../common/tiff.h