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