1 |
– |
# SCCSid "$SunId$ LBL" |
2 |
– |
|
1 |
|
# |
2 |
+ |
# SCCSid "$SunId$ LBL" |
3 |
|
# Compiles for ray tracing programs. |
4 |
|
# |
5 |
|
|
6 |
|
OPT = -O -pipe |
7 |
|
MACH = -DSTRUCTASSIGN -DBSD -DIEEE -f68881 /usr/lib/libm.il |
8 |
< |
CFLAGS = $(MACH) $(OPT) -I../common |
8 |
> |
CFLAGS = $(MACH) $(OPT) -I../common -L../lib |
9 |
|
CC = cc |
10 |
|
LINT = lint |
11 |
|
LINTFLAGS = -DSTRUCTASSIGN -DBSD -DIEEE -DVARIABLE -DFUNCTION \ |
12 |
|
-DINCHAN -DRCONST -DREDEFW -DBIGLIB |
13 |
+ |
COMPAT = malloc.o |
14 |
|
|
15 |
|
# |
16 |
|
# The following are user-definable: |
28 |
|
# |
29 |
|
# Library routines: |
30 |
|
# |
31 |
< |
LIBS = ../common/librt.a -lm |
31 |
> |
LIBS = -lrt -lm |
32 |
|
|
33 |
|
# |
34 |
|
# Device drivers for rview (see also devtable.c): |
53 |
|
RVSRC = rmain.c rview.c rv2.c rv3.c $(DSRC) $(RSRC) |
54 |
|
|
55 |
|
ROBJS = $(RAYOBJS) $(SURFOBJS) $(MATOBJS) \ |
56 |
< |
$(MODOBJS) $(SUPPOBJS) |
56 |
> |
$(MODOBJS) $(SUPPOBJS) $(COMPAT) |
57 |
|
RSRC = $(RAYSRC) $(SURFSRC) $(MATSRC) \ |
58 |
|
$(MODSRC) $(SUPPSRC) |
59 |
|
|
73 |
|
MODOBJS = p_func.o t_func.o p_data.o t_data.o text.o mx_func.o mx_data.o |
74 |
|
MODSRC = p_func.c t_func.c p_data.c t_data.c text.c mx_func.c mx_data.c |
75 |
|
|
76 |
< |
SUPPOBJS = zeroes.o calexpr.o caldefn.o func.o noise3.o data.o |
77 |
< |
SUPPSRC = zeroes.c calexpr.c caldefn.c func.c noise3.c data.c |
76 |
> |
SUPPOBJS = zeroes.o calexpr.o caldefn.o func.o noise3.o data.o readfargs.o |
77 |
> |
SUPPSRC = zeroes.c calexpr.c caldefn.c func.c noise3.c data.c readfargs.c |
78 |
|
|
79 |
|
# |
80 |
|
# What this makefile produces: |
84 |
|
|
85 |
|
all: $(PROGS) |
86 |
|
|
87 |
< |
install: $(PROGS) |
87 |
> |
install: $(PROGS) rayinit.cal |
88 |
|
$(INSTALL) $(PROGS) $(INSTDIR) |
89 |
+ |
rm -f $(LIBDIR)/rayinit.cal |
90 |
+ |
cp rayinit.cal $(LIBDIR) |
91 |
|
|
92 |
|
sun: $(DEVDIR)/sun $(DEVDIR)/sun.com |
93 |
|
|
95 |
|
|
96 |
|
aed: $(DEVDIR)/aed |
97 |
|
|
98 |
+ |
tiff: |
99 |
+ |
|
100 |
|
clean: |
101 |
|
set nonomatch; rm -f $(PROGS) *.o core |
102 |
|
|
116 |
|
$(DESTDIR)/rview: $(RVOBJS) |
117 |
|
$(CC) $(CFLAGS) -o $(DESTDIR)/rview $(RVOBJS) $(DLIBS) $(LIBS) |
118 |
|
|
115 |
– |
$(DESTDIR)/rtrace $(DESTDIR)/rpict $(DESTDIR)/rview: ../common/librt.a |
116 |
– |
|
119 |
|
$(DESTDIR)/lookamb: lookamb.o |
120 |
|
$(CC) $(CFLAGS) -o $(DESTDIR)/lookamb lookamb.o |
121 |
|
|
149 |
|
rvmain.o: rmain.c |
150 |
|
$(CC) $(CFLAGS) -DRVIEW -DDEFPATH=\":$(LIBDIR)\" -c rmain.c |
151 |
|
mv rmain.o rvmain.o |
152 |
+ |
|
153 |
+ |
readfargs.o: readfargs.c ../common/object.h |
154 |
+ |
$(CC) $(CFLAGS) -DMEMHOG -c readfargs.c |
155 |
+ |
|
156 |
+ |
malloc.o: malloc.c |
157 |
+ |
$(CC) $(CFLAGS) -DMCOMP -c malloc.c |
158 |
|
|
159 |
|
# |
160 |
|
# Uncomment the following to model dispersion: |