summaryrefslogtreecommitdiff
path: root/math/lapack/patches/patch-aa
blob: 8cb8adea7312e51d12b90b18ff3f67d8e561f547 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
$NetBSD: patch-aa,v 1.2 2003/12/04 10:32:30 adam Exp $

--- SRC/Makefile.orig	1999-11-04 20:26:09.000000000 +0100
+++ SRC/Makefile
@@ -280,24 +280,24 @@ ZLASRC = \
 all: single complex double complex16
 
 single: $(SLASRC) $(ALLAUX) $(SCLAUX) 
-	$(ARCH) $(ARCHFLAGS) ../$(LAPACKLIB) $(SLASRC) $(ALLAUX) \
-	$(SCLAUX)
-	$(RANLIB) ../$(LAPACKLIB)
+	${LIBTOOL} --mode=link --tag=CC ${FC} -o ../liblapack.la	\
+		$(SLASRC:.o=.lo) $(ALLAUX:.o=.lo) $(SCLAUX:.o=.lo)	\
+		-rpath ${PREFIX}/lib -version-info 3:0
 
 complex: $(CLASRC) $(ALLAUX) $(SCLAUX)
-	$(ARCH) $(ARCHFLAGS) ../$(LAPACKLIB) $(CLASRC) $(ALLAUX) \
-	$(SCLAUX)
-	$(RANLIB) ../$(LAPACKLIB)
+	${LIBTOOL} --mode=link --tag=CC ${FC} -o ../liblapack.la	\
+		$(CLASRC:.o=.lo) $(ALLAUX:.o=.lo) $(SCLAUX:.o=.lo)	\
+		-rpath ${PREFIX}/lib -version-info 3:0
 
 double: $(DLASRC) $(ALLAUX) $(DZLAUX)
-	$(ARCH) $(ARCHFLAGS) ../$(LAPACKLIB) $(DLASRC) $(ALLAUX) \
-	$(DZLAUX)
-	$(RANLIB) ../$(LAPACKLIB)
+	${LIBTOOL} --mode=link --tag=CC ${FC} -o ../liblapack.la	\
+		$(DLASRC:.o=.lo) $(ALLAUX:.o=.lo) $(DZLAUX:.o=.lo)	\
+		-rpath ${PREFIX}/lib -version-info 3:0
 
 complex16: $(ZLASRC) $(ALLAUX) $(DZLAUX)
-	$(ARCH) $(ARCHFLAGS) ../$(LAPACKLIB) $(ZLASRC) $(ALLAUX) \
-	$(DZLAUX)
-	$(RANLIB) ../$(LAPACKLIB)
+	${LIBTOOL} --mode=link --tag=CC ${FC} -o ../liblapack.la	\
+		$(ZLASRC:.o=.lo) $(ALLAUX:.o=.lo) $(DZLAUX:.o=.lo)	\
+		-rpath ${PREFIX}/lib -version-info 3:0
 
 $(ALLAUX): $(FRC)
 $(SCLAUX): $(FRC)
@@ -313,10 +313,6 @@ FRC:
 clean:
 	rm -f *.o
 
-slamch.o: slamch.f
-	$(FORTRAN) $(NOOPT) -c $<
-dlamch.o: dlamch.f
-	$(FORTRAN) $(NOOPT) -c $<
 
 .f.o: 
-	$(FORTRAN) $(OPTS) -c $<
+	${LIBTOOL} --mode=compile --tag=CC ${FC} ${FFLAGS} -c $<