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

File Contents

# User Rev Content
1 greg 2.20 # RCSid: $Id: Rmakefile,v 2.19 2016/04/21 00:40:35 greg Exp $
2 greg 1.1 #
3     # Compiles for octree conversion program
4     #
5     # The compile define "STRICT" enforces strict intersection calculations
6     # so that no cube which does not intersect an object contains that object.
7     # Otherwise, a somewhat faster more lax approach is taken by certain routines.
8 greg 2.19 # This is set to "1" by default, so -DSTRICT=0 now turns it off.
9 greg 1.1 #
10    
11 greg 1.4 OPT = -O
12 greg 1.25 MACH = -DBSD
13 greg 2.19 CFLAGS = -I../common -L../lib $(OPT) $(MACH)
14 greg 2.2 CC = cc
15 greg 2.4 MLIB = -lm
16 greg 1.1
17 greg 2.20 INSTALL = cp
18    
19 greg 1.13 LIBDIR = /usr/local/lib/ray
20    
21 greg 1.23 INSTDIR = /usr/local/bin
22 greg 1.1
23 greg 2.11 PROGS = oconv getbbox obj2mesh
24    
25     all: $(PROGS)
26 greg 1.14
27 greg 2.6 oconv: oconv.o sphere.o writeoct.o o_face.o \
28 greg 2.7 o_cone.o o_instance.o bbox.o initotypes.o
29 greg 2.2 $(CC) $(CFLAGS) -o oconv oconv.o writeoct.o sphere.o o_face.o \
30 greg 2.7 o_cone.o o_instance.o bbox.o \
31 schorsch 2.16 initotypes.o -lrtrad $(MLIB)
32 greg 1.1
33 greg 2.3 getbbox: getbbox.o readobj2.o bbox.o init2otypes.o
34 greg 2.2 $(CC) $(CFLAGS) -o getbbox getbbox.o readobj2.o \
35 schorsch 2.16 bbox.o init2otypes.o -lrtrad $(MLIB)
36 greg 1.14
37 greg 2.8 obj2mesh: obj2mesh.o cvmesh.o wfconv.o o_face.o writemesh.o
38     $(CC) $(CFLAGS) -o obj2mesh obj2mesh.o cvmesh.o wfconv.o \
39 schorsch 2.16 o_face.o writemesh.o -lrtrad $(MLIB)
40 greg 2.8
41 greg 2.11 install: $(PROGS)
42 greg 2.20 $(INSTALL) $(PROGS) $(INSTDIR)
43 greg 1.9
44     clean:
45 greg 2.18 set nonomatch; rm -f $(PROGS) *.o
46 greg 1.13
47 greg 1.15 bbox.o initotypes.o o_cone.o o_face.o \
48 greg 1.16 o_instance.o oconv.o sphere.o \
49 greg 2.8 cvmesh.o obj2mesh.o wfconv.o \
50 greg 2.12 writeoct.o: ../common/standard.h ../common/rtmisc.h ../common/rtio.h \
51     ../common/rtmath.h ../common/mat4.h ../common/fvect.h \
52 greg 2.17 ../common/rterror.h
53 greg 1.1
54 greg 1.15 initotypes.o o_cone.o o_face.o oconv.o \
55 greg 1.16 sphere.o writeoct.o: ../common/octree.h
56 greg 1.1
57 greg 1.15 bbox.o o_cone.o o_face.o o_instance.o oconv.o \
58 greg 1.16 sphere.o writeoct.o: ../common/object.h
59 greg 1.1
60 greg 2.10 bbox.o initotypes.o oconv.o obj2mesh.o sphere.o: ../common/otypes.h
61 greg 2.5
62 schorsch 2.14 bbox.o getbbox.o initotypes.o oconv.o readobj2.o writeoct.o: oconv.h
63    
64 greg 2.5 oconv.o: ../common/paths.h
65 greg 1.1
66 greg 1.16 bbox.o o_cone.o: ../common/cone.h
67 greg 1.8
68 greg 1.16 bbox.o o_face.o: ../common/face.h
69 greg 1.1
70 greg 2.8 bbox.o getbbox.o o_instance.o: ../common/instance.h \
71     ../common/mesh.h ../common/octree.h
72 greg 1.1
73 greg 2.6 o_face.o: ../common/plocate.h
74 greg 1.19
75 greg 1.24 clip.o plocate.o: ../common/fvect.h
76    
77 greg 2.3 initotypes.o init2otypes.o: ../common/otypes.h
78 greg 2.8
79     cvmesh.o obj2mesh.o wfconv.o: cvmesh.h \
80     ../common/octree.h ../common/object.h ../common/mesh.h
81    
82 greg 2.13 cvmesh.o: ../common/otypes.h ../common/face.h ../common/tmesh.h