ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/src/meta/Rmakefile
Revision: 1.9
Committed: Fri Nov 5 17:51:16 2004 UTC (19 years, 4 months ago) by greg
Branch: MAIN
Changes since 1.8: +4 -18 lines
Log Message:
Removed plotout and lib4014 it depends on

File Contents

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