Debian Codegraph @

exodus/cbind/test/Makefile.standalone

raw
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 EXOIITEST = -L../.. -lexodus
35 LOCALEXO = ../../libexodus.a
36 LIBS = $(LOCALEXO) $(NETCDF_LIB) -lm
37
38 PROGS = testwt testwtd testrd testrd1 testrdd testwt1 testwt2 testwtm \
39 testwt_ss testwt_nossnsdf testrd_ss testrdwt testcp testcpd testcp_nl \
40 testcp_ln testwt_clb testwt_nc testrd_nc testwt-zeroe testwt-zeron \
41 testwt-one-attrib create_mesh rd_wt_mesh \
42 testwt-partial testwt-nsided testrd-nsided testwt-nfaced \
43 testrd-nfaced testwt-long-name testrd-long-name \
44 oned twod MakeTestData test_nemesis
45
46 all:: check
47
48 oned: oned.o $(LOCALEXO)
49 $(CC) -o $@ $(CFLAGS) oned.o $(LDFLAGS) $(LIBS)
50
51 twod: twod.o $(LOCALEXO)
52 $(CC) -o $@ $(CFLAGS) twod.o $(LDFLAGS) $(LIBS)
53
54 MakeTestData: MakeTestData.o $(LOCALEXO)
55 $(CC) -o $@ $(CFLAGS) MakeTestData.o $(LDFLAGS) $(LIBS)
56
57 testwt: testwt.o $(LOCALEXO)
58 $(CC) -o $@ $(CFLAGS) testwt.o $(LDFLAGS) $(LIBS)
59
60 testwt_clb: testwt_clb.o $(LOCALEXO)
61 $(CC) -o $@ $(CFLAGS) testwt_clb.o $(LDFLAGS) $(LIBS)
62
63 testwtd: testwtd.o $(LOCALEXO)
64 $(CC) -o $@ $(CFLAGS) testwtd.o $(LDFLAGS) $(LIBS)
65
66 testrd: testrd.o $(LOCALEXO)
67 $(CC) -o $@ $(CFLAGS) testrd.o $(LDFLAGS) $(LIBS)
68
69 testrd1: testrd1.o $(LOCALEXO)
70 $(CC) -o $@ $(CFLAGS) testrd1.o $(LDFLAGS) $(LIBS)
71
72 testrdd: testrdd.o $(LOCALEXO)
73 $(CC) -o $@ $(CFLAGS) testrdd.o $(LDFLAGS) $(LIBS)
74
75 testwt1: testwt1.o $(LOCALEXO)
76 $(CC) -o $@ $(CFLAGS) testwt1.o $(LDFLAGS) $(LIBS)
77
78 testwt2: testwt2.o $(LOCALEXO)
79 $(CC) -o $@ $(CFLAGS) testwt2.o $(LDFLAGS) $(LIBS)
80
81 testwtm: testwtm.o $(LOCALEXO)
82 $(CC) -o $@ $(CFLAGS) testwtm.o $(LDFLAGS) $(LIBS)
83
84 testwt_ss: testwt_ss.o $(LOCALEXO)
85 $(CC) -o $@ $(CFLAGS) testwt_ss.o $(LDFLAGS) $(LIBS)
86
87 testwt_nossnsdf: testwt_nossnsdf.o $(LOCALEXO)
88 $(CC) -o $@ $(CFLAGS) testwt_nossnsdf.o $(LDFLAGS) $(LIBS)
89
90 testrd_ss: testrd_ss.o $(LOCALEXO)
91 $(CC) -o $@ $(CFLAGS) testrd_ss.o $(LDFLAGS) $(LIBS)
92
93 testrdwt: testrdwt.o $(LOCALEXO)
94 $(CC) -o $@ $(CFLAGS) testrdwt.o $(LDFLAGS) $(LIBS)
95
96 testcp: testcp.o $(LOCALEXO)
97 $(CC) -o $@ $(CFLAGS) testcp.o $(LDFLAGS) $(LIBS)
98
99 testcpd: testcpd.o $(LOCALEXO)
100 $(CC) -o $@ $(CFLAGS) testcpd.o $(LDFLAGS) $(LIBS)
101
102 testcp_nl : testcp_nl.o $(LOCALEXO)
103 $(CC) -o $@ $(CFLAGS) testcp_nl.o $(LDFLAGS) $(LIBS)
104
105 testcp_ln : testcp_ln.o $(LOCALEXO)
106 $(CC) -o $@ $(CFLAGS) testcp_ln.o $(LDFLAGS) $(LIBS)
107
108 testwt_nc: testwt_nc.o $(LOCALEXO)
109 $(CC) -o $@ $(CFLAGS) testwt_nc.o $(LDFLAGS) $(LIBS)
110
111 testrd_nc: testrd_nc.o $(LOCALEXO)
112 $(CC) -o $@ $(CFLAGS) testrd_nc.o $(LDFLAGS) $(LIBS)
113
114 testwt-long-name: testwt-long-name.o $(LOCALEXO)
115 $(CC) -o $@ $(CFLAGS) testwt-long-name.o $(LDFLAGS) $(LIBS)
116
117 testrd-long-name: testrd-long-name.o $(LOCALEXO)
118 $(CC) -o $@ $(CFLAGS) testrd-long-name.o $(LDFLAGS) $(LIBS)
119
120 testwt-zeroe: testwt-zeroe.o $(LOCALEXO)
121 $(CC) -o $@ $(CFLAGS) testwt-zeroe.o $(LDFLAGS) $(LIBS)
122
123 testwt-zeron: testwt-zeron.o $(LOCALEXO)
124 $(CC) -o $@ $(CFLAGS) testwt-zeron.o $(LDFLAGS) $(LIBS)
125
126 testwt-one-attrib: testwt-one-attrib.o $(LOCALEXO)
127 $(CC) -o $@ $(CFLAGS) testwt-one-attrib.o $(LDFLAGS) $(LIBS)
128
129 testwt-partial: testwt-partial.o $(LOCALEXO)
130 $(CC) -o $@ $(CFLAGS) testwt-partial.o $(LDFLAGS) $(LIBS)
131
132 testwt-nsided: testwt-nsided.o $(LOCALEXO)
133 $(CC) -o $@ $(CFLAGS) testwt-nsided.o $(LDFLAGS) $(LIBS)
134
135 testrd-nsided: testrd-nsided.o $(LOCALEXO)
136 $(CC) -o $@ $(CFLAGS) testrd-nsided.o $(LDFLAGS) $(LIBS)
137
138 testwt-nfaced: testwt-nfaced.o $(LOCALEXO)
139 $(CC) -o $@ $(CFLAGS) testwt-nfaced.o $(LDFLAGS) $(LIBS)
140
141 testrd-nfaced: testrd-nfaced.o $(LOCALEXO)
142 $(CC) -o $@ $(CFLAGS) testrd-nfaced.o $(LDFLAGS) $(LIBS)
143
144 create_mesh: create_mesh.o $(LOCALEXO)
145 $(CC) -o $@ $(CFLAGS) create_mesh.o $(LDFLAGS) $(LIBS)
146
147 rd_wt_mesh: rd_wt_mesh.o $(LOCALEXO)
148 $(CC) -o $@ $(CFLAGS) rd_wt_mesh.o $(LDFLAGS) $(LIBS)
149
150 CreateEdgeFace: CreateEdgeFace.o $(LOCALEXO)
151 $(CC) -o $@ $(CFLAGS) CreateEdgeFace.o $(LDFLAGS) $(LIBS)
152
153 ReadEdgeFace: ReadEdgeFace.o $(LOCALEXO)
154 $(CC) -o $@ $(CFLAGS) ReadEdgeFace.o $(LDFLAGS) $(LIBS)
155
156 test_nemesis: test_nemesis.o $(LOCALEXO)
157 $(CC) -o $@ $(CFLAGS) test_nemesis.o $(LDFLAGS) $(LIBS)
158
159
160 test: check
161 check: $(PROGS)
162 csh ./testall.standalone ${NCDUMP}
163
164 clean::
165 rm -f *.res $(PROGS)
166
167 clean::
168 rm -f *.exo
169
170 clean::
171 rm -f test.output
172
173 clean::
174 rm -f *.CKP *.ln *.BAK *.bak *.o *.M *.mod core errs ,* *~ *.a .emacs_* tags TAGS make.log MakeOut "#"*
175
176 # ----------------------------------------------------------------------
177
178 .SUFFIXES: .c
179 .c.o:
180 $(CC) -c $(CFLAGS) $*.c
181
182 # ----------------------------------------------------------------------
183 # dependencies generated by makedepend or sfmakedepend
184