################################################################################
##
##  Makefile:   test/sysUtils
##
##  $Revision: 1.48 $  $Name: not supported by cvs2svn $
##  $Date: 2004-10-03 23:35:47 $
##
##  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
##
###############################################################################

ifndef prefix
    export prefix=$(shell cd ../..;pwd)
endif

include ../../src/Makefile.Globals

CFLAGS := -I../../include $(CFLAGS)
LDFLAGS := -L../../lib -lpslib -lpstest $(LDFLAGS)
TARGET = \
tst_psFunc00 \
tst_psFunc01 \
tst_psFunc02 \
tst_psFunc03 \
tst_psFunc04 \
tst_psFunc05 \
tst_psFunc07 \
tst_psHist00 \
tst_psHist01 \
tst_psHist02 \
tst_psHist03 \
tst_psMatrix01 \
tst_psMatrix02 \
tst_psMatrix03 \
tst_psMatrix04 \
tst_psMatrix05 \
tst_psMatrix06 \
tst_psMatrix07 \
tst_psMatrixVectorArithmetic01 \
tst_psMatrixVectorArithmetic02 \
tst_psMatrixVectorArithmetic03 \
tst_psMinimize04 \
tst_psMinimize04b \
tst_psMinimize05 \
tst_psMinimize06 \
tst_psStats00 \
tst_psStats01 \
tst_psStats02 \
tst_psStats03 \
tst_psStats05 \
tst_psStats06 \
tst_psStats07 \
tst_psStats08 \
tst_psStats09 \
tst_psVectorFFT 
# tst_psFunc06 \
# tst_psMinimize04b \

OBJS = $(addsuffix .o,$(TARGET))

all: $(TARGET)

# include $(DEPENDENCIES)

clean:
	@echo "    Deleting executable and binary files for 'test/collections'"
	$(RM) $(OBJS)

distclean: clean
	$(RM) $(TARGET)

install: $(testbindir) $(testbindir)/verified $(TARGET)
	install $(TARGET) $(testbindir)
	install verified/*.stderr verified/*.stdout $(testbindir)/verified

$(testbindir):
	mkdir -p $(testbindir)

$(testbindir)/verified:
	mkdir -p $(testbindir)/verified


