# RCSid: $Id: Rmakefile,v 1.2 2004/01/01 19:31:45 greg Exp $ # # Compiles for icalc, rcalc, ev, and utilities # OPT = -O CC = cc MACH = -DIEEE DEFS = -DBIGGERLIB CFLAGS = $(OPT) $(MACH) $(DEFS) -I../common -L../lib MLIB = -lm INSTDIR = /usr/local/bin PROGS = icalc ev rcalc total cnt neaten rlam tabfunc histo all: $(PROGS) install: $(PROGS) cp $(PROGS) $(INSTDIR) clean: set nonomatch; rm -f *.o $(PROGS) icalc: calc.o $(CC) $(CFLAGS) -o icalc calc.o -lrt $(MLIB) ev: ev.o $(CC) $(CFLAGS) -o ev ev.o -lrt $(MLIB) rcalc: rcalc.o $(CC) $(CFLAGS) -o rcalc rcalc.o -lrt $(MLIB) total: total.o $(CC) $(CFLAGS) -o total total.o $(MLIB) cnt: cnt.o $(CC) $(CFLAGS) -o cnt cnt.o neaten: neat.o $(CC) $(CFLAGS) -o neaten neat.o rlam: lam.o $(CC) $(CFLAGS) -o rlam lam.o tabfunc: tabfunc.o $(CC) $(CFLAGS) -o tabfunc tabfunc.o -lrt $(MLIB) histo: histo.o $(CC) $(CFLAGS) -o histo histo.o $(MLIB) calc.o ev.o rcalc.o: ../common/calcomp.h