Line 0
Link Here
|
|
|
1 |
--- Bmake.inc.orig Mon Nov 13 14:17:35 2006 |
2 |
+++ Bmake.inc Mon Nov 13 14:19:18 2006 |
3 |
@@ -13,7 +13,7 @@ |
4 |
# ----------------------------- |
5 |
# The top level BLACS directory |
6 |
# ----------------------------- |
7 |
- BTOPdir = $(HOME)/BLACS |
8 |
+ BTOPdir = @WRKSRC@ |
9 |
|
10 |
# --------------------------------------------------------------------------- |
11 |
# The communication library your BLACS have been written for. |
12 |
@@ -32,14 +32,14 @@ |
13 |
# ------------------------------------------------------------- |
14 |
# The platform identifier to suffix to the end of library names |
15 |
# ------------------------------------------------------------- |
16 |
- PLAT = LINUX |
17 |
+ PLAT = FreeBSD |
18 |
|
19 |
# ---------------------------------------------------------- |
20 |
# Name and location of the BLACS library. See section 2 for |
21 |
# details on BLACS debug level (BLACSDBGLVL). |
22 |
# ---------------------------------------------------------- |
23 |
BLACSdir = $(BTOPdir)/LIB |
24 |
- BLACSDBGLVL = 0 |
25 |
+ BLACSDBGLVL = @DEBUG_LEVEL@ |
26 |
BLACSFINIT = $(BLACSdir)/blacsF77init_$(COMMLIB)-$(PLAT)-$(BLACSDBGLVL).a |
27 |
BLACSCINIT = $(BLACSdir)/blacsCinit_$(COMMLIB)-$(PLAT)-$(BLACSDBGLVL).a |
28 |
BLACSLIB = $(BLACSdir)/blacs_$(COMMLIB)-$(PLAT)-$(BLACSDBGLVL).a |
29 |
@@ -47,10 +47,10 @@ |
30 |
# ------------------------------------- |
31 |
# Name and location of the MPI library. |
32 |
# ------------------------------------- |
33 |
- MPIdir = /usr/local/mpich |
34 |
- MPILIBdir = $(MPIdir)/lib/ |
35 |
+ MPIdir = @LOCALBASE@/mpi/openmpi |
36 |
+ MPILIBdir = |
37 |
MPIINCdir = $(MPIdir)/include |
38 |
- MPILIB = $(MPILIBdir)/libmpich.a |
39 |
+ MPILIB = |
40 |
|
41 |
# ------------------------------------- |
42 |
# All libraries required by the tester. |
43 |
@@ -86,7 +86,7 @@ |
44 |
# The directory to find the required communication library include files, |
45 |
# if they are required by your system. |
46 |
# ----------------------------------------------------------------------- |
47 |
- SYSINC = -I$(MPIINCdir) |
48 |
+ SYSINC = |
49 |
|
50 |
# --------------------------------------------------------------------------- |
51 |
# The Fortran 77 to C interface to be used. If you are unsure of the correct |
52 |
@@ -140,7 +140,7 @@ |
53 |
# If you know that your MPI uses the same handles for fortran and C |
54 |
# communicators, you can replace the empty macro definition below with |
55 |
# the macro definition on the following line. |
56 |
- TRANSCOMM = -DCSameF77 |
57 |
+ TRANSCOMM = |
58 |
# ----------------------------------------------------------------------- |
59 |
# TRANSCOMM = |
60 |
|
61 |
@@ -195,16 +195,15 @@ |
62 |
# optimization. This is the F77NO_OPTFLAG. The usage of the remaining |
63 |
# macros should be obvious from the names. |
64 |
#============================================================================= |
65 |
- F77 = g77 |
66 |
- F77NO_OPTFLAGS = |
67 |
- F77FLAGS = $(F77NO_OPTFLAGS) -O |
68 |
- F77LOADER = $(F77) |
69 |
+ F77 = mpif77 |
70 |
+ F77NO_OPTFLAGS = @F77EXTRAFLAGS@ |
71 |
+ F77FLAGS = @FFLAGS@ |
72 |
+ F77LOADER = mpif77 |
73 |
F77LOADFLAGS = |
74 |
- CC = gcc |
75 |
- CCFLAGS = -O4 |
76 |
- CCLOADER = $(CC) |
77 |
+ CC = mpicc |
78 |
+ CCFLAGS = @CFLAGS@ |
79 |
+ CCLOADER = mpicc |
80 |
CCLOADFLAGS = |
81 |
- |
82 |
# -------------------------------------------------------------------------- |
83 |
# The archiver and the flag(s) to use when building an archive (library). |
84 |
# Also the ranlib routine. If your system has no ranlib, set RANLIB = echo. |