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 |
|
|
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 |
|
|
107 |
|
# Links: |
108 |
|
# |
109 |
|
|
110 |
< |
$(DESTDIR)/rtrace: $(RTOBJS) ../common/librt.a |
110 |
> |
$(DESTDIR)/rtrace: $(RTOBJS) |
111 |
|
$(CC) $(CFLAGS) -o $(DESTDIR)/rtrace $(RTOBJS) $(LIBS) |
112 |
|
|
113 |
< |
$(DESTDIR)/rpict: $(RPOBJS) ../common/librt.a |
113 |
> |
$(DESTDIR)/rpict: $(RPOBJS) |
114 |
|
$(CC) $(CFLAGS) -o $(DESTDIR)/rpict $(RPOBJS) $(LIBS) |
115 |
|
|
116 |
< |
$(DESTDIR)/rview: $(RVOBJS) ../common/librt.a |
116 |
> |
$(DESTDIR)/rview: $(RVOBJS) |
117 |
|
$(CC) $(CFLAGS) -o $(DESTDIR)/rview $(RVOBJS) $(DLIBS) $(LIBS) |
118 |
|
|
119 |
|
$(DESTDIR)/lookamb: lookamb.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: |