1 |
gregl |
3.1 |
# |
2 |
|
|
# SCCSid "$SunId$ SGI" |
3 |
|
|
# Radiance makefile for holodeck programs |
4 |
|
|
# |
5 |
|
|
|
6 |
|
|
MACH = -DBSD |
7 |
|
|
|
8 |
|
|
OPT = -O |
9 |
|
|
|
10 |
|
|
CFLAGS = $(MACH) $(OPT) -I../common -L../lib |
11 |
|
|
|
12 |
|
|
CC = cc |
13 |
|
|
|
14 |
|
|
INSTDIR = /usr/local/bin |
15 |
gregl |
3.2 |
DEVDIR = $(INSTDIR)/dev |
16 |
gregl |
3.1 |
|
17 |
|
|
LIBDIR = /usr/local/lib/ray |
18 |
|
|
|
19 |
gregl |
3.7 |
PROGS = rholo rhcopy |
20 |
gregl |
3.1 |
|
21 |
gregl |
3.10 |
DEVS = $(DEVDIR)/x11.hdi $(DEVDIR)/x11h.hdi \ |
22 |
|
|
$(DEVDIR)/glx.hdi $(DEVDIR)/glxh.hdi |
23 |
gregl |
3.2 |
|
24 |
gregl |
3.1 |
all: $(PROGS) |
25 |
|
|
|
26 |
gregl |
3.2 |
install: all $(DEVS) |
27 |
gregl |
3.1 |
cp $(PROGS) $(INSTDIR) |
28 |
|
|
|
29 |
|
|
clean: |
30 |
|
|
set nonomatch; rm -f *.o $(PROGS) core |
31 |
|
|
|
32 |
gregl |
3.3 |
rholo: rholo.o rholo2.o rholo2l.o rholo3.o rholo4.o holo.o holofile.o Version.o |
33 |
gregl |
3.1 |
$(CC) $(CFLAGS) -o rholo rholo.o rholo2.o rholo2l.o rholo3.o rholo4.o \ |
34 |
gregl |
3.3 |
holo.o holofile.o Version.o -lrt -lm |
35 |
gregl |
3.1 |
|
36 |
gregl |
3.7 |
rhcopy: rhcopy.o holo.o holofile.o |
37 |
|
|
$(CC) $(CFLAGS) -o rhcopy rhcopy.o holo.o holofile.o -lrt -lm |
38 |
|
|
|
39 |
gregl |
3.8 |
$(DEVDIR)/x11h.hdi: $(DEVDIR)/x11.hdi |
40 |
|
|
rm -f $(DEVDIR)/x11h.hdi |
41 |
|
|
ln $(DEVDIR)/x11.hdi $(DEVDIR)/x11h.hdi |
42 |
gregl |
3.1 |
|
43 |
gregl |
3.8 |
$(DEVDIR)/x11.hdi: rhdisp.o rhdisp2.o rhdisp3.o rhd_x11.o rhd_qtree.o \ |
44 |
gregl |
3.9 |
rhd_qtree2r.o rhd_ctab.o dircode.o holo.o |
45 |
gregl |
3.8 |
$(CC) $(CFLAGS) -o $(DEVDIR)/x11.hdi rhdisp.o rhdisp2.o rhdisp3.o \ |
46 |
gregl |
3.9 |
rhd_x11.o rhd_qtree.o rhd_qtree2r.o rhd_ctab.o holo.o dircode.o -lrt -lX11 -lm |
47 |
gregl |
3.1 |
|
48 |
gregl |
3.10 |
$(DEVDIR)/glxh.hdi: $(DEVDIR)/glx.hdi |
49 |
|
|
rm -f $(DEVDIR)/glxh.hdi |
50 |
|
|
ln $(DEVDIR)/glx.hdi $(DEVDIR)/glxh.hdi |
51 |
|
|
|
52 |
|
|
$(DEVDIR)/glx.hdi: rhdisp.o rhdisp2.o rhdisp3.o rhd_glx.o \ |
53 |
gregl |
3.11 |
rhd_qtree.o rhd_qtree2c.o dircode.o holo.o |
54 |
gregl |
3.10 |
$(CC) $(CFLAGS) -o $(DEVDIR)/glx.hdi rhdisp.o rhdisp2.o rhdisp3.o \ |
55 |
gregl |
3.11 |
rhd_glx.o holo.o rhd_qtree.o rhd_qtree2c.o dircode.o -lrt -lGLU -lGL -lX11 -lm |
56 |
gregl |
3.10 |
|
57 |
gregl |
3.2 |
rholo.o rholo2.o rholo2l.o rholo3.o rholo4.o \ |
58 |
|
|
rhdisp.o rhdisp2.o rhdisp3.o: rholo.h |
59 |
|
|
|
60 |
gregl |
3.6 |
rholo2l.o: ../common/paths.h |
61 |
|
|
|
62 |
gregl |
3.2 |
rholo4.o: rhdisp.h rholo4.c |
63 |
gregl |
3.4 |
$(CC) $(CFLAGS) -c rholo4.c |
64 |
gregl |
3.2 |
|
65 |
|
|
rhdisp.o rhdisp2.o: rhdisp.h rhdriver.h ../common/view.h |
66 |
|
|
|
67 |
|
|
rhdisp3.o: rhdisp.h ../common/view.h |
68 |
|
|
|
69 |
|
|
holo.o holofile.o rhdisp.o rhdisp2.o rhdisp3.o \ |
70 |
gregl |
3.7 |
rhcopy.o rholo.o rholo2.o rholo2l.o rholo3.o rholo4.o: holo.h \ |
71 |
gregl |
3.1 |
../common/vars.h ../common/color.h \ |
72 |
|
|
../common/standard.h ../common/mat4.h ../common/fvect.h |
73 |
gregl |
3.7 |
|
74 |
|
|
rhcopy.o: ../common/resolu.h |
75 |
|
|
|
76 |
|
|
rhcopy.o: ../common/view.h |
77 |
gregl |
3.2 |
|
78 |
gregl |
3.10 |
rhd_glx.o rhd_x11.o rhd_qtree.o rhd_qtree2r.o: ../common/standard.h \ |
79 |
gregl |
3.5 |
../common/mat4.h ../common/fvect.h |
80 |
gregl |
3.10 |
|
81 |
gregl |
3.11 |
rhd_glx.o rhd_x11.o rhd_qtree.o rhd_qtree2r.o: rhd_qtree.h rhdriver.h \ |
82 |
gregl |
3.2 |
../common/tonemap.h ../common/color.h |
83 |
|
|
|
84 |
gregl |
3.11 |
rhd_glx.o rhd_x11.o: x11icon.h |
85 |
gregl |
3.9 |
|
86 |
|
|
dircode.o: ../common/fvect.h |