ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/src/meta/Rmakefile
Revision: 1.7
Committed: Wed Oct 22 02:15:07 2003 UTC (20 years, 6 months ago) by greg
Branch: MAIN
CVS Tags: rad3R6, rad3R6P1
Changes since 1.6: +33 -32 lines
Log Message:
Fixed Rmakefile for FreeBSD version of make, which wasn't happy

File Contents

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