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): |
42 |
|
# Standard object files: |
43 |
|
# |
44 |
|
|
45 |
< |
RTOBJS = rtmain.o rtrace.o $(ROBJS) |
46 |
< |
RTSRC = rmain.c rtrace.c $(RSRC) |
45 |
> |
RTOBJS = rtmain.o rtrace.o $(ROBJS) Version.o |
46 |
> |
RTSRC = rmain.c rtrace.c $(RSRC) Version.c |
47 |
|
|
48 |
< |
RPOBJS = rpmain.o rpict.o $(ROBJS) |
49 |
< |
RPSRC = rmain.c rpict.c $(RSRC) |
48 |
> |
RPOBJS = rpmain.o rpict.o $(ROBJS) Version.o |
49 |
> |
RPSRC = rmain.c rpict.c $(RSRC) Version.c |
50 |
|
|
51 |
< |
RVOBJS = rvmain.o rview.o rv2.o rv3.o $(DOBJS) $(ROBJS) |
52 |
< |
RVSRC = rmain.c rview.c rv2.c rv3.c $(DSRC) $(RSRC) |
51 |
> |
RVOBJS = rvmain.o rview.o rv2.o rv3.o $(DOBJS) $(ROBJS) Version.o |
52 |
> |
RVSRC = rmain.c rview.c rv2.c rv3.c $(DSRC) $(RSRC) Version.c |
53 |
|
|
54 |
|
ROBJS = $(RAYOBJS) $(SURFOBJS) $(MATOBJS) \ |
55 |
|
$(MODOBJS) $(SUPPOBJS) |
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 readfargs.o |
76 |
< |
SUPPSRC = zeroes.c calexpr.c caldefn.c func.c noise3.c data.c readfargs.c |
75 |
> |
SUPPOBJS = zeroes.o calexpr.o caldefn.o func.o noise3.o data.o readfargs.o \ |
76 |
> |
malloc.o |
77 |
> |
SUPPSRC = zeroes.c calexpr.c caldefn.c func.c noise3.c data.c readfargs.c \ |
78 |
> |
malloc.c |
79 |
|
|
80 |
+ |
HEADERS = ambient.h ray.h data.h otspecial.h source.h |
81 |
+ |
|
82 |
|
# |
83 |
|
# What this makefile produces: |
84 |
|
# |
110 |
|
# Links: |
111 |
|
# |
112 |
|
|
113 |
< |
$(DESTDIR)/rtrace: $(RTOBJS) ../common/librt.a |
113 |
> |
$(DESTDIR)/rtrace: $(RTOBJS) |
114 |
|
$(CC) $(CFLAGS) -o $(DESTDIR)/rtrace $(RTOBJS) $(LIBS) |
115 |
|
|
116 |
< |
$(DESTDIR)/rpict: $(RPOBJS) ../common/librt.a |
116 |
> |
$(DESTDIR)/rpict: $(RPOBJS) |
117 |
|
$(CC) $(CFLAGS) -o $(DESTDIR)/rpict $(RPOBJS) $(LIBS) |
118 |
|
|
119 |
< |
$(DESTDIR)/rview: $(RVOBJS) ../common/librt.a |
119 |
> |
$(DESTDIR)/rview: $(RVOBJS) |
120 |
|
$(CC) $(CFLAGS) -o $(DESTDIR)/rview $(RVOBJS) $(DLIBS) $(LIBS) |
121 |
|
|
122 |
|
$(DESTDIR)/lookamb: lookamb.o |
156 |
|
readfargs.o: readfargs.c ../common/object.h |
157 |
|
$(CC) $(CFLAGS) -DMEMHOG -c readfargs.c |
158 |
|
|
159 |
+ |
malloc.o: malloc.c |
160 |
+ |
$(CC) $(CFLAGS) -DMCOMP -c malloc.c |
161 |
+ |
|
162 |
|
# |
163 |
|
# Uncomment the following to model dispersion: |
164 |
|
# |
193 |
|
|
194 |
|
nwsdev.h: nwsdev.cps newsconstants.h |
195 |
|
cps nwsdev.cps |
196 |
+ |
|
197 |
+ |
# |
198 |
+ |
# Version module: |
199 |
+ |
# |
200 |
+ |
|
201 |
+ |
Version.c: VERSION $(RSRC) $(HEADERS) |
202 |
+ |
( cat VERSION ; date ; whoami ; hostname ) > Version.c |
203 |
+ |
ed - Version.c < verscript.ed |
204 |
|
|
205 |
|
# |
206 |
|
# Include dependencies: |