1 |
greg |
1.12 |
# RCSid: $Id: Rmakefile,v 1.11 2006/03/10 19:40:13 schorsch 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 |
schorsch |
1.5 |
# global targets |
27 |
|
|
all: $(PROGS) |
28 |
greg |
1.1 |
|
29 |
schorsch |
1.5 |
install: $(PROGS) |
30 |
|
|
cp $(PROGS) $(INSTDIR) |
31 |
greg |
1.1 |
|
32 |
|
|
clean: |
33 |
greg |
1.9 |
set nonomatch; rm -f *.o $(PROGS) core |
34 |
greg |
1.1 |
|
35 |
schorsch |
1.5 |
# individual targets |
36 |
greg |
1.1 |
|
37 |
greg |
1.7 |
$(DESTDIR)/meta2tga: meta2tga.o rplot.o plot.o palloc.o |
38 |
schorsch |
1.5 |
$(CC) $(CFLAGS) -o meta2tga meta2tga.o rplot.o plot.o $(common) \ |
39 |
greg |
1.12 |
palloc.o -lrtrad |
40 |
greg |
1.1 |
|
41 |
greg |
1.10 |
$(DESTDIR)/meta2bmp: meta2bmp.o rplot.o plot.o palloc.o |
42 |
|
|
$(CC) $(CFLAGS) -o meta2bmp meta2bmp.o rplot.o plot.o $(common) \ |
43 |
greg |
1.12 |
palloc.o -lrtrad |
44 |
greg |
1.10 |
|
45 |
greg |
1.7 |
$(DESTDIR)/x11meta: xmeta.o x11plot.o plot.o palloc.o |
46 |
schorsch |
1.5 |
$(CC) $(CFLAGS) -o x11meta xmeta.o x11plot.o plot.o palloc.o \ |
47 |
greg |
1.12 |
$(common) -lrtrad -lX11 |
48 |
greg |
1.1 |
|
49 |
greg |
1.7 |
$(DESTDIR)/psmeta: psmeta.o psplot.o |
50 |
greg |
1.12 |
$(CC) $(CFLAGS) -o psmeta psmeta.o psplot.o $(common) -lrtrad |
51 |
schorsch |
1.5 |
|
52 |
greg |
1.7 |
$(DESTDIR)/plotin: plotin.o primout.o |
53 |
greg |
1.12 |
$(CC) $(CFLAGS) -o plotin plotin.o primout.o $(common) -lrtrad |
54 |
greg |
1.1 |
|
55 |
greg |
1.7 |
$(DESTDIR)/pexpand: pexpand.o expand.o segment.o palloc.o |
56 |
schorsch |
1.5 |
$(CC) $(CFLAGS) -o pexpand pexpand.o expand.o segment.o \ |
57 |
greg |
1.12 |
$(common) palloc.o -lrtrad |
58 |
greg |
1.1 |
|
59 |
greg |
1.7 |
$(DESTDIR)/psort: psort.o sort.o palloc.o |
60 |
greg |
1.12 |
$(CC) $(CFLAGS) -o psort psort.o sort.o $(common) palloc.o -lrtrad |
61 |
greg |
1.1 |
|
62 |
greg |
1.7 |
$(DESTDIR)/cv: cv.o mfio.o cvhfio.o syscalls.o misc.o |
63 |
schorsch |
1.5 |
$(CC) $(CFLAGS) -o cv cv.o mfio.o cvhfio.o syscalls.o misc.o \ |
64 |
greg |
1.12 |
-lrtrad |
65 |
greg |
1.1 |
|
66 |
greg |
1.7 |
$(DESTDIR)/plot4: plot4.o primout.o |
67 |
greg |
1.12 |
$(CC) $(CFLAGS) -o plot4 plot4.o primout.o $(common) -lrtrad |
68 |
greg |
1.1 |
|
69 |
greg |
1.7 |
$(DESTDIR)/tcurve: tcurve.o tgraph.o primout.o |
70 |
schorsch |
1.5 |
$(CC) $(CFLAGS) -o tcurve tcurve.o tgraph.o primout.o \ |
71 |
greg |
1.1 |
$(common) $(MLIB) |
72 |
|
|
|
73 |
greg |
1.7 |
$(DESTDIR)/tscat: tscat.o tgraph.o primout.o |
74 |
schorsch |
1.5 |
$(CC) $(CFLAGS) -o tscat tscat.o tgraph.o primout.o \ |
75 |
schorsch |
1.11 |
$(common) -lrtrad $(MLIB) |
76 |
greg |
1.1 |
|
77 |
greg |
1.7 |
$(DESTDIR)/tbar: tbar.o tgraph.o primout.o |
78 |
schorsch |
1.11 |
$(CC) $(CFLAGS) -o tbar tbar.o tgraph.o primout.o $(common) -lrtrad $(MLIB) |
79 |
schorsch |
1.5 |
|
80 |
greg |
1.7 |
$(DESTDIR)/mtext: mtext.o primout.o |
81 |
schorsch |
1.11 |
$(CC) $(CFLAGS) -o mtext mtext.o primout.o $(common) -lrtrad |
82 |
greg |
1.1 |
|
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 |
greg |
1.7 |
$(DESTDIR)/bgraph: bgraph.o mgvars.o mgraph.o ../lib/libmeta.a |
92 |
schorsch |
1.5 |
$(CC) $(CFLAGS) -o bgraph bgraph.o mgvars.o mgraph.o \ |
93 |
schorsch |
1.11 |
-lmeta -lrtrad $(MLIB) |
94 |
greg |
1.1 |
|
95 |
greg |
1.7 |
$(DESTDIR)/igraph: igraph.o mgvars.o mgraph.o ../lib/libmeta.a \ |
96 |
greg |
1.1 |
gcalc.o cgraph.o |
97 |
schorsch |
1.5 |
$(CC) $(CFLAGS) -o igraph igraph.o mgvars.o mgraph.o \ |
98 |
schorsch |
1.11 |
cgraph.o gcalc.o -lmeta -lrtrad $(MLIB) |
99 |
greg |
1.1 |
|
100 |
greg |
1.7 |
$(DESTDIR)/dgraph: dgraph.o cgraph.o mgvars.o |
101 |
schorsch |
1.5 |
$(CC) $(CFLAGS) -o dgraph dgraph.o cgraph.o mgvars.o \ |
102 |
schorsch |
1.11 |
-lrtrad $(MLIB) |
103 |
greg |
1.1 |
|
104 |
greg |
1.7 |
$(DESTDIR)/gcomp: gcomp.o gcalc.o mgvars.o |
105 |
schorsch |
1.5 |
$(CC) $(CFLAGS) -o gcomp gcomp.o gcalc.o mgvars.o \ |
106 |
schorsch |
1.11 |
-lrtrad $(MLIB) |
107 |
schorsch |
1.5 |
|
108 |
|
|
# dependencies |
109 |
greg |
1.10 |
$(DESTDIR)/meta2tga $(DESTDIR)/meta2bmp $(DESTDIR)/x11meta \ |
110 |
greg |
1.8 |
$(DESTDIR)/pexpand $(DESTDIR)/plot4 $(DESTDIR)/psort $(DESTDIR)/mtext \ |
111 |
|
|
$(DESTDIR)/plotin ../lib/libmeta.a psmeta: $(common) |
112 |
greg |
1.1 |
|
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 |
greg |
1.9 |
plot.o mplot.o primout.o psort.o pexpand.o cv.o mtext.o plot4.o \ |
121 |
greg |
1.10 |
xmeta.o metacalls.o meta2tga.o \ |
122 |
|
|
meta2bmp.o rplot.o: meta.h ../common/rterror.h |
123 |
greg |
1.1 |
|
124 |
greg |
1.10 |
plot.o mplot.o meta2tga.o meta2bmp.o rplot.o: plot.h |
125 |
greg |
1.1 |
|
126 |
greg |
1.8 |
mplot.o: span.h |
127 |
greg |
1.1 |
|
128 |
greg |
1.10 |
rplot.o meta2bmp.o meta2tga.o: rast.h |