ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/src/cv/Rmakefile
Revision: 2.50
Committed: Sat Apr 26 15:59:38 2014 UTC (10 years, 5 months ago) by greg
Branch: MAIN
CVS Tags: rad4R2P2, rad5R0, rad4R2, rad4R2P1
Changes since 2.49: +2 -2 lines
Log Message:
Eliminated silly removal of "core" no longer used by most systems

File Contents

# Content
1 # RCSid $Id: Rmakefile,v 2.49 2014/03/27 03:49:14 greg Exp $
2 #
3 # Makefile for conversion programs
4 #
5
6 OPT = -O
7
8 MACH = -DBSD
9
10 CFLAGS = -I../common -L../lib $(OPT) $(MACH)
11 CXXFLAGS = $(CFLAGS)
12 METACFLAGS = -I../meta
13
14 CC = cc
15 CXX = c++
16
17 MLIB = -lm
18
19 INSTDIR = /usr/local/bin
20
21 LIBDIR = /usr/local/lib/ray
22
23 PROGS = ies2rad nff2rad lampcolor tmesh2rad obj2rad \
24 mgf2rad rad2mgf mgf2meta mgfilt mgf2inv 3ds2mgf \
25 pabopto2bsdf bsdf2ttree bsdf2klems pkgBSDF epw2wea
26
27 LIBFILES = source.cal tilt.cal lamp.tab window.cal
28
29 all: $(PROGS)
30
31 install: $(PROGS) $(LIBFILES) optics2rad.csh
32 cp $(PROGS) $(INSTDIR)
33 cp optics2rad.csh $(INSTDIR)/optics2rad
34 chmod 755 $(INSTDIR)/optics2rad
35 cd $(LIBDIR) && rm -f $(LIBFILES)
36 cp $(LIBFILES) $(LIBDIR)
37
38 clean:
39 set nonomatch; rm -f $(PROGS) *.o
40
41 ies2rad: ies2rad.o
42 $(CC) $(CFLAGS) -o ies2rad ies2rad.o -lrtrad $(MLIB)
43
44 arch2rad: arch2rad.o trans.o
45 $(CC) $(CFLAGS) -o arch2rad arch2rad.o trans.o -lrtrad
46
47 nff2rad: nff2rad.o
48 $(CC) $(CFLAGS) -o nff2rad nff2rad.o
49
50 lampcolor: lampcolor.o
51 $(CC) $(CFLAGS) -o lampcolor lampcolor.o -lrtrad
52
53 tmesh2rad: tmesh2rad.o
54 $(CC) $(CFLAGS) -o tmesh2rad tmesh2rad.o -lrtrad $(MLIB)
55
56 obj2rad: obj2rad.o trans.o
57 $(CC) $(CFLAGS) -o obj2rad obj2rad.o trans.o -lrtrad $(MLIB)
58
59 mgf2rad: mgf2rad.o
60 $(CC) $(CFLAGS) -o mgf2rad mgf2rad.o -lmgf -lrtrad $(MLIB)
61
62 rad2mgf: rad2mgf.o
63 $(CC) $(CFLAGS) -o rad2mgf rad2mgf.o -lrtrad $(MLIB)
64
65 mgf2meta: mgf2meta.o
66 $(CC) $(CFLAGS) -o mgf2meta mgf2meta.o -lmgf -lmeta -lrtrad $(MLIB)
67
68 mgfilt: mgfilt.o
69 $(CC) $(CFLAGS) -o mgfilt mgfilt.o -lmgf -lrtrad $(MLIB)
70
71 mgf2inv: mgf2inv.o
72 $(CC) $(CFLAGS) -o mgf2inv mgf2inv.o -lmgf -lrtrad $(MLIB)
73
74 3ds2mgf: 3ds2mgf.o rayopt3ds.o vect3ds.o
75 $(CC) $(CFLAGS) -o 3ds2mgf 3ds2mgf.o rayopt3ds.o vect3ds.o \
76 -lmgf -lrtrad $(MLIB)
77
78 pabopto2bsdf: pabopto2bsdf.o bsdfrep.o bsdfrbf.o bsdfmesh.o bsdftrans.o
79 $(CXX) $(CXXFLAGS) -o pabopto2bsdf pabopto2bsdf.o bsdfrep.o \
80 bsdfrbf.o bsdfmesh.o bsdftrans.o -lrtrad $(MLIB)
81
82 pabopto2rad: pabopto2rad.o bsdfrep.o bsdfrbf.o
83 $(CC) $(CFLAGS) -o pabopto2rad pabopto2rad.o bsdfrep.o \
84 bsdfrbf.o -lrtrad $(MLIB)
85
86 pabopto2rad.o: pabopto2bsdf.c bsdfrep.h
87 $(CC) $(CFLAGS) -c -DTEST_MAIN -o pabopto2rad.o pabopto2bsdf.c
88
89 bsdf2rad: bsdf2rad.o bsdfrep.o bsdfinterp.o
90 $(CC) $(CFLAGS) -o bsdf2rad bsdf2rad.o bsdfrep.o bsdfinterp.o \
91 -lrtrad $(MLIB)
92
93 bsdfquery: bsdfquery.o bsdfrep.o bsdfinterp.o
94 $(CC) $(CFLAGS) -o bsdfquery bsdfquery.o bsdfrep.o bsdfinterp.o \
95 -lrtrad $(MLIB)
96
97 bsdf2ttree: bsdf2ttree.o bsdfrep.o bsdfinterp.o
98 $(CC) $(CFLAGS) -o bsdf2ttree bsdf2ttree.o bsdfrep.o bsdfinterp.o \
99 -lrtrad $(MLIB)
100
101 bsdf2klems: bsdf2klems.o bsdfrep.o bsdfinterp.o
102 $(CC) $(CFLAGS) -o bsdf2klems bsdf2klems.o bsdfrep.o bsdfinterp.o \
103 -lrtrad $(MLIB)
104
105 pkgBSDF: pkgBSDF.o
106 $(CC) $(CFLAGS) -o pkgBSDF pkgBSDF.o -lrtrad $(MLIB)
107
108 epw2wea: epw2wea.o
109 $(CC) $(CFLAGS) -o epw2wea epw2wea.o
110
111 mgf2rad.o: mgf2rad.c ../common/mgf_parser.h ../common/tmesh.h \
112 ../common/color.h
113 $(CC) $(CFLAGS) -c mgf2rad.c
114
115 mgf2meta.o: mgf2meta.c ../common/mgf_parser.h
116 $(CC) $(CFLAGS) $(METACFLAGS) -c mgf2meta.c
117
118 arch2rad.o trans.o: trans.h
119
120 ies2rad.o lampcolor.o: ../common/color.h
121
122 ies2rad.o: ../common/paths.h
123
124 obj2rad.o tmesh2rad.o: ../common/tmesh.h \
125 ../common/standard.h ../common/rtmisc.h ../common/rtio.h \
126 ../common/rtmath.h ../common/rterror.h ../common/mat4.h \
127 ../common/fvect.h
128
129 obj2rad.o: trans.h
130
131 rad2mgf.o: ../common/standard.h ../common/mat4.h ../common/fvect.h \
132 ../common/object.h ../common/color.h ../common/lookup.h
133
134 mgfilt.o: ../common/mgf_parser.h ../common/ccolor.h
135
136 mgf2inv.o: ../common/mgf_parser.h ../common/ccolor.h
137
138 3ds2mgf.o rayopt3ds.o: rayopt3ds.h
139
140 3ds2mgf.o rayopt3ds.o vect3ds.o: vect3ds.h
141
142 pkgBSDF.o: ../common/bsdf.h ../common/fvect.h ../common/ccolor.h \
143 ../common/paths.h
144
145 bsdf2ttree.o bsdfinterp.o bsdfmesh.o bsdfrbf.o bsdfrep.o bsdf2rad.o bsdftrans.o \
146 pabopto2bsdf.o: bsdfrep.h ../common/bsdf.h ../common/fvect.h ../common/ccolor.h
147
148 bsdf2ttree.o pabopto2bsdf.o: ../common/platform.h
149
150 bsdfrep.o: ../common/resolu.h ../common/rtio.h
151
152 pabopto2bsdf.o: ../common/resolu.h
153
154 bsdf2rad.o bsdf2ttree.o: ../common/rtprocess.h
155
156 bsdf2klems.o bsdf2ttree.o mgf2meta.o: ../common/random.h
157
158 bsdftrans.o: transportSimplex.h