Browse Source

Export CBLAS funtions on Windows DLL.

tags/v0.1.0^2
Xianyi Zhang 14 years ago
parent
commit
a7a7751be7
2 changed files with 13 additions and 6 deletions
  1. +6
    -6
      exports/Makefile
  2. +7
    -0
      exports/gensymbol

+ 6
- 6
exports/Makefile View File

@@ -58,16 +58,16 @@ dll : ../$(LIBDLLNAME)

dll2 : libgoto2_shared.dll

../$(LIBDLLNAME) : ../$(LIBNAME) libgoto2.def dllinit.$(SUFFIX)
../$(LIBDLLNAME) : ../$(LIBNAME) libopenblas.def dllinit.$(SUFFIX)
$(RANLIB) ../$(LIBNAME)
ifeq ($(BINARY32), 1)
$(DLLWRAP) -o ../$(LIBDLLNAME) --def libgoto2.def \
$(DLLWRAP) -o ../$(LIBDLLNAME) --def libopenblas.def \
--entry _dllinit@12 -s dllinit.$(SUFFIX) --dllname $(@F) ../$(LIBNAME) $(FEXTRALIB)
-lib /machine:i386 /def:libgoto2.def
-lib /machine:i386 /def:libopenblas.def
else
$(DLLWRAP) -o ../$(LIBDLLNAME) --def libgoto2.def \
$(DLLWRAP) -o ../$(LIBDLLNAME) --def libopenblas.def \
--entry $(FU)dllinit -s dllinit.$(SUFFIX) --dllname $(@F) ../$(LIBNAME) $(FEXTRALIB)
-lib /machine:X64 /def:libgoto2.def
-lib /machine:X64 /def:libopenblas.def
endif

libgoto2_shared.dll : ../$(LIBNAME) libgoto2_shared.def
@@ -75,7 +75,7 @@ libgoto2_shared.dll : ../$(LIBNAME) libgoto2_shared.def
-Wl,--whole-archive ../$(LIBNAME) -Wl,--no-whole-archive \
-Wl,--out-implib,libgoto2_shared.lib $(FEXTRALIB)

libgoto2.def : gensymbol
libopenblas.def : gensymbol
perl ./gensymbol win2k $(ARCH) dummy $(EXPRECISION) $(NO_CBLAS) $(NO_LAPACK) > $(@F)

libgoto2_shared.def : gensymbol


+ 7
- 0
exports/gensymbol View File

@@ -389,6 +389,13 @@ if ($ARGV[0] eq "win2k"){
$count ++;
}

if ($ARGV[4] == 0) {
foreach $objs (@cblasobjs) {
print "\t",$objs,"=$objs"," \@", $count, "\n";
$count ++;
}
}
exit(0);
}



Loading…
Cancel
Save