1 |
# RCSid: $Id: Rmakefile,v 1.11 2022/04/21 02:52:40 greg Exp $ |
2 |
# |
3 |
# Compiles for icalc, rcalc, ev, and utilities |
4 |
# |
5 |
|
6 |
OPT = -O |
7 |
|
8 |
CC = cc |
9 |
|
10 |
MACH = -DIEEE |
11 |
|
12 |
DEFS = -DBIGGERLIB |
13 |
|
14 |
CFLAGS = $(OPT) $(MACH) $(DEFS) -I../common -L../lib |
15 |
|
16 |
MLIB = -lm |
17 |
|
18 |
INSTALL = cp |
19 |
|
20 |
INSTDIR = /usr/local/bin |
21 |
|
22 |
PROGS = icalc ev rcalc total cnt neaten rlam rsplit tabfunc histo |
23 |
|
24 |
all: $(PROGS) |
25 |
|
26 |
install: $(PROGS) |
27 |
$(INSTALL) $(PROGS) $(INSTDIR) |
28 |
|
29 |
clean: |
30 |
set nonomatch; rm -f *.o $(PROGS) |
31 |
|
32 |
icalc: calc.o |
33 |
$(CC) $(CFLAGS) -o icalc calc.o -lrtrad $(MLIB) |
34 |
|
35 |
ev: ev.o |
36 |
$(CC) $(CFLAGS) -o ev ev.o -lrtrad $(MLIB) |
37 |
|
38 |
rcalc: rcalc.o |
39 |
$(CC) $(CFLAGS) -o rcalc rcalc.o -lrtrad $(MLIB) |
40 |
|
41 |
total: total.o |
42 |
$(CC) $(CFLAGS) -o total total.o -lrtrad $(MLIB) |
43 |
|
44 |
cnt: cnt.o |
45 |
$(CC) $(CFLAGS) -o cnt cnt.o -lrtrad |
46 |
|
47 |
neaten: neat.o |
48 |
$(CC) $(CFLAGS) -o neaten neat.o |
49 |
|
50 |
rlam: lam.o |
51 |
$(CC) $(CFLAGS) -o rlam lam.o -lrtrad |
52 |
|
53 |
rsplit: rsplit.o |
54 |
$(CC) $(CFLAGS) -o rsplit rsplit.c -lrtrad |
55 |
|
56 |
tabfunc: tabfunc.o |
57 |
$(CC) $(CFLAGS) -o tabfunc tabfunc.o -lrtrad $(MLIB) |
58 |
|
59 |
histo: histo.o |
60 |
$(CC) $(CFLAGS) -o histo histo.o $(MLIB) |
61 |
|
62 |
calc.o ev.o rcalc.o: ../common/calcomp.h |
63 |
|
64 |
total.o rcalc.o: ../common/platform.h |
65 |
|
66 |
rcalc.o: ../common/rterror.h ../common/rtmisc.h ../common/rtio.h |
67 |
|
68 |
tabfunc.o: ../common/rtmath.h ../common/mat4.h \ |
69 |
../common/fvect.h ../common/tiff.h |