ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/src/gen/Rmakefile
(Generate patch)

Comparing ray/src/gen/Rmakefile (file contents):
Revision 1.9 by greg, Sat Dec 15 15:00:54 1990 UTC vs.
Revision 2.26 by greg, Wed Jun 17 20:41:47 2009 UTC

# Line 1 | Line 1
1 < # SCCSid "$SunId$ LBL"
2 <
1 > # RCSid: $Id$
2   #
3   # Makefile for object generation programs
4   #
5  
6   OPT = -O
7 < MACH = -DBSD -DSTRUCTASSIGN -f68881 /usr/lib/f68881.il -DIEEE
8 < CFLAGS = $(MACH) $(OPT)
7 > MACH = -DBSD
8 > CFLAGS = -I../common -I../rt -L../lib $(OPT) $(MACH)
9 > CC = cc
10 > MLIB = -lm
11  
12 < INSTDIR = /usr/local/ray
12 > INSTDIR = /usr/local/bin
13  
14 < PROGS = genbox gensky xform genblinds genrev genworm \
14 <                gensurf genprism
14 > LIBDIR = /usr/local/lib/ray
15  
16 + PROGS = genbox gensky xform genblinds genrev genworm gendaylit \
17 +                gensurf genprism replmarks mkillum mksource genclock
18 +
19 + LIBFILES = illum.cal rev.cal skybright.cal surf.cal clockface.hex \
20 +                glaze1.cal glaze2.cal perezlum.cal coeff_perez.dat defangle.dat
21 +
22   all:    $(PROGS)
23  
24 < install:        $(PROGS) genpine.csh genwindow.csh
24 > install:        $(PROGS) $(LIBFILES) glaze.csh
25          cp $(PROGS) $(INSTDIR)
26 <        install genpine.csh $(INSTDIR)/genpine
27 <        install genwindow.csh $(INSTDIR)/genwindow
26 >        cp glaze.csh $(INSTDIR)/glaze
27 >        chmod 755 $(INSTDIR)/glaze
28 >        cd $(LIBDIR) && rm -f $(LIBFILES)
29 >        cp $(LIBFILES) $(LIBDIR)
30  
31 + clean:
32 +        set nonomatch; rm -f $(PROGS) *.o core
33 +
34   genbeads:       genbeads.o hermite3.o
35 <        cc $(CFLAGS) -o genbeads genbeads.o hermite3.o -lm
35 >        $(CC) $(CFLAGS) -o genbeads genbeads.o hermite3.o $(MLIB)
36  
37   genbox: genbox.o
38 <        cc $(CFLAGS) -o genbox genbox.o
38 >        $(CC) $(CFLAGS) -o genbox genbox.o
39  
40 < genmarble:      genmarble.o random.h
41 <        cc $(CFLAGS) -o genmarble genmarble.o -lm
40 > genmarble:      genmarble.o ../common/random.h
41 >        $(CC) $(CFLAGS) -o genmarble genmarble.o $(MLIB)
42  
43   gensky: gensky.o sun.o
44 <        cc $(CFLAGS) -o gensky gensky.o sun.o -lm
44 >        $(CC) $(CFLAGS) -o gensky gensky.o sun.o $(MLIB)
45  
46 + gendaylit:      gendaylit.o sun.o
47 +        $(CC) $(CFLAGS) -o gendaylit gendaylit.o sun.o -lrtrad $(MLIB)
48 +
49   genblinds:      genblinds.o
50 <        cc $(CFLAGS) -o genblinds genblinds.o -lm
50 >        $(CC) $(CFLAGS) -o genblinds genblinds.o $(MLIB)
51  
52   genprism:       genprism.o
53 <        cc $(CFLAGS) -o genprism genprism.o
53 >        $(CC) $(CFLAGS) -o genprism genprism.o $(MLIB)
54  
55 < xform:  xform.o xf.o mat4.o fgetline.o
56 <        cc $(CFLAGS) -o xform xform.o xf.o mat4.o fgetline.o -lm
55 > xform:  xform.o
56 >        $(CC) $(CFLAGS) -o xform xform.o -lrtrad $(MLIB)
57  
58 < genrev: genrev.o calexpr.o caldefn.o calfunc.o \
59 < ealloc.o savestr.o
46 <        cc $(CFLAGS) -o genrev genrev.o caldefn.o calexpr.o \
47 < calfunc.o ealloc.o savestr.o -lm
58 > replmarks:      replmarks.o
59 >        $(CC) $(CFLAGS) -o replmarks replmarks.o -lrtrad $(MLIB)
60  
61 < genworm:        genworm.o calexpr.o caldefn.o calfunc.o \
62 < ealloc.o savestr.o fvect.o
63 <        cc $(CFLAGS) -o genworm genworm.o caldefn.o calexpr.o \
52 < calfunc.o ealloc.o savestr.o fvect.o -lm
61 > mkillum:        mkillum.o mkillum2.o mkillum3.o
62 >        $(CC) $(CFLAGS) -o mkillum mkillum.o mkillum2.o mkillum3.o \
63 > -lraycalls -lradiance -lrtrad $(MLIB)
64  
65 < gensurf:        gensurf.o fvect.o calexpr.o caldefn.o calfunc.o \
66 < ealloc.o savestr.o
67 <        cc $(CFLAGS) -o gensurf gensurf.o caldefn.o calexpr.o \
57 < calfunc.o ealloc.o savestr.o fvect.o -lm
65 > mksource:       mksource.o
66 >        $(CC) $(CFLAGS) -o mksource mksource.o \
67 > -lraycalls -lradiance -lrtrad $(MLIB)
68  
69 + genrev: genrev.o
70 +        $(CC) $(CFLAGS) -o genrev genrev.o -lrtrad $(MLIB)
71 +
72 + gencatenary: gencat.o
73 +        $(CC) $(CFLAGS) -o gencatenary gencat.o -lrtrad $(MLIB)
74 +
75 + genworm:        genworm.o
76 +        $(CC) $(CFLAGS) -o genworm genworm.o -lrtrad $(MLIB)
77 +
78 + gensurf:        gensurf.o
79 +        $(CC) $(CFLAGS) -o gensurf gensurf.o -lrtrad $(MLIB)
80 +
81 + genclock:       genclock.o
82 +        $(CC) $(CFLAGS) -o genclock genclock.o $(MLIB)
83 +
84   genbranch:      genbranch.o
85 <        cc $(CFLAGS) -o genbranch genbranch.o -lm
85 >        $(CC) $(CFLAGS) -o genbranch genbranch.o $(MLIB)
86  
87 < calexpr.o:      calexpr.c calcomp.h
88 <        cc $(CFLAGS) -c -DVARIABLE -DFUNCTION -DRCONST calexpr.c
87 > mksource.o:     ../common/random.h ../rt/ray.h ../common/octree.h \
88 > ../common/object.h ../common/color.h \
89 > ../common/standard.h ../common/rtmisc.h ../common/rtio.h \
90 > ../common/rtmath.h ../common/mat4.h ../common/fvect.h \
91 > ../common/rterror.h
92  
93 < caldefn.o:      caldefn.c calcomp.h
66 <        cc $(CFLAGS) -c -DFUNCTION caldefn.c
93 > genworm.o replmarks.o:  ../common/fvect.h
94  
95 < calfunc.o:      calfunc.c calcomp.h
96 <        cc $(CFLAGS) -c -DVARIABLE -DBIGLIB calfunc.c
95 > gensurf.o xform.o:      ../common/standard.h \
96 > ../common/rtmisc.h ../common/rtio.h \
97 > ../common/rtmath.h ../common/rterror.h \
98 > ../common/mat4.h ../common/fvect.h
99  
100 < gensurf.o:      standard.h mat4.h fvect.h
100 > genworm.o genrev.o gensurf.o:   ../common/resolu.h ../common/rterror.h
101  
102 < fvect.o genworm.o:      fvect.h
102 > xform.o:        ../common/otypes.h ../common/object.h
103  
104 < mat4.o:         mat4.h fvect.h
104 > mkillum.o mkillum2.o mkillum3.o:        mkillum.h ../common/bsdf.h \
105 > ../common/otypes.h ../rt/ray.h ../common/octree.h \
106 > ../common/object.h ../common/color.h \
107 > ../common/standard.h ../common/rtmisc.h ../common/rtio.h \
108 > ../common/rtmath.h ../common/mat4.h ../common/fvect.h \
109 > ../common/rterror.h ../common/random.h
110  
111 < xform.o:        standard.h mat4.h fvect.h otypes.h
111 > mkillum2.o:     ../rt/source.h ../common/face.h ../common/cone.h
112 >
113 > mkillum3.o:     ../common/paths.h
114 >
115 > gensky.o:       ../common/color.h
116 >
117 > gensurf.o genworm.o genrev.o:   ../common/calcomp.h

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines