##############################################################################
#                                                                           
#                      ... The Multicomputer Toolbox ...                    
#                                                                           
# File Id
#   $Id: Makefile.tbx,v 1.1 1994/03/30 18:24:42 alvin Exp alvin $
#
# Library
#   csparse
#   Concurrent Sparse Matrix Library
#
# Address
#   [Until June, 1990]
#      Anthony Skjellum
#      California Institute of Technology, Chemical Engineering 210-41
#      1201 E. California Blvd., Pasadena, CA 91125
#      (818) 356-4634; e-mail: tony@perseus.ccsf.caltech.edu
#
#   [After June, 1990]
#      Lawrence Livermore National Laboratory,  Numerical Mathematics Group
#      Computing & Mathematics Research Division
#      7000 East Avenue, L-316, Livermore, CA 94551
#      (510)422-1161; FAX: (510)423-2993
#      e-mail: skjellum@llnl.gov or tony@helios.llnl.gov
#
#   [After December, 1992]
#      Mississippi State University, Computer Science Department &
#         NSF Engineering Research Center for Computational Field Simulation
#      PO Drawer CS
#      Mississippi State, MS 39762-5623
#      (601)325-2756; FAX: (601)325-8997; e-mail: tony@cs.msstate.edu
#
# University Contributors
#   Alvin P. Leung, Syracuse University
#
# Copyright Notices
#   (C) 1988, 1989, 1990 California Institute of Technology, Inc.
#   (C) 1990, 1991, 1992 Regents of the University of California.
#   (C) 1993             Mississippi State University
#
# Government Notice ##########################################################
#                                                                        
#          This work was produced in-part under the sponsorship of       
#          the U.S. Department of Energy.   The Government retains       
#          certains rights therein.                                      
#                                                                        
#                                  Notice                                
#                                  ------                                
#   This computer code material was prepared, in part, as an account of  
#   work sponsored by the United States Government.  Neither the United  
#   States nor  the United States Department  of  Energy,  nor  any  of  
#   their employees, nor  any of  their contractors, subcontractors, or  
#   their employees, makes  any warranty,  express or implied,  or  as-  
#   sumes  any  legal  liability  or  responsibility for  the accuracy,  
#   completeness or  usefulness of any  information, apparatus, product  
#   or  process  disclosed,  or  represents that its  use would not in-  
#   fringe privately owned rights.                                      
#
##############################################################################
#
# Revision History
# ----------------------------------------------------------------------------
# created  :   15-Oct-92 {chs}
# 15-Oct-92:   Parts of this makefile were extracted from the Universal
#              makefiles by A. Skjellum, Bert Still, and Steve Smith.
#
# $Log: Makefile.tbx,v $
# Revision 1.1  1994/03/30  18:24:42  alvin
# Initial revision
#
# Revision 1.1  1993/07/15  20:00:06  toolbox
# Initial revision
#
# Revision 1.2  1993/05/12  18:44:37  doss
# Added standard headers
#
# ----------------------------------------------------------------------------
#
##############################################################################

BASE = /home/T8D/nimo/ETMSP/etmsp

SRCDIR1 = $(BASE)/src
SRCDIR = $(BASE)/src2
HOBJDIR = $(BASE)/HOST
GHOBJDIR = $(BASE)/GHOST
BINDIR = $(BASE)/HOST

vpath %.h   $(SRCDIR1):$(SRCDIR)
vpath %.c   $(SRCDIR1):$(SRCDIR)
vpath %.d   $(HOBJDIR):$(GHOBJDIR)
vpath %.ht.o $(HOBJDIR)
vpath %.gh.o $(GHOBJDIR)

all: $(pro)$(ext)

BASE_NAME = plinear

C_USER_HDRS = app.h interface.h  parallel.h tbx_timer.h \
              $(TOOLBOX_INCLUDE)/zipcode.h  $(TOOLBOX_INCLUDE)/resources.h \
              $(TOOLBOX_INCLUDE)/debugnd.h  $(TOOLBOX_INCLUDE)/index.h \
              $(TOOLBOX_INCLUDE)/range.h    $(TOOLBOX_INCLUDE)/cdistri.h \
              $(TOOLBOX_INCLUDE)/cvector.h  $(TOOLBOX_INCLUDE)/stats.h \
              $(TOOLBOX_INCLUDE)/cstats.h   $(TOOLBOX_INCLUDE)/csparse.h

LINK_LIBS = $(TOOLBOX_LIBS)/csparse.a         \
            $(TOOLBOX_LIBS)/cdense.a          \
            $(TOOLBOX_LIBS)/cvector.a         \
            $(TOOLBOX_LIBS)/cdistri.a         \
            $(TOOLBOX_LIBS)/index.a           \
            $(TOOLBOX_LIBS)/cstats.a          \
            $(TOOLBOX_LIBS)/stats.a           \
            $(TOOLBOX_LIBS)/zipcode.a         \
            $(TOOLBOX_LIBS)/general.a         \
            $(TOOLBOX_LIBS)/resources.a

CC_USER_INCLUDE = -I$(SRCDIR) -I$(SRCDIR1)
CC_USER_OPTS = -O2 -D$(PMACH_ARCH) $(CC_USER_INCLUDE)
LINK_USER_OPTS = 

HOST_F77_SRC = 
HOST_SRC = plinear.c message.c distribution.c read.c \
           initialize_host.c list.c pack_host.c timer.c tbx_timer.c

NODE_F77_SRC = 
NODE_SRC = plineara.c message.c distribution.c lu.c tbx_timer.c \
           initialize_node.c list.c pack_node.c


include $(TOOLBOXDIR)/makefiles/Makefile_MASTER

ifeq ($(ARCH),HOST)
ifdef HOST_F77_SRC
include $(HOST_F77_SRC:.f=.d)
endif
ifdef HOST_SRC
include $(HOST_SRC:.c=.d)
endif
else
ifdef NODE_F77_SRC
include $(NODE_F77_SRC:.f=.d)
endif
ifdef NODE_SRC
include $(NODE_SRC:.c=.d)
endif
endif

