ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/src/meta/Rmakefile
Revision: 1.8
Committed: Fri Nov 5 03:31:37 2004 UTC (20 years ago) by greg
Branch: MAIN
Changes since 1.7: +9 -53 lines
Log Message:
Removed unused programs and files from distribution (sources to CVS attic)

File Contents

# Content
1 # RCSid: $Id: Rmakefile,v 1.7 2003/10/22 02:15:07 greg 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 # global targets
26 all: $(PROGS)
27
28 special: $(SPECIALPROGS)
29
30 install: $(PROGS)
31 cp $(PROGS) $(INSTDIR)
32
33 specialinstall: $(SPECIALPROGS)
34 cp $(SPECIALPROGS) $(INSTDIR)
35
36 clean:
37 set nonomatch; rm -f *.o $(PROGS) $(SPECIALPROGS) core
38
39 # individual targets
40
41 $(DESTDIR)/meta2tga: meta2tga.o rplot.o plot.o palloc.o
42 $(CC) $(CFLAGS) -o meta2tga meta2tga.o rplot.o plot.o $(common) \
43 palloc.o -lrt $(MLIB)
44
45 $(DESTDIR)/t4014: plotout.c ../lib/lib4014.a
46 $(CC) -DFORTEK $(CFLAGS) -o t4014 plotout.c $(common) \
47 -l4014 -lrt $(MLIB)
48 rm -f plotout.o
49
50 $(DESTDIR)/x11meta: xmeta.o x11plot.o plot.o palloc.o
51 $(CC) $(CFLAGS) -o x11meta xmeta.o x11plot.o plot.o palloc.o \
52 $(common) -lrt -lX11 $(MLIB)
53
54 $(DESTDIR)/psmeta: psmeta.o psplot.o
55 $(CC) $(CFLAGS) -o psmeta psmeta.o psplot.o $(common) -lrt $(MLIB)
56
57 $(DESTDIR)/plotout: plotout.o ../lib/lib4014.a
58 $(CC) $(CFLAGS) -o plotout plotout.o $(common) -lplot -lrt -l4014 $(MLIB)
59
60 $(DESTDIR)/plotin: plotin.o primout.o
61 $(CC) $(CFLAGS) -o plotin plotin.o primout.o $(common) -lrt $(MLIB)
62
63 $(DESTDIR)/pexpand: pexpand.o expand.o segment.o palloc.o
64 $(CC) $(CFLAGS) -o pexpand pexpand.o expand.o segment.o \
65 $(common) palloc.o -lrt $(MLIB)
66
67 $(DESTDIR)/psort: psort.o sort.o palloc.o
68 $(CC) $(CFLAGS) -o psort psort.o sort.o $(common) palloc.o -lrt $(MLIB)
69
70 $(DESTDIR)/cv: cv.o mfio.o cvhfio.o syscalls.o misc.o
71 $(CC) $(CFLAGS) -o cv cv.o mfio.o cvhfio.o syscalls.o misc.o \
72 -lrt $(MLIB)
73
74 $(DESTDIR)/plot4: plot4.o primout.o
75 $(CC) $(CFLAGS) -o plot4 plot4.o primout.o $(common) -lrt $(MLIB)
76
77 $(DESTDIR)/tcurve: tcurve.o tgraph.o primout.o
78 $(CC) $(CFLAGS) -o tcurve tcurve.o tgraph.o primout.o \
79 $(common) $(MLIB)
80
81 $(DESTDIR)/tscat: tscat.o tgraph.o primout.o
82 $(CC) $(CFLAGS) -o tscat tscat.o tgraph.o primout.o \
83 $(common) -lrt $(MLIB)
84
85 $(DESTDIR)/tbar: tbar.o tgraph.o primout.o
86 $(CC) $(CFLAGS) -o tbar tbar.o tgraph.o primout.o $(common) -lrt $(MLIB)
87
88 $(DESTDIR)/mtext: mtext.o primout.o
89 $(CC) $(CFLAGS) -o mtext mtext.o primout.o $(common) -lrt
90
91 ../lib/libmeta.a: metacalls.o primout.o progname.o
92 ar rc ../lib/libmeta.a metacalls.o primout.o \
93 $(common) progname.o
94 -ranlib ../lib/libmeta.a
95
96 ../lib/lib4014.a:
97 cd lib4014; make INSTDIR=../../lib "CFLAGS=$(OPT)" install clean
98
99 $(DESTDIR)/bgraph: bgraph.o mgvars.o mgraph.o ../lib/libmeta.a
100 $(CC) $(CFLAGS) -o bgraph bgraph.o mgvars.o mgraph.o \
101 -lmeta -lrt $(MLIB)
102
103 $(DESTDIR)/igraph: igraph.o mgvars.o mgraph.o ../lib/libmeta.a \
104 gcalc.o cgraph.o
105 $(CC) $(CFLAGS) -o igraph igraph.o mgvars.o mgraph.o \
106 cgraph.o gcalc.o -lmeta -lrt $(MLIB)
107
108 $(DESTDIR)/dgraph: dgraph.o cgraph.o mgvars.o
109 $(CC) $(CFLAGS) -o dgraph dgraph.o cgraph.o mgvars.o \
110 -lrt $(MLIB)
111
112 $(DESTDIR)/gcomp: gcomp.o gcalc.o mgvars.o
113 $(CC) $(CFLAGS) -o gcomp gcomp.o gcalc.o mgvars.o \
114 -lrt $(MLIB)
115
116 # dependencies
117 $(DESTDIR)/meta2tga $(DESTDIR)/t4014 $(DESTDIR)/plotout $(DESTDIR)/x11meta \
118 $(DESTDIR)/pexpand $(DESTDIR)/plot4 $(DESTDIR)/psort $(DESTDIR)/mtext \
119 $(DESTDIR)/plotin ../lib/libmeta.a psmeta: $(common)
120
121 cvhfio.o: cvhfio.c hfio.c
122
123 mgvars.o igraph.o mgraph.o cgraph.o gcalc.o: mgvars.h
124
125 mgraph.o: mgraph.h
126
127 misc.o syscalls.o mfio.o hfio.o cvhfio.o palloc.o segment.o sort.o expand.o \
128 plot.o mplot.o primout.o plotout.o \
129 psort.o pexpand.o cv.o mtext.o plot4.o \
130 xmeta.o metacalls.o meta2tga.o rplot.o: meta.h ../common/rterror.h
131
132 plot.o mplot.o meta2tga.o rplot.o: plot.h
133
134 mplot.o: span.h
135
136 rplot.o meta2tga.o: rast.h