blob: 8a9c1bab031293ecf4c26e216b0d25238b7c94d0 (
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
54
55
|
$NetBSD: patch-aa,v 1.3 2004/12/22 10:17:28 wennmach Exp $
--- SRC/Makefile.orig Thu Nov 4 20:26:09 1999
+++ SRC/Makefile Wed Dec 22 10:52:43 2004
@@ -1,4 +1,4 @@
-include ../make.inc
+#include ../make.inc
#######################################################################
# This is the makefile to create a library for LAPACK.
@@ -277,27 +277,11 @@
zunmtr.o zupgtr.o \
zupmtr.o izmax1.o dzsum1.o
-all: single complex double complex16
-
-single: $(SLASRC) $(ALLAUX) $(SCLAUX)
- $(ARCH) $(ARCHFLAGS) ../$(LAPACKLIB) $(SLASRC) $(ALLAUX) \
- $(SCLAUX)
- $(RANLIB) ../$(LAPACKLIB)
-
-complex: $(CLASRC) $(ALLAUX) $(SCLAUX)
- $(ARCH) $(ARCHFLAGS) ../$(LAPACKLIB) $(CLASRC) $(ALLAUX) \
- $(SCLAUX)
- $(RANLIB) ../$(LAPACKLIB)
-
-double: $(DLASRC) $(ALLAUX) $(DZLAUX)
- $(ARCH) $(ARCHFLAGS) ../$(LAPACKLIB) $(DLASRC) $(ALLAUX) \
- $(DZLAUX)
- $(RANLIB) ../$(LAPACKLIB)
-
-complex16: $(ZLASRC) $(ALLAUX) $(DZLAUX)
- $(ARCH) $(ARCHFLAGS) ../$(LAPACKLIB) $(ZLASRC) $(ALLAUX) \
- $(DZLAUX)
- $(RANLIB) ../$(LAPACKLIB)
+all: $(ALLAUX) $(SCLAUX) $(SLASRC) $(CLASRC) $(DLASRC) $(ZLASRC)
+ ${LIBTOOL} --mode=link --tag=CC ${FC} -o ../liblapack.la \
+ $(ALLAUX:.o=.lo) $(SCLAUX:.o=.lo) $(SLASRC:.o=.lo) \
+ $(DLASRC:.o=.lo) $(CLASRC:.o=.lo) $(ZLASRC:.o=.lo) \
+ -rpath ${PREFIX}/lib -version-info 3:0
$(ALLAUX): $(FRC)
$(SCLAUX): $(FRC)
@@ -313,10 +297,6 @@
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 $<
|