| 1 |
### Copyright (c) 2005 Sandia Corporation. Under the terms of Contract |
| 2 |
### DE-AC04-94AL85000 with Sandia Corporation, the U.S. Governement |
| 3 |
### retains certain rights in this software. |
| 4 |
### |
| 5 |
### Redistribution and use in source and binary forms, with or without |
| 6 |
### modification, are permitted provided that the following conditions are |
| 7 |
### met: |
| 8 |
### |
| 9 |
### * Redistributions of source code must retain the above copyright |
| 10 |
### notice, this list of conditions and the following disclaimer. |
| 11 |
### |
| 12 |
### * Redistributions in binary form must reproduce the above |
| 13 |
### copyright notice, this list of conditions and the following |
| 14 |
### disclaimer in the documentation and/or other materials provided |
| 15 |
### with the distribution. |
| 16 |
### |
| 17 |
### * Neither the name of Sandia Corporation nor the names of its |
| 18 |
### contributors may be used to endorse or promote products derived |
| 19 |
### from this software without specific prior written permission. |
| 20 |
### |
| 21 |
### THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS |
| 22 |
### "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT |
| 23 |
### LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR |
| 24 |
### A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT |
| 25 |
### OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, |
| 26 |
### SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT |
| 27 |
### LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, |
| 28 |
### DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY |
| 29 |
### THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
| 30 |
### (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
| 31 |
### OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 32 |
### |
| 33 |
|
| 34 |
### Imakefile --- |
| 35 |
|
| 36 |
INCLUDES = -I../include |
| 37 |
|
| 38 |
EXOIITEST = -Wl,-R../src -L../src -lexodus |
| 39 |
LOCALEXO = ../src/libexodus.a |
| 40 |
LIBS = $(LOCALEXO) -L$(USRLIBDIR) $(NETCDF) $(EXTRANETCDFLIB) |
| 41 |
|
| 42 |
#if defined(ParallelAwareExodus) |
| 43 |
PARTEST = testrd_par |
| 44 |
#endif |
| 45 |
|
| 46 |
PROGS = testwt testwtd testrd testrd1 testrdd testwt1 testwt2 testwtm \ |
| 47 |
testwt_ss testwt_nossnsdf testrd_ss testrdwt testcp testcpd testcp_nl \ |
| 48 |
testcp_ln testwt_clb testwt_nc testrd_nc testwt-zeroe testwt-zeron \ |
| 49 |
testwt-one-attrib create_mesh rd_wt_mesh \ |
| 50 |
testwt-partial testwt-nsided testrd-nsided testwt-nfaced \ |
| 51 |
testrd-nfaced testwt-long-name testrd-long-name \ |
| 52 |
testwt-groups testrd-groups \ |
| 53 |
oned twod MakeTestData test_nemesis $(PARTEST) |
| 54 |
#if 0 |
| 55 |
CreateEdgeFace ReadEdgeFace |
| 56 |
#endif |
| 57 |
|
| 58 |
all:: check |
| 59 |
|
| 60 |
#if defined(ParallelAwareExodus) |
| 61 |
LOCALPAREXO = ../parallel/libexodus_par.a |
| 62 |
PLIBS = $(LOCALPAREXO) $(LOCALEXO) -L$(USRLIBDIR) $(NETCDF) $(EXTRANETCDFLIB) |
| 63 |
|
| 64 |
NormalProgramTarget(testrd_par, testrd_par.o, $(LOCALEXO), /**/, $(PLIBS)) |
| 65 |
#endif |
| 66 |
|
| 67 |
NormalProgramTarget(oned, oned.o, $(LOCALEXO), /**/, $(LIBS)) |
| 68 |
NormalProgramTarget(twod, twod.o, $(LOCALEXO), /**/, $(LIBS)) |
| 69 |
NormalProgramTarget(MakeTestData,MakeTestData.o, $(LOCALEXO), /**/, $(LIBS)) |
| 70 |
|
| 71 |
NormalProgramTarget(testwt, testwt.o, $(LOCALEXO), /**/, $(LIBS)) |
| 72 |
NormalProgramTarget(testwt_clb,testwt_clb.o,$(LOCALEXO), /**/, $(LIBS)) |
| 73 |
NormalProgramTarget(testwtd, testwtd.o, $(LOCALEXO), /**/, $(LIBS)) |
| 74 |
NormalProgramTarget(testrd, testrd.o, $(LOCALEXO), /**/, $(LIBS)) |
| 75 |
NormalProgramTarget(testrd1, testrd1.o, $(LOCALEXO), /**/, $(LIBS)) |
| 76 |
NormalProgramTarget(testrdd, testrdd.o, $(LOCALEXO), /**/, $(LIBS)) |
| 77 |
NormalProgramTarget(testwt1, testwt1.o, $(LOCALEXO), /**/, $(LIBS)) |
| 78 |
NormalProgramTarget(testwt2, testwt2.o, $(LOCALEXO), /**/, $(LIBS)) |
| 79 |
NormalProgramTarget(testwtm, testwtm.o, $(LOCALEXO), /**/, $(LIBS)) |
| 80 |
NormalProgramTarget(testwt_ss, testwt_ss.o, $(LOCALEXO), /**/, $(LIBS)) |
| 81 |
NormalProgramTarget(testwt_nossnsdf, testwt_nossnsdf.o, $(LOCALEXO), /**/, $(LIBS)) |
| 82 |
|
| 83 |
NormalProgramTarget(testrd_ss, testrd_ss.o, $(LOCALEXO), /**/, $(LIBS)) |
| 84 |
NormalProgramTarget(testrdwt, testrdwt.o, $(LOCALEXO), /**/, $(LIBS)) |
| 85 |
NormalProgramTarget(testcp, testcp.o, $(LOCALEXO), /**/, $(LIBS)) |
| 86 |
NormalProgramTarget(testcpd, testcpd.o, $(LOCALEXO), /**/, $(LIBS)) |
| 87 |
NormalProgramTarget(testcp_nl ,testcp_nl.o, $(LOCALEXO), /**/, $(LIBS)) |
| 88 |
NormalProgramTarget(testcp_ln ,testcp_ln.o, $(LOCALEXO), /**/, $(LIBS)) |
| 89 |
NormalProgramTarget(testwt_nc, testwt_nc.o, $(LOCALEXO), /**/, $(LIBS)) |
| 90 |
NormalProgramTarget(testrd_nc, testrd_nc.o, $(LOCALEXO), /**/, $(LIBS)) |
| 91 |
|
| 92 |
NormalProgramTarget(testwt-long-name,testwt-long-name.o,$(LOCALEXO), /**/, $(LIBS)) |
| 93 |
NormalProgramTarget(testrd-long-name,testrd-long-name.o,$(LOCALEXO), /**/, $(LIBS)) |
| 94 |
NormalProgramTarget(testwt-zeroe, testwt-zeroe.o, $(LOCALEXO), /**/, $(LIBS)) |
| 95 |
NormalProgramTarget(testwt-zeron, testwt-zeron.o, $(LOCALEXO), /**/, $(LIBS)) |
| 96 |
NormalProgramTarget(testwt-one-attrib, testwt-one-attrib.o, $(LOCALEXO), /**/, $(LIBS)) |
| 97 |
NormalProgramTarget(testwt-partial, testwt-partial.o, $(LOCALEXO), /**/, $(LIBS)) |
| 98 |
NormalProgramTarget(testwt-nsided, testwt-nsided.o, $(LOCALEXO), /**/, $(LIBS)) |
| 99 |
NormalProgramTarget(testrd-nsided, testrd-nsided.o, $(LOCALEXO), /**/, $(LIBS)) |
| 100 |
NormalProgramTarget(testwt-nfaced, testwt-nfaced.o, $(LOCALEXO), /**/, $(LIBS)) |
| 101 |
NormalProgramTarget(testrd-nfaced, testrd-nfaced.o, $(LOCALEXO), /**/, $(LIBS)) |
| 102 |
|
| 103 |
NormalProgramTarget(testwt-groups, testwt-groups.o, $(LOCALEXO), /**/, $(LIBS)) |
| 104 |
NormalProgramTarget(testrd-groups, testrd-groups.o, $(LOCALEXO), /**/, $(LIBS)) |
| 105 |
|
| 106 |
NormalProgramTarget(create_mesh, create_mesh.o, $(LOCALEXO), /**/, $(LIBS)) |
| 107 |
NormalProgramTarget(rd_wt_mesh, rd_wt_mesh.o, $(LOCALEXO), /**/, $(LIBS)) |
| 108 |
|
| 109 |
NormalProgramTarget(CreateEdgeFace, CreateEdgeFace.o, $(LOCALEXO), /**/, $(LIBS)) |
| 110 |
NormalProgramTarget(ReadEdgeFace, ReadEdgeFace.o, $(LOCALEXO), /**/, $(LIBS)) |
| 111 |
|
| 112 |
NormalProgramTarget(test_nemesis, test_nemesis.o, $(LOCALEXO), /**/, $(LIBS)) |
| 113 |
|
| 114 |
testall: testall.in1 $(CONFIGDIR)/$(MACROFILE) |
| 115 |
rm -f testall |
| 116 |
$(ETCDIR)/MsubCmd +R"@<" -R">@" testall.in1 >testall |
| 117 |
|
| 118 |
test: check |
| 119 |
check: $(PROGS) testall |
| 120 |
csh -f ./testall |
| 121 |
|
| 122 |
ExtraStuffToClean(*.res) |
| 123 |
ExtraStuffToClean(*.exo) |
| 124 |
ExtraStuffToClean(test.output) |
| 125 |
ExtraStuffToClean(testall) |