ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/src/meta/Rmakefile
Revision: 1.16
Committed: Tue Jul 3 22:29:01 2018 UTC (5 years, 10 months ago) by greg
Branch: MAIN
CVS Tags: rad5R2, rad5R3
Changes since 1.15: +3 -2 lines
Log Message:
Added AR variable to provide a way to override standard library builder

File Contents

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