10 |
|
LINT = lint |
11 |
|
LINTFLAGS = -DSTRUCTASSIGN -DBSD -DIEEE -DVARIABLE -DFUNCTION \ |
12 |
|
-DINCHAN -DRCONST -DREDEFW -DBIGLIB |
13 |
– |
COMPAT = malloc.o |
13 |
|
|
14 |
|
# |
15 |
|
# The following are user-definable: |
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) $(COMPAT) |
55 |
> |
$(MODOBJS) $(SUPPOBJS) |
56 |
|
RSRC = $(RAYSRC) $(SURFSRC) $(MATSRC) \ |
57 |
|
$(MODSRC) $(SUPPSRC) |
58 |
|
|
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 |
|
# |
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: |