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