1 |
# SCCSid "$SunId$ LBL" |
2 |
|
3 |
# |
4 |
# Makefile for object generation programs |
5 |
# |
6 |
|
7 |
OPT = -O |
8 |
MACH = -DBSD |
9 |
CFLAGS = $(MACH) $(OPT) -I../common -L../lib |
10 |
CC = cc |
11 |
MLIB = -lm |
12 |
|
13 |
INSTDIR = /usr/local/bin |
14 |
|
15 |
LIBDIR = /usr/local/lib/ray |
16 |
|
17 |
PROGS = genbox gensky xform genblinds genrev genworm \ |
18 |
gensurf genprism replmarks mkillum genclock |
19 |
|
20 |
LIBFILES = illum.cal rev.cal skybright.cal surf.cal clockface.hex |
21 |
|
22 |
all: $(PROGS) |
23 |
|
24 |
install: $(PROGS) $(LIBFILES) |
25 |
cp $(PROGS) $(INSTDIR) |
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 $(MLIB) |
34 |
|
35 |
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 $(MLIB) |
40 |
|
41 |
gensky: gensky.o sun.o |
42 |
$(CC) $(CFLAGS) -o gensky gensky.o sun.o $(MLIB) |
43 |
|
44 |
genblinds: genblinds.o |
45 |
$(CC) $(CFLAGS) -o genblinds genblinds.o $(MLIB) |
46 |
|
47 |
genprism: genprism.o |
48 |
$(CC) $(CFLAGS) -o genprism genprism.o $(MLIB) |
49 |
|
50 |
xform: xform.o |
51 |
$(CC) $(CFLAGS) -o xform xform.o -lrt $(MLIB) |
52 |
|
53 |
replmarks: replmarks.o |
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 -lrt $(MLIB) |
58 |
|
59 |
genrev: genrev.o |
60 |
$(CC) $(CFLAGS) -o genrev genrev.o -lrt $(MLIB) |
61 |
|
62 |
genworm: genworm.o |
63 |
$(CC) $(CFLAGS) -o genworm genworm.o -lrt $(MLIB) |
64 |
|
65 |
gensurf: gensurf.o |
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 $(MLIB) |
73 |
|
74 |
gensurf.o: ../common/standard.h ../common/mat4.h ../common/fvect.h |
75 |
|
76 |
genworm.o replmarks.o: ../common/fvect.h |
77 |
|
78 |
xform.o: ../common/standard.h ../common/mat4.h ../common/fvect.h \ |
79 |
../common/otypes.h ../common/object.h |
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 |