ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/src/cal/Rmakefile
Revision: 1.12
Committed: Thu Feb 9 00:18:05 2023 UTC (15 months, 1 week ago) by greg
Branch: MAIN
CVS Tags: rad5R4, HEAD
Changes since 1.11: +4 -2 lines
Log Message:
chore: Made support for $(INSTALL) more universal between rmake directories

File Contents

# User Rev Content
1 greg 1.12 # RCSid: $Id: Rmakefile,v 1.11 2022/04/21 02:52:40 greg Exp $
2 greg 1.1 #
3 greg 1.2 # Compiles for icalc, rcalc, ev, and utilities
4 greg 1.1 #
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 greg 1.12 INSTALL = cp
19    
20 greg 1.1 INSTDIR = /usr/local/bin
21    
22 greg 1.10 PROGS = icalc ev rcalc total cnt neaten rlam rsplit tabfunc histo
23 greg 1.1
24     all: $(PROGS)
25    
26     install: $(PROGS)
27 greg 1.12 $(INSTALL) $(PROGS) $(INSTDIR)
28 greg 1.1
29     clean:
30     set nonomatch; rm -f *.o $(PROGS)
31    
32 greg 1.2 icalc: calc.o
33 schorsch 1.4 $(CC) $(CFLAGS) -o icalc calc.o -lrtrad $(MLIB)
34 greg 1.1
35     ev: ev.o
36 schorsch 1.4 $(CC) $(CFLAGS) -o ev ev.o -lrtrad $(MLIB)
37 greg 1.1
38     rcalc: rcalc.o
39 schorsch 1.4 $(CC) $(CFLAGS) -o rcalc rcalc.o -lrtrad $(MLIB)
40 greg 1.1
41     total: total.o
42 greg 1.9 $(CC) $(CFLAGS) -o total total.o -lrtrad $(MLIB)
43 greg 1.1
44     cnt: cnt.o
45 greg 1.11 $(CC) $(CFLAGS) -o cnt cnt.o -lrtrad
46 greg 1.1
47 greg 1.2 neaten: neat.o
48     $(CC) $(CFLAGS) -o neaten neat.o
49 greg 1.1
50 greg 1.2 rlam: lam.o
51 greg 1.8 $(CC) $(CFLAGS) -o rlam lam.o -lrtrad
52 greg 1.1
53 greg 1.10 rsplit: rsplit.o
54     $(CC) $(CFLAGS) -o rsplit rsplit.c -lrtrad
55    
56 greg 1.1 tabfunc: tabfunc.o
57 greg 1.6 $(CC) $(CFLAGS) -o tabfunc tabfunc.o -lrtrad $(MLIB)
58 greg 1.1
59     histo: histo.o
60     $(CC) $(CFLAGS) -o histo histo.o $(MLIB)
61    
62     calc.o ev.o rcalc.o: ../common/calcomp.h
63 greg 1.3
64     total.o rcalc.o: ../common/platform.h
65    
66     rcalc.o: ../common/rterror.h ../common/rtmisc.h ../common/rtio.h
67 greg 1.7
68     tabfunc.o: ../common/rtmath.h ../common/mat4.h \
69     ../common/fvect.h ../common/tiff.h