| 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 \ |
| 27 |
|
# |
| 28 |
|
# Library routines: |
| 29 |
|
# |
| 30 |
< |
LIBS = ../common/librt.a -lm |
| 30 |
> |
LIBS = -lrt -lm |
| 31 |
|
|
| 32 |
|
# |
| 33 |
|
# Device drivers for rview (see also devtable.c): |
| 72 |
|
MODOBJS = p_func.o t_func.o p_data.o t_data.o text.o mx_func.o mx_data.o |
| 73 |
|
MODSRC = p_func.c t_func.c p_data.c t_data.c text.c mx_func.c mx_data.c |
| 74 |
|
|
| 75 |
< |
SUPPOBJS = zeroes.o calexpr.o caldefn.o func.o noise3.o data.o |
| 76 |
< |
SUPPSRC = zeroes.c calexpr.c caldefn.c func.c noise3.c data.c |
| 75 |
> |
SUPPOBJS = zeroes.o calexpr.o caldefn.o func.o noise3.o data.o readfargs.o |
| 76 |
> |
SUPPSRC = zeroes.c calexpr.c caldefn.c func.c noise3.c data.c readfargs.c |
| 77 |
|
|
| 78 |
|
# |
| 79 |
|
# What this makefile produces: |
| 83 |
|
|
| 84 |
|
all: $(PROGS) |
| 85 |
|
|
| 86 |
< |
install: $(PROGS) |
| 86 |
> |
install: $(PROGS) rayinit.cal |
| 87 |
|
$(INSTALL) $(PROGS) $(INSTDIR) |
| 88 |
+ |
rm -f $(LIBDIR)/rayinit.cal |
| 89 |
+ |
cp rayinit.cal $(LIBDIR) |
| 90 |
|
|
| 91 |
|
sun: $(DEVDIR)/sun $(DEVDIR)/sun.com |
| 92 |
|
|
| 94 |
|
|
| 95 |
|
aed: $(DEVDIR)/aed |
| 96 |
|
|
| 97 |
+ |
tiff: |
| 98 |
+ |
|
| 99 |
|
clean: |
| 100 |
|
set nonomatch; rm -f $(PROGS) *.o core |
| 101 |
|
|
| 115 |
|
$(DESTDIR)/rview: $(RVOBJS) |
| 116 |
|
$(CC) $(CFLAGS) -o $(DESTDIR)/rview $(RVOBJS) $(DLIBS) $(LIBS) |
| 117 |
|
|
| 115 |
– |
$(DESTDIR)/rtrace $(DESTDIR)/rpict $(DESTDIR)/rview: ../common/librt.a |
| 116 |
– |
|
| 118 |
|
$(DESTDIR)/lookamb: lookamb.o |
| 119 |
|
$(CC) $(CFLAGS) -o $(DESTDIR)/lookamb lookamb.o |
| 120 |
|
|
| 148 |
|
rvmain.o: rmain.c |
| 149 |
|
$(CC) $(CFLAGS) -DRVIEW -DDEFPATH=\":$(LIBDIR)\" -c rmain.c |
| 150 |
|
mv rmain.o rvmain.o |
| 151 |
+ |
|
| 152 |
+ |
readfargs.o: readfargs.c ../common/object.h |
| 153 |
+ |
$(CC) $(CFLAGS) -DMEMHOG -c readfargs.c |
| 154 |
|
|
| 155 |
|
# |
| 156 |
|
# Uncomment the following to model dispersion: |