| 1 | greg | 2.40 | # RCSid: $Id: Rmakefile,v 2.39 2021/04/09 01:48:20 greg Exp $ | 
| 2 | greg | 1.1 | # | 
| 3 |  |  | # Makefile for object generation programs | 
| 4 |  |  | # | 
| 5 |  |  |  | 
| 6 | greg | 1.5 | OPT = -O | 
| 7 | greg | 1.22 | MACH = -DBSD | 
| 8 | greg | 2.16 | CFLAGS = -I../common -I../rt -L../lib $(OPT) $(MACH) | 
| 9 | greg | 2.2 | CC = cc | 
| 10 | greg | 2.4 | MLIB = -lm | 
| 11 | greg | 1.1 |  | 
| 12 | greg | 1.20 | INSTDIR = /usr/local/bin | 
| 13 | greg | 1.1 |  | 
| 14 | greg | 1.20 | LIBDIR = /usr/local/lib/ray | 
| 15 | greg | 1.18 |  | 
| 16 | greg | 2.30 | PROGS = genbox gensky xform genblinds genrev genworm gendaylit gendaymtx \ | 
| 17 | greg | 2.14 | gensurf genprism replmarks mkillum mksource genclock | 
| 18 | greg | 1.1 |  | 
| 19 | greg | 2.7 | LIBFILES = illum.cal rev.cal skybright.cal surf.cal clockface.hex \ | 
| 20 | greg | 2.36 | glaze1.cal glaze2.cal perezlum.cal perezlum_c.cal | 
| 21 | greg | 1.18 |  | 
| 22 | greg | 1.1 | all:    $(PROGS) | 
| 23 |  |  |  | 
| 24 | greg | 2.7 | install:        $(PROGS) $(LIBFILES) glaze.csh | 
| 25 | greg | 1.1 | cp $(PROGS) $(INSTDIR) | 
| 26 | greg | 2.7 | cp glaze.csh $(INSTDIR)/glaze | 
| 27 |  |  | chmod 755 $(INSTDIR)/glaze | 
| 28 | greg | 2.10 | cd $(LIBDIR) && rm -f $(LIBFILES) | 
| 29 | greg | 2.5 | cp $(LIBFILES) $(LIBDIR) | 
| 30 | greg | 1.11 |  | 
| 31 |  |  | clean: | 
| 32 | greg | 2.33 | set nonomatch; rm -f $(PROGS) *.o | 
| 33 | greg | 1.1 |  | 
| 34 |  |  | genbeads:       genbeads.o hermite3.o | 
| 35 | greg | 2.4 | $(CC) $(CFLAGS) -o genbeads genbeads.o hermite3.o $(MLIB) | 
| 36 | greg | 1.1 |  | 
| 37 |  |  | genbox: genbox.o | 
| 38 | greg | 2.40 | $(CC) $(CFLAGS) -o genbox genbox.o -lwfobj -lrtrad | 
| 39 | greg | 1.1 |  | 
| 40 | greg | 1.16 | genmarble:      genmarble.o ../common/random.h | 
| 41 | greg | 2.4 | $(CC) $(CFLAGS) -o genmarble genmarble.o $(MLIB) | 
| 42 | greg | 1.1 |  | 
| 43 |  |  | gensky: gensky.o sun.o | 
| 44 | greg | 2.37 | $(CC) $(CFLAGS) -o gensky gensky.o sun.o -lrtrad $(MLIB) | 
| 45 | greg | 1.1 |  | 
| 46 | greg | 2.23 | gendaylit:      gendaylit.o sun.o | 
| 47 |  |  | $(CC) $(CFLAGS) -o gendaylit gendaylit.o sun.o -lrtrad $(MLIB) | 
| 48 |  |  |  | 
| 49 | greg | 2.30 | gendaymtx:      gendaymtx.o sun.o | 
| 50 |  |  | $(CC) $(CFLAGS) -o gendaymtx gendaymtx.o sun.o -lrtrad $(MLIB) | 
| 51 | greg | 2.28 |  | 
| 52 | greg | 1.1 | genblinds:      genblinds.o | 
| 53 | greg | 2.38 | $(CC) $(CFLAGS) -o genblinds genblinds.o -lrtrad $(MLIB) | 
| 54 | greg | 1.1 |  | 
| 55 |  |  | genprism:       genprism.o | 
| 56 | greg | 2.37 | $(CC) $(CFLAGS) -o genprism genprism.o -lrtrad $(MLIB) | 
| 57 | greg | 1.1 |  | 
| 58 | greg | 1.16 | xform:  xform.o | 
| 59 | schorsch | 2.15 | $(CC) $(CFLAGS) -o xform xform.o -lrtrad $(MLIB) | 
| 60 | greg | 1.1 |  | 
| 61 | greg | 1.16 | replmarks:      replmarks.o | 
| 62 | schorsch | 2.15 | $(CC) $(CFLAGS) -o replmarks replmarks.o -lrtrad $(MLIB) | 
| 63 | greg | 1.10 |  | 
| 64 | greg | 2.26 | mkillum:        mkillum.o mkillum2.o mkillum3.o | 
| 65 | greg | 2.16 | $(CC) $(CFLAGS) -o mkillum mkillum.o mkillum2.o mkillum3.o \ | 
| 66 | greg | 2.26 | -lraycalls -lradiance -lrtrad $(MLIB) | 
| 67 | greg | 1.17 |  | 
| 68 | greg | 2.14 | mksource:       mksource.o | 
| 69 |  |  | $(CC) $(CFLAGS) -o mksource mksource.o \ | 
| 70 | schorsch | 2.15 | -lraycalls -lradiance -lrtrad $(MLIB) | 
| 71 | greg | 2.14 |  | 
| 72 | greg | 1.16 | genrev: genrev.o | 
| 73 | schorsch | 2.15 | $(CC) $(CFLAGS) -o genrev genrev.o -lrtrad $(MLIB) | 
| 74 | greg | 2.7 |  | 
| 75 | greg | 2.11 | gencatenary: gencat.o | 
| 76 | schorsch | 2.15 | $(CC) $(CFLAGS) -o gencatenary gencat.o -lrtrad $(MLIB) | 
| 77 | greg | 1.1 |  | 
| 78 | greg | 1.16 | genworm:        genworm.o | 
| 79 | schorsch | 2.15 | $(CC) $(CFLAGS) -o genworm genworm.o -lrtrad $(MLIB) | 
| 80 | greg | 1.1 |  | 
| 81 | greg | 1.16 | gensurf:        gensurf.o | 
| 82 | schorsch | 2.15 | $(CC) $(CFLAGS) -o gensurf gensurf.o -lrtrad $(MLIB) | 
| 83 | greg | 2.5 |  | 
| 84 |  |  | genclock:       genclock.o | 
| 85 |  |  | $(CC) $(CFLAGS) -o genclock genclock.o $(MLIB) | 
| 86 | greg | 1.1 |  | 
| 87 |  |  | genbranch:      genbranch.o | 
| 88 | greg | 2.4 | $(CC) $(CFLAGS) -o genbranch genbranch.o $(MLIB) | 
| 89 | greg | 1.1 |  | 
| 90 | greg | 2.16 | mksource.o:     ../common/random.h ../rt/ray.h ../common/octree.h \ | 
| 91 | greg | 2.14 | ../common/object.h ../common/color.h \ | 
| 92 |  |  | ../common/standard.h ../common/rtmisc.h ../common/rtio.h \ | 
| 93 |  |  | ../common/rtmath.h ../common/mat4.h ../common/fvect.h \ | 
| 94 | greg | 2.22 | ../common/rterror.h | 
| 95 | greg | 2.14 |  | 
| 96 | greg | 2.8 | genworm.o replmarks.o:  ../common/fvect.h | 
| 97 | greg | 1.1 |  | 
| 98 | greg | 2.8 | gensurf.o xform.o:      ../common/standard.h \ | 
| 99 |  |  | ../common/rtmisc.h ../common/rtio.h \ | 
| 100 |  |  | ../common/rtmath.h ../common/rterror.h \ | 
| 101 | greg | 2.22 | ../common/mat4.h ../common/fvect.h | 
| 102 | greg | 2.12 |  | 
| 103 | greg | 2.39 | genbox.o:       ../common/fvect.h ../common/objutil.h ../common/rtio.h | 
| 104 |  |  |  | 
| 105 | greg | 2.12 | genworm.o genrev.o gensurf.o:   ../common/resolu.h ../common/rterror.h | 
| 106 | greg | 1.1 |  | 
| 107 | greg | 2.8 | xform.o:        ../common/otypes.h ../common/object.h | 
| 108 | greg | 1.17 |  | 
| 109 | greg | 2.29 | mkillum.o mkillum2.o mkillum3.o:        mkillum.h \ | 
| 110 | greg | 2.18 | ../common/otypes.h ../rt/ray.h ../common/octree.h \ | 
| 111 | greg | 2.16 | ../common/object.h ../common/color.h \ | 
| 112 |  |  | ../common/standard.h ../common/rtmisc.h ../common/rtio.h \ | 
| 113 |  |  | ../common/rtmath.h ../common/mat4.h ../common/fvect.h \ | 
| 114 | greg | 2.22 | ../common/rterror.h ../common/random.h | 
| 115 | greg | 2.20 |  | 
| 116 |  |  | mkillum2.o:     ../rt/source.h ../common/face.h ../common/cone.h | 
| 117 |  |  |  | 
| 118 | greg | 2.27 | mkillum2.o mkillum3.o:  ../common/paths.h | 
| 119 | greg | 2.18 |  | 
| 120 | greg | 1.21 | gensky.o:       ../common/color.h | 
| 121 | greg | 2.9 |  | 
| 122 | greg | 2.12 | gensurf.o genworm.o genrev.o:   ../common/calcomp.h | 
| 123 | greg | 2.32 |  | 
| 124 | greg | 2.35 | gendaylit.o gensky.o sun.o:     sun.h | 
| 125 | greg | 2.34 |  | 
| 126 |  |  | gendaymtx.o:    ../common/platform.h ../common/rtmath.h \ | 
| 127 |  |  | ../common/mat4.h ../common/fvect.h ../common/color.h |