################################################################################
##
##  Makefile:   test/sysUtils
##
##  $Revision: 1.5 $  $Name: not supported by cvs2svn $
##  $Date: 2004-05-24 21:04:06 $
##
##  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
##
###############################################################################

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

PSLIB_INCL_DIR = ../../include

PSLIB_LIB_DIR = ../../lib

TARGET = tst_psMatrix01 \
         tst_psStats00 \
         tst_psStats01 \
         tst_psStats02 \
         tst_psStats03 \
         tst_psStats04

all: $(TARGET)

tst_psMatrix01:         tst_psMatrix01.o
tst_psStats00:		tst_psStats00.o
tst_psStats01:		tst_psStats01.o
tst_psStats02:		tst_psStats02.o
tst_psStats03:		tst_psStats03.o
tst_psStats04:		tst_psStats04.o

clean:
	@echo "    Deleting executable and binary files for 'test/sysUtils'"
	$(RM) $(TARGET) *.o *.lint

%.o : %.c
	$(CC) $(CFLAGS) $(CPPFLAGS) -I.. -I$(PSLIB_INCL_DIR) -c -o $@ $<

%   : %.o
	$(CC) $(LDFLAGS) -L.. -L$(PSLIB_LIB_DIR) -lpslib -lpstest -lgsl -lgslcblas -o $@ $<

%.lint: %.c
	splint +posixlib -exportlocal -realcompare $(INCLUDE_GLOBAL) $? > $@; cat $@


