diff --git a/math/meschach/files/makefile.in b/math/meschach/files/makefile.in index 93e4fc17e585..0ad92c4f0a3f 100644 --- a/math/meschach/files/makefile.in +++ b/math/meschach/files/makefile.in @@ -16,10 +16,11 @@ OBJ = copy.o err.o matrixio.o memory.o vecop.o matop.o pxop.o \ zqrfctr.o zgivens.o zhessen.o zschur.o conjgrad.o lanczos.o \ arnoldi.o -all: libmeschach +all: libmeschach.la -libmeschach: $(OBJ) - @$(LIBTOOL) $(CC) -O -o libmeschach.la $(OBJ:.o=.lo) -rpath $(LIBDIR) +libmeschach.la: $(OBJ) + @$(LIBTOOL) $(CC) -O -o $@ $(OBJ:.o=.lo) \ + -rpath $(LIBDIR) --version-info 0:0 install: @$(LIBTOOL) --mode=install install -c libmeschach.la $(LIBDIR) diff --git a/math/meschach/files/makefile.test b/math/meschach/files/makefile.test index bad8b0dcff55..73e4ea2ed7c3 100644 --- a/math/meschach/files/makefile.test +++ b/math/meschach/files/makefile.test @@ -2,39 +2,14 @@ LIBS = -L%%PREFIX%%/lib -lmeschach -lm CFLAGS = -I%%PREFIX%%/include -O2 -ansi -TORTURE = torture.o sptort.o ztorture.o memtort.o itertort.o \ - mfuntort.o iotort.o +TORTURE = torture sptort ztorture memtort itertort mfuntort iotort -all: alltorture +TORTURE_O = $(TORTURE:=.o) -alltorture: torture sptort ztorture memtort itertort mfuntort iotort +all: $(TORTURE) -torture: torture.o - $(CC) $(CFLAGS) -O -o torture torture.o $(LIBS) - -sptort: sptort.o - $(CC) $(CFLAGS) -O -o sptort sptort.o $(LIBS) - -memtort: memtort.o - $(CC) $(CFLAGS) -O -o memtort memtort.o $(LIBS) - -ztorture: ztorture.o - $(CC) $(CFLAGS) -O -o ztorture ztorture.o $(LIBS) - -itertort: itertort.o - $(CC) $(CFLAGS) -O -o itertort itertort.o $(LIBS) - -iotort: iotort.o - $(CC) $(CFLAGS) -O -o iotort iotort.o $(LIBS) - -mfuntort: mfuntort.o - $(CC) $(CFLAGS) -O -o mfuntort mfuntort.o $(LIBS) - -tstmove: tstmove.o - $(CC) $(CFLAGS) -O -o tstmove tstmove.o $(LIBS) - -tstpxvec: tstpxvec.o - $(CC) $(CFLAGS) -O -o tstpxvec tstpxvec.o $(LIBS) +$(TORTURE): $(TORTURE_O) + $(CC) $(CFLAGS) $@.o $(LIBS) -o $@ clean: rm -fr *.o *.core iotort.dat torture sptort ztorture \