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.13 by greg, Thu Apr 11 09:21:21 1991 UTC vs.
Revision 2.14 by greg, Tue Apr 12 03:30:43 2005 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/libm.il -DIEEE
8 < CFLAGS = $(MACH) $(OPT)
7 > MACH = -DBSD
8 > CFLAGS = -I../common -L../lib $(OPT) $(MACH)
9 > CC = cc
10 > MLIB = -lm
11  
12 < INSTDIR = /lumen/lumen/ray/bin.sun3
12 > INSTDIR = /usr/local/bin
13  
14 + LIBDIR = /usr/local/lib/ray
15 +
16   PROGS = genbox gensky xform genblinds genrev genworm \
17 <                gensurf genprism replmarks
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
21 +
22   all:    $(PROGS)
23  
24 < install:        $(PROGS) genpine.csh genwindow.csh
24 > install:        $(PROGS) $(LIBFILES) glaze.csh
25          cp $(PROGS) $(INSTDIR)
26 <        cp genwindow.csh $(INSTDIR)/genwindow
27 <        chmod 755 $(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   genblinds:      genblinds.o
47 <        cc $(CFLAGS) -o genblinds genblinds.o -lm
47 >        $(CC) $(CFLAGS) -o genblinds genblinds.o $(MLIB)
48  
49   genprism:       genprism.o
50 <        cc $(CFLAGS) -o genprism genprism.o
50 >        $(CC) $(CFLAGS) -o genprism genprism.o $(MLIB)
51  
52 < xform:  xform.o xf.o mat4.o fgetline.o
53 <        cc $(CFLAGS) -o xform xform.o xf.o mat4.o fgetline.o -lm
52 > xform:  xform.o
53 >        $(CC) $(CFLAGS) -o xform xform.o -lrt $(MLIB)
54  
55 < replmarks:      replmarks.o fvect.o fgetline.o
56 <        cc $(CFLAGS) -o replmarks replmarks.o fvect.o fgetline.o -lm
55 > replmarks:      replmarks.o
56 >        $(CC) $(CFLAGS) -o replmarks replmarks.o -lrt $(MLIB)
57  
58 < genrev: genrev.o calexpr.o caldefn.o calfunc.o \
59 < ealloc.o savestr.o
52 <        cc $(CFLAGS) -o genrev genrev.o caldefn.o calexpr.o \
53 < calfunc.o ealloc.o savestr.o -lm
58 > mkillum:        mkillum.o mkillum2.o mkillum3.o
59 >        $(CC) $(CFLAGS) -o mkillum mkillum.o mkillum2.o mkillum3.o -lrt $(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 \
58 < calfunc.o ealloc.o savestr.o fvect.o -lm
61 > mksource:       mksource.o
62 >        $(CC) $(CFLAGS) -o mksource mksource.o \
63 > -lraycalls -lradiance -lrt $(MLIB)
64  
65 < gensurf:        gensurf.o fvect.o calexpr.o caldefn.o calfunc.o \
66 < ealloc.o savestr.o
62 <        cc $(CFLAGS) -o gensurf gensurf.o caldefn.o calexpr.o \
63 < calfunc.o ealloc.o savestr.o fvect.o -lm
65 > genrev: genrev.o
66 >        $(CC) $(CFLAGS) -o genrev genrev.o -lrt $(MLIB)
67  
68 + gencatenary: gencat.o
69 +        $(CC) $(CFLAGS) -o gencatenary gencat.o -lrt $(MLIB)
70 +
71 + genworm:        genworm.o
72 +        $(CC) $(CFLAGS) -o genworm genworm.o -lrt $(MLIB)
73 +
74 + gensurf:        gensurf.o
75 +        $(CC) $(CFLAGS) -o gensurf gensurf.o -lrt $(MLIB)
76 +
77 + genclock:       genclock.o
78 +        $(CC) $(CFLAGS) -o genclock genclock.o $(MLIB)
79 +
80   genbranch:      genbranch.o
81 <        cc $(CFLAGS) -o genbranch genbranch.o -lm
81 >        $(CC) $(CFLAGS) -o genbranch genbranch.o $(MLIB)
82  
83 < calexpr.o:      calexpr.c calcomp.h
84 <        cc $(CFLAGS) -c -DVARIABLE -DFUNCTION -DRCONST calexpr.c
83 > mksource.o:     mksource.c \
84 > ../common/random.h ../rt/ray.h ../common/octree.h \
85 > ../common/object.h ../common/color.h \
86 > ../common/standard.h ../common/rtmisc.h ../common/rtio.h \
87 > ../common/rtmath.h ../common/mat4.h ../common/fvect.h \
88 > ../common/rterror.h ../common/tifftypes.h
89 >        $(CC) -c $(CFLAGS) -I../rt mksource.c
90  
91 < caldefn.o:      caldefn.c calcomp.h
72 <        cc $(CFLAGS) -c -DFUNCTION caldefn.c
91 > genworm.o replmarks.o:  ../common/fvect.h
92  
93 < calfunc.o:      calfunc.c calcomp.h
94 <        cc $(CFLAGS) -c -DVARIABLE -DBIGLIB calfunc.c
93 > gensurf.o xform.o:      ../common/standard.h \
94 > ../common/rtmisc.h ../common/rtio.h \
95 > ../common/rtmath.h ../common/rterror.h \
96 > ../common/mat4.h ../common/fvect.h ../common/tifftypes.h
97  
98 < gensurf.o:      standard.h mat4.h fvect.h
98 > genworm.o genrev.o gensurf.o:   ../common/resolu.h ../common/rterror.h
99  
100 < fvect.o genworm.o replmarks.o:  fvect.h
100 > xform.o:        ../common/otypes.h ../common/object.h
101  
102 < mat4.o:         mat4.h fvect.h
102 > mkillum.o mkillum2.o mkillum3.o:        mkillum.h ../common/standard.h \
103 > ../common/mat4.h ../common/fvect.h ../common/otypes.h ../common/object.h
104  
105 < xform.o:        standard.h mat4.h fvect.h otypes.h
105 > gensky.o:       ../common/color.h
106 >
107 > gensurf.o genworm.o genrev.o:   ../common/calcomp.h

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines