ALL: lib

#The variable ITOOLSDIR points to the location of the tools software
#written by W. Gropp at ANL
ITOOLSDIR = /home/jones/chameleon
#ITOOLSDIR = /disk/delilah7/curfman/tools.core

#The variable BSDIR points to the location of the include files and
#the destination for the bslib.a files
BSDIR = ..

#Compiler flags:
#MLOG turns on logging
#MCOUNT turns on counting of most floating point operations
#DEBUG_ALL turns on error code checking
#DEBUG_TRACEBACK turns on the printing of error messages when errors are 
#                encountered during execution
#NO_NATIVE_SUBSET instructs the compiler not to use any native operations
#                 for operating on subsets of processors
#USE_NATIVE_GLOBAL instructs the compiler to use native operations
#                  for global operations
CFLAGS    = -I$(ITOOLSDIR) -I$(BSDIR) $(OPT) $(COPT) -DDEBUG_ALL -DDEBUG_TRACEBACK -DNO_NATIVE_SUBSET -DUSE_NATIVE_GLOBAL

#the location of the tools libraries
LDIR      = $(ITOOLSDIR)/libs/libs$(BOPT)$(PROFILE)/$(ARCH)

#the name of the BlockSolve library
LIBNAME = $(BSDIR)/bslib$(BOPT)$(COMM).$(ARCH).a

SOURCE = BMcomp_msg.c \
BSallc_number.c BSfnd_inode.c BSallc_distr.c BSnum2perm.c BSallc_perm.c \
BSfnd_clique.c BSmain_perm.c BScontract.c BSmisc_perm.c BSoffset.c \
BSnum2distr.c BSbulletin.c BSheap_sort.c BSmap.c \
BSx_color.c BSido_color.c BSpack_n_send.c BSmy_rand.c BSrem_diag.c \
BSoff_gnum.c BSfold_distr.c BStrans_perm_cl.c BStrans_perm_in.c \
BSclique_2_inode.c BSins_diag.c BSperm_rows.c BSrows_2_inode.c BSnz_2_inode.c \
BSsort_rows.c BSglobal_perm.c BSallc_keyarr.c BSrow_perm.c BSfree_spmat.c \
BSfree_cl2i.c BSfree_inlist.c BSlow2high.c BSbase.c BScolor_2_clique.c \
BSfree_reperm.c BSfree_par_mat.c BSmain_reperm.c BSget_diag.c BSbulletin_d.c \
BSscale_diag.c BScopy_par_mat.c BScopy_nz.c BSset_diag.c BSsetup_forward.c \
BSfree_comm.c BSforward.c BSorig_inode.c BSbackward.c BSset_diagv.c \
BSpar_ip.c BSinv_diag_block.c BSsave_diag.c BSbjacobi.c \
BSfor_solve.c BSback_solve.c BSfactor.c BSsetup_factor.c BSrow_err_check.c \
BSsdo_color.c BSb_forward.c BSb_backward.c BScount_nz.c \
BSpar_solve.c BSpar_bip.c BSpar_bcg.c BSb_for_solve.c BSb_back_solve.c \
BSpar_isolve.c BSpar_symmlq.c BStri_solve.c BStri_mult.c \
BSmat_subtract.c BSsetup_block.c BScontext.c BSforward1.c BSbackward1.c \
BSfor_solve1.c BSback_solve1.c BSfactor1.c BSfactorn.c BSspace.c BSeasy_A.c \
BSfree_easymat.c

OBJS = BMcomp_msg.o \
BSallc_number.o BSfnd_inode.o BSallc_distr.o BSnum2perm.o BSallc_perm.o \
BSfnd_clique.o BSmain_perm.o BScontract.o BSmisc_perm.o BSoffset.o \
BSnum2distr.o BSbulletin.o BSheap_sort.o BSmap.o \
BSx_color.o BSido_color.o BSpack_n_send.o BSmy_rand.o BSrem_diag.o \
BSoff_gnum.o BSfold_distr.o BStrans_perm_cl.o BStrans_perm_in.o \
BSclique_2_inode.o BSins_diag.o BSperm_rows.o BSrows_2_inode.o BSnz_2_inode.o \
BSsort_rows.o BSglobal_perm.o BSallc_keyarr.o BSrow_perm.o BSfree_spmat.o \
BSfree_cl2i.o BSfree_inlist.o BSlow2high.o BSbase.o BScolor_2_clique.o \
BSfree_reperm.o BSfree_par_mat.o BSmain_reperm.o BSget_diag.o BSbulletin_d.o \
BSscale_diag.o BScopy_par_mat.o BScopy_nz.o BSset_diag.o BSsetup_forward.o \
BSfree_comm.o BSforward.o BSorig_inode.o BSbackward.o BSset_diagv.o \
BSpar_ip.o BSinv_diag_block.o BSsave_diag.o BSbjacobi.o \
BSfor_solve.o BSback_solve.o BSfactor.o BSsetup_factor.o BSrow_err_check.o \
BSsdo_color.o BSb_forward.o BSb_backward.o BScount_nz.o \
BSpar_solve.o BSpar_bip.o BSpar_bcg.o BSb_for_solve.o BSb_back_solve.o \
BSpar_isolve.o BSpar_symmlq.o BStri_solve.o BStri_mult.o \
BSmat_subtract.o BSsetup_block.o BScontext.o BSforward1.o BSbackward1.o \
BSfor_solve1.o BSback_solve1.o BSfactor1.o BSfactorn.o BSspace.o BSeasy_A.o \
BSfree_easymat.o

#various Makefile stuff that must be included from the tools package
include $(ITOOLSDIR)/bmake/$(ARCH).$(BOPT)$(PROFILE)
include $(ITOOLSDIR)/bmake/$(ARCH)
include $(ITOOLSDIR)/bmake/$(ARCH).$(COMM)

