summaryrefslogtreecommitdiff
path: root/math/meschach/files/makefile.test
diff options
context:
space:
mode:
Diffstat (limited to 'math/meschach/files/makefile.test')
-rw-r--r--math/meschach/files/makefile.test35
1 files changed, 5 insertions, 30 deletions
diff --git a/math/meschach/files/makefile.test b/math/meschach/files/makefile.test
index bad8b0dcff5..73e4ea2ed7c 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 \