| 1 | schorsch | 2.15 | # RCSid: $Id: Rmakefile,v 2.14 2005/04/12 03:30:43 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.7 | CFLAGS = -I../common -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 | 1.1 | PROGS = genbox gensky xform genblinds genrev genworm \ | 
| 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 |  |  | glaze1.cal glaze2.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 | 1.13 | set nonomatch; rm -f $(PROGS) *.o core | 
| 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.2 | $(CC) $(CFLAGS) -o genbox genbox.o | 
| 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.4 | $(CC) $(CFLAGS) -o gensky gensky.o sun.o $(MLIB) | 
| 45 | greg | 1.1 |  | 
| 46 |  |  | genblinds:      genblinds.o | 
| 47 | greg | 2.4 | $(CC) $(CFLAGS) -o genblinds genblinds.o $(MLIB) | 
| 48 | greg | 1.1 |  | 
| 49 |  |  | genprism:       genprism.o | 
| 50 | greg | 2.6 | $(CC) $(CFLAGS) -o genprism genprism.o $(MLIB) | 
| 51 | greg | 1.1 |  | 
| 52 | greg | 1.16 | xform:  xform.o | 
| 53 | schorsch | 2.15 | $(CC) $(CFLAGS) -o xform xform.o -lrtrad $(MLIB) | 
| 54 | greg | 1.1 |  | 
| 55 | greg | 1.16 | replmarks:      replmarks.o | 
| 56 | schorsch | 2.15 | $(CC) $(CFLAGS) -o replmarks replmarks.o -lrtrad $(MLIB) | 
| 57 | greg | 1.10 |  | 
| 58 | greg | 1.17 | mkillum:        mkillum.o mkillum2.o mkillum3.o | 
| 59 | schorsch | 2.15 | $(CC) $(CFLAGS) -o mkillum mkillum.o mkillum2.o mkillum3.o -lrtrad $(MLIB) | 
| 60 | greg | 1.17 |  | 
| 61 | greg | 2.14 | mksource:       mksource.o | 
| 62 |  |  | $(CC) $(CFLAGS) -o mksource mksource.o \ | 
| 63 | schorsch | 2.15 | -lraycalls -lradiance -lrtrad $(MLIB) | 
| 64 | greg | 2.14 |  | 
| 65 | greg | 1.16 | genrev: genrev.o | 
| 66 | schorsch | 2.15 | $(CC) $(CFLAGS) -o genrev genrev.o -lrtrad $(MLIB) | 
| 67 | greg | 2.7 |  | 
| 68 | greg | 2.11 | gencatenary: gencat.o | 
| 69 | schorsch | 2.15 | $(CC) $(CFLAGS) -o gencatenary gencat.o -lrtrad $(MLIB) | 
| 70 | greg | 1.1 |  | 
| 71 | greg | 1.16 | genworm:        genworm.o | 
| 72 | schorsch | 2.15 | $(CC) $(CFLAGS) -o genworm genworm.o -lrtrad $(MLIB) | 
| 73 | greg | 1.1 |  | 
| 74 | greg | 1.16 | gensurf:        gensurf.o | 
| 75 | schorsch | 2.15 | $(CC) $(CFLAGS) -o gensurf gensurf.o -lrtrad $(MLIB) | 
| 76 | greg | 2.5 |  | 
| 77 |  |  | genclock:       genclock.o | 
| 78 |  |  | $(CC) $(CFLAGS) -o genclock genclock.o $(MLIB) | 
| 79 | greg | 1.1 |  | 
| 80 |  |  | genbranch:      genbranch.o | 
| 81 | greg | 2.4 | $(CC) $(CFLAGS) -o genbranch genbranch.o $(MLIB) | 
| 82 | greg | 1.1 |  | 
| 83 | greg | 2.14 | 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 | greg | 2.8 | genworm.o replmarks.o:  ../common/fvect.h | 
| 92 | greg | 1.1 |  | 
| 93 | greg | 2.8 | gensurf.o xform.o:      ../common/standard.h \ | 
| 94 |  |  | ../common/rtmisc.h ../common/rtio.h \ | 
| 95 |  |  | ../common/rtmath.h ../common/rterror.h \ | 
| 96 | greg | 2.13 | ../common/mat4.h ../common/fvect.h ../common/tifftypes.h | 
| 97 | greg | 2.12 |  | 
| 98 |  |  | genworm.o genrev.o gensurf.o:   ../common/resolu.h ../common/rterror.h | 
| 99 | greg | 1.1 |  | 
| 100 | greg | 2.8 | xform.o:        ../common/otypes.h ../common/object.h | 
| 101 | greg | 1.17 |  | 
| 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 | greg | 1.21 |  | 
| 105 |  |  | gensky.o:       ../common/color.h | 
| 106 | greg | 2.9 |  | 
| 107 | greg | 2.12 | gensurf.o genworm.o genrev.o:   ../common/calcomp.h |