1 |
greg |
1.10 |
# RCSid: $Id: Rmakefile,v 1.9 2004/11/05 17:51:16 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 |
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.1 |
palloc.o -lrt $(MLIB) |
40 |
|
|
|
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 |
|
|
palloc.o -lrt $(MLIB) |
44 |
|
|
|
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.1 |
$(common) -lrt -lX11 $(MLIB) |
48 |
|
|
|
49 |
greg |
1.7 |
$(DESTDIR)/psmeta: psmeta.o psplot.o |
50 |
schorsch |
1.5 |
$(CC) $(CFLAGS) -o psmeta psmeta.o psplot.o $(common) -lrt $(MLIB) |
51 |
|
|
|
52 |
greg |
1.7 |
$(DESTDIR)/plotin: plotin.o primout.o |
53 |
schorsch |
1.5 |
$(CC) $(CFLAGS) -o plotin plotin.o primout.o $(common) -lrt $(MLIB) |
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.1 |
$(common) palloc.o -lrt $(MLIB) |
58 |
|
|
|
59 |
greg |
1.7 |
$(DESTDIR)/psort: psort.o sort.o palloc.o |
60 |
schorsch |
1.5 |
$(CC) $(CFLAGS) -o psort psort.o sort.o $(common) palloc.o -lrt $(MLIB) |
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.1 |
-lrt $(MLIB) |
65 |
|
|
|
66 |
greg |
1.7 |
$(DESTDIR)/plot4: plot4.o primout.o |
67 |
schorsch |
1.5 |
$(CC) $(CFLAGS) -o plot4 plot4.o primout.o $(common) -lrt $(MLIB) |
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 |
greg |
1.1 |
$(common) -lrt $(MLIB) |
76 |
|
|
|
77 |
greg |
1.7 |
$(DESTDIR)/tbar: tbar.o tgraph.o primout.o |
78 |
schorsch |
1.5 |
$(CC) $(CFLAGS) -o tbar tbar.o tgraph.o primout.o $(common) -lrt $(MLIB) |
79 |
|
|
|
80 |
greg |
1.7 |
$(DESTDIR)/mtext: mtext.o primout.o |
81 |
schorsch |
1.5 |
$(CC) $(CFLAGS) -o mtext mtext.o primout.o $(common) -lrt |
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 |
greg |
1.1 |
-lmeta -lrt $(MLIB) |
94 |
|
|
|
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 |
greg |
1.1 |
cgraph.o gcalc.o -lmeta -lrt $(MLIB) |
99 |
|
|
|
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 |
greg |
1.1 |
-lrt $(MLIB) |
103 |
|
|
|
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 |
greg |
1.1 |
-lrt $(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 |