1 |
|
# |
2 |
|
# SCCSid "$SunId$ LBL" |
3 |
< |
# Compiles for ray tracing programs. |
3 |
> |
# Compiles for ray tracing programs. |
4 |
|
# |
5 |
|
|
6 |
|
OPT = -O |
7 |
< |
MACH = -DSTRUCTASSIGN -DBSD |
7 |
> |
MACH = -DBSD |
8 |
|
CFLAGS = $(MACH) $(OPT) -I../common -L../lib |
9 |
+ |
SPECIAL = aed |
10 |
|
CC = cc |
11 |
|
LINT = lint |
12 |
< |
LINTFLAGS = -DSTRUCTASSIGN -DBSD -DIEEE -DVARIABLE -DFUNCTION \ |
13 |
< |
-DINCHAN -DRCONST -DREDEFW -DBIGLIB |
12 |
> |
LINTFLAGS = -DBSD -DVARIABLE -DFUNCTION \ |
13 |
> |
-DINCHAN -DRCONST -DREDEFW |
14 |
|
|
15 |
|
# |
16 |
|
# The following are user-definable: |
86 |
|
|
87 |
|
PROGS = $(DESTDIR)/rtrace $(DESTDIR)/rpict $(DESTDIR)/rview $(DESTDIR)/lookamb |
88 |
|
|
89 |
< |
all: $(PROGS) |
89 |
> |
all: $(PROGS) $(SPECIAL) |
90 |
|
|
91 |
< |
install: $(PROGS) rayinit.cal |
91 |
> |
install: $(PROGS) $(SPECIAL) rayinit.cal |
92 |
|
$(INSTALL) $(PROGS) $(INSTDIR) |
93 |
|
rm -f $(LIBDIR)/rayinit.cal |
94 |
|
cp rayinit.cal $(LIBDIR) |
99 |
|
|
100 |
|
aed: $(DEVDIR)/aed |
101 |
|
|
102 |
+ |
sgi: $(DEVDIR)/news |
103 |
+ |
|
104 |
|
tiff: |
105 |
|
|
106 |
|
clean: |
140 |
|
$(CC) $(CFLAGS) -s -o $(DEVDIR)/aed aed.o colortab.o \ |
141 |
|
devmain.o tty.o editline.o $(LIBS) |
142 |
|
|
143 |
+ |
$(DEVDIR)/news: nwsdev.o devmain.o editline.o |
144 |
+ |
$(CC) $(CFLAGS) -s -o $(DEVDIR)/news nwsdev.o devmain.o editline.o \ |
145 |
+ |
-lcps $(LIBS) |
146 |
+ |
|
147 |
|
# |
148 |
|
# Special compiles: |
149 |
|
# |
196 |
|
$(CC) $(CFLAGS) -DFUNCTION -DREDEFW -c caldefn.c |
197 |
|
|
198 |
|
nwsdev.o: nwsdev.c nwsdev.h newsconstants.h |
199 |
< |
$(CC) $(CFLAGS) -c nwsdev.c |
199 |
> |
$(CC) $(CFLAGS) -Dnws_init=dinit -c nwsdev.c |
200 |
|
|
201 |
|
nwsdev.h: nwsdev.cps newsconstants.h |
202 |
|
cps nwsdev.cps |
245 |
|
|
246 |
|
rv2.o rv3.o rview.o: rpaint.h driver.h ../common/view.h |
247 |
|
|
248 |
< |
mirror.o source.o srcsamp.o srcsupp.o virtuals.o: source.h |
248 |
> |
m_direct.o m_mirror.o \ |
249 |
> |
source.o srcsamp.o srcsupp.o virtuals.o: source.h |
250 |
|
|
251 |
|
cone.o data.o devcomm.o initotypes.o \ |
252 |
|
octree.o: ../common/standard.h ../common/mat4.h ../common/fvect.h |
264 |
|
x11.o: x11icon.h |
265 |
|
|
266 |
|
ambient.o ambcomp.o lookamb.o: ambient.h |
267 |
+ |
|
268 |
+ |
data.o rmain.o rpict.o rv2.o: ../common/resolu.h |
269 |
+ |
|
270 |
+ |
func.o m_brdf.o m_direct.o mx_data.o mx_func.o p_data.o \ |
271 |
+ |
p_func.o t_data.o t_func.o: func.h |