ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/src/meta/Rmakefile
Revision: 1.10
Committed: Wed May 4 23:43:19 2005 UTC (18 years, 10 months ago) by greg
Branch: MAIN
CVS Tags: rad3R7P2, rad3R7P1
Changes since 1.9: +12 -6 lines
Log Message:
Created meta2bmp file to generate BMP output from metafile graphics

File Contents

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