| 1 |
XCOMM Copyright (c) 2005 Sandia Corporation. Under the terms of Contract |
| 2 |
XCOMM DE-AC04-94AL85000 with Sandia Corporation, the U.S. Governement |
| 3 |
XCOMM retains certain rights in this software. |
| 4 |
XCOMM |
| 5 |
XCOMM Redistribution and use in source and binary forms, with or without |
| 6 |
XCOMM modification, are permitted provided that the following conditions are |
| 7 |
XCOMM met: |
| 8 |
XCOMM |
| 9 |
XCOMM * Redistributions of source code must retain the above copyright |
| 10 |
XCOMM notice, this list of conditions and the following disclaimer. |
| 11 |
XCOMM |
| 12 |
XCOMM * Redistributions in binary form must reproduce the above |
| 13 |
XCOMM copyright notice, this list of conditions and the following |
| 14 |
XCOMM disclaimer in the documentation and/or other materials provided |
| 15 |
XCOMM with the distribution. |
| 16 |
XCOMM |
| 17 |
XCOMM * Neither the name of Sandia Corporation nor the names of its |
| 18 |
XCOMM contributors may be used to endorse or promote products derived |
| 19 |
XCOMM from this software without specific prior written permission. |
| 20 |
XCOMM |
| 21 |
XCOMM THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS |
| 22 |
XCOMM "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT |
| 23 |
XCOMM LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR |
| 24 |
XCOMM A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT |
| 25 |
XCOMM OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, |
| 26 |
XCOMM SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT |
| 27 |
XCOMM LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, |
| 28 |
XCOMM DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY |
| 29 |
XCOMM THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
| 30 |
XCOMM (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
| 31 |
XCOMM OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 32 |
XCOMM |
| 33 |
|
| 34 |
XCOMM Imakefile for ExodusII libraries |
| 35 |
XCOMM Building ExodusII libraries for installation |
| 36 |
/* Building ExodusII libraries for installation |
| 37 |
* % accmkmf |
| 38 |
* % make Makefiles |
| 39 |
* % make |
| 40 |
* |
| 41 |
* Building ExodusII libraries for debugging |
| 42 |
* % accmkmf |
| 43 |
* % make Makefiles |
| 44 |
* % make DEBUG=-g |
| 45 |
* |
| 46 |
*/ |
| 47 |
|
| 48 |
#define IHaveSubdirs |
| 49 |
|
| 50 |
#define PassDebugFlags "DEBUG=$(DEBUG)" \ |
| 51 |
"CDEBUGFLAGS=$(CDEBUGFLAGS)" \ |
| 52 |
"CXXDEBUGFLAGS=$(CXXDEBUGFLAGS)" \ |
| 53 |
"F90DEBUGFLAGS=$(F90DEBUGFLAGS)" \ |
| 54 |
"F77DEBUGFLAGS=$(F77DEBUGFLAGS)" |
| 55 |
|
| 56 |
#define ExtraOptions "CCOPTIONS=$(CCOPTIONS)" |
| 57 |
|
| 58 |
INCLIST1 = exodusII.h exodusII_int.h |
| 59 |
INCLIST2 = exodusII_int.inc exodusII.inc |
| 60 |
|
| 61 |
SUBDIRS = cbind/include \ |
| 62 |
cbind/src \ |
| 63 |
forbind/include \ |
| 64 |
forbind/src \ |
| 65 |
cbind/test \ |
| 66 |
forbind/test |
| 67 |
|
| 68 |
#if Build64BitAccess == YES |
| 69 |
AllTarget(libexodus.a libexoIIv2for.a libexoIIv2for32.a) |
| 70 |
#else |
| 71 |
AllTarget(libexodus.a libexoIIv2for.a) |
| 72 |
#endif |
| 73 |
|
| 74 |
InstallSubdirIncludeList(makeincludes,cbind/include,$(INCLIST1),$(INCDIR)) |
| 75 |
|
| 76 |
InstallSubdirIncludeList(makeincludes,forbind/include,$(INCLIST2),$(INCDIR)) |
| 77 |
|
| 78 |
/* Directory for exodusII c library */ |
| 79 |
NamedTargetSubdirs(libexodus.a,cbind/src,"making exodus ",PassDebugFlags ExtraOptions,all) |
| 80 |
|
| 81 |
/* Directory for exodusII fortran wrappers */ |
| 82 |
NamedTargetSubdirs(libexoIIv2for.a,forbind/src,"making exoIIv2for ",PassDebugFlags ExtraOptions,libexoIIv2for.a) |
| 83 |
|
| 84 |
#if Build64BitAccess == YES |
| 85 |
NamedTargetSubdirs(libexoIIv2for32.a,forbind/src,"making exoIIv2for32 ",PassDebugFlags ExtraOptions,libexoIIv2for32.a) |
| 86 |
#endif |
| 87 |
|
| 88 |
InstallLibrary(exodus,$(LIBDIR)) |
| 89 |
InstallLibrary(exoIIv2for,$(LIBDIR)) |
| 90 |
InstallLibraryAlias(exodus,exoIIv2c,$(LIBDIR)) |
| 91 |
|
| 92 |
#if Build64BitAccess == YES |
| 93 |
InstallLibrary(exoIIv2for32,$(LIBDIR)) |
| 94 |
#endif |
| 95 |
|
| 96 |
check: test |
| 97 |
test:: libexodus.a libexoIIv2for.a |
| 98 |
|
| 99 |
NamedMakeSubdirs(test,cbind/test) |
| 100 |
NamedMakeSubdirs(test,forbind/test) |
| 101 |
DependSubdirs($(SUBDIRS)) |