# Copyright (c) 2005 Sandia Corporation. Under the terms of Contract
# DE-AC04-94AL85000 with Sandia Corporation, the U.S. Governement
# retains certain rights in this software.
# 
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
# met:
# 
#     * Redistributions of source code must retain the above copyright
#       notice, this list of conditions and the following disclaimer.
# 
#     * Redistributions in binary form must reproduce the above
#       copyright notice, this list of conditions and the following
#       disclaimer in the documentation and/or other materials provided
#       with the distribution.  
# 
#     * Neither the name of Sandia Corporation nor the names of its
#       contributors may be used to endorse or promote products derived
#       from this software without specific prior written permission.
# 
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
# 


XCOMM Use include files locates in exodusii/cbind/include
INCLUDES = IncRef-I../include
REQUIREDLIBS = -L$(SHLIBDIR) $(NETCDF)

#ifndef BuildSharedExodusLibrary
#define BuildSharedExodusLibrary NO
#endif  

#define DoNormalLib YES
#define DoSharedLib BuildSharedExodusLibrary
#define LibName exodus
SOREV = 4
#define SoRev SOREV

DEFINES = $(PICFLAGS)

SRCS =  exclos.c   exggvt.c   exgpa.c    exgvp.c    expfrm.c   expqa.c	 \
	excn2s.c   exgids.c   exgp.c     exgvv.c    expinf.c   expset.c	 \
	ex_conv.c  exginf.c   exgpem.c   exinq.c    expini.c   expsetd.c \
	excopy.c   exgini.c   exgpn.c    exopen.c   expinix.c  expsetp.c \
	excre.c    exginix.c  exgqa.c    exopts.c   expmap.c   expssv.c  \
	exerr.c    exgmap.c   exgset.c   expatn.c   expmp.c    exptim.c  \
	exgatm.c   exgmp.c    exgsetd.c  expatt.c   expnam.c   exptt.c   \
	exgatn.c   exgnam.c   exgsetp.c  expattp.c  expnams.c  expvan.c  \
	exgatt.c   exgnams.c  exgsnl.c   expblk.c   expnmap.c  expvar.c  \
	exgattp.c  exgnmap.c  exgssc.c   expcab.c   expnnm.c   expvnm.c  \
	exgblk.c   exgnnm.c   exgssn.c   expclb.c   expnsv.c   expvpax.c \
	exgcon.c   exgnsv.c   exgssv.c   expcon.c   expnv.c    expvp.c   \
	exgconn.c  exgnv.c    exgtim.c   expconn.c  expnvv.c   expvv.c   \
	exgcor.c   exgnvid.c  exgtt.c    expcor.c   expoatt.c  exupda.c  \
	exgcset.c  exgnvt.c   exgvan.c   expcset.c  exppa.c    expidm.c	 \
	exgenm.c   exgnvv.c   exgvar.c   expelc.c   expp.c     exgfrm.c  \
	exgoatt.c  exgvart.c  expenm.c   exppem.c   exggv.c    exgotv.c  \
	exgvnm.c   expev.c    exppn.c    exppsetd.c exgidm.c   ex_utils.c 		 \
	exgvarnam.c  expvarnam.c exgvarnams.c  expvarnams.c \
	exgvartab.c  expvartab.c exgvarparam.c expvarparam.c \
	exgcns.c   exgnstt.c   expem.c   exgnconn.c \
	exgcss.c   exgnsvid.c  expgv.c   \
	exgean.c   exgoea.c    expnm.c   \
	exgeat.c   exgsp.c     expnp.c   \
	exgebi.c   exgss.c     expns.c   \
	exgelb.c   exgssd.c    expnsd.c  \
	exgelc.c   exgssi.c    expnstt.c \
	exgem.c    exgsstt.c   expoea.c  \
	exgev.c    exgssvid.c  expsp.c   \
	exgevid.c  exgvid.c    expss.c   \
	exgevt.c   exgvtt.c    expssd.c  \
	exgnm.c    expcns.c    expsstt.c \
	exgnp.c    expcss.c    expvpa.c  \
	exgns.c    expean.c    expvpc.c  \
	exgnsd.c   expeat.c    expvtt.c  \
	exgnsi.c   expelb.c    exgncor.c \
        expncor.c  exgnoatt.c  expnoatt.c \
	expnvar.c  exgnvar.c   expnnv.c   exgnnv.c exgcssc.c \
	expecpp.c  exgecpp.c   exppidm.c

OBJS = ${SRCS:.c=.o}

#include <Library.tmpl>

LibraryTargetSubdirsCopy(libexodus.a,$(OBJS),../../)

$(OBJS): ../include/exodusII.h ../include/exodusII_int.h ../include/exodusII_ext.h

DependTarget()
LibraryObjectRule()
