ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/src/meta/Rmakefile
Revision: 1.15
Committed: Mon Oct 12 20:10:50 2015 UTC (8 years, 7 months ago) by greg
Branch: MAIN
CVS Tags: rad5R1
Changes since 1.14: +8 -2 lines
Log Message:
Added installation of required library files

File Contents

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