Use --version-info 0:0 . Shortened the Makefile for the torture tests.

This commit is contained in:
jtb 2000-12-11 01:37:01 +00:00
parent 221a36c39d
commit 6a970c0e33
2 changed files with 9 additions and 33 deletions

View file

@ -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)

View file

@ -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 \