ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/src/meta/Rmakefile
Revision: 1.5
Committed: Wed Aug 20 09:28:07 2003 UTC (21 years, 3 months ago) by schorsch
Branch: MAIN
Changes since 1.4: +88 -109 lines
Log Message:
Adapted Rmakefile to work the same way as the others.

File Contents

# Content
1 # RCSid: $Id: Rmakefile,v 1.4 2003/08/01 14:14:24 schorsch Exp $
2 #
3 # Compiles:
4 #
5
6 OPT = -O
7 MACH =
8 CC = cc
9 MLIB = -lm
10 CFLAGS = -DMDIR=\"$(MLIBDIR)/\" $(OPT) $(MACH) -I../common -L../lib
11
12 LIBDIR = /usr/local/lib
13 MLIBDIR = $(LIBDIR)/meta
14 DESTDIR = .
15 INSTDIR = /usr/local/bin
16
17 # target lists
18 common = mfio.o syscalls.o misc.o
19
20 PROGS = $(DESTDIR)/meta2tga $(DESTDIR)/pexpand $(DESTDIR)/psort \
21 $(DESTDIR)/cv $(DESTDIR)/psmeta $(DESTDIR)/plotin \
22 $(DESTDIR)/x11meta $(DESTDIR)/bgraph $(DESTDIR)/igraph \
23 $(DESTDIR)/dgraph $(DESTDIR)/gcomp $(DESTDIR)/plot4
24
25 SPECIALPROGS = $(DESTDIR)/mt160l $(DESTDIR)/mt160 $(DESTDIR)/mtext \
26 $(DESTDIR)/plotout $(DESTDIR)/okimate $(DESTDIR)/tbar \
27 $(DESTDIR)/mx80 $(DESTDIR)/t4014 $(DESTDIR)/imagew \
28 $(DESTDIR)/impress $(DESTDIR)/aed5 $(DESTDIR)/tscat \
29 $(DESTDIR)/tbar #$(DESTDIR)/xmeta
30
31 LIBMETA = ../lib/libmeta.a
32
33 # global targets
34 all: $(PROGS)
35
36 special: $(SPECIALPROGS)
37
38 install: $(PROGS)
39 cp $(PROGS) $(INSTDIR)
40
41 specialinstall: $(SPECIALPROGS)
42 cp $(SPECIALPROGS) $(INSTDIR)
43
44 clean:
45 set nonomatch; rm -f *.o $(PROGS) $(SPECIALPROGS) core
46
47 # individual targets
48 mt160l: mt160l.o mplot.o plot.o palloc.o
49 $(CC) $(CFLAGS) -o mt160l mt160l.o mplot.o plot.o \
50 $(common) -lrt palloc.o
51
52 okimate: okimate.o mplot.o plot.o palloc.o
53 $(CC) $(CFLAGS) -o okimate okimate.o mplot.o plot.o \
54 $(common) palloc.o -lrt
55
56 imagew: imagew.o mplot.o plot.o palloc.o
57 $(CC) $(CFLAGS) -o imagew imagew.o mplot.o plot.o $(common) \
58 palloc.o -lrt $(MLIB)
59
60 mt160: mt160.o mplot.o plot.o palloc.o
61 $(CC) $(CFLAGS) -o mt160 mt160.o mplot.o plot.o $(common) \
62 palloc.o -lrt
63
64 meta2tga: meta2tga.o rplot.o plot.o palloc.o
65 $(CC) $(CFLAGS) -o meta2tga meta2tga.o rplot.o plot.o $(common) \
66 palloc.o -lrt $(MLIB)
67
68 mx80: mx80.o mplot.o plot.o palloc.o
69 $(CC) $(CFLAGS) -o mx80 mx80.o mplot.o plot.o $(common) \
70 palloc.o -lrt $(MLIB)
71
72 t4014: plotout.c ../lib/lib4014.a
73 $(CC) -DFORTEK $(CFLAGS) -o t4014 plotout.c $(common) \
74 -l4014 -lrt $(MLIB)
75 rm -f plotout.o
76
77 impress: impress.o implot.o imPfuncs.o plot.o
78 $(CC) $(CFLAGS) -o impress impress.o implot.o imPfuncs.o \
79 plot.o $(common) -lrt $(MLIB)
80
81 aed5: aed5.o
82 $(CC) $(CFLAGS) -o aed5 aed5.o $(common) -lrt $(MLIB)
83
84 #xmeta: xmeta.o xplot.o plot.o palloc.o
85 # $(CC) $(CFLAGS) -o xmeta xmeta.o xplot.o plot.o palloc.o \
86 #$(common) -lrt -lX11 $(MLIB)
87
88 x11meta: xmeta.o x11plot.o plot.o palloc.o
89 $(CC) $(CFLAGS) -o x11meta xmeta.o x11plot.o plot.o palloc.o \
90 $(common) -lrt -lX11 $(MLIB)
91
92 psmeta: psmeta.o psplot.o
93 $(CC) $(CFLAGS) -o psmeta psmeta.o psplot.o $(common) -lrt $(MLIB)
94
95 plotout: plotout.o ../lib/lib4014.a
96 $(CC) $(CFLAGS) -o plotout plotout.o $(common) -lplot -lrt -l4014 $(MLIB)
97
98 plotin: plotin.o primout.o
99 $(CC) $(CFLAGS) -o plotin plotin.o primout.o $(common) -lrt $(MLIB)
100
101 pexpand: pexpand.o expand.o segment.o palloc.o
102 $(CC) $(CFLAGS) -o pexpand pexpand.o expand.o segment.o \
103 $(common) palloc.o -lrt $(MLIB)
104
105 psort: psort.o sort.o palloc.o
106 $(CC) $(CFLAGS) -o psort psort.o sort.o $(common) palloc.o -lrt $(MLIB)
107
108 cv: cv.o mfio.o cvhfio.o syscalls.o misc.o
109 $(CC) $(CFLAGS) -o cv cv.o mfio.o cvhfio.o syscalls.o misc.o \
110 -lrt $(MLIB)
111
112 plot4: plot4.o primout.o
113 $(CC) $(CFLAGS) -o plot4 plot4.o primout.o $(common) -lrt $(MLIB)
114
115 tcurve: tcurve.o tgraph.o primout.o
116 $(CC) $(CFLAGS) -o tcurve tcurve.o tgraph.o primout.o \
117 $(common) $(MLIB)
118
119 tscat: tscat.o tgraph.o primout.o
120 $(CC) $(CFLAGS) -o tscat tscat.o tgraph.o primout.o \
121 $(common) -lrt $(MLIB)
122
123 tbar: tbar.o tgraph.o primout.o
124 $(CC) $(CFLAGS) -o tbar tbar.o tgraph.o primout.o $(common) -lrt $(MLIB)
125
126 mtext: mtext.o primout.o
127 $(CC) $(CFLAGS) -o mtext mtext.o primout.o $(common) -lrt
128
129 ../lib/libmeta.a: metacalls.o primout.o progname.o
130 ar rc ../lib/libmeta.a metacalls.o primout.o \
131 $(common) progname.o
132 -ranlib ../lib/libmeta.a
133
134 ../lib/lib4014.a:
135 cd lib4014; make INSTDIR=../../lib "CFLAGS=$(OPT)" install clean
136
137 bgraph: bgraph.o mgvars.o mgraph.o ../lib/libmeta.a
138 $(CC) $(CFLAGS) -o bgraph bgraph.o mgvars.o mgraph.o \
139 -lmeta -lrt $(MLIB)
140
141 igraph: igraph.o mgvars.o mgraph.o ../lib/libmeta.a \
142 gcalc.o cgraph.o
143 $(CC) $(CFLAGS) -o igraph igraph.o mgvars.o mgraph.o \
144 cgraph.o gcalc.o -lmeta -lrt $(MLIB)
145
146 dgraph: dgraph.o cgraph.o mgvars.o
147 $(CC) $(CFLAGS) -o dgraph dgraph.o cgraph.o mgvars.o \
148 -lrt $(MLIB)
149
150 gcomp: gcomp.o gcalc.o mgvars.o
151 $(CC) $(CFLAGS) -o gcomp gcomp.o gcalc.o mgvars.o \
152 -lrt $(MLIB)
153
154 # dependencies
155 meta2tga okimate impress mx80 t4014 plotout x11meta \
156 mt160l mt160 pexpand plot4 psort imagew tcurve mtext \
157 tscat plotin tbar xmeta ../lib/libmeta.a aed5 psmeta: $(common)
158
159 cvhfio.o: cvhfio.c hfio.c
160
161 mgvars.o igraph.o mgraph.o cgraph.o gcalc.o: mgvars.h
162
163 mgraph.o: mgraph.h
164
165 misc.o syscalls.o mfio.o hfio.o cvhfio.o palloc.o segment.o sort.o expand.o \
166 plot.o mplot.o primout.o tgraph.o mt160l.o mt160.o mx80.o plotout.o \
167 psort.o pexpand.o cv.o tcurve.o tscat.o mtext.o tbar.o plot4.o \
168 xmeta.o metacalls.o xplot.o meta2tga.o rplot.o: meta.h ../common/rterror.h
169
170 plot.o mplot.o mt160l.o mt160.o mx80.o xmeta.o xplot.o \
171 meta2tga.o rplot.o implot.o: plot.h
172
173 mplot.o mt160l.o mt160.o mx80.o: span.h
174
175 tgraph.o tcurve.o tscat.o tbar.o: tgraph.h
176
177 impress.o implot.o imPfuncs.o: imPfuncs.h
178
179 rplot.o meta2tga.o: rast.h