5 |
|
# |
6 |
|
|
7 |
|
OPT = -O |
8 |
< |
MACH = -DBSD -DSTRUCTASSIGN -f68881 /usr/lib/libm.il -DIEEE |
9 |
< |
CFLAGS = $(MACH) $(OPT) -I../common |
8 |
> |
MACH = -DBSD |
9 |
> |
CFLAGS = $(MACH) $(OPT) -I../common -L../lib |
10 |
> |
CC = cc |
11 |
> |
MLIB = -lm |
12 |
|
|
13 |
< |
INSTDIR = /lumen/lumen/ray/bin.sun3 |
13 |
> |
INSTDIR = /usr/local/bin |
14 |
|
|
15 |
< |
LIBDIR = /lumen/lumen/ray/lib |
15 |
> |
LIBDIR = /usr/local/lib/ray |
16 |
|
|
17 |
|
PROGS = genbox gensky xform genblinds genrev genworm \ |
18 |
< |
gensurf genprism replmarks mkillum |
18 |
> |
gensurf genprism replmarks mkillum genclock |
19 |
|
|
20 |
< |
CALFILES = illum.cal rev.cal skybright.cal surf.cal |
20 |
> |
LIBFILES = illum.cal rev.cal skybright.cal surf.cal clockface.hex |
21 |
|
|
22 |
|
all: $(PROGS) |
23 |
|
|
24 |
< |
install: $(PROGS) genpine.csh genwindow.csh $(CALFILES) |
24 |
> |
install: $(PROGS) $(LIBFILES) |
25 |
|
cp $(PROGS) $(INSTDIR) |
26 |
< |
cp genwindow.csh $(INSTDIR)/genwindow |
27 |
< |
chmod 755 $(INSTDIR)/genwindow |
26 |
< |
cd $(LIBDIR) ; rm -f $(CALFILES) |
27 |
< |
cp $(CALFILES) $(LIBDIR) |
26 |
> |
cd $(LIBDIR) ; rm -f $(LIBFILES) |
27 |
> |
cp $(LIBFILES) $(LIBDIR) |
28 |
|
|
29 |
|
clean: |
30 |
|
set nonomatch; rm -f $(PROGS) *.o core |
31 |
|
|
32 |
|
genbeads: genbeads.o hermite3.o |
33 |
< |
cc $(CFLAGS) -o genbeads genbeads.o hermite3.o -lm |
33 |
> |
$(CC) $(CFLAGS) -o genbeads genbeads.o hermite3.o $(MLIB) |
34 |
|
|
35 |
|
genbox: genbox.o |
36 |
< |
cc $(CFLAGS) -o genbox genbox.o |
36 |
> |
$(CC) $(CFLAGS) -o genbox genbox.o |
37 |
|
|
38 |
|
genmarble: genmarble.o ../common/random.h |
39 |
< |
cc $(CFLAGS) -o genmarble genmarble.o -lm |
39 |
> |
$(CC) $(CFLAGS) -o genmarble genmarble.o $(MLIB) |
40 |
|
|
41 |
|
gensky: gensky.o sun.o |
42 |
< |
cc $(CFLAGS) -o gensky gensky.o sun.o -lm |
42 |
> |
$(CC) $(CFLAGS) -o gensky gensky.o sun.o $(MLIB) |
43 |
|
|
44 |
|
genblinds: genblinds.o |
45 |
< |
cc $(CFLAGS) -o genblinds genblinds.o -lm |
45 |
> |
$(CC) $(CFLAGS) -o genblinds genblinds.o $(MLIB) |
46 |
|
|
47 |
|
genprism: genprism.o |
48 |
< |
cc $(CFLAGS) -o genprism genprism.o |
48 |
> |
$(CC) $(CFLAGS) -o genprism genprism.o |
49 |
|
|
50 |
|
xform: xform.o |
51 |
< |
cc $(CFLAGS) -o xform xform.o ../common/librt.a -lm |
51 |
> |
$(CC) $(CFLAGS) -o xform xform.o -lrt $(MLIB) |
52 |
|
|
53 |
|
replmarks: replmarks.o |
54 |
< |
cc $(CFLAGS) -o replmarks replmarks.o ../common/librt.a -lm |
54 |
> |
$(CC) $(CFLAGS) -o replmarks replmarks.o -lrt $(MLIB) |
55 |
|
|
56 |
|
mkillum: mkillum.o mkillum2.o mkillum3.o |
57 |
< |
cc $(CFLAGS) -o mkillum mkillum.o mkillum2.o mkillum3.o \ |
58 |
< |
../common/librt.a -lm |
57 |
> |
$(CC) $(CFLAGS) -o mkillum mkillum.o mkillum2.o mkillum3.o -lrt $(MLIB) |
58 |
|
|
59 |
|
genrev: genrev.o |
60 |
< |
cc $(CFLAGS) -o genrev genrev.o ../common/librt.a -lm |
60 |
> |
$(CC) $(CFLAGS) -o genrev genrev.o -lrt $(MLIB) |
61 |
|
|
62 |
|
genworm: genworm.o |
63 |
< |
cc $(CFLAGS) -o genworm genworm.o ../common/librt.a -lm |
63 |
> |
$(CC) $(CFLAGS) -o genworm genworm.o -lrt $(MLIB) |
64 |
|
|
65 |
|
gensurf: gensurf.o |
66 |
< |
cc $(CFLAGS) -o gensurf gensurf.o ../common/librt.a -lm |
66 |
> |
$(CC) $(CFLAGS) -o gensurf gensurf.o -lrt $(MLIB) |
67 |
|
|
68 |
+ |
genclock: genclock.o |
69 |
+ |
$(CC) $(CFLAGS) -o genclock genclock.o $(MLIB) |
70 |
+ |
|
71 |
|
genbranch: genbranch.o |
72 |
< |
cc $(CFLAGS) -o genbranch genbranch.o -lm |
72 |
> |
$(CC) $(CFLAGS) -o genbranch genbranch.o $(MLIB) |
73 |
|
|
74 |
|
gensurf.o: ../common/standard.h ../common/mat4.h ../common/fvect.h |
75 |
|
|
80 |
|
|
81 |
|
mkillum.o mkillum2.o mkillum3.o: mkillum.h ../common/standard.h \ |
82 |
|
../common/mat4.h ../common/fvect.h ../common/otypes.h ../common/object.h |
83 |
+ |
|
84 |
+ |
gensky.o: ../common/color.h |