| 1 | schorsch | 1.6 | # RCSid: $Id: Rmakefile,v 1.5 2003/08/20 09:28:07 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 |  |  | $(DESTDIR)/dgraph $(DESTDIR)/gcomp $(DESTDIR)/plot4 | 
| 24 | greg | 1.1 |  | 
| 25 | schorsch | 1.5 | SPECIALPROGS = $(DESTDIR)/mt160l $(DESTDIR)/mt160 $(DESTDIR)/mtext \ | 
| 26 |  |  | $(DESTDIR)/plotout $(DESTDIR)/okimate $(DESTDIR)/tbar \ | 
| 27 |  |  | $(DESTDIR)/mx80 $(DESTDIR)/t4014 $(DESTDIR)/imagew \ | 
| 28 |  |  | $(DESTDIR)/impress $(DESTDIR)/aed5 $(DESTDIR)/tscat \ | 
| 29 | schorsch | 1.6 | $(DESTDIR)/tcurve #$(DESTDIR)/xmeta | 
| 30 | greg | 1.1 |  | 
| 31 | schorsch | 1.5 | LIBMETA = ../lib/libmeta.a | 
| 32 | greg | 1.1 |  | 
| 33 | schorsch | 1.5 | # global targets | 
| 34 |  |  | all: $(PROGS) | 
| 35 | greg | 1.1 |  | 
| 36 | schorsch | 1.5 | special: $(SPECIALPROGS) | 
| 37 | greg | 1.1 |  | 
| 38 | schorsch | 1.5 | install: $(PROGS) | 
| 39 |  |  | cp $(PROGS) $(INSTDIR) | 
| 40 | greg | 1.1 |  | 
| 41 | schorsch | 1.5 | specialinstall: $(SPECIALPROGS) | 
| 42 |  |  | cp $(SPECIALPROGS) $(INSTDIR) | 
| 43 | greg | 1.1 |  | 
| 44 |  |  | clean: | 
| 45 | schorsch | 1.5 | set nonomatch; rm -f *.o $(PROGS) $(SPECIALPROGS) core | 
| 46 | greg | 1.1 |  | 
| 47 | schorsch | 1.5 | # individual targets | 
| 48 |  |  | mt160l: mt160l.o mplot.o plot.o palloc.o | 
| 49 |  |  | $(CC) $(CFLAGS) -o mt160l mt160l.o mplot.o plot.o \ | 
| 50 | greg | 1.1 | $(common) -lrt palloc.o | 
| 51 |  |  |  | 
| 52 | schorsch | 1.5 | okimate:        okimate.o mplot.o plot.o palloc.o | 
| 53 |  |  | $(CC) $(CFLAGS) -o okimate okimate.o mplot.o plot.o \ | 
| 54 | greg | 1.1 | $(common) palloc.o -lrt | 
| 55 |  |  |  | 
| 56 | schorsch | 1.5 | imagew: imagew.o mplot.o plot.o palloc.o | 
| 57 |  |  | $(CC) $(CFLAGS) -o imagew imagew.o mplot.o plot.o $(common) \ | 
| 58 | greg | 1.1 | palloc.o -lrt $(MLIB) | 
| 59 |  |  |  | 
| 60 | schorsch | 1.5 | mt160:  mt160.o mplot.o plot.o palloc.o | 
| 61 |  |  | $(CC) $(CFLAGS) -o mt160 mt160.o mplot.o plot.o $(common) \ | 
| 62 | greg | 1.1 | palloc.o -lrt | 
| 63 |  |  |  | 
| 64 | schorsch | 1.5 | meta2tga:       meta2tga.o rplot.o plot.o palloc.o | 
| 65 |  |  | $(CC) $(CFLAGS) -o meta2tga meta2tga.o rplot.o plot.o $(common) \ | 
| 66 | greg | 1.1 | palloc.o -lrt $(MLIB) | 
| 67 |  |  |  | 
| 68 | schorsch | 1.5 | mx80:   mx80.o mplot.o plot.o palloc.o | 
| 69 |  |  | $(CC) $(CFLAGS) -o mx80 mx80.o mplot.o plot.o $(common) \ | 
| 70 | greg | 1.1 | palloc.o -lrt $(MLIB) | 
| 71 |  |  |  | 
| 72 | schorsch | 1.5 | t4014:  plotout.c ../lib/lib4014.a | 
| 73 |  |  | $(CC) -DFORTEK $(CFLAGS) -o t4014 plotout.c $(common) \ | 
| 74 | greg | 1.1 | -l4014 -lrt $(MLIB) | 
| 75 |  |  | rm -f plotout.o | 
| 76 |  |  |  | 
| 77 | schorsch | 1.5 | impress:        impress.o implot.o imPfuncs.o plot.o | 
| 78 |  |  | $(CC) $(CFLAGS) -o impress impress.o implot.o imPfuncs.o \ | 
| 79 | greg | 1.1 | plot.o $(common) -lrt $(MLIB) | 
| 80 |  |  |  | 
| 81 | schorsch | 1.5 | aed5:   aed5.o | 
| 82 |  |  | $(CC) $(CFLAGS) -o aed5 aed5.o $(common) -lrt $(MLIB) | 
| 83 |  |  |  | 
| 84 |  |  | #xmeta: xmeta.o xplot.o plot.o palloc.o | 
| 85 |  |  | #       $(CC) $(CFLAGS) -o xmeta xmeta.o xplot.o plot.o palloc.o \ | 
| 86 |  |  | #$(common) -lrt -lX11 $(MLIB) | 
| 87 | greg | 1.1 |  | 
| 88 | schorsch | 1.5 | x11meta:        xmeta.o x11plot.o plot.o palloc.o | 
| 89 |  |  | $(CC) $(CFLAGS) -o x11meta xmeta.o x11plot.o plot.o palloc.o \ | 
| 90 | greg | 1.1 | $(common) -lrt -lX11 $(MLIB) | 
| 91 |  |  |  | 
| 92 | schorsch | 1.5 | psmeta: psmeta.o psplot.o | 
| 93 |  |  | $(CC) $(CFLAGS) -o psmeta psmeta.o psplot.o $(common) -lrt $(MLIB) | 
| 94 |  |  |  | 
| 95 |  |  | plotout:        plotout.o ../lib/lib4014.a | 
| 96 |  |  | $(CC) $(CFLAGS) -o plotout plotout.o $(common) -lplot -lrt -l4014 $(MLIB) | 
| 97 | greg | 1.1 |  | 
| 98 | schorsch | 1.5 | plotin: plotin.o primout.o | 
| 99 |  |  | $(CC) $(CFLAGS) -o plotin plotin.o primout.o $(common) -lrt $(MLIB) | 
| 100 | greg | 1.1 |  | 
| 101 | schorsch | 1.5 | pexpand:        pexpand.o expand.o segment.o palloc.o | 
| 102 |  |  | $(CC) $(CFLAGS) -o pexpand pexpand.o expand.o segment.o \ | 
| 103 | greg | 1.1 | $(common) palloc.o -lrt $(MLIB) | 
| 104 |  |  |  | 
| 105 | schorsch | 1.5 | psort:  psort.o sort.o palloc.o | 
| 106 |  |  | $(CC) $(CFLAGS) -o psort psort.o sort.o $(common) palloc.o -lrt $(MLIB) | 
| 107 | greg | 1.1 |  | 
| 108 | schorsch | 1.5 | cv:             cv.o mfio.o cvhfio.o syscalls.o misc.o | 
| 109 |  |  | $(CC) $(CFLAGS) -o cv cv.o mfio.o cvhfio.o syscalls.o misc.o \ | 
| 110 | greg | 1.1 | -lrt $(MLIB) | 
| 111 |  |  |  | 
| 112 | schorsch | 1.5 | plot4:  plot4.o primout.o | 
| 113 |  |  | $(CC) $(CFLAGS) -o plot4 plot4.o primout.o $(common) -lrt $(MLIB) | 
| 114 | greg | 1.1 |  | 
| 115 | schorsch | 1.5 | tcurve: tcurve.o tgraph.o primout.o | 
| 116 |  |  | $(CC) $(CFLAGS) -o tcurve tcurve.o tgraph.o primout.o \ | 
| 117 | greg | 1.1 | $(common) $(MLIB) | 
| 118 |  |  |  | 
| 119 | schorsch | 1.5 | tscat:  tscat.o tgraph.o primout.o | 
| 120 |  |  | $(CC) $(CFLAGS) -o tscat tscat.o tgraph.o primout.o \ | 
| 121 | greg | 1.1 | $(common) -lrt $(MLIB) | 
| 122 |  |  |  | 
| 123 | schorsch | 1.5 | tbar:   tbar.o tgraph.o primout.o | 
| 124 |  |  | $(CC) $(CFLAGS) -o tbar tbar.o tgraph.o primout.o $(common) -lrt $(MLIB) | 
| 125 |  |  |  | 
| 126 |  |  | mtext:  mtext.o primout.o | 
| 127 |  |  | $(CC) $(CFLAGS) -o mtext mtext.o primout.o $(common) -lrt | 
| 128 | greg | 1.1 |  | 
| 129 |  |  | ../lib/libmeta.a:       metacalls.o primout.o progname.o | 
| 130 |  |  | ar rc ../lib/libmeta.a metacalls.o primout.o \ | 
| 131 |  |  | $(common) progname.o | 
| 132 |  |  | -ranlib ../lib/libmeta.a | 
| 133 |  |  |  | 
| 134 |  |  | ../lib/lib4014.a: | 
| 135 |  |  | cd lib4014; make INSTDIR=../../lib "CFLAGS=$(OPT)" install clean | 
| 136 |  |  |  | 
| 137 | schorsch | 1.5 | bgraph: bgraph.o mgvars.o mgraph.o ../lib/libmeta.a | 
| 138 |  |  | $(CC) $(CFLAGS) -o bgraph bgraph.o mgvars.o mgraph.o \ | 
| 139 | greg | 1.1 | -lmeta -lrt $(MLIB) | 
| 140 |  |  |  | 
| 141 | schorsch | 1.5 | igraph: igraph.o mgvars.o mgraph.o ../lib/libmeta.a \ | 
| 142 | greg | 1.1 | gcalc.o cgraph.o | 
| 143 | schorsch | 1.5 | $(CC) $(CFLAGS) -o igraph igraph.o mgvars.o mgraph.o \ | 
| 144 | greg | 1.1 | cgraph.o gcalc.o -lmeta -lrt $(MLIB) | 
| 145 |  |  |  | 
| 146 | schorsch | 1.5 | dgraph: dgraph.o cgraph.o mgvars.o | 
| 147 |  |  | $(CC) $(CFLAGS) -o dgraph dgraph.o cgraph.o mgvars.o \ | 
| 148 | greg | 1.1 | -lrt $(MLIB) | 
| 149 |  |  |  | 
| 150 | schorsch | 1.5 | gcomp:  gcomp.o gcalc.o mgvars.o | 
| 151 |  |  | $(CC) $(CFLAGS) -o gcomp gcomp.o gcalc.o mgvars.o \ | 
| 152 | greg | 1.1 | -lrt $(MLIB) | 
| 153 | schorsch | 1.5 |  | 
| 154 |  |  | # dependencies | 
| 155 |  |  | meta2tga okimate impress mx80 t4014 plotout x11meta \ | 
| 156 |  |  | mt160l mt160 pexpand plot4 psort imagew tcurve mtext \ | 
| 157 |  |  | tscat plotin tbar xmeta ../lib/libmeta.a aed5 psmeta:   $(common) | 
| 158 | greg | 1.1 |  | 
| 159 |  |  | cvhfio.o:       cvhfio.c hfio.c | 
| 160 |  |  |  | 
| 161 |  |  | mgvars.o igraph.o mgraph.o cgraph.o gcalc.o:    mgvars.h | 
| 162 |  |  |  | 
| 163 |  |  | mgraph.o:       mgraph.h | 
| 164 |  |  |  | 
| 165 |  |  | misc.o syscalls.o mfio.o hfio.o cvhfio.o palloc.o segment.o sort.o expand.o \ | 
| 166 |  |  | plot.o mplot.o primout.o tgraph.o mt160l.o mt160.o mx80.o plotout.o \ | 
| 167 |  |  | psort.o pexpand.o cv.o tcurve.o tscat.o mtext.o tbar.o plot4.o \ | 
| 168 | greg | 1.3 | xmeta.o metacalls.o xplot.o meta2tga.o rplot.o: meta.h ../common/rterror.h | 
| 169 | greg | 1.1 |  | 
| 170 |  |  | plot.o mplot.o mt160l.o mt160.o mx80.o xmeta.o xplot.o \ | 
| 171 |  |  | meta2tga.o rplot.o implot.o:    plot.h | 
| 172 |  |  |  | 
| 173 |  |  | mplot.o mt160l.o mt160.o mx80.o:        span.h | 
| 174 |  |  |  | 
| 175 |  |  | tgraph.o tcurve.o tscat.o tbar.o:       tgraph.h | 
| 176 |  |  |  | 
| 177 |  |  | impress.o implot.o imPfuncs.o:  imPfuncs.h | 
| 178 |  |  |  | 
| 179 |  |  | rplot.o meta2tga.o:     rast.h |